// Underwater caustics

//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.31 on Wed Mar 02 08:07:01 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 [unused]
//   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 [unused]
//   float4 ViewportSize;               // Offset:  640 Size:    16 [unused]
//   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 [unused]
//   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 CWaterCameraPlaneParameterProvider
// {
//
//   float4 QuadParams;                 // Offset:    0 Size:    16 [unused]
//   float4 UnderwaterCaustics;         // Offset:   16 Size:    16
//   float4 UnderwaterExtinctions;      // Offset:   32 Size:    16
//   float3 UnderwaterColorDeep;        // Offset:   48 Size:    12
//   float3 UnderwaterColorShallow;     // Offset:   64 Size:    12
//   float CausticsIntensity;           // Offset:   76 Size:     4
//   float WaterLevel;                  // Offset:   80 Size:     4
//
// }
//
// cbuffer CNewLightingDataProvider
// {
//
//   float4x4 ShadowProjectionMatrix;   // Offset:    0 Size:    64 [unused]
//   float4x4 ShadowRotProjectionMatrix;// Offset:   64 Size:    64 [unused]
//   float4 CSMSlice0_0;                // Offset:  128 Size:    16
//   float4 CSMSlice0_1;                // Offset:  144 Size:    16
//   float4 CSMSlice0_2;                // Offset:  160 Size:    16
//   float4 CSMSlice1_0;                // Offset:  176 Size:    16
//   float4 CSMSlice1_1;                // Offset:  192 Size:    16
//   float4 CSMSlice1_2;                // Offset:  208 Size:    16
//   float4 CSMSlice2_0;                // Offset:  224 Size:    16
//   float4 CSMSlice2_1;                // Offset:  240 Size:    16
//   float4 CSMSlice2_2;                // Offset:  256 Size:    16
//   float4 CSMSliceFade;               // Offset:  272 Size:    16 [unused]
//   float4 ShadowMapSize;              // Offset:  288 Size:    16
//   float3 LightColor;                 // Offset:  304 Size:    12 [unused]
//   float3 LightColorUpNormal;         // Offset:  320 Size:    12
//   float3 LightDirectionWS;           // Offset:  336 Size:    12 [unused]
//   float3 LightPositionWS;            // Offset:  352 Size:    12 [unused]
//   float3 LightRightWS;               // Offset:  368 Size:    12 [unused]
//   float3 LightUpWS;                  // Offset:  384 Size:    12 [unused]
//   float RcpSquaredLightRadius;       // Offset:  396 Size:     4 [unused]
//   float2 SpotFactors;                // Offset:  400 Size:     8 [unused]
//   float PointAttenuation;            // Offset:  408 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 Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// DepthVPSampler__SampObj__         sampler      NA          NA    0        1
// SectorHemiMapSamplerStateLinear    sampler      NA          NA    1        1
// CausticsTexture__SampObj__        sampler      NA          NA    2        1
// ShadowCmpSampler                sampler_c      NA          NA    3        1
// GBufferT1__SampObj__              sampler      NA          NA    4        1
// DepthVPSampler__TexObj__          texture  float4          2d    0        1
// ExposureBuffer                    texture  struct         r/o    1        1
// SHOccGlobalProbe                  texture  struct         r/o    2        1
// SkyParamBuffer                    texture  struct         r/o    3        1
// SectorOcclusion_HeightTexture__TexObj__    texture  float4          2d    4        1
// CausticsTexture__TexObj__         texture  float4          2d    5        1
// ShadowCmpSampler_TextureObject    texture  float4     2darray    6        1
// GBufferT1__TexObj__               texture  float4          2d    7        1
// CViewportShaderParameterProvider    cbuffer      NA          NA    0        1
// CSceneTerrainSkyOcclusionAtlasPrivateData    cbuffer      NA          NA    1        1
// CAmbientProvider                  cbuffer      NA          NA    2        1
// CWaterCameraPlaneParameterProvider    cbuffer      NA          NA    3        1
// CNewLightingDataProvider          cbuffer      NA          NA    4        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float       
// SV_ClipDistance          0   x           1  CLIPDST   float       
// TEXCOORD                 0   xyz         2     NONE   float   xyz 
// TEXCOORD                 1   xyz         3     NONE   float   xyz 
// TEXCOORD                 2   xy          4     NONE   float   xy  
// SV_IsFrontFace           0   x           5    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[6], immediateIndexed
dcl_constantbuffer cb4[21], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_comparison
dcl_sampler s4, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_structured t1, 16 
dcl_resource_structured t2, 16 
dcl_resource_structured t3, 132 
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t5
dcl_resource_texture2darray (float,float,float,float) t6
dcl_resource_texture2d (float,float,float,float) t7
dcl_input_ps linear v2.xyz
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xy
dcl_output o0.xyzw
dcl_temps 21
dcl_resource_texture2d (float,float,float,float) t125

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

div r0.xy, v2.xyxx, v2.zzzz
sample_l_indexable(texture2d)(float,float,float,float) r0.z, r0.xyxx, t0.yzxw, s0, l(0.000000)
mov r0.w, l(1.000000)
dp4 r1.x, r0.xyzw, cb0[2].xyzw
dp4 r0.x, r0.xyzw, cb0[3].xyzw
div r0.x, -r1.x, r0.x
dp3 r0.y, v3.xyzx, v3.xyzx
sqrt r0.y, r0.y
mul r0.x, r0.y, r0.x
div r1.x, r0.x, v2.z
div r0.xzw, v3.xxyz, r0.yyyy
mad r1.yzw, r0.xxzw, r1.xxxx, cb0[42].xxyz
lt r2.x, l(0.000000), r0.w
add r2.y, -cb0[42].z, cb3[5].x
div r3.x, r2.y, r0.w
lt r2.y, r3.x, r1.x
mad r3.yzw, r0.xxzw, r3.xxxx, cb0[42].xxyz
movc r3.xyzw, r2.yyyy, r3.xyzw, r1.xyzw
movc r1.xyzw, r2.xxxx, r3.xyzw, r1.xyzw
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.x, l(0), l(0), t2.xyzw
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.z, l(1), l(0), t2.yzxw
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.w, l(2), l(0), t2.yzwx
mul r2.xyz, r0.xzwx, l(0.282094806, 0.282094806, 0.282094806, 0.000000)
max r0.xzw, r2.xxyz, l(0.000000, 0.000000, 0.000000, 0.000000)
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r2.xyzw, l(0), l(108), t3.xywz
dp3 r2.w, r2.xywx, l(0.212600, 0.715200, 0.072200, 0.000000)
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r2.xy, l(0), l(124), t3.xyxx
dp3 r2.x, r2.zxyz, l(0.212600, 0.715200, 0.072200, 0.000000)
max r2.x, r2.x, r2.w
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r2.y, l(0), l(0), t3.xxxx
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r2.z, l(0), l(36), t3.xxxx
ld_structured_indexable(structured_buffer, stride=132)(mixed,mixed,mixed,mixed) r2.w, l(0), l(72), t3.xxxx
max r2.z, r2.w, r2.z
max r2.y, r2.z, r2.y
add r2.x, r2.y, r2.x
mul r2.yzw, r0.xxzw, r2.xxxx
mul r3.x, cb2[15].x, l(0.282094806)
mul r3.y, cb2[16].x, l(0.282094806)
mul r3.z, cb2[17].x, l(0.282094806)
max r4.xyz, r3.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r3.xy, r1.zyzz, cb1[0].yxyy, cb1[0].wzww
sample_l_indexable(texture2d)(float,float,float,float) r3.x, r3.xyxx, t4.yxzw, s1, l(0.000000)
mad r3.x, r3.x, cb1[2].x, cb1[2].y
add r3.x, r1.w, -r3.x
mul_sat r3.x, -r3.x, cb2[18].x
sqrt r3.x, r3.x
add r3.yz, r1.yyzy, -cb0[42].xxyx
dp2 r3.y, r3.yzyy, r3.yzyy
mad r3.y, cb1[1].x, r3.y, cb1[1].y
mul_sat r3.y, r3.y, l(3.000000)
mul r3.x, r3.x, r3.y
mad r0.xzw, -r0.xxzw, r2.xxxx, r4.xxyz
mad r0.xzw, r3.xxxx, r0.xxzw, r2.yyzw
dp3 r2.x, r0.xzwx, l(0.212600, 0.715200, 0.072200, 0.000000)
mul r2.x, r2.x, cb3[4].w
add r2.y, -r1.w, cb3[5].x
sample_indexable(texture2d)(float,float,float,float) r3.xyzw, v4.xyxx, t7.xyzw, s4
mul r2.z, r3.w, l(3.000000)
ftou r2.z, r2.z
mad r3.xyz, r3.xyzx, l(1.41421354, 1.41421354, 1.41421354, 0.000000), l(-0.707106769, -0.707106769, -0.707106769, 0.000000)
dp3_sat r2.w, r3.xyzx, r3.xyzx
add r2.w, -r2.w, l(1.000000)
sqrt r2.w, r2.w
swapc r3.x, r4.x, r2.z, r3.x, r2.w
ieq r4.yz, r2.zzzz, l(0, 1, 2, 0)
movc r5.yz, r4.zzyz, r2.wwww, r3.zzyz
movc r2.z, r4.y, r3.y, r3.x
movc r5.x, r4.z, r3.z, r2.z
mov r3.xy, l(2.000000,2.000000,0,0)
mov r3.z, r4.x
mul r3.xyz, r4.xxxx, r3.xyzx
mov r5.w, l(-2.000000)
mad r3.xyz, r3.xyzx, r5.yxwy, l(0.000000, 0.000000, 1.000000, 0.000000)
mul r4.xyz, r5.zzzz, r5.wyww
mov r5.y, l(2.000000)
mad r3.xyz, r4.xyzx, r5.xyzx, r3.xyzx
add r3.xyz, |r3.xyzx|, l(-0.200000, -0.200000, -0.200000, 0.000000)
mul r3.xyz, r3.xyzx, l(7.000000, 7.000000, 7.000000, 0.000000)
max r3.xyz, r3.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
add r2.z, r3.y, r3.x
add r2.z, r3.z, r2.z
div r3.xyz, r3.xyzx, r2.zzzz

mov r19.xyz, r1.yzww
mov r19.w, l(1.0)

dp4 r20.w, r19.xyzw, cb0[19].xyzw

add r18.w, r20.w, -r18.y
mul r20.x, -r18.w, r18.x
mul r20.x, r20.x, cb0[0].x
mov r20.yzw, l(0.0)

dp4 r19.x, r20.xyzw, cb0[4].xyzw
dp4 r19.y, r20.xyzw, cb0[5].xyzw
dp4 r19.z, r20.xyzw, cb0[6].xyzw

add r1.yzw, r1.xyzw, r19.xxyz

// UnderwaterCaustics:
mul r4.xyzw, r1.zwwy, cb3[1].xxxx

mul r4.xyzw, r4.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000)
sample_indexable(texture2d)(float,float,float,float) r5.xyz, r4.xyxx, t5.xyzw, s2
sample_indexable(texture2d)(float,float,float,float) r4.xyz, r4.zwzz, t5.xyzw, s2
mul r2.zw, r1.yyyz, cb3[1].xxxx
mul r2.zw, r2.zzzw, l(0.000000, 0.000000, 0.500000, 0.500000)
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r2.zwzz, t5.xyzw, s2
mul r4.xyz, r3.yyyy, r4.xyzx
mad r3.xyw, r5.xyxz, r3.xxxx, r4.xyxz
mad r3.xyz, r6.xyzx, r3.zzzz, r3.xywx
mul r3.xyz, r3.xyzx, cb4[20].xyzx
add r3.xyz, r3.xyzx, r3.xyzx
mov r4.xyz, r1.yzwy
mov r4.w, l(1.000000)
dp4 r5.x, r4.xyzw, cb4[14].xyzw
dp4 r5.y, r4.xyzw, cb4[15].xyzw
dp4 r5.z, r4.xyzw, cb4[16].xyzw
dp4 r6.x, r4.xyzw, cb4[11].xyzw
dp4 r6.y, r4.xyzw, cb4[12].xyzw
dp4 r6.z, r4.xyzw, cb4[13].xyzw
add r1.yzw, r6.xxyz, l(0.000000, -0.000000, -0.000000, -0.001000)
ge r7.xyz, r1.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
and r7.xyz, r7.xyzx, l(0x3f800000, 0x3f800000, 0x3f800000, 0)
ge r1.yzw, l(0.000000, 1.000000, 1.000000, 1.000000), r1.yyzw
and r1.yzw, r1.yyzw, l(0, 0x3f800000, 0x3f800000, 0x3f800000)
mul r1.yzw, r1.yyzw, r7.xxyz
dp3 r1.y, r1.yzwy, l(1.000000, 1.000000, 1.000000, 0.000000)
ge r1.y, r1.y, l(3.000000)
mov r6.w, l(1.000000)
mov r5.w, l(2.000000)
movc r7.xyzw, r1.yyyy, r6.xyzw, r5.xyzw
dp4 r8.x, r4.xyzw, cb4[8].xyzw
dp4 r8.y, r4.xyzw, cb4[9].xyzw
dp4 r8.z, r4.xyzw, cb4[10].xyzw
add r1.yzw, r8.xxyz, l(0.000000, -0.000000, -0.000000, -0.001000)
ge r4.xyz, r1.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
and r4.xyz, r4.xyzx, l(0x3f800000, 0x3f800000, 0x3f800000, 0)
ge r1.yzw, l(0.000000, 1.000000, 1.000000, 1.000000), r1.yyzw
and r1.yzw, r1.yyzw, l(0, 0x3f800000, 0x3f800000, 0x3f800000)
mul r1.yzw, r1.yyzw, r4.xxyz
dp3 r1.y, r1.yzwy, l(1.000000, 1.000000, 1.000000, 0.000000)
ge r1.y, r1.y, l(3.000000)
mov r8.w, l(0)
movc r4.xyzw, r1.yyyy, r8.xyzw, r7.xyzw
min r7.z, r4.w, cb0[55].z
eq r1.y, r7.z, cb0[55].z
if_nz r1.y
  mad r1.yz, r5.xxyx, l(0.000000, 2.000000, 2.000000, 0.000000), l(0.000000, -1.000000, -1.000000, 0.000000)
  add r1.yz, |r1.yyzy|, l(0.000000, -0.800000, -0.800000, 0.000000)
  mul_sat r1.yz, r1.yyzy, l(0.000000, 5.000000, 5.000000, 0.000000)
  add r1.yz, -r1.yyzy, l(0.000000, 1.000000, 1.000000, 0.000000)
  add r1.w, r5.z, l(-0.500000)
  mad r1.w, -|r1.w|, l(2.000000), l(1.000000)
  max r1.w, r1.w, l(0.000000)
  min r1.w, r1.w, l(0.200000)
  mul r1.w, r1.w, l(5.000000)
  min r1.y, r1.z, r1.y
  min r1.y, r1.w, r1.y
  mad r1.zw, r4.xxxy, cb4[18].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
  round_ni r2.zw, r1.zzzw
  add r1.zw, r1.zzzw, -r2.zzzw
  add r2.zw, r2.zzzw, l(0.000000, 0.000000, -0.500000, -0.500000)
  mad r9.xy, -r1.wzww, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
  mad r9.zw, r1.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 1.000000, 1.000000)
  add r10.xy, -r1.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000)
  div r10.xy, r10.xyxx, r9.yxyy
  div r1.zw, r1.zzzw, r9.zzzw
  add r10.zw, r10.xxxy, l(0.000000, 0.000000, -1.000000, -1.000000)
  add r10.xy, r1.zwzz, l(1.000000, 1.000000, 0.000000, 0.000000)
  mul r1.z, r9.x, r9.y
  mul r11.xyzw, r10.zwxw, cb4[18].zwzw
  mad r12.xy, r2.zwzz, cb4[18].zwzz, r11.xyxx
  mov r12.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r12.xyzx, t6.xxxx, s3, r4.z
  mul r9.xy, r9.xyxx, r9.zwzz
  mad r11.xy, r2.zwzz, cb4[18].zwzz, r11.zwzz
  mov r11.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r3.w, r11.xyzx, t6.xxxx, s3, r4.z
  mul r3.w, r3.w, r9.x
  mad r1.z, r1.z, r1.w, r3.w
  mul r10.xyzw, r10.zyxy, cb4[18].zwzw
  mad r11.xy, r2.zwzz, cb4[18].zwzz, r10.xyxx
  mov r11.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r11.xyzx, t6.xxxx, s3, r4.z
  mad r1.z, r9.y, r1.w, r1.z
  mul r1.w, r9.w, r9.z
  mad r9.xy, r2.zwzz, cb4[18].zwzz, r10.zwzz
  mov r9.z, cb0[55].z
  sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.z, r9.xyzx, t6.xxxx, s3, r4.z
  mad r1.z, r1.w, r2.z, r1.z
  mad r1.z, r1.z, l(0.062500), l(-1.000000)
  mad r1.y, r1.y, r1.z, l(1.000000)
else 
  eq r1.z, r7.z, l(1.000000)
  if_nz r1.z
    mad r1.zw, r4.xxxy, cb4[18].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
    round_ni r2.zw, r1.zzzw
    add r1.zw, r1.zzzw, -r2.zzzw
    add r2.zw, r2.zzzw, l(0.000000, 0.000000, -0.500000, -0.500000)
    mul r9.xy, r2.zwzz, cb4[18].zwzz
    mad r9.zw, -r1.wwwz, l(0.000000, 0.000000, 3.000000, 3.000000), l(0.000000, 0.000000, 4.000000, 4.000000)
    mad r10.xy, r1.zwzz, l(3.000000, 3.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
    mad r10.zw, -r1.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 3.000000, 3.000000)
    div r10.zw, r10.zzzw, r9.wwwz
    add r11.xy, r1.zwzz, l(3.000000, 3.000000, 0.000000, 0.000000)
    div r1.zw, r1.zzzw, r10.xxxy
    add r12.xw, r10.zzzw, l(-2.000000, 0.000000, 0.000000, -2.000000)
    mul r12.yz, r11.yyxy, l(0.000000, 0.142857149, 0.142857149, 0.000000)
    add r11.xy, r1.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000)
    mul r1.z, r9.z, r9.w
    mul r13.xyzw, r12.xwzw, cb4[18].zwzw
    mad r14.xy, r2.zwzz, cb4[18].zwzz, r13.xyxx
    mov r14.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r14.xyzx, t6.xxxx, s3, r4.z
    mul r10.zw, r9.zzzw, l(0.000000, 0.000000, 7.000000, 7.000000)
    mad r13.xy, r2.zwzz, cb4[18].zwzz, r13.zwzz
    mov r13.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r3.w, r13.xyzx, t6.xxxx, s3, r4.z
    mul r3.w, r3.w, r10.z
    mad r1.z, r1.z, r1.w, r3.w
    mul r9.zw, r9.zzzw, r10.xxxy
    mov r11.zw, r12.wwwy
    mul r13.xyzw, r11.xzxw, cb4[18].zwzw
    mad r14.xy, r2.zwzz, cb4[18].zwzz, r13.xyxx
    mov r14.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r14.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r9.z, r1.w, r1.z
    mul r14.xyzw, r12.xyzy, cb4[18].zwzw
    mad r15.xy, r2.zwzz, cb4[18].zwzz, r14.xyxx
    mov r15.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r15.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r10.w, r1.w, r1.z
    mad r14.xy, r2.zwzz, cb4[18].zwzz, r14.zwzz
    mov r14.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r14.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r1.w, l(49.000000), r1.z
    mul r10.zw, r10.xxxy, l(0.000000, 0.000000, 7.000000, 7.000000)
    mad r13.xy, r2.zwzz, cb4[18].zwzz, r13.zwzz
    mov r13.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r13.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r10.z, r1.w, r1.z
    mov r12.y, r11.y
    mul r12.xyzw, r12.xyzy, cb4[18].zwzw
    mad r13.xy, r2.zwzz, cb4[18].zwzz, r12.xyxx
    mov r13.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r13.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r9.w, r1.w, r1.z
    mad r12.xy, r2.zwzz, cb4[18].zwzz, r12.zwzz
    mov r12.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r12.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r10.w, r1.w, r1.z
    mul r1.w, r10.y, r10.x
    mad r9.xy, r11.xyxx, cb4[18].zwzz, r9.xyxx
    mov r9.z, l(1.000000)
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.z, r9.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r1.w, r2.z, r1.z
    mad r2.zw, r6.xxxy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
    add r2.zw, |r2.zzzw|, l(0.000000, 0.000000, -0.800000, -0.800000)
    mul_sat r2.zw, r2.zzzw, l(0.000000, 0.000000, 5.000000, 5.000000)
    add r2.zw, -r2.zzzw, l(0.000000, 0.000000, 1.000000, 1.000000)
    add r1.w, r6.z, l(-0.500000)
    mad r1.w, -|r1.w|, l(2.000000), l(1.000000)
    max r1.w, r1.w, l(0.000000)
    min r1.w, r1.w, l(0.200000)
    mul r1.yw, r1.zzzw, l(0.000000, 0.00694444450, 0.000000, 5.000000)
    min r2.z, r2.w, r2.z
    min r1.w, r1.w, r2.z
    ne r2.z, r1.w, l(1.000000)
    if_nz r2.z
      mad r2.zw, r5.xxxy, cb4[18].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
      round_ni r5.xy, r2.zwzz
      add r2.zw, r2.zzzw, -r5.xxxy
      add r5.xy, r5.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
      mad r9.xy, -r2.wzww, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
      mad r9.zw, r2.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 1.000000, 1.000000)
      add r10.xy, -r2.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000)
      div r10.xy, r10.xyxx, r9.yxyy
      div r2.zw, r2.zzzw, r9.zzzw
      add r10.zw, r10.xxxy, l(0.000000, 0.000000, -1.000000, -1.000000)
      add r10.xy, r2.zwzz, l(1.000000, 1.000000, 0.000000, 0.000000)
      mul r2.z, r9.x, r9.y
      mul r11.xyzw, r10.zwxw, cb4[18].zwzw
      mad r12.xy, r5.xyxx, cb4[18].zwzz, r11.xyxx
      mov r12.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r12.xyzx, t6.xxxx, s3, r5.z
      mul r9.xy, r9.xyxx, r9.zwzz
      mad r11.xy, r5.xyxx, cb4[18].zwzz, r11.zwzz
      mov r11.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r3.w, r11.xyzx, t6.xxxx, s3, r5.z
      mul r3.w, r3.w, r9.x
      mad r2.z, r2.z, r2.w, r3.w
      mul r10.xyzw, r10.zyxy, cb4[18].zwzw
      mad r11.xy, r5.xyxx, cb4[18].zwzz, r10.xyxx
      mov r11.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r11.xyzx, t6.xxxx, s3, r5.z
      mad r2.z, r9.y, r2.w, r2.z
      mul r2.w, r9.w, r9.z
      mad r9.xy, r5.xyxx, cb4[18].zwzz, r10.zwzz
      mov r9.z, l(2.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r3.w, r9.xyzx, t6.xxxx, s3, r5.z
      mad r2.z, r2.w, r3.w, r2.z
      mul r2.z, r2.z, l(0.062500)
      mad r1.z, r1.z, l(0.00694444450), -r2.z
      mad r1.y, r1.w, r1.z, r2.z
    endif 
  else 
    mad r1.zw, r4.xxxy, cb4[18].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
    round_ni r2.zw, r1.zzzw
    add r1.zw, r1.zzzw, -r2.zzzw
    add r2.zw, r2.zzzw, l(0.000000, 0.000000, -0.500000, -0.500000)
    mul r4.xy, r2.zwzz, cb4[18].zwzz
    mad r5.xyzw, r1.zzzz, l(11.000000, 11.000000, 5.000000, 5.000000), l(-28.000000, 17.000000, -6.000000, 1.000000)
    mad r9.xyz, r1.zzzz, l(4.000000, 4.000000, 7.000000, 0.000000), l(-5.000000, -16.000000, 5.000000, 0.000000)
    div r9.xyz, r9.xyzx, r5.zxyz
    add r9.xyz, r9.yxzy, l(-1.000000, -3.000000, 1.000000, 0.000000)
    div r1.z, r1.z, r5.w
    add r10.x, r1.z, l(3.000000)
    mad r11.xyzw, r1.wwww, l(11.000000, 11.000000, 5.000000, 5.000000), l(-28.000000, 17.000000, -6.000000, 1.000000)
    mad r12.xyz, r1.wwww, l(4.000000, 4.000000, 7.000000, 0.000000), l(-5.000000, -16.000000, 5.000000, 0.000000)
    div r12.xyz, r12.xyzx, r11.zxyz
    add r12.xyz, r12.xyzx, l(-3.000000, -1.000000, 1.000000, 0.000000)
    div r1.z, r1.w, r11.w
    add r13.y, r1.z, l(3.000000)
    mul r14.xyzw, r5.zxzx, r11.zzxx
    mov r9.w, r12.x
    mul r15.xyzw, r9.ywxw, cb4[18].zwzw
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r15.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.z, r7.xyzx, t6.xxxx, s3, r4.z
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r15.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mul r1.w, r1.w, r14.y
    mad r1.z, r14.x, r1.z, r1.w
    mul r15.xyzw, -r5.ywyw, r11.zzxx
    mad r7.xy, r9.zwzz, cb4[18].zwzz, r4.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.x, r1.w, r1.z
    mov r10.y, r9.w
    mad r7.xy, r10.xyxx, cb4[18].zwzz, r4.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.y, r1.w, r1.z
    mov r12.w, r9.y
    mul r16.xyzw, r12.wywz, cb4[18].zwzw
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r16.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r14.z, r1.w, r1.z
    mov r9.yw, r12.yyyz
    mul r17.xyzw, r9.xyzy, cb4[18].zwzw
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r17.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r14.w, r1.w, r1.z
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r17.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.z, r1.w, r1.z
    mov r10.zw, r9.yyyw
    mul r14.xyzw, r10.xzxw, cb4[18].zwzw
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r14.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.w, r1.w, r1.z
    mul r15.xyzw, r5.zxzx, -r11.yyww
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r16.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.x, r1.w, r1.z
    mul r16.xyzw, r9.xwzw, cb4[18].zwzw
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r16.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.y, r1.w, r1.z
    mul r5.xyzw, r5.ywyw, r11.yyww
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r16.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r5.x, r1.w, r1.z
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r14.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r5.y, r1.w, r1.z
    mov r13.x, r12.w
    mad r7.xy, r13.xyxx, cb4[18].zwzz, r4.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.z, r1.w, r1.z
    mov r13.zw, r9.xxxz
    mul r9.xyzw, r13.zywy, cb4[18].zwzw
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r9.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r15.w, r1.w, r1.z
    mad r7.xy, r2.zwzz, cb4[18].zwzz, r9.zwzz
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r5.z, r1.w, r1.z
    mov r13.x, r10.x
    mad r7.xy, r13.xyxx, cb4[18].zwzz, r4.xyxx
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r1.w, r7.xyzx, t6.xxxx, s3, r4.z
    mad r1.z, r5.w, r1.w, r1.z
    mad r2.zw, r8.xxxy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
    add r2.zw, |r2.zzzw|, l(0.000000, 0.000000, -0.800000, -0.800000)
    mul_sat r2.zw, r2.zzzw, l(0.000000, 0.000000, 5.000000, 5.000000)
    add r2.zw, -r2.zzzw, l(0.000000, 0.000000, 1.000000, 1.000000)
    add r1.w, r8.z, l(-0.500000)
    mad r1.w, -|r1.w|, l(2.000000), l(1.000000)
    max r1.w, r1.w, l(0.000000)
    min r1.w, r1.w, l(0.200000)
    mul r1.yw, r1.zzzw, l(0.000000, 0.000369822490, 0.000000, 5.000000)
    min r2.z, r2.w, r2.z
    min r1.w, r1.w, r2.z
    ne r2.z, r1.w, l(1.000000)
    if_nz r2.z
      mad r2.zw, r6.xxxy, cb4[18].xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
      round_ni r4.xy, r2.zwzz
      add r2.zw, r2.zzzw, -r4.xxxy
      add r4.xy, r4.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
      mul r4.zw, r4.xxxy, cb4[18].zzzw
      mad r5.xy, -r2.wzww, l(3.000000, 3.000000, 0.000000, 0.000000), l(4.000000, 4.000000, 0.000000, 0.000000)
      mad r5.zw, r2.zzzw, l(0.000000, 0.000000, 3.000000, 3.000000), l(0.000000, 0.000000, 1.000000, 1.000000)
      mad r6.xy, -r2.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
      div r6.xy, r6.xyxx, r5.yxyy
      add r7.xy, r2.zwzz, l(3.000000, 3.000000, 0.000000, 0.000000)
      div r2.zw, r2.zzzw, r5.zzzw
      add r8.xw, r6.xxxy, l(-2.000000, 0.000000, 0.000000, -2.000000)
      mul r8.yz, r7.yyxy, l(0.000000, 0.142857149, 0.142857149, 0.000000)
      add r7.xy, r2.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000)
      mul r2.z, r5.x, r5.y
      mul r9.xyzw, r8.xwzw, cb4[18].zwzw
      mad r10.xy, r4.xyxx, cb4[18].zwzz, r9.xyxx
      mov r10.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r10.xyzx, t6.xxxx, s3, r6.z
      mul r6.xy, r5.xyxx, l(7.000000, 7.000000, 0.000000, 0.000000)
      mad r9.xy, r4.xyxx, cb4[18].zwzz, r9.zwzz
      mov r9.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r3.w, r9.xyzx, t6.xxxx, s3, r6.z
      mul r3.w, r3.w, r6.x
      mad r2.z, r2.z, r2.w, r3.w
      mul r5.xy, r5.xyxx, r5.zwzz
      mov r7.zw, r8.wwwy
      mul r9.xyzw, r7.xzxw, cb4[18].zwzw
      mad r10.xy, r4.xyxx, cb4[18].zwzz, r9.xyxx
      mov r10.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r10.xyzx, t6.xxxx, s3, r6.z
      mad r2.z, r5.x, r2.w, r2.z
      mul r10.xyzw, r8.xyzy, cb4[18].zwzw
      mad r11.xy, r4.xyxx, cb4[18].zwzz, r10.xyxx
      mov r11.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r11.xyzx, t6.xxxx, s3, r6.z
      mad r2.z, r6.y, r2.w, r2.z
      mad r10.xy, r4.xyxx, cb4[18].zwzz, r10.zwzz
      mov r10.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r10.xyzx, t6.xxxx, s3, r6.z
      mad r2.z, r2.w, l(49.000000), r2.z
      mul r6.xy, r5.zwzz, l(7.000000, 7.000000, 0.000000, 0.000000)
      mad r9.xy, r4.xyxx, cb4[18].zwzz, r9.zwzz
      mov r9.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r9.xyzx, t6.xxxx, s3, r6.z
      mad r2.z, r6.x, r2.w, r2.z
      mov r8.y, r7.y
      mul r8.xyzw, r8.xyzy, cb4[18].zwzw
      mad r9.xy, r4.xyxx, cb4[18].zwzz, r8.xyxx
      mov r9.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r9.xyzx, t6.xxxx, s3, r6.z
      mad r2.z, r5.y, r2.w, r2.z
      mad r8.xy, r4.xyxx, cb4[18].zwzz, r8.zwzz
      mov r8.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r2.w, r8.xyzx, t6.xxxx, s3, r6.z
      mad r2.z, r6.y, r2.w, r2.z
      mul r2.w, r5.w, r5.z
      mad r4.xy, r7.xyxx, cb4[18].zwzz, r4.zwzz
      mov r4.z, l(1.000000)
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2darray)(float,float,float,float) r3.w, r4.xyzx, t6.xxxx, s3, r6.z
      mad r2.z, r2.w, r3.w, r2.z
      mul r2.z, r2.z, l(0.00694444450)
      mad r1.z, r1.z, l(0.000369822490), -r2.z
      mad r1.y, r1.w, r1.z, r2.z
    endif 
  endif 
endif 
mul r1.yzw, r1.yyyy, r3.xxyz
mul r2.yz, r2.yyyy, -cb3[2].wwxw
exp r2.yz, r2.yyzy
mov_sat r2.y, r2.y
mul r2.x, r2.y, r2.x
add r2.z, -r2.z, l(1.000000)
mul r2.x, r2.z, r2.x
add r0.y, -r0.y, r1.x
mul r1.x, r0.y, -cb3[2].z
exp r1.x, r1.x
mul r0.y, r0.y, l(-0.0432808511)
exp r0.y, r0.y
add r0.y, -r0.y, l(1.000000)
max r0.y, r0.y, l(0.000000)
add r3.xyz, cb3[3].xyzx, -cb3[4].xyzx
mad r3.xyz, r0.yyyy, r3.xyzx, cb3[4].xyzx
add r0.xyz, r0.xzwx, cb4[20].xyzx
mul r0.xyz, r0.xyzx, r3.xyzx
mad r1.yzw, r1.yyzw, r2.xxxx, -r0.xxyz
mad r0.xyz, r1.xxxx, r1.yzwy, r0.xyzx
mad o0.w, -r1.x, r2.y, l(1.000000)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.w, l(0), l(0), t1.xxxx
mul r0.xyz, r0.wwww, r0.xyzx
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)
ret 
// Approximately 477 instruction slots used