// asmtool.py -i --fix-fcprimal-camera-pos 9884e362dde8dc33-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.31 on Wed Mar 02 08:07:03 2016
//
//
// Buffer Definitions: 
//
// cbuffer CViewportShaderParameterProvider
// {
//
//   float4x4 InvProjectionMatrix;      // Offset:    0 Size:    64
//   float4x4 InvViewMatrix;            // Offset:   64 Size:    64 [unused]
//   float4x4 ProjectionMatrix;         // Offset:  128 Size:    64 [unused]
//   float4x4 ViewMatrix;               // Offset:  192 Size:    64 [unused]
//   float4x4 ViewProjectionMatrix;     // Offset:  256 Size:    64 [unused]
//   float4x4 ViewRotProjectionMatrix;  // Offset:  320 Size:    64 [unused]
//   float4x4 ViewRotProjectionMatrix_Previous;// Offset:  384 Size:    64 [unused]
//   float4 AmbientSHR;                 // Offset:  448 Size:    16 [unused]
//   float4 AmbientSHG;                 // Offset:  464 Size:    16 [unused]
//   float4 AmbientSHB;                 // Offset:  480 Size:    16 [unused]
//   float4 CameraDistances;            // Offset:  496 Size:    16 [unused]
//   float4 CameraNearPlaneSize;        // Offset:  512 Size:    16 [unused]
//   float4 DepthScale;                 // Offset:  528 Size:    16 [unused]
//   float4 DepthTextureScaleOffset;    // Offset:  544 Size:    16 [unused]
//   float4 FogParams;                  // Offset:  560 Size:    16
//   float4 FogSHB;                     // Offset:  576 Size:    16 [unused]
//   float4 FogSHG;                     // Offset:  592 Size:    16 [unused]
//   float4 FogSHR;                     // Offset:  608 Size:    16 [unused]
//   float4 HeightFogParams;            // Offset:  624 Size:    16
//   float4 ViewportSize;               // Offset:  640 Size:    16
//   float3 ViewPoint;                  // Offset:  656 Size:    12 [unused]
//   float3 CameraPosition;             // Offset:  672 Size:    12
//   float3 CameraPosition_Previous;    // Offset:  688 Size:    12 [unused]
//   float3 CameraPositionFractions;    // Offset:  704 Size:    12 [unused]
//   float3 CameraPositionFractions_Previous;// Offset:  720 Size:    12 [unused]
//   float3 CameraRight;                // Offset:  736 Size:    12 [unused]
//   float3 CameraUp;                   // Offset:  752 Size:    12 [unused]
//   float3 CameraDirection;            // Offset:  768 Size:    12
//   float3 EnvironmentMapColorOffset;  // Offset:  784 Size:    12 [unused]
//   float3 EnvironmentMapColorScale;   // Offset:  800 Size:    12 [unused]
//   float3 AmbientOcclusionRanges;     // Offset:  816 Size:    12 [unused]
//   float3 DepthTextureRcpSize;        // Offset:  832 Size:    12 [unused]
//   float2 MotionVectorOffsets;        // Offset:  848 Size:     8 [unused]
//   float2 DepthRangeCompression;      // Offset:  856 Size:     8 [unused]
//   float ShadowProjDepthMinValue;     // Offset:  864 Size:     4 [unused]
//   float DistanceScale;               // Offset:  868 Size:     4 [unused]
//   float WorldSpaceZOffset;           // Offset:  872 Size:     4 [unused]
//   float WorldSpaceZOffset_Previous;  // Offset:  876 Size:     4 [unused]
//   float CameraFOVDeg;                // Offset:  880 Size:     4 [unused]
//   float EffectsEmissiveEVBias;       // Offset:  884 Size:     4 [unused]
//   float ShadowCSMLastSliceIndex;     // Offset:  888 Size:     4
//   float UseNormalization;            // Offset:  892 Size:     4 [unused]
//   float FogUndergroundColorScale;    // Offset:  896 Size:     4 [unused]
//
// }
//
// cbuffer CSceneTerrainSkyOcclusionAtlasPrivateData
// {
//
//   float4 SectorOcclusion_OffsetScale;// Offset:    0 Size:    16
//   float3 SectorOcclusion_DistanceFade;// Offset:   16 Size:    12
//   float2 SectorOcclusion_HeightOffsetScale;// Offset:   32 Size:     8
//
// }
//
// cbuffer CAmbientProvider
// {
//
//   float4 CascadeDistanceScales[5];   // Offset:    0 Size:    80 [unused]
//   float4 CascadeNearFarSnappedOffsetCamera[5];// Offset:   80 Size:    80 [unused]
//   float4 CascadeNearFarRcpUVSize[5]; // Offset:  160 Size:    80 [unused]
//   float4 UndergroundSHR;             // Offset:  240 Size:    16
//   float4 UndergroundSHG;             // Offset:  256 Size:    16
//   float4 UndergroundSHB;             // Offset:  272 Size:    16
//   float InvUndergroundBlendEndHeight;// Offset:  288 Size:     4
//   float IndirectLightingScale;       // Offset:  292 Size:     4 [unused]
//
// }
//
// cbuffer CWaterParameterProvider
// {
//
//   float4 BorderAlphaMask;            // Offset:    0 Size:    16 [unused]
//   float ReflectionInvSquareFadeDistance;// Offset:   16 Size:     4 [unused]
//   float ReflectionSquareFadeDistance;// Offset:   20 Size:     4 [unused]
//   float SunLightScale;               // Offset:   24 Size:     4
//
// }
//
// cbuffer CWaterWaveParameterProvider
// {
//
//   float4 WaterWave_CameraCenter_FrontVector;// Offset:    0 Size:    16
//   float4 WaterWave_CameraRightVector_;// Offset:   16 Size:    16
//   float4 WaterWave_CameraTanFOVx_2_Near_Far;// Offset:   32 Size:    16
//
// }
//
// cbuffer WaterRiver
// {
//
//   float4 Extinctions;                // Offset:    0 Size:    16
//   float4 MaterialPickingID;          // Offset:   16 Size:    16 [unused]
//   float4 RefractionWaveInfo;         // Offset:   32 Size:    16 [unused]
//   float4 Specular;                   // Offset:   48 Size:    16
//   float4 WaterColor;                 // Offset:   64 Size:    16
//   float4 WaterColorModulation;       // Offset:   80 Size:    16
//   float3 LayerBlendCff;              // Offset:   96 Size:    12 [unused]
//   float CausticsIntensity;           // Offset:  108 Size:     4
//   float3 LayerSpeed;                 // Offset:  112 Size:    12 [unused]
//   float CausticsScale;               // Offset:  124 Size:     4
//   float2 BaseTiling;                 // Offset:  128 Size:     8 [unused]
//   float2 CenterDir;                  // Offset:  136 Size:     8 [unused]
//   float2 CenterTiling1;              // Offset:  144 Size:     8 [unused]
//   float2 DiffuseTiling;              // Offset:  152 Size:     8 [unused]
//   float DiffuseSpeedFactor;          // Offset:  160 Size:     4 [unused]
//   float NormalModifier;              // Offset:  164 Size:     4
//   float NormalOffsetScale;           // Offset:  168 Size:     4
//   float ReflectionColorOffset;       // Offset:  172 Size:     4
//   float ReflectionColorScale;        // Offset:  176 Size:     4
//   float ReflectionNormalOffsetScale; // Offset:  180 Size:     4 [unused]
//
// }
//
// cbuffer CVolumetricFogBlendedProvider
// {
//
//   float4 VFDepthDistribution;        // Offset:    0 Size:    16
//   float4 VFDepthParams;              // Offset:   16 Size:    16 [unused]
//   int4 VFCellParams;                 // Offset:   32 Size:    16
//
// }
//
// cbuffer CTileLightingBlendedParameterProvider
// {
//
//   float4 CSMSlice0_0;                // Offset:    0 Size:    16
//   float4 CSMSlice0_1;                // Offset:   16 Size:    16
//   float4 CSMSlice0_2;                // Offset:   32 Size:    16
//   float4 CSMSlice1_0;                // Offset:   48 Size:    16
//   float4 CSMSlice1_1;                // Offset:   64 Size:    16
//   float4 CSMSlice1_2;                // Offset:   80 Size:    16
//   float4 CSMSlice2_0;                // Offset:   96 Size:    16
//   float4 CSMSlice2_1;                // Offset:  112 Size:    16
//   float4 CSMSlice2_2;                // Offset:  128 Size:    16
//   float4 CSMSliceFade;               // Offset:  144 Size:    16 [unused]
//   float4 ShadowMapSize;              // Offset:  160 Size:    16
//   float4 SunColor;                   // Offset:  176 Size:    16
//   float4 SunDirection;               // Offset:  192 Size:    16
//   int2 NumTiles;                     // Offset:  208 Size:     8
//   int LightCount;                    // Offset:  216 Size:     4 [unused]
//   int ParticlesSmallBufferFactor;    // Offset:  220 Size:     4 [unused]
//
// }
//
// Resource bind info for ExposureBuffer
// {
//
//   float4 $Element;                   // Offset:    0 Size:    16
//
// }
//
// Resource bind info for SHOccGlobalProbe
// {
//
//   float4 $Element;                   // Offset:    0 Size:    16
//
// }
//
// Resource bind info for SkyParamBuffer
// {
//
//   struct ComputedSkyParameters
//   {
//       
//       float r[9];                    // Offset:    0
//       float g[9];                    // Offset:   36
//       float b[9];                    // Offset:   72
//       float3 sunColor;               // Offset:  108
//       float3 moonColor;              // Offset:  120
//
//   } $Element;                        // Offset:    0 Size:   132
//
// }
//
// Resource bind info for LightsLightingData
// {
//
//   struct LightingData
//   {
//       
//       float4 pos;                    // Offset:    0
//       float4 color;                  // Offset:   16
//       float4 direction;              // Offset:   32
//       float attenuation;             // Offset:   48
//       float2 spotFactors;            // Offset:   52
//       uint flags;                    // Offset:   60
//       float4 clippingInfo;           // Offset:   64
//       float4 clipPlanes[3];          // Offset:   80
//
//   } $Element;                        // Offset:    0 Size:   128
//
// }
//
// Resource bind info for ShadowData
// {
//
//   struct ShadowProjTextureData
//   {
//       
//       float4 shadowMapSize;          // Offset:    0
//       float4x4 shadowProjectionMatrix;// Offset:   16
//       float4 spotScaleOffsetUVs;     // Offset:   80
//
//   } $Element;                        // Offset:    0 Size:    96
//
// }
//
// Resource bind info for LightIndicesPerTileForBlended
// {
//
//   uint $Element;                     // Offset:    0 Size:     4
//
// }
//
// Resource bind info for LightOutputPerTileForBlended
// {
//
//   uint $Element;                     // Offset:    0 Size:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// DepthVPSampler__SampObj__         sampler      NA          NA    0        1
// EnvironmentMapBRDFTexture__SampObj__    sampler      NA          NA    1        1
// SectorHemiMapSamplerStateLinear    sampler      NA          NA    2        1
// WaterWaveTexture__SampObj__       sampler      NA          NA    3        1
// NormalTexture__SampObj__          sampler      NA          NA    4        1
// CausticsTexture__SampObj__        sampler      NA          NA    5        1
// ReflectionCubeTexture__SampObj__    sampler      NA          NA    6        1
// DiffuseTexture__SampObj__         sampler      NA          NA    7        1
// ColorClamp3D                      sampler      NA          NA    8        1
// ShadowCmpSampler                sampler_c      NA          NA    9        1
// ProjectedTexture0__SampObj__      sampler      NA          NA   10        1
// DepthVPSampler__TexObj__          texture  float4          2d    0        1
// EnvironmentMapBRDFTexture__TexObj__    texture  float4          2d    1        1
// ExposureBuffer                    texture  struct         r/o    2        1
// SHOccGlobalProbe                  texture  struct         r/o    3        1
// SkyParamBuffer                    texture  struct         r/o    4        1
// SectorOcclusion_HeightTexture__TexObj__    texture  float4          2d    5        1
// WaterWaveTexture__TexObj__        texture  float4          2d    6        1
// NormalTexture__TexObj__           texture  float4          2d    7        1
// CausticsTexture__TexObj__         texture  float4          2d    8        1
// ReflectionCubeTexture__TexObj__    texture  float4        cube    9        1
// DiffuseTexture__TexObj__          texture  float4          2d   10        1
// VFVolumeTextureRGB                texture  float4          3d   11        1
// VFVolumeTextureAlpha              texture  float4          3d   12        1
// ShadowCmpSampler_TextureObject    texture  float4     2darray   13        1
// ProjectedTexture0__TexObj__       texture  float4          2d   14        1
// DeferredShadowTexture             texture  float4          2d   15        1
// LightsLightingData                texture  struct         r/o   16        1
// ShadowData                        texture  struct         r/o   17        1
// LightIndicesPerTileForBlended     texture  struct         r/o   18        1
// LightOutputPerTileForBlended      texture  struct         r/o   19        1
// CViewportShaderParameterProvider    cbuffer      NA          NA    0        1
// CSceneTerrainSkyOcclusionAtlasPrivateData    cbuffer      NA          NA    1        1
// CAmbientProvider                  cbuffer      NA          NA    2        1
// CWaterParameterProvider           cbuffer      NA          NA    3        1
// CWaterWaveParameterProvider       cbuffer      NA          NA    4        1
// WaterRiver                        cbuffer      NA          NA    5        1
// CVolumetricFogBlendedProvider     cbuffer      NA          NA    6        1
// CTileLightingBlendedParameterProvider    cbuffer      NA          NA    7        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xy  
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyz         3     NONE   float   xyz 
// TEXCOORD                 3   xyz         4     NONE   float   xyz 
// TEXCOORD                 4   xyz         5     NONE   float   xyz 
// TEXCOORD                 5   xyz         6     NONE   float   xyz 
// TEXCOORD                 6   xyzw        7     NONE   float     zw
// SV_IsFrontFace           0   x           8    FFACE    uint       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[56], immediateIndexed
dcl_constantbuffer cb1[3], immediateIndexed
dcl_constantbuffer cb2[19], immediateIndexed
dcl_constantbuffer cb3[2], immediateIndexed
dcl_constantbuffer cb4[3], immediateIndexed
dcl_constantbuffer cb5[12], immediateIndexed
dcl_constantbuffer cb6[3], immediateIndexed
dcl_constantbuffer cb7[14], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_default
dcl_sampler s6, mode_default
dcl_sampler s7, mode_default
dcl_sampler s8, mode_default
dcl_sampler s9, mode_comparison
dcl_sampler s10, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_structured t2, 16 
dcl_resource_structured t3, 16 
dcl_resource_structured t4, 132 
dcl_resource_texture2d (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t6
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_texture2d (float,float,float,float) t8
dcl_resource_texturecube (float,float,float,float) t9
dcl_resource_texture2d (float,float,float,float) t10
dcl_resource_texture3d (float,float,float,float) t11
dcl_resource_texture3d (float,float,float,float) t12
dcl_resource_texture2darray (float,float,float,float) t13
dcl_resource_texture2d (float,float,float,float) t14
dcl_resource_texture2d (float,float,float,float) t15
dcl_resource_structured t16, 128 
dcl_resource_structured t17, 96 
dcl_resource_structured t18, 4 
dcl_resource_structured t19, 4 
dcl_input_ps_siv linear noperspective centroid v0.xy, position
dcl_input_ps linear v1.xyzw
dcl_input_ps linear centroid v2.xyzw
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyz
dcl_input_ps linear v7.zw
dcl_output o0.xyzw
dcl_temps 27

// 3DMigoto StereoParams:
dcl_resource_texture2d (float,float,float,float) t125

ld_indexable(texture2d)(float,float,float,float) r24.xyzw, l(0, 0, 0, 0), t125.xyzw


// Camera Position (environment reflections, etc) adjustment inserted with DarkStarSword's asmtool.py:
// asmtool.py -i --fix-fcprimal-camera-pos 9884e362dde8dc33-ps.txt
mul r25.x, r24.x, r24.y
mul r25.x, r25.x, cb0[0].x
mov r25.yzw, l(0.0)
dp4 r26.x, r25.xyzw, cb0[4].xyzw
dp4 r26.y, r25.xyzw, cb0[5].xyzw
dp4 r26.z, r25.xyzw, cb0[6].xyzw
mov r25.xyzw, cb0[42].xyzw
add r25.xyz, r25.xyz, r26.xyz

mov_sat r0.x, v2.w
dp3 r0.y, v3.xyzx, v3.xyzx
sqrt r0.y, r0.y
add r1.xyz, -v5.xzyx, r25.xzyx
dp3 r0.z, r1.xyzx, r1.xyzx
rsq r0.z, r0.z
mul r2.xyz, r0.zzzz, r1.xyzx
sample_indexable(texture2d)(float,float,float,float) r3.xzw, v1.wxww, t7.yzwx, s4
mad r4.xy, r3.zxzz, l(2.007874, 2.007874, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r4.xyxx, r4.xyxx
min r0.w, r0.w, l(1.000000)
add r0.w, -r0.w, l(1.000000)
sqrt r4.z, r0.w
sample_indexable(texture2d)(float,float,float,float) r5.xzw, v1.wyww, t7.yzwx, s4
mad r6.xy, r5.zxzz, l(2.007874, 2.007874, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r6.xyxx, r6.xyxx
min r0.w, r0.w, l(1.000000)
add r0.w, -r0.w, l(1.000000)
sqrt r6.z, r0.w
sample_indexable(texture2d)(float,float,float,float) r7.xzw, v1.wzww, t7.yzwx, s4
mad r8.xy, r7.zxzz, l(2.007874, 2.007874, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r8.xyxx, r8.xyxx
min r0.w, r0.w, l(1.000000)
add r0.w, -r0.w, l(1.000000)
sqrt r8.z, r0.w
mul r3.xyz, r4.xyzx, v4.xxxx
mul r5.xyz, r6.xyzx, v4.yyyy
mul r7.xyz, r8.xyzx, v4.zzzz
add r3.xyzw, r3.xyzw, r5.xyzw
add r3.xyzw, r3.xyzw, r7.xyzw
mul r4.yw, r3.yyyx, cb5[10].yyyy
mov r4.z, r3.z
dp3 r0.w, r4.yzwy, r4.yzwy
rsq r0.w, r0.w
mul r1.w, r3.w, cb5[3].x
mul r3.x, r0.y, l(0.010000)
add r5.xy, v5.xyxx, -cb4[0].xyxx
dp2 r2.w, cb4[0].zwzz, r5.xyxx
mul r3.w, cb4[2].z, cb4[2].y
div r2.w, l(1.000000, 1.000000, 1.000000, 1.000000), r2.w
mad r2.w, r3.w, r2.w, -cb4[2].z
add r4.x, -cb4[2].z, cb4[2].y
div r2.w, r2.w, r4.x
mov r5.x, -r3.x
mov r5.y, l(0)
add r5.xy, r5.xyxx, v5.xyxx
add r5.xy, r5.xyxx, -cb4[0].xyxx
dp2 r5.z, cb4[0].zwzz, r5.xyxx
dp2 r5.x, cb4[1].xyxx, r5.xyxx
div r5.y, l(1.000000, 1.000000, 1.000000, 1.000000), r5.z
mad r5.y, r3.w, r5.y, -cb4[2].z
div r6.y, r5.y, r4.x
mul r5.y, r5.z, cb4[2].x
div r5.x, r5.x, r5.y
mad r6.x, r5.x, l(0.500000), l(0.500000)
mov r3.y, l(0)
add r5.xyzw, r3.xyyx, v5.xyxy
add r5.xyzw, r5.xyzw, -cb4[0].xyxy
dp2 r6.z, cb4[0].zwzz, r5.xyxx
dp2 r5.x, cb4[1].xyxx, r5.xyxx
div r5.y, l(1.000000, 1.000000, 1.000000, 1.000000), r6.z
mad r5.y, r3.w, r5.y, -cb4[2].z
div r7.y, r5.y, r4.x
mul r5.y, r6.z, cb4[2].x
div r5.x, r5.x, r5.y
mad r7.x, r5.x, l(0.500000), l(0.500000)
mov r3.z, -r3.x
add r3.yz, r3.yyzy, v5.xxyx
add r3.yz, r3.yyzy, -cb4[0].xxyx
dp2 r5.x, cb4[0].zwzz, r3.yzyy
dp2 r3.y, cb4[1].xyxx, r3.yzyy
div r3.z, l(1.000000, 1.000000, 1.000000, 1.000000), r5.x
mad r3.z, r3.w, r3.z, -cb4[2].z
div r8.y, r3.z, r4.x
mul r3.z, r5.x, cb4[2].x
div r3.y, r3.y, r3.z
mad r8.x, r3.y, l(0.500000), l(0.500000)
dp2 r3.y, cb4[0].zwzz, r5.zwzz
dp2 r3.z, cb4[1].xyxx, r5.zwzz
div r5.x, l(1.000000, 1.000000, 1.000000, 1.000000), r3.y
mad r3.w, r3.w, r5.x, -cb4[2].z
div r5.y, r3.w, r4.x
mul r3.y, r3.y, cb4[2].x
div r3.y, r3.z, r3.y
mad r5.x, r3.y, l(0.500000), l(0.500000)
sample_indexable(texture2d)(float,float,float,float) r3.y, r6.xyxx, t6.yxzw, s3
sample_indexable(texture2d)(float,float,float,float) r3.z, r7.xyxx, t6.yzxw, s3
sample_indexable(texture2d)(float,float,float,float) r3.w, r8.xyxx, t6.yzwx, s3
sample_indexable(texture2d)(float,float,float,float) r4.x, r5.xyxx, t6.xyzw, s3
add r5.w, -r3.y, r3.z
add r5.y, -r3.w, r4.x
div r3.xy, r5.ywyy, r3.xxxx
add r2.w, r2.w, l(-0.900000)
mul_sat r2.w, r2.w, l(10.000000)
mad r2.w, r2.w, l(-0.050000), l(0.050000)
mul r3.yw, r2.wwww, r3.xxxy
mov r3.z, l(0)
mad r3.xyz, r4.yzwy, r0.wwww, r3.yzwy
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r3.yzw, r0.wwww, r3.xxyz
mad r4.xy, r3.wyww, cb5[10].zzzz, v7.zwzz
sample_indexable(texture2d)(float,float,float,float) r4.xyzw, r4.xyxx, t10.xyzw, s7
mad r5.xy, r3.wyww, cb5[10].zzzz, v5.xyxx
mul r0.w, |cb0[48].z|, l(0.100000)
dp3 r2.w, r3.wzyw, r2.xyzx
mov_sat r6.x, r2.w
mad r7.x, r6.x, l(0.968750), l(0.015625)
mad r7.y, r1.w, l(0.322916657), l(0.015625)
sample_l_indexable(texture2d)(float,float,float,float) r6.yz, r7.xyxx, t1.zxyw, s1, l(0.000000)
mad_sat r0.w, r0.w, r6.z, r6.y
mov r3.x, l(1.000000)
mul r7.xyzw, r3.xyzw, l(0.282094806, 0.488602519, 0.488602519, 0.488602519)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r8.xyzw, l(0), l(0), t3.xyzw
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r9.xyzw, l(1), l(0), t3.xyzw
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r10.xyzw, l(2), l(0), t3.xyzw
dp4 r8.x, r8.xyzw, r7.xyzw
dp4 r8.y, r9.xyzw, r7.xyzw
dp4 r8.z, r10.xyzw, r7.xyzw
max r6.yzw, r8.xxyz, l(0.000000, 0.000000, 0.000000, 0.000000)
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r8.xyzw, l(0), l(108), t4.xywz
dp3 r3.x, r8.xywx, l(0.212600, 0.715200, 0.072200, 0.000000)
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r8.xy, l(0), l(124), t4.xyxx
dp3 r8.x, r8.zxyz, l(0.212600, 0.715200, 0.072200, 0.000000)
max r3.x, r3.x, r8.x
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r8.x, l(0), l(0), t4.xxxx
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r8.y, l(0), l(36), t4.xxxx
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r8.z, l(0), l(72), t4.xxxx
max r8.y, r8.z, r8.y
max r8.x, r8.y, r8.x
add r3.x, r3.x, r8.x
mul r8.xyz, r3.xxxx, r6.yzwy
dp4 r9.x, cb2[15].xyzw, r7.xyzw
dp4 r9.y, cb2[16].xyzw, r7.xyzw
dp4 r9.z, cb2[17].xyzw, r7.xyzw
max r7.xyz, r9.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r9.xy, v5.yxyy, cb1[0].yxyy, cb1[0].wzww
sample_l_indexable(texture2d)(float,float,float,float) r7.w, r9.xyxx, t5.xzwy, s2, l(0.000000)
mad r7.w, r7.w, cb1[2].x, cb1[2].y
add r7.w, -r7.w, v5.z
mul_sat r7.w, -r7.w, cb2[18].x
sqrt r7.w, r7.w
add r9.xy, v5.xyxx, -r25.xyxx
dp2 r8.w, r9.xyxx, r9.xyxx
mad r8.w, cb1[1].x, r8.w, cb1[1].y
mul_sat r8.w, r8.w, l(3.000000)
mul r7.w, r7.w, r8.w
mad r6.yzw, -r6.yyzw, r3.xxxx, r7.xxyz
mad r6.yzw, r7.wwww, r6.yyzw, r8.xxyz
div r7.xy, v6.xyxx, v6.zzzz
sample_l_indexable(texture2d)(float,float,float,float) r7.z, r7.xyxx, t0.yzxw, s0, l(0.000000)
mov r7.w, l(1.000000)
dp4 r3.x, r7.xyzw, cb0[2].xyzw
dp4 r7.x, r7.xyzw, cb0[3].xyzw
div r3.x, -r3.x, r7.x
mul r3.x, r0.y, -r3.x
div r3.x, r3.x, v3.z
mad r7.x, -r1.w, l(0.330000), l(1.000000)
mul r7.x, r7.x, r7.x
max r7.x, r7.x, l(0.001000)
ftou r7.yz, v0.xxyx
ushr r8.xy, r7.yzyy, l(3, 3, 0, 0)
imad r7.w, r8.y, cb7[13].x, r8.x
ftoi r8.xy, v0.xyxx
mov r8.zw, l(0,0,0,0)
ld_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r8.x, r8.xyzw, t15.xyzw
mov r5.z, v5.z
mov r5.w, l(1.000000)
dp4 r9.x, r5.xyzw, cb7[6].xyzw
dp4 r9.y, r5.xyzw, cb7[7].xyzw
dp4 r9.z, r5.xyzw, cb7[8].xyzw
dp4 r10.x, r5.xyzw, cb7[3].xyzw
dp4 r10.y, r5.xyzw, cb7[4].xyzw
dp4 r10.z, r5.xyzw, cb7[5].xyzw
add r8.yzw, r10.xxyz, l(0.000000, -0.000000, -0.000000, -0.001000)
ge r11.xyz, r8.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
and r11.xyz, r11.xyzx, l(0x3f800000, 0x3f800000, 0x3f800000, 0)
ge r8.yzw, l(0.000000, 1.000000, 1.000000, 1.000000), r8.yyzw
and r8.yzw, r8.yyzw, l(0, 0x3f800000, 0x3f800000, 0x3f800000)
mul r8.yzw, r8.yyzw, r11.xxyz
dp3 r8.y, r8.yzwy, l(1.000000, 1.000000, 1.000000, 0.000000)
ge r8.y, r8.y, l(3.000000)
mov r10.w, l(1.000000)
mov r9.w, l(2.000000)
movc r11.xyzw, r8.yyyy, r10.xyzw, r9.xyzw
dp4 r12.x, r5.xyzw, cb7[0].xyzw
dp4 r12.y, r5.xyzw, cb7[1].xyzw
dp4 r12.z, r5.xyzw, cb7[2].xyzw
add r8.yzw, r12.xxyz, l(0.000000, -0.000000, -0.000000, -0.001000)
ge r13.xyz, r8.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
and r13.xyz, r13.xyzx, l(0x3f800000, 0x3f800000, 0x3f800000, 0)
ge r8.yzw, l(0.000000, 1.000000, 1.000000, 1.000000), r8.yyzw
and r8.yzw, r8.yyzw, l(0, 0x3f800000, 0x3f800000, 0x3f800000)
mul r8.yzw, r8.yyzw, r13.xxyz
dp3 r8.y, r8.yzwy, l(1.000000, 1.000000, 1.000000, 0.000000)
ge r8.y, r8.y, l(3.000000)
mov r12.w, l(0)
movc r11.xyzw, r8.yyyy, r12.xyzw, r11.xyzw
min r13.z, r11.w, cb0[55].z
eq r8.y, r13.z, cb0[55].z
if_nz r8.y
  mad r8.yz, r9.xxyx, l(0.000000, 2.000000, 2.000000, 0.000000), l(0.000000, -1.000000, -1.000000, 0.000000)
  add r8.yz, |r8.yyzy|, l(0.000000, -0.800000, -0.800000, 0.000000)
  mul_sat r8.yz, r8.yyzy, l(0.000000, 5.000000, 5.000000, 0.000000)
  add r8.yz, -r8.yyzy, l(0.000000, 1.000000, 1.000000, 0.000000)
  add r8.w, r9.z, l(-0.500000)
  mad r8.w, -|r8.w|, l(2.000000), l(1.000000)
  max r8.w, r8.w, l(0.000000)
  min r8.w, r8.w, l(0.200000)
  mul r8.w, r8.w, l(5.000000)
  min r8.y, r8.z, r8.y
  min r8.y, r8.w, r8.y
  mad r8.zw, r11.xxxy, cb7[10].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
  round_ni r14.xy, r8.zwzz
  add r8.zw, r8.zzzw, -r14.xxxy
  add r14.xy, r14.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
  mad r14.zw, -r8.wwwz, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 3.000000, 3.000000)
  mad r15.xy, r8.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
  add r15.zw, -r8.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000)
  div r15.zw, r15.zzzw, r14.wwwz
  div r8.zw, r8.zzzw, r15.xxxy
  add r16.zw, r15.zzzw, l(0.000000, 0.000000, -1.000000, -1.000000)
  add r16.xy, r8.zwzz, l(1.000000, 1.000000, 0.000000, 0.000000)
  mul r8.z, r14.z, r14.w
  mul r17.xyzw, r16.zwxw, cb7[10].zwzw
  mad r18.xy, r14.xyxx, cb7[10].zwzz, r17.xyxx
  mov r18.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r18.xyzx, t13.xxxx, s9, r11.z
  mul r14.zw, r14.zzzw, r15.xxxy
  mad r17.xy, r14.xyxx, cb7[10].zwzz, r17.zwzz
  mov r17.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.w, r17.xyzx, t13.xxxx, s9, r11.z
  mul r9.w, r9.w, r14.z
  mad r8.z, r8.z, r8.w, r9.w
  mul r16.xyzw, r16.zyxy, cb7[10].zwzw
  mad r17.xy, r14.xyxx, cb7[10].zwzz, r16.xyxx
  mov r17.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r17.xyzx, t13.xxxx, s9, r11.z
  mad r8.z, r14.w, r8.w, r8.z
  mul r8.w, r15.y, r15.x
  mad r14.xy, r14.xyxx, cb7[10].zwzz, r16.zwzz
  mov r14.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.w, r14.xyzx, t13.xxxx, s9, r11.z
  mad r8.z, r8.w, r9.w, r8.z
  mad r8.z, r8.z, l(0.062500), -r8.x
  mad r8.y, r8.y, r8.z, r8.x
else 
  eq r8.z, r13.z, l(1.000000)
  if_nz r8.z
    mad r8.zw, r11.xxxy, cb7[10].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
    round_ni r14.xy, r8.zwzz
    add r8.zw, r8.zzzw, -r14.xxxy
    add r14.xy, r14.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
    mul r14.zw, r14.xxxy, cb7[10].zzzw
    mad r15.xy, -r8.wzww, l(3.000000, 3.000000, 0.000000, 0.000000), l(4.000000, 4.000000, 0.000000, 0.000000)
    mad r15.zw, r8.zzzw, l(0.000000, 0.000000, 3.000000, 3.000000), l(0.000000, 0.000000, 1.000000, 1.000000)
    mad r16.xy, -r8.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
    div r16.xy, r16.xyxx, r15.yxyy
    add r16.zw, r8.zzzw, l(0.000000, 0.000000, 3.000000, 3.000000)
    div r8.zw, r8.zzzw, r15.zzzw
    add r17.xw, r16.xxxy, l(-2.000000, 0.000000, 0.000000, -2.000000)
    mul r17.yz, r16.wwzw, l(0.000000, 0.142857149, 0.142857149, 0.000000)
    add r16.xy, r8.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000)
    mul r8.z, r15.x, r15.y
    mul r18.xyzw, r17.xwzw, cb7[10].zwzw
    mad r19.xy, r14.xyxx, cb7[10].zwzz, r18.xyxx
    mov r19.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r19.xyzx, t13.xxxx, s9, r11.z
    mul r18.xy, r15.xyxx, l(7.000000, 7.000000, 0.000000, 0.000000)
    mad r19.xy, r14.xyxx, cb7[10].zwzz, r18.zwzz
    mov r19.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.w, r19.xyzx, t13.xxxx, s9, r11.z
    mul r9.w, r9.w, r18.x
    mad r8.z, r8.z, r8.w, r9.w
    mul r15.xy, r15.xyxx, r15.zwzz
    mov r16.zw, r17.wwwy
    mul r19.xyzw, r16.xzxw, cb7[10].zwzw
    mad r20.xy, r14.xyxx, cb7[10].zwzz, r19.xyxx
    mov r20.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r20.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r15.x, r8.w, r8.z
    mul r20.xyzw, r17.xyzy, cb7[10].zwzw
    mad r21.xy, r14.xyxx, cb7[10].zwzz, r20.xyxx
    mov r21.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r21.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r18.y, r8.w, r8.z
    mad r18.xy, r14.xyxx, cb7[10].zwzz, r20.zwzz
    mov r18.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r18.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r8.w, l(49.000000), r8.z
    mul r16.zw, r15.zzzw, l(0.000000, 0.000000, 7.000000, 7.000000)
    mad r18.xy, r14.xyxx, cb7[10].zwzz, r19.zwzz
    mov r18.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r18.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r16.z, r8.w, r8.z
    mov r17.y, r16.y
    mul r17.xyzw, r17.xyzy, cb7[10].zwzw
    mad r18.xy, r14.xyxx, cb7[10].zwzz, r17.xyxx
    mov r18.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r18.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r15.y, r8.w, r8.z
    mad r17.xy, r14.xyxx, cb7[10].zwzz, r17.zwzz
    mov r17.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r17.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r16.w, r8.w, r8.z
    mul r8.w, r15.w, r15.z
    mad r14.xy, r16.xyxx, cb7[10].zwzz, r14.zwzz
    mov r14.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.w, r14.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r8.w, r9.w, r8.z
    mad r14.xy, r10.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
    add r14.xy, |r14.xyxx|, l(-0.800000, -0.800000, 0.000000, 0.000000)
    mul_sat r14.xy, r14.xyxx, l(5.000000, 5.000000, 0.000000, 0.000000)
    add r14.xy, -r14.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
    add r8.w, r10.z, l(-0.500000)
    mad r8.w, -|r8.w|, l(2.000000), l(1.000000)
    max r8.w, r8.w, l(0.000000)
    min r8.w, r8.w, l(0.200000)
    mul r8.yw, r8.zzzw, l(0.000000, 0.00694444450, 0.000000, 5.000000)
    min r9.w, r14.y, r14.x
    min r8.w, r8.w, r9.w
    ne r9.w, r8.w, l(1.000000)
    if_nz r9.w
      mad r9.xy, r9.xyxx, cb7[10].xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
      round_ni r14.xy, r9.xyxx
      add r9.xy, r9.xyxx, -r14.xyxx
      add r14.xy, r14.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
      mad r14.zw, -r9.yyyx, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 3.000000, 3.000000)
      mad r15.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
      add r15.zw, -r9.xxxy, l(0.000000, 0.000000, 2.000000, 2.000000)
      div r15.zw, r15.zzzw, r14.wwwz
      div r9.xy, r9.xyxx, r15.xyxx
      add r16.zw, r15.zzzw, l(0.000000, 0.000000, -1.000000, -1.000000)
      add r16.xy, r9.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
      mul r9.x, r14.z, r14.w
      mul r17.xyzw, r16.zwxw, cb7[10].zwzw
      mad r18.xy, r14.xyxx, cb7[10].zwzz, r17.xyxx
      mov r18.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r18.xyzx, t13.xxxx, s9, r9.z
      mul r14.zw, r14.zzzw, r15.xxxy
      mad r17.xy, r14.xyxx, cb7[10].zwzz, r17.zwzz
      mov r17.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.w, r17.xyzx, t13.xxxx, s9, r9.z
      mul r9.w, r9.w, r14.z
      mad r9.x, r9.x, r9.y, r9.w
      mul r16.xyzw, r16.zyxy, cb7[10].zwzw
      mad r17.xy, r14.xyxx, cb7[10].zwzz, r16.xyxx
      mov r17.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r17.xyzx, t13.xxxx, s9, r9.z
      mad r9.x, r14.w, r9.y, r9.x
      mul r9.y, r15.y, r15.x
      mad r14.xy, r14.xyxx, cb7[10].zwzz, r16.zwzz
      mov r14.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.z, r14.xyzx, t13.xxxx, s9, r9.z
      mad r9.x, r9.y, r9.z, r9.x
      mul r9.x, r9.x, l(0.062500)
      mad r8.z, r8.z, l(0.00694444450), -r9.x
      mad r8.y, r8.w, r8.z, r9.x
    endif 
  else 
    mad r8.zw, r11.xxxy, cb7[10].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
    round_ni r9.xy, r8.zwzz
    add r8.zw, r8.zzzw, -r9.xxxy
    add r9.xy, r9.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
    mul r9.zw, r9.xxxy, cb7[10].zzzw
    mad r14.xyzw, r8.zzzz, l(11.000000, 11.000000, 5.000000, 5.000000), l(-28.000000, 17.000000, -6.000000, 1.000000)
    mad r11.xyw, r8.zzzz, l(4.000000, 4.000000, 0.000000, 7.000000), l(-5.000000, -16.000000, 0.000000, 5.000000)
    div r11.xyw, r11.xyxw, r14.zxzy
    add r15.xyz, r11.yxwy, l(-1.000000, -3.000000, 1.000000, 0.000000)
    div r8.z, r8.z, r14.w
    add r16.x, r8.z, l(3.000000)
    mad r17.xyzw, r8.wwww, l(11.000000, 11.000000, 5.000000, 5.000000), l(-28.000000, 17.000000, -6.000000, 1.000000)
    mad r11.xyw, r8.wwww, l(4.000000, 4.000000, 0.000000, 7.000000), l(-5.000000, -16.000000, 0.000000, 5.000000)
    div r11.xyw, r11.xyxw, r17.zxzy
    add r18.xyz, r11.xywx, l(-3.000000, -1.000000, 1.000000, 0.000000)
    div r8.z, r8.w, r17.w
    add r19.y, r8.z, l(3.000000)
    mul r20.xyzw, r14.zxzx, r17.zzxx
    mov r15.w, r18.x
    mul r21.xyzw, r15.ywxw, cb7[10].zwzw
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r21.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.z, r13.xyzx, t13.xxxx, s9, r11.z
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r21.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mul r8.w, r8.w, r20.y
    mad r8.z, r20.x, r8.z, r8.w
    mul r21.xyzw, -r14.ywyw, r17.zzxx
    mad r13.xy, r15.zwzz, cb7[10].zwzz, r9.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.x, r8.w, r8.z
    mov r16.y, r15.w
    mad r13.xy, r16.xyxx, cb7[10].zwzz, r9.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.y, r8.w, r8.z
    mov r18.w, r15.y
    mul r22.xyzw, r18.wywz, cb7[10].zwzw
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r22.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r20.z, r8.w, r8.z
    mov r15.yw, r18.yyyz
    mul r23.xyzw, r15.xyzy, cb7[10].zwzw
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r23.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r20.w, r8.w, r8.z
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r23.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.z, r8.w, r8.z
    mov r16.zw, r15.yyyw
    mul r20.xyzw, r16.xzxw, cb7[10].zwzw
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r20.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.w, r8.w, r8.z
    mul r21.xyzw, r14.zxzx, -r17.yyww
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r22.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.x, r8.w, r8.z
    mul r22.xyzw, r15.xwzw, cb7[10].zwzw
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r22.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.y, r8.w, r8.z
    mul r14.xyzw, r14.ywyw, r17.yyww
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r22.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r14.x, r8.w, r8.z
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r20.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r14.y, r8.w, r8.z
    mov r19.x, r18.w
    mad r13.xy, r19.xyxx, cb7[10].zwzz, r9.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.z, r8.w, r8.z
    mov r19.zw, r15.xxxz
    mul r15.xyzw, r19.zywy, cb7[10].zwzw
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r15.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r21.w, r8.w, r8.z
    mad r13.xy, r9.xyxx, cb7[10].zwzz, r15.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r14.z, r8.w, r8.z
    mov r19.x, r16.x
    mad r13.xy, r19.xyxx, cb7[10].zwzz, r9.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r8.w, r13.xyzx, t13.xxxx, s9, r11.z
    mad r8.z, r14.w, r8.w, r8.z
    mad r9.xy, r12.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
    add r9.xy, |r9.xyxx|, l(-0.800000, -0.800000, 0.000000, 0.000000)
    mul_sat r9.xy, r9.xyxx, l(5.000000, 5.000000, 0.000000, 0.000000)
    add r9.xy, -r9.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
    add r8.w, r12.z, l(-0.500000)
    mad r8.w, -|r8.w|, l(2.000000), l(1.000000)
    max r8.w, r8.w, l(0.000000)
    min r8.w, r8.w, l(0.200000)
    mul r8.yw, r8.zzzw, l(0.000000, 0.000369822490, 0.000000, 5.000000)
    min r9.x, r9.y, r9.x
    min r8.w, r8.w, r9.x
    ne r9.x, r8.w, l(1.000000)
    if_nz r9.x
      mad r9.xy, r10.xyxx, cb7[10].xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
      round_ni r9.zw, r9.xxxy
      add r9.xy, -r9.zwzz, r9.xyxx
      add r9.zw, r9.zzzw, l(0.000000, 0.000000, -0.500000, -0.500000)
      mul r10.xy, r9.zwzz, cb7[10].zwzz
      mad r11.xy, -r9.yxyy, l(3.000000, 3.000000, 0.000000, 0.000000), l(4.000000, 4.000000, 0.000000, 0.000000)
      mad r11.zw, r9.xxxy, l(0.000000, 0.000000, 3.000000, 3.000000), l(0.000000, 0.000000, 1.000000, 1.000000)
      mad r12.xy, -r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
      div r12.xy, r12.xyxx, r11.yxyy
      add r12.zw, r9.xxxy, l(0.000000, 0.000000, 3.000000, 3.000000)
      div r9.xy, r9.xyxx, r11.zwzz
      add r13.xw, r12.xxxy, l(-2.000000, 0.000000, 0.000000, -2.000000)
      mul r13.yz, r12.wwzw, l(0.000000, 0.142857149, 0.142857149, 0.000000)
      add r12.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000)
      mul r9.x, r11.x, r11.y
      mul r14.xyzw, r13.xwzw, cb7[10].zwzw
      mad r15.xy, r9.zwzz, cb7[10].zwzz, r14.xyxx
      mov r15.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r15.xyzx, t13.xxxx, s9, r10.z
      mul r14.xy, r11.xyxx, l(7.000000, 7.000000, 0.000000, 0.000000)
      mad r15.xy, r9.zwzz, cb7[10].zwzz, r14.zwzz
      mov r15.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r10.w, r15.xyzx, t13.xxxx, s9, r10.z
      mul r10.w, r10.w, r14.x
      mad r9.x, r9.x, r9.y, r10.w
      mul r11.xy, r11.xyxx, r11.zwzz
      mov r12.zw, r13.wwwy
      mul r15.xyzw, r12.xzxw, cb7[10].zwzw
      mad r16.xy, r9.zwzz, cb7[10].zwzz, r15.xyxx
      mov r16.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r16.xyzx, t13.xxxx, s9, r10.z
      mad r9.x, r11.x, r9.y, r9.x
      mul r16.xyzw, r13.xyzy, cb7[10].zwzw
      mad r17.xy, r9.zwzz, cb7[10].zwzz, r16.xyxx
      mov r17.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r17.xyzx, t13.xxxx, s9, r10.z
      mad r9.x, r14.y, r9.y, r9.x
      mad r14.xy, r9.zwzz, cb7[10].zwzz, r16.zwzz
      mov r14.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r14.xyzx, t13.xxxx, s9, r10.z
      mad r9.x, r9.y, l(49.000000), r9.x
      mul r12.zw, r11.zzzw, l(0.000000, 0.000000, 7.000000, 7.000000)
      mad r14.xy, r9.zwzz, cb7[10].zwzz, r15.zwzz
      mov r14.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r14.xyzx, t13.xxxx, s9, r10.z
      mad r9.x, r12.z, r9.y, r9.x
      mov r13.y, r12.y
      mul r13.xyzw, r13.xyzy, cb7[10].zwzw
      mad r14.xy, r9.zwzz, cb7[10].zwzz, r13.xyxx
      mov r14.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r14.xyzx, t13.xxxx, s9, r10.z
      mad r9.x, r11.y, r9.y, r9.x
      mad r13.xy, r9.zwzz, cb7[10].zwzz, r13.zwzz
      mov r13.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.y, r13.xyzx, t13.xxxx, s9, r10.z
      mad r9.x, r12.w, r9.y, r9.x
      mul r9.y, r11.w, r11.z
      mad r11.xy, r12.xyxx, cb7[10].zwzz, r10.xyxx
      mov r11.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r9.z, r11.xyzx, t13.xxxx, s9, r10.z
      mad r9.x, r9.y, r9.z, r9.x
      mul r9.x, r9.x, l(0.00694444450)
      mad r8.z, r8.z, l(0.000369822490), -r9.x
      mad r8.y, r8.w, r8.z, r9.x
    endif 
  endif 
endif 
mul r9.xyz, cb3[1].zzzz, cb7[11].xyzx
mul r8.yzw, r8.yyyy, r9.xxyz
mad r9.xyz, r1.xzyx, r0.zzzz, -cb7[12].xyzx
dp3 r9.w, r9.xyzx, r9.xyzx
rsq r9.w, r9.w
mul r9.xyz, r9.wwww, r9.xyzx
dp3 r9.w, r9.xzyx, r2.xyzx
add r9.w, -r9.w, l(1.000000)
mul r10.x, r9.w, r9.w
mul r10.x, r10.x, r10.x
mul r9.w, r9.w, r10.x
mad r9.w, r9.w, l(0.980000), l(0.020000)
dp3_sat r10.x, -cb7[12].yzxy, r3.yzwy
mul r10.y, r6.x, r6.x
mul r10.z, r7.x, r7.x
mad r10.w, -r7.x, r7.x, l(1.000000)
mad r10.y, r10.y, r10.w, r10.z
sqrt r10.y, r10.y
mul r11.x, r10.x, r10.x
mad r11.x, r11.x, r10.w, r10.z
sqrt r11.x, r11.x
mul r11.x, r6.x, r11.x
mad r11.x, r10.x, r10.y, r11.x
add r11.x, r11.x, r11.x
max r11.x, r11.x, l(0.000100)
div r11.x, l(1.000000, 1.000000, 1.000000, 1.000000), r11.x
dp3_sat r9.x, r9.yzxy, r3.yzwy
mad r9.y, r7.x, r7.x, l(-1.000000)
mul r9.x, r9.x, r9.x
mad r9.x, r9.x, r9.y, l(1.000000)
div r9.x, r7.x, r9.x
mul r9.x, r9.x, r9.x
mul r11.yzw, r8.yyzw, r9.xxxx
mul r11.yzw, r10.xxxx, r11.yyzw
mul r11.xyz, r11.xxxx, r11.yzwy
mul r9.xzw, r9.wwww, r11.xxyz
mul r8.yzw, r8.yyzw, r10.xxxx
mad r11.xyz, -r2.xzyx, r3.xxxx, r25.xyzx
mul_sat r12.xyz, cb7[11].xyzx, -cb7[12].zzzz
add r10.x, -r11.z, v5.z
max r10.x, r10.x, l(0.000000)
mul r13.xy, r3.wyww, r10.xxxx
mad r11.xy, r13.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000), r11.xyxx
add r13.xyz, |r3.wyzw|, l(-0.200000, -0.200000, -0.200000, 0.000000)
mul r13.xyz, r13.xyzx, l(7.000000, 7.000000, 7.000000, 0.000000)
max r13.xyz, r13.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
add r11.w, r13.y, r13.x
add r11.w, r13.z, r11.w
div r13.xyz, r13.xyzx, r11.wwww
mul r14.xyzw, r11.yzzx, cb5[7].wwww
sample_indexable(texture2d)(float,float,float,float) r15.xyz, r14.xyxx, t8.xyzw, s5
sample_indexable(texture2d)(float,float,float,float) r14.xyz, r14.zwzz, t8.xyzw, s5
mul r11.xy, r11.xyxx, cb5[7].wwww
sample_indexable(texture2d)(float,float,float,float) r11.xyz, r11.xyxx, t8.xyzw, s5
mul r14.xyz, r13.yyyy, r14.xyzx
mad r13.xyw, r15.xyxz, r13.xxxx, r14.xyxz
mad r11.xyz, r11.xyzx, r13.zzzz, r13.xywx
mul r11.xyz, r12.xyzx, r11.xyzx
mul r11.xyz, r8.xxxx, r11.xyzx
mul r8.x, r10.x, -cb5[0].y
exp r8.x, r8.x
mul r11.xyz, r8.xxxx, r11.xyzx
ishl r8.x, r7.w, l(1)
ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r8.x, r8.x, l(0), t18.xxxx
countbits r10.x, r8.x
ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r11.w, r7.w, l(0), t19.xxxx
and r11.w, r11.w, l(0x60000000)
ine r11.w, r11.w, l(0)
mov r13.xyz, r9.xzwx
mov r12.xyzw, r8.yzwx
mov r13.w, l(0)
loop 
  uge r14.x, r13.w, r10.x
  breakc_nz r14.x
  firstbit_lo r14.x, r12.w
  ishl r14.y, l(1), r14.x
  not r14.y, r14.y
  and r12.w, r12.w, r14.y
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r15.xyzw, r14.x, l(0), t16.xyzw
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r14.yzw, r14.x, l(16), t16.xxyz
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r16.xyz, r14.x, l(32), t16.xyzx
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r17.xyzw, r14.x, l(48), t16.xyzw
  and r18.xyzw, r17.wwww, l(32, 16, 1, 4)
  ult r18.xyzw, l(0, 0, 0, 0), r18.xyzw
  ushr r14.x, r17.w, l(5)
  and r14.x, r14.x, l(2)
  or r16.w, r18.y, r18.x
  and r16.w, r11.w, r16.w
  if_nz r16.w
    ld_structured_indexable(structured_buffer, stride=96)(mixed,mixed,mixed,mixed) r19.xyzw, r14.x, l(16), t17.xyzw
    ld_structured_indexable(structured_buffer, stride=96)(mixed,mixed,mixed,mixed) r20.xyzw, r14.x, l(32), t17.xyzw
  else 
    mov r19.xyzw, l(0,0,0,0)
    mov r20.xyzw, l(0,0,0,0)
  endif 
  add r15.xyz, -r15.xyzx, v5.xyzx
  dp3 r16.w, r15.xyzx, r15.xyzx
  max r17.w, r16.w, l(0.000010)
  div r18.y, l(1.000000, 1.000000, 1.000000, 1.000000), r17.w
  min r15.w, r15.w, r18.y
  mul r17.w, r17.w, r17.w
  mad_sat r17.x, -r17.w, r17.x, l(1.000000)
  mul r17.x, r17.x, r17.x
  mul r15.w, r15.w, r17.x
  mul r14.yzw, r14.yyzw, r15.wwww
  rsq r15.w, r16.w
  mul r21.xyz, r15.wwww, r15.xyzx
  dp3 r15.w, r21.xyzx, r16.xyzx
  mad_sat r15.w, r15.w, r17.y, r17.z
  mul r15.w, r15.w, r15.w
  mul r16.xyz, r14.yzwy, r15.wwww
  movc r14.yzw, r18.zzzz, r16.xxyz, r14.yyzw
  mad r16.xyz, r1.xzyx, r0.zzzz, -r15.xyzx
  dp3 r15.w, r16.xyzx, r16.xyzx
  rsq r15.w, r15.w
  mul r16.xyz, r15.wwww, r16.xyzx
  dp3 r15.w, r16.xzyx, r2.xyzx
  add r15.w, -r15.w, l(1.000000)
  mul r16.w, r15.w, r15.w
  mul r16.w, r16.w, r16.w
  mul r15.w, r15.w, r16.w
  mad r15.w, r15.w, l(0.980000), l(0.020000)
  and r16.w, r18.x, r18.z
  if_z r14.x
    dp4 r17.x, r5.xyzw, r19.xyzw
    dp4 r17.y, r5.xyzw, r20.xyzw
    sample_l_indexable(texture2d)(float,float,float,float) r17.xyz, r17.xyxx, t14.xyzw, s10, l(0.000000)
    mul r17.xyz, r14.yzwy, r17.xyzx
  else 
    mov r17.xyz, r14.yzwy
  endif 
  movc r14.xyz, r16.wwww, r17.xyzx, r14.yzwy
  dp3_sat r14.w, -r15.yzxy, r3.yzwy
  mul r15.x, r14.w, r14.w
  mad r15.x, r15.x, r10.w, r10.z
  sqrt r15.x, r15.x
  mul r15.x, r6.x, r15.x
  mad r15.x, r14.w, r10.y, r15.x
  add r15.x, r15.x, r15.x
  max r15.x, r15.x, l(0.000100)
  div r15.x, l(1.000000, 1.000000, 1.000000, 1.000000), r15.x
  movc r15.y, r18.w, l(0.001500), l(0.050000)
  dp3_sat r15.z, r16.yzxy, r3.yzwy
  mul r15.z, r15.z, r15.z
  mad r15.z, r15.z, r9.y, l(1.000000)
  div r15.z, r7.x, r15.z
  mul r15.z, r15.z, r15.z
  mul r16.xyz, r14.xyzx, r15.zzzz
  mul r16.xyz, r14.wwww, r16.xyzx
  mul r16.xyz, r15.xxxx, r16.xyzx
  mul r15.xyz, r15.yyyy, r16.xyzx
  mad r13.xyz, r15.xyzx, r15.wwww, r13.xyzx
  mad r12.xyz, r14.wwww, r14.xyzx, r12.xyzx
  iadd r13.w, r13.w, l(1)
endloop 
bfi r7.w, l(31), l(1), r7.w, l(1)
ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r7.w, r7.w, l(0), t18.xxxx
countbits r8.x, r7.w
mov r8.yzw, r12.xxyz
mov r9.xzw, r13.xxyz
mov r10.x, r7.w
mov r12.w, l(0)
loop 
  uge r13.w, r12.w, r8.x
  breakc_nz r13.w
  firstbit_lo r13.w, r10.x
  ishl r14.x, l(1), r13.w
  not r14.x, r14.x
  and r10.x, r10.x, r14.x
  iadd r13.w, l(32), r13.w
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r14.xyzw, r13.w, l(0), t16.xyzw
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r15.xyz, r13.w, l(16), t16.xyzx
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r16.xyz, r13.w, l(32), t16.xyzx
  ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r17.xyzw, r13.w, l(48), t16.xyzw
  and r18.xyzw, r17.wwww, l(32, 16, 1, 4)
  ult r18.xyzw, l(0, 0, 0, 0), r18.xyzw
  ushr r13.w, r17.w, l(5)
  and r13.w, r13.w, l(2)
  or r15.w, r18.y, r18.x
  and r15.w, r11.w, r15.w
  if_nz r15.w
    ld_structured_indexable(structured_buffer, stride=96)(mixed,mixed,mixed,mixed) r19.xyzw, r13.w, l(16), t17.xyzw
    ld_structured_indexable(structured_buffer, stride=96)(mixed,mixed,mixed,mixed) r20.xyzw, r13.w, l(32), t17.xyzw
  else 
    mov r19.xyzw, l(0,0,0,0)
    mov r20.xyzw, l(0,0,0,0)
  endif 
  add r14.xyz, -r14.xyzx, v5.xyzx
  dp3 r15.w, r14.xyzx, r14.xyzx
  max r16.w, r15.w, l(0.000010)
  div r17.w, l(1.000000, 1.000000, 1.000000, 1.000000), r16.w
  min r14.w, r14.w, r17.w
  mul r16.w, r16.w, r16.w
  mad_sat r16.w, -r16.w, r17.x, l(1.000000)
  mul r16.w, r16.w, r16.w
  mul r14.w, r14.w, r16.w
  mul r15.xyz, r14.wwww, r15.xyzx
  rsq r14.w, r15.w
  mul r21.xyz, r14.wwww, r14.xyzx
  dp3 r14.w, r21.xyzx, r16.xyzx
  mad_sat r14.w, r14.w, r17.y, r17.z
  mul r14.w, r14.w, r14.w
  mul r16.xyz, r15.xyzx, r14.wwww
  movc r15.xyz, r18.zzzz, r16.xyzx, r15.xyzx
  mad r16.xyz, r1.xzyx, r0.zzzz, -r14.xyzx
  dp3 r14.w, r16.xyzx, r16.xyzx
  rsq r14.w, r14.w
  mul r16.xyz, r14.wwww, r16.xyzx
  dp3 r14.w, r16.xzyx, r2.xyzx
  add r14.w, -r14.w, l(1.000000)
  mul r15.w, r14.w, r14.w
  mul r15.w, r15.w, r15.w
  mul r14.w, r14.w, r15.w
  mad r14.w, r14.w, l(0.980000), l(0.020000)
  and r15.w, r18.x, r18.z
  if_z r13.w
    dp4 r17.x, r5.xyzw, r19.xyzw
    dp4 r17.y, r5.xyzw, r20.xyzw
    sample_l_indexable(texture2d)(float,float,float,float) r17.xyz, r17.xyxx, t14.xyzw, s10, l(0.000000)
    mul r17.xyz, r15.xyzx, r17.xyzx
  else 
    mov r17.xyz, r15.xyzx
  endif 
  movc r15.xyz, r15.wwww, r17.xyzx, r15.xyzx
  dp3_sat r13.w, -r14.yzxy, r3.yzwy
  mul r14.x, r13.w, r13.w
  mad r14.x, r14.x, r10.w, r10.z
  sqrt r14.x, r14.x
  mul r14.x, r6.x, r14.x
  mad r14.x, r13.w, r10.y, r14.x
  add r14.x, r14.x, r14.x
  max r14.x, r14.x, l(0.000100)
  div r14.x, l(1.000000, 1.000000, 1.000000, 1.000000), r14.x
  movc r14.y, r18.w, l(0.001500), l(0.050000)
  dp3_sat r14.z, r16.yzxy, r3.yzwy
  mul r14.z, r14.z, r14.z
  mad r14.z, r14.z, r9.y, l(1.000000)
  div r14.z, r7.x, r14.z
  mul r14.z, r14.z, r14.z
  mul r16.xyz, r14.zzzz, r15.xyzx
  mul r16.xyz, r13.wwww, r16.xyzx
  mul r16.xyz, r14.xxxx, r16.xyzx
  mul r14.xyz, r14.yyyy, r16.xyzx
  mad r9.xzw, r14.xxyz, r14.wwww, r9.xxzw
  mad r8.yzw, r13.wwww, r15.xxyz, r8.yyzw
  iadd r12.w, r12.w, l(1)
endloop 
dp3 r0.z, r6.yzwy, l(0.212600, 0.715200, 0.072200, 0.000000)
add_sat r1.xyz, cb5[5].xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
add r2.w, r2.w, r2.w
mad r2.xyz, r3.wzyw, -r2.wwww, r2.xyzx
mul r3.yzw, r0.zzzz, r1.xxyz
mov r2.xyz, -r2.xyzx
mad r1.w, -r1.w, l(2.000000), l(6.000000)
sample_l_indexable(texturecube)(float,float,float,float) r2.xyz, r2.xyzx, t9.xyzw, s6, r1.w
mul r2.xyz, r2.xyzx, r3.yzwy
mad r2.xyz, r2.xyzx, cb5[11].xxxx, cb5[10].wwww
add r0.y, -r0.y, r3.x
mul r0.y, r0.y, -cb5[0].x
exp r0.y, r0.y
add r0.y, -r0.y, l(1.000000)
max r0.y, r0.y, l(0.000000)
add r3.xyz, r6.yzwy, r8.yzwy
mul r3.xyz, r3.xyzx, l(0.980000, 0.980000, 0.980000, 0.000000)
mad r2.xyz, r2.xyzx, r0.wwww, r9.xzwx
add r4.xyz, r4.xyzx, -cb5[4].xyzx
mad r4.xyz, r4.wwww, r4.xyzx, cb5[4].xyzx
mul r1.xyz, r1.xyzx, r4.xyzx
mul r0.z, r0.z, cb5[6].w
mul r0.z, r0.z, l(100.000000)
mul r4.xyz, r0.zzzz, r11.xyzx
mul r2.xyz, r0.yyyy, r2.xyzx
mad r1.xyz, r3.xyzx, r1.xyzx, r2.xyzx
mov r2.w, -r0.y
add r0.z, r2.w, l(1.000000)
mad r1.xyz, r4.xyzx, r0.zzzz, r1.xyzx
lt r0.zw, l(0.000000, 0.000000, 0.000000, 0.000000), cb0[39].zzzw
and r0.z, r0.w, r0.z
if_nz r0.z
  add r3.xyz, v5.xyzx, -r25.xyzx
  dp3 r0.z, r3.xyzx, r3.xyzx
  sqrt r0.z, r0.z
  utof r3.xy, r7.yzyy
  mul r3.xy, r3.xyxx, cb0[40].zwzz
  add r0.z, r0.z, -cb6[0].w
  div r0.z, r0.z, cb6[0].z
  log r0.z, r0.z
  mul r0.z, r0.z, l(0.250000)
  ushr r0.w, cb6[2].z, l(1)
  utof r0.w, r0.w
  mul r0.z, r0.w, r0.z
  iadd r0.w, cb6[2].z, l(-1)
  itof r0.w, r0.w
  div r3.z, r0.z, r0.w
  sample_l_indexable(texture3d)(float,float,float,float) r4.xyz, r3.xyzx, t11.xyzw, s8, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r0.z, r3.xyzx, t12.yzxw, s8, l(0.000000)
  ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.w, l(0), l(12), t2.xxxx
  mul r3.xyz, r0.wwww, r4.xyzx
else 
  add r4.xyz, v5.xyzx, -r25.xyzx
  dp3 r0.w, r4.xyzx, r4.xyzx
  sqrt r0.w, r0.w
  mad_sat r0.w, r0.w, cb0[35].y, cb0[35].x
  mul r1.w, r4.z, cb0[39].y
  max r1.w, r1.w, l(-125.000000)
  lt r3.w, l(0.000001), |r1.w|
  exp r4.x, -r1.w
  add r4.x, -r4.x, l(1.000000)
  div r1.w, r4.x, r1.w
  movc r1.w, r3.w, r1.w, l(1.000000)
  mad r1.w, r1.w, cb0[39].x, cb0[35].w
  mul r0.w, r0.w, r1.w
  mul r0.w, r0.w, -cb0[35].z
  exp r0.z, r0.w
  mad r3.xyz, -v2.xyzx, r0.zzzz, v2.xyzx
endif 
mad r1.xyz, r1.xyzx, r0.zzzz, r3.xyzx
mul r2.xyz, r0.yyyy, r1.xyzx
mad r0.xyzw, r0.xxxx, r2.xyzw, l(0.000000, 0.000000, 0.000000, 1.000000)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r1.x, l(0), l(0), t2.xxxx
mul r0.xyz, r0.xyzx, r1.xxxx
max r0.xyz, r0.xyzx, l(0.0000610351999, 0.0000610351999, 0.0000610351999, 0.000000)
min o0.xyz, r0.xyzx, l(8192.000000, 8192.000000, 8192.000000, 0.000000)
mov o0.w, r0.w
ret 
// Approximately 848 instruction slots used