//3f1934c029b2e68e-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Fri Jan 29 09:13:11 2016
//
//
// Buffer Definitions: 
//
// cbuffer cbTiledLighting
// {
//
//   uint g_uNumNonDirectionalLights;   // Offset:    0 Size:     4
//   uint g_uNumDirectionalLights;      // Offset:    4 Size:     4
//   uint g_uNumTilesX;                 // Offset:    8 Size:     4
//   uint g_uNumTilesY;                 // Offset:   12 Size:     4 [unused]
//   row_major float4x4 g_mProjection;  // Offset:   16 Size:    64 [unused]
//   row_major float4x4 g_mInvProjection;// Offset:   80 Size:    64 [unused]
//
// }
//
// cbuffer SceneBuffer
// {
//
//   row_major float4x4 View;           // Offset:    0 Size:    64
//   row_major float4x4 ScreenMatrix;   // Offset:   64 Size:    64 [unused]
//   float2 DepthExportScale;           // Offset:  128 Size:     8 [unused]
//   float2 __padding0;                 // Offset:  136 Size:     8 [unused]
//   float4 FogParams;                  // Offset:  144 Size:    16 [unused]
//   float3 __CameraPosition;           // Offset:  160 Size:    12
//   float __padding12;                 // Offset:  172 Size:     4 [unused]
//   float3 CameraDirection;            // Offset:  176 Size:    12
//   float __padding9;                  // Offset:  188 Size:     4 [unused]
//   float3 DepthFactors;               // Offset:  192 Size:    12 [unused]
//   float __padding10;                 // Offset:  204 Size:     4 [unused]
//   float3 ShadowDepthBiasAndLightType;// Offset:  208 Size:    12 [unused]
//   float __padding11;                 // Offset:  220 Size:     4 [unused]
//   float4 SubframeViewport;           // Offset:  224 Size:    16 [unused]
//   row_major float3x4 DepthToWorld;   // Offset:  240 Size:    48
//   float4 DepthToView;                // Offset:  288 Size:    16
//   float4 OneOverDepthToView;         // Offset:  304 Size:    16 [unused]
//   float4 DepthToW;                   // Offset:  320 Size:    16 [unused]
//   float4 ClipPlane;                  // Offset:  336 Size:    16 [unused]
//   float2 ViewportDepthScaleOffset;   // Offset:  352 Size:     8 [unused]
//   float2 __padding1;                 // Offset:  360 Size:     8 [unused]
//   float2 ColorDOFDepthScaleOffset;   // Offset:  368 Size:     8 [unused]
//   float2 __padding2;                 // Offset:  376 Size:     8 [unused]
//   float4 TimeVector;                 // Offset:  384 Size:    16
//   float4 FogParams2;                 // Offset:  400 Size:    16 [unused]
//   float4 FogParams3;                 // Offset:  416 Size:    16 [unused]
//   float3 GlobalAmbient;              // Offset:  432 Size:    12 [unused]
//   float __padding8;                  // Offset:  444 Size:     4 [unused]
//   float4 GlobalParams[16];           // Offset:  448 Size:   256 [unused]
//   float4 ViewToFogH;                 // Offset:  704 Size:    16 [unused]
//   float4 ScreenExtents;              // Offset:  720 Size:    16
//   float2 ScreenResolution;           // Offset:  736 Size:     8 [unused]
//   float2 __padding3;                 // Offset:  744 Size:     8 [unused]
//   float4 PSSMToMap1Lin;              // Offset:  752 Size:    16 [unused]
//   float4 PSSMToMap1Const;            // Offset:  768 Size:    16 [unused]
//   float4 PSSMToMap2Lin;              // Offset:  784 Size:    16 [unused]
//   float4 PSSMToMap2Const;            // Offset:  800 Size:    16 [unused]
//   float4 PSSMToMap3Lin;              // Offset:  816 Size:    16 [unused]
//   float4 PSSMToMap3Const;            // Offset:  832 Size:    16 [unused]
//   float4 PSSMDistances;              // Offset:  848 Size:    16
//   row_major float4x4 WorldToPSSM0;   // Offset:  864 Size:    64 [unused]
//   row_major float4x4 PrevViewProject;// Offset:  928 Size:    64 [unused]
//   row_major float4x4 PrevWorld;      // Offset:  992 Size:    64 [unused]
//   row_major float4x4 ViewT;          // Offset: 1056 Size:    64 [unused]
//   float4 PSSMExtents;                // Offset: 1120 Size:    16 [unused]
//   float4 ShadowAtlasResolution;      // Offset: 1136 Size:    16
//   float4 UnitRimData[3];             // Offset: 1152 Size:    48 [unused]
//   float3 __CameraPositionForCorrection;// Offset: 1200 Size:    12 [unused]
//   float __padding7;                  // Offset: 1212 Size:     4 [unused]
//   row_major float4x4 CameraViewProject;// Offset: 1216 Size:    64 [unused]
//   float4 BackBufferResolution;       // Offset: 1280 Size:    16 [unused]
//   row_major float4x4 InverseProjection;// Offset: 1296 Size:    64 [unused]
//   float4 StereoOffset;               // Offset: 1360 Size:    16 [unused]
//   row_major float4x4 Projection;     // Offset: 1376 Size:    64 [unused]
//   row_major float4x4 ViewInv;        // Offset: 1440 Size:    64 [unused]
//   float4 ColorSSAO;                  // Offset: 1504 Size:    16 [unused]
//   float4 GlobalFogColor;             // Offset: 1520 Size:    16 [unused]
//   float4 VolumetricLightGlobalParams;// Offset: 1536 Size:    16 [unused]
//   float4 SnowParams01;               // Offset: 1552 Size:    16 [unused]
//   float4 SnowParams02;               // Offset: 1568 Size:    16 [unused]
//   float4 SnowParams03;               // Offset: 1584 Size:    16 [unused]
//   int SSREnabled;                    // Offset: 1600 Size:     4 [unused]
//   int __padding4;                    // Offset: 1604 Size:     4 [unused]
//   int __padding5;                    // Offset: 1608 Size:     4 [unused]
//   int __padding6;                    // Offset: 1612 Size:     4 [unused]
//
// }
//
// cbuffer MaterialBuffer
// {
//
//   float4 MaterialParams[512];        // Offset:    0 Size:  8192
//
// }
//
// Resource bind info for LightDataBuffer
// {
//
//   struct STiledLightData
//   {
//       
//       float3 vPosition;              // Offset:    0
//       float fSegmentLength;          // Offset:   12
//       float3 vDirection;             // Offset:   16
//       float fMinShadowSpec;          // Offset:   28
//       float4 vAttParams;             // Offset:   32
//       float3 vSpotParams;            // Offset:   48
//       float fIntensity;              // Offset:   60
//       float4 vDiffuseColor;          // Offset:   64
//       float4 vShadowFadeParams;      // Offset:   80
//       uint uRelCen;                  // Offset:   96
//       uint uFxSpecificIdx;           // Offset:  100
//       uint uFxType;                  // Offset:  104
//       float fRadiusSquared;          // Offset:  108
//       float3 vLambertWeights;        // Offset:  112
//       float fSpecularStrength;       // Offset:  124
//       float3 vBoxAxisX;              // Offset:  128
//       uint uLightType;               // Offset:  140
//       float3 vBoxAxisZ;              // Offset:  144
//       uint bShadowEnabled;           // Offset:  156
//       float3 vBoxInnerDistance;      // Offset:  160
//       uint bModulationMapEnabled;    // Offset:  172
//       float3 vBoxInvRange;           // Offset:  176
//       uint uModulationMapIndex;      // Offset:  188
//       row_major float4x4 mViewToShadowMap;// Offset:  192
//       row_major float4x4 mViewToModulationMap;// Offset:  256
//       float3 vRecipOuterColiProxy;   // Offset:  320
//       uint uProbeFlags;              // Offset:  332
//       float3 vColixProxyCen;         // Offset:  336
//       uint bForwardOnly;             // Offset:  348
//       uint uShadowType;              // Offset:  352
//       uint uNumSoftShadowSamples;    // Offset:  356
//       float fSoftShadowRadius;       // Offset:  360
//       float fSoftShadowDepthBias;    // Offset:  364
//       float fSoftShadowExponent;     // Offset:  368
//       float fProbePriority;          // Offset:  372
//       float fUnusedParam[2];         // Offset:  376
//
//   } $Element;                        // Offset:    0 Size:   384
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SamplerGenericPointClamp          sampler      NA          NA   10        1
// SamplerGenericTrilinearWrap       sampler      NA          NA   11        1
// SamplerGenericBilinearWrap        sampler      NA          NA   12        1
// SamplerGenericBilinearClamp       sampler      NA          NA   13        1
// SamplerGenericShadowCompare     sampler_c      NA          NA   14        1
// p_default_Material_n207_480BFBB01533943_Param_texture    texture  float4          2d    0        1
// p_default_Setup_5B743C1024312614_cp0_Param_texture    texture  float4          2d    1        1
// p_default_Setup_n6_4DF3FB3016561432_cp3_Param_texture    texture  float4          2d    3        1
// p_default_Material_508F0A605905068_Param_texture    texture  float4        cube    4        1
// p_default_Setup_n0_n68_Texture_texture    texture  float4          2d    5        1
// p_default_Setup_n0_n93_Texture_texture    texture  float4          2d    6        1
// p_default_Setup_n29_n137_Texture_texture    texture  float4          2d    7        1
// p_default_Material_n198_n243_n249_661830C016465534_cp0_Param_texture    texture  float4          2d    8        1
// GlobalModulationMapTextures[0]    texture  float4          2d   40        1
// ShadowMapSampler_texture          texture  float4          2d   43        1
// AttenuationSampler_texture        texture  float4          2d   44        1
// AmbientAccumulation_texture       texture  float4          2d   53        1
// LightDataBuffer                   texture  struct         r/o   54        1
// LightIndexBuffer                  texture   uint4         buf   55        1
// ModulationMaps                    texture  float4     2darray   56        1
// DirectionalShadow_texture         texture  float4          2d   58        1
// SceneBuffer                       cbuffer      NA          NA    2        1
// MaterialBuffer                    cbuffer      NA          NA    3        1
// cbTiledLighting                   cbuffer      NA          NA    7        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy w
// TEXCOORD                 0   xyzw        1     NONE   float   xy  
// TEXCOORD                 2   xyz         2     NONE   float   xyz 
// PSIZE                    0   x           3     NONE    uint       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyzw        0   TARGET   float   xyzw
// SV_TARGET                1   x           1   TARGET   float   x   
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb7[1], immediateIndexed
// dcl_constantbuffer cb2[72], immediateIndexed
dcl_constantbuffer cb2[82], immediateIndexed
dcl_constantbuffer cb3[15], immediateIndexed
dcl_sampler s10, mode_default
dcl_sampler s11, mode_default
dcl_sampler s12, mode_default
dcl_sampler s13, mode_default
dcl_sampler s14, mode_comparison
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texturecube (float,float,float,float) t4
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_texture2d (float,float,float,float) t40
dcl_resource_texture2d (float,float,float,float) t43
dcl_resource_texture2d (float,float,float,float) t44
dcl_resource_texture2d (float,float,float,float) t53
dcl_resource_structured t54, 384 
dcl_resource_buffer (uint,uint,uint,uint) t55
dcl_resource_texture2darray (float,float,float,float) t56
dcl_resource_texture2d (float,float,float,float) t58
dcl_input_ps_siv linear noperspective v0.xyw, position
dcl_input_ps linear v1.xy
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_output o1.x
// dcl_temps 31
dcl_temps 33
dcl_resource_texture2d (float,float,float,float) t125
dp3 r0.x, v2.xyzx, v2.xyzx
rsq r0.x, r0.x
mul r0.xyz, r0.xxxx, v2.xyzx
mad r1.xyzw, v0.xyxy, cb2[45].zwzw, cb2[45].xyxy
mul r2.xyzw, r1.xyzw, v0.wwww
mov r3.xy, r2.xyxx
mov r3.z, v0.w

//Screen space correction, therefore need the '0.5'
ld_indexable(texture2d)(float,float,float,float) r32.xyzw, l(0, 0, 0, 0), t125.xyzw
add r32.w, v0.w, -r32.y
mul r32.w, r32.w, r32.x
mul r32.w, r32.w, l(0.5)
add r3.x, r3.x, -r32.w


mov r3.w, l(1.000000)
dp4 r4.x, cb2[15].xyzw, r3.xyzw
dp4 r4.y, cb2[16].xyzw, r3.xyzw
dp4 r4.z, cb2[17].xyzw, r3.xyzw
mad r1.xy, r1.zwzz, cb2[18].xyxx, cb2[18].zwzz
mul r5.xy, r1.xyxx, v0.wwww
mov r5.z, v0.w

//View space correction, therefore need the InvProj._m00
ld_indexable(texture2d)(float,float,float,float) r32.xyzw, l(0, 0, 0, 0), t125.xyzw
add r32.w, v0.w, -r32.y
mul r32.w, r32.w, r32.x
mul r32.w, r32.w, cb2[81].x
add r5.x, r5.x, -r32.w


dp3 r0.w, -r5.xyzx, -r5.xyzx
rsq r0.w, r0.w
mul r6.xyz, r0.wwww, -r5.xyzx
dp3 r7.x, r6.xyzx, cb2[0].xyzx
dp3 r7.y, r6.xyzx, cb2[1].xyzx
dp3 r7.z, r6.xyzx, cb2[2].xyzx
deriv_rty_fine r6.xy, v1.xyxx
deriv_rtx_fine r1.xy, v1.xyxx
mov r3.xy, r2.zwzz
dp4 r0.w, cb2[15].xyzw, r3.xyzw
dp4 r2.x, cb2[16].xyzw, r3.xyzw
dp4 r2.y, cb2[17].xyzw, r3.xyzw
deriv_rty_fine r3.x, r0.w
deriv_rty_fine r3.yz, r2.xxyx
deriv_rtx_fine r8.z, r0.w
deriv_rtx_fine r8.xy, r2.xyxx
mul r2.xyzw, v1.xyxy, cb3[8].xyzw
sample_indexable(texture2d)(float,float,float,float) r0.w, r2.xyxx, t1.yzwx, s11
mul r9.xyzw, v1.xyxy, cb3[7].xyzw
mul r2.xy, v1.xyxx, cb3[9].zwzz
sample_indexable(texture2d)(float,float,float,float) r2.xy, r2.xyxx, t6.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r10.xyz, r9.xyxx, t5.xyzw, s11
mul r11.xyz, r2.xxxx, cb3[3].xyzx
add r2.x, cb3[11].w, -cb3[12].y
mad r2.x, r2.y, r2.x, cb3[12].y
add r9.xy, cb3[13].xzxx, cb3[13].wyww
mov_sat r9.x, r9.x
dp3 r3.w, r8.zxyz, r0.xyzx
mad r8.xyz, -r3.wwww, r0.yzxy, r8.xyzx
dp3 r3.w, r3.xyzx, r0.xyzx
mad r3.xyz, -r3.wwww, r0.xyzx, r3.xyzx
mul r3.w, r6.x, r1.y
mad r1.x, r1.x, r6.y, -r3.w
lt r3.w, r1.x, l(0.000000)
movc r3.w, r3.w, l(-1.000000), l(1.000000)
mov r6.z, -r1.y
mul r6.xy, r3.wwww, r6.yzyy
mul r6.yzw, r3.xxyz, r6.yyyy
mad r6.xyz, r8.zxyz, r6.xxxx, r6.yzwy
lt r1.x, l(0.000000), |r1.x|
dp3 r1.y, r6.xyzx, r6.xyzx
rsq r1.y, r1.y
mul r12.xyz, r1.yyyy, r6.xyzx
movc r6.xyz, r1.xxxx, r12.xyzx, r6.xyzx
mul r12.xyz, r0.zxyz, r6.yzxy
mad r12.xyz, r0.yzxy, r6.zxyz, -r12.xyzx
mul r13.xyz, r0.zxyz, r8.xyzx
mad r8.xyz, r0.yzxy, r8.yzxy, -r13.xyzx
dp3 r1.x, r3.xyzx, r8.xyzx
lt r1.x, r1.x, l(0.000000)
movc r1.x, r1.x, l(-1.000000), l(1.000000)
mul r1.x, r1.x, r3.w
mul r3.xyz, r1.xxxx, r12.xyzx
add r4.xyz, r4.xyzx, -cb2[10].xyzx
dp3 r1.x, r4.xyzx, cb2[11].xyzx
add r1.y, -cb3[5].w, cb3[11].z
add r1.x, r1.x, -cb3[5].w
div r1.y, l(1.000000, 1.000000, 1.000000, 1.000000), r1.y
mul_sat r1.x, r1.y, r1.x
mad r1.y, r1.x, l(-2.000000), l(3.000000)
mul r1.x, r1.x, r1.x
mul r1.x, r1.x, r1.y
mad r2.zw, cb2[24].xxxx, cb3[9].xxxy, r2.zzzw
sample_indexable(texture2d)(float,float,float,float) r2.zw, r2.zwzz, t7.zwxy, s11
mad r2.zw, r2.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
min r1.x, r1.x, l(1.000000)
add r1.y, cb3[4].w, -cb3[10].z
mad r1.x, r1.x, r1.y, cb3[10].z
mul r4.xy, r2.zwzz, r1.xxxx
mov r4.zw, l(0,0,0,1.000000)
add r4.xyz, r4.xyzx, l(0.000000, 0.000000, 1.000000, 0.000000)
dp3 r1.x, r4.xyzx, r4.xyzx
rsq r1.x, r1.x
mul r4.xyz, r1.xxxx, r4.xyzx
mul r3.xyz, r3.xyzx, r4.yyyy
mad r3.xyz, r4.xxxx, r6.xyzx, r3.xyzx
mad r0.xyz, r4.zzzz, r0.xyzx, r3.xyzx
dp3 r1.x, r0.xyzx, r0.xyzx
rsq r1.x, r1.x
mul r0.xyz, r0.xyzx, r1.xxxx
sample_indexable(texture2d)(float,float,float,float) r1.x, r9.zwzz, t3.xyzw, s11
mul r1.x, r1.x, cb3[10].y
dp3 r1.y, -r7.xyzx, r0.xyzx
add r1.y, r1.y, r1.y
mad r2.zw, r0.xxxy, -r1.yyyy, -r7.xxxy
mul r2.zw, r2.zzzw, cb3[10].xxxx
sample_indexable(texture2d)(float,float,float,float) r1.y, r2.zwzz, t3.xyzw, s11
mul_sat r1.x, r1.x, r1.y
add r1.y, -r2.x, cb3[12].x
mad r1.y, r1.x, r1.y, r2.x
mad r2.xzw, cb3[0].xxyz, cb3[6].wwww, -r11.xxyz
mad r2.xzw, r1.xxxx, r2.xxzw, r11.xxyz
sample_l_indexable(texture2d)(float,float,float,float) r1.x, r1.zwzz, t58.xyzw, s13, l(0.000000)
add r3.x, cb3[10].w, l(1.000000)
add r3.y, cb3[11].y, l(1.000000)
mov r5.w, l(1.000000)
mov r4.xyz, r5.xyzx
mov r6.xyz, l(0,0,0,0)
mov r8.xyz, l(0,0,0,0)
mov r3.z, l(0)
loop 
  uge r3.w, r3.z, cb7[0].y
  breakc_nz r3.w
  iadd r3.w, r3.z, cb7[0].x
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r11.xyz, r3.w, l(16), t54.xyzx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r12.xyz, r3.w, l(64), t54.xyzx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r6.w, r3.w, l(124), t54.xxxx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r7.w, r3.w, l(156), t54.xxxx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r8.w, r3.w, l(172), t54.xxxx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r13.xyzw, r3.w, l(252), t54.yzwx
  dp3 r14.x, -r11.xyzx, cb2[0].xyzx
  dp3 r14.y, -r11.xyzx, cb2[1].xyzx
  dp3 r14.z, -r11.xyzx, cb2[2].xyzx
  if_nz r7.w
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r11.x, r3.w, l(204), t54.xxxx
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r11.y, r3.w, l(220), t54.xxxx
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r11.z, r3.w, l(236), t54.xxxx
    mov r11.w, r13.w
    dp4 r7.w, r5.xyzw, r11.xyzw
    add r7.w, -r7.w, cb2[53].x
    lt r7.w, l(0.000000), r7.w
    movc r7.w, r7.w, r1.x, l(1.000000)
  else 
    mov r7.w, l(1.000000)
  endif 
  if_nz r8.w
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r11.xyzw, r3.w, l(268), t54.yzwx
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r15.xyzw, r3.w, l(284), t54.xyzw
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r16.w, r3.w, l(300), t54.xxxx
    mov r13.w, r11.w
    dp4 r3.w, r13.xyzw, r4.xyzw
    mov r11.w, r15.x
    dp4 r8.w, r11.xyzw, r4.xyzw
    mov r16.xyz, r15.yzwy
    dp4 r9.z, r16.xyzw, r4.xyzw
    div r11.x, r3.w, r9.z
    div r11.y, r8.w, r9.z
    sample_l_indexable(texture2d)(float,float,float,float) r11.xyz, r11.xyxx, t40.xyzw, s12, l(0.000000)
  else 
    mov r11.xyz, l(1.000000,1.000000,1.000000,0)
  endif 
  dp3 r3.w, -r7.xyzx, r14.xyzx
  add r3.w, r3.w, cb3[10].w
  div r3.w, r3.w, r3.x
  max r3.w, r3.w, l(0.000000)
  mul r13.xyz, r3.wwww, cb3[4].xyzx
  dp3 r3.w, r14.xyzx, r0.xyzx
  add r8.w, r3.w, cb3[11].y
  div r8.w, r8.w, r3.y
  max r8.w, r8.w, l(0.000000)
  mul r8.w, r8.w, cb3[11].x
  mul r15.xyz, r0.xyzx, r3.wwww
  mad r14.xyz, r15.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r14.xyzx
  dp3_sat r3.w, r14.xyzx, r7.xyzx
  log r3.w, r3.w
  mul r3.w, r1.y, r3.w
  exp r3.w, r3.w
  mad r13.xyz, r13.xyzx, r0.wwww, r8.wwww
  mul r13.xyz, r12.xyzx, r13.xyzx
  mul r13.xyz, r11.xyzx, r13.xyzx
  mul r12.xyz, r12.xyzx, r3.wwww
  mul r11.xyz, r11.xyzx, r12.xyzx
  mul r11.xyz, r7.wwww, r11.xyzx
  mad r6.xyz, r13.xyzx, r7.wwww, r6.xyzx
  mad r8.xyz, r11.xyzx, r6.wwww, r8.xyzx
  iadd r3.z, r3.z, l(1)
endloop 
if_nz cb7[0].x
  mul r3.zw, v0.xxxy, l(0.000000, 0.000000, 0.062500, 0.062500)
  round_ni r3.zw, r3.zzzw
  utof r1.x, cb7[0].z
  mad r1.x, r3.w, r1.x, r3.z
  ftou r1.x, r1.x
  ishl r1.x, r1.x, l(1)
  dp3 r3.z, r4.xyzx, r4.xyzx
  sqrt r3.z, r3.z
  mov r11.xyz, r4.xyzx
  mov r11.w, l(1.000000)
  mov r4.w, l(1.000000)
  mov r12.xyz, r6.xyzx
  mov r13.xyz, r8.xyzx
  mov r3.w, l(0)
  loop 
    uge r5.w, r3.w, l(2)
    breakc_nz r5.w
    iadd r5.w, r1.x, r3.w
    ld_indexable(buffer)(uint,uint,uint,uint) r14.xyzw, r5.wwww, t55.xyzw
    ushr r15.xyzw, r14.xyzw, l(30, 30, 30, 30)
    iadd r5.w, r15.y, r15.x
    iadd r5.w, r15.z, r5.w
    iadd r5.w, r15.w, r5.w
    mov r15.xyz, r12.xyzx
    mov r16.xyz, r13.xyzx
    mov r6.w, l(0)
    loop 
      uge r7.w, r6.w, r5.w
      breakc_nz r7.w
      ult r17.xyz, r6.wwww, l(3, 6, 9, 0)
      iadd r18.xyz, r6.wwww, l(-3, -6, -9, 0)
      movc r7.w, r17.z, r18.y, r18.z
      movc r7.w, r17.y, r18.x, r7.w
      movc r7.w, r17.x, r6.w, r7.w
      movc r8.w, r17.z, r14.z, r14.w
      movc r8.w, r17.y, r14.y, r8.w
      movc r8.w, r17.x, r14.x, r8.w
      imul null, r7.w, r7.w, l(10)
      ushr r7.w, r8.w, r7.w
      and r7.w, r7.w, l(1023)
      ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r8.w, r7.w, l(140), t54.xxxx
      mov r17.xyz, r15.xyzx
      mov r18.xyz, r16.xyzx
      mov r9.z, r6.w
      mov r9.w, r7.w
      mov r10.w, r8.w
      loop 
        ult r12.w, r9.z, r5.w
        ieq r19.xy, r10.wwww, l(0, 1, 0, 0)
        or r13.w, r19.y, r19.x
        and r12.w, r12.w, r13.w
        breakc_z r12.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r19.xzw, r9.w, l(0), t54.xxyz
        if_nz r19.y
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r20.xyzw, r9.w, l(12), t54.xyzw
          add r21.xyz, r4.xyzx, -r19.xzwx
          dp3 r12.w, r21.xyzx, r20.yzwy
          max r12.w, r12.w, l(0.000000)
          min r12.w, r20.x, r12.w
          mad r19.xzw, r12.wwww, r20.yyzw, r19.xxzw
        endif 
        add r19.xyz, -r5.xyzx, r19.xzwx
        dp3 r12.w, r19.xyzx, r19.xyzx
        sqrt r12.w, r12.w
        div r19.xyz, r19.xyzx, r12.wwww
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r20.xyz, r9.w, l(64), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r13.w, r9.w, l(124), t54.xxxx
        dp3 r21.x, r19.xyzx, cb2[0].xyzx
        dp3 r21.y, r19.xyzx, cb2[1].xyzx
        dp3 r21.z, r19.xyzx, cb2[2].xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r15.w, r9.w, l(32), t54.xxxx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r19.yz, r9.w, l(40), t54.xxyx
        mad_sat r19.x, r12.w, r15.w, r19.y
        sample_l_indexable(texture2d)(float,float,float,float) r12.w, r19.xzxx, t44.xywz, s13, l(0.000000)
        dp3 r15.w, -r7.xyzx, r21.xyzx
        add r15.w, r15.w, cb3[10].w
        div r15.w, r15.w, r3.x
        max r15.w, r15.w, l(0.000000)
        mul r19.xyz, r15.wwww, cb3[4].xyzx
        dp3 r15.w, r21.xyzx, r0.xyzx
        add r16.w, r15.w, cb3[11].y
        div r16.w, r16.w, r3.y
        max r16.w, r16.w, l(0.000000)
        mul r16.w, r16.w, cb3[11].x
        mul r22.xyz, r0.xyzx, r15.wwww
        mad r21.xyz, r22.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r21.xyzx
        dp3_sat r15.w, r21.xyzx, r7.xyzx
        log r15.w, r15.w
        mul r15.w, r1.y, r15.w
        exp r15.w, r15.w
        mad r19.xyz, r19.xyzx, r0.wwww, r16.wwww
        mul r19.xyz, r20.xyzx, r19.xyzx
        mul r20.xyz, r20.xyzx, r15.wwww
        mul r20.xyz, r12.wwww, r20.xyzx
        mad r17.xyz, r19.xyzx, r12.wwww, r17.xyzx
        mad r18.xyz, r20.xyzx, r13.wwww, r18.xyzx
        iadd r12.w, r9.z, l(1)
        ult r13.w, r12.w, r5.w
        if_nz r13.w
          ult r19.xyz, r12.wwww, l(3, 6, 9, 0)
          iadd r20.xyz, r9.zzzz, l(-2, -5, -8, 0)
          movc r13.w, r19.z, r20.y, r20.z
          movc r13.w, r19.y, r20.x, r13.w
          movc r13.w, r19.x, r12.w, r13.w
          movc r15.w, r19.z, r14.z, r14.w
          movc r15.w, r19.y, r14.y, r15.w
          movc r15.w, r19.x, r14.x, r15.w
          imul null, r13.w, r13.w, l(10)
          ushr r13.w, r15.w, r13.w
          and r9.w, r13.w, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r10.w, r9.w, l(140), t54.xxxx
        endif 
        mov r9.z, r12.w
      endloop 
      mov r19.xyz, r17.xyzx
      mov r20.xyz, r18.xyzx
      mov r7.w, r9.z
      mov r8.w, r9.w
      mov r12.w, r10.w
      loop 
        ult r13.w, r7.w, r5.w
        ieq r21.xy, r12.wwww, l(2, 3, 0, 0)
        or r15.w, r21.y, r21.x
        and r13.w, r13.w, r15.w
        breakc_z r13.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r21.xzw, r8.w, l(16), t54.xxyz
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r22.xyz, r8.w, l(0), t54.xyzx
        if_nz r21.y
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r23.xyz, r8.w, l(128), t54.xyzx
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r13.w, r8.w, l(12), t54.xxxx
          add r24.xyz, r4.xyzx, -r22.xyzx
          dp3 r15.w, r24.xyzx, r23.xyzx
          max r15.w, r15.w, l(0.000000)
          min r13.w, r13.w, r15.w
          mad r22.xyz, r13.wwww, r23.xyzx, r22.xyzx
        endif 
        add r22.xyz, -r5.xyzx, r22.xyzx
        dp3 r13.w, r22.xyzx, r22.xyzx
        sqrt r13.w, r13.w
        div r22.xyz, r22.xyzx, r13.wwww
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r23.xyz, r8.w, l(64), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r15.w, r8.w, l(124), t54.xxxx
        dp3 r24.x, r22.xyzx, cb2[0].xyzx
        dp3 r24.y, r22.xyzx, cb2[1].xyzx
        dp3 r24.z, r22.xyzx, cb2[2].xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyz, r8.w, l(32), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.xyzw, r8.w, l(44), t54.xyzw
        mov r25.w, r26.x
        mad r25.xy, r13.wwww, r25.xyxx, r25.zwzz
        dp3 r16.w, r22.xyzx, -r21.xzwx
        mad_sat r17.w, r16.w, r26.y, r26.z
        mul r18.w, r17.w, r17.w
        mad r17.w, -r17.w, l(2.000000), l(3.000000)
        mul r17.w, r17.w, r18.w
        mul r17.w, r17.w, r17.w
        mul r13.w, r13.w, r16.w
        lt r13.w, r13.w, r26.w
        movc r13.w, r13.w, l(0), r17.w
        sample_l_indexable(texture2d)(float,float,float,float) r16.w, r25.xyxx, t44.xywz, s13, l(0.000000)
        mul r13.w, r13.w, r16.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r16.w, r8.w, l(172), t54.xxxx
        if_nz r16.w
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r16.w, r8.w, l(188), t54.xxxx
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r21.xyzw, r8.w, l(256), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r22.xyzw, r8.w, l(272), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyzw, r8.w, l(288), t54.xyzw
          dp4 r17.w, r21.xyzw, r11.xyzw
          dp4 r18.w, r22.xyzw, r11.xyzw
          dp4 r19.w, r25.xyzw, r11.xyzw
          div r21.x, r17.w, r19.w
          div r21.y, r18.w, r19.w
          utof r21.z, r16.w
          sample_l_indexable(texture2darray)(float,float,float,float) r21.xyz, r21.xyzx, t56.xyzw, s12, l(0.000000)
        else 
          mov r21.xyz, l(1.000000,1.000000,1.000000,0)
        endif 
        dp3 r16.w, r21.xyzx, r21.xyzx
        mul r16.w, r13.w, r16.w
        lt r16.w, cb2[24].w, r16.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r17.w, r8.w, l(156), t54.xxxx
        ine r17.w, r17.w, l(0)
        and r16.w, r16.w, r17.w
        if_nz r16.w
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r22.xyzw, r8.w, l(192), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyzw, r8.w, l(208), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.xyzw, r8.w, l(224), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r27.xyzw, r8.w, l(240), t54.xyzw
          mov r28.x, r22.x
          mov r28.y, r25.x
          mov r28.z, r26.x
          mov r28.w, r27.x
          dp4 r28.x, r4.xyzw, r28.xyzw
          mov r29.x, r22.y
          mov r29.y, r25.y
          mov r29.z, r26.y
          mov r29.w, r27.y
          dp4 r28.y, r4.xyzw, r29.xyzw
          mov r29.x, r22.z
          mov r29.y, r25.z
          mov r29.z, r26.z
          mov r29.w, r27.z
          dp4 r16.w, r4.xyzw, r29.xyzw
          mov r27.x, r22.w
          mov r27.y, r25.w
          mov r27.z, r26.w
          dp4 r17.w, r4.xyzw, r27.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r22.xyzw, r8.w, l(80), t54.xyzw
          mad_sat r22.xy, r3.zzzz, r22.xyxx, r22.zwzz
          div r25.xyzw, r28.xyxy, r17.wwww
          mad r26.xyzw, cb2[71].zwzw, l(-0.500000, 0.500000, 0.500000, 0.500000), r25.zwzw
          sample_c_lz_indexable(texture2d)(float,float,float,float) r17.w, r26.xyxx, t43.xxxx, s14, r16.w
          sample_c_lz_indexable(texture2d)(float,float,float,float) r18.w, r26.zwzz, t43.xxxx, s14, r16.w
          add r17.w, r17.w, r18.w
          mad r25.xyzw, cb2[71].zwzw, l(-0.500000, -0.500000, 0.500000, -0.500000), r25.xyzw
          sample_c_lz_indexable(texture2d)(float,float,float,float) r18.w, r25.xyxx, t43.xxxx, s14, r16.w
          add r17.w, r17.w, r18.w
          sample_c_lz_indexable(texture2d)(float,float,float,float) r16.w, r25.zwzz, t43.xxxx, s14, r16.w
          add r16.w, r16.w, r17.w
          mul r16.w, r16.w, l(0.250000)
          mad r16.w, r16.w, r22.x, r22.y
        else 
          mov r16.w, l(1.000000)
        endif 
        dp3 r17.w, -r7.xyzx, r24.xyzx
        add r17.w, r17.w, cb3[10].w
        div r17.w, r17.w, r3.x
        max r17.w, r17.w, l(0.000000)
        mul r22.xyz, r17.wwww, cb3[4].xyzx
        dp3 r17.w, r24.xyzx, r0.xyzx
        add r18.w, r17.w, cb3[11].y
        div r18.w, r18.w, r3.y
        max r18.w, r18.w, l(0.000000)
        mul r18.w, r18.w, cb3[11].x
        mul r25.xyz, r0.xyzx, r17.wwww
        mad r24.xyz, r25.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r24.xyzx
        dp3_sat r17.w, r24.xyzx, r7.xyzx
        log r17.w, r17.w
        mul r17.w, r1.y, r17.w
        exp r17.w, r17.w
        mad r22.xyz, r22.xyzx, r0.wwww, r18.wwww
        mul r22.xyz, r23.xyzx, r22.xyzx
        mul r22.xyz, r21.xyzx, r22.xyzx
        mul r22.xyz, r16.wwww, r22.xyzx
        mul r23.xyz, r23.xyzx, r17.wwww
        mul r21.xyz, r21.xyzx, r23.xyzx
        mul r21.xyz, r16.wwww, r21.xyzx
        mul r21.xyz, r13.wwww, r21.xyzx
        mad r19.xyz, r22.xyzx, r13.wwww, r19.xyzx
        mad r20.xyz, r21.xyzx, r15.wwww, r20.xyzx
        iadd r13.w, r7.w, l(1)
        ult r15.w, r13.w, r5.w
        if_nz r15.w
          ult r21.xyz, r13.wwww, l(3, 6, 9, 0)
          iadd r22.xyz, r7.wwww, l(-2, -5, -8, 0)
          movc r15.w, r21.z, r22.y, r22.z
          movc r15.w, r21.y, r22.x, r15.w
          movc r15.w, r21.x, r13.w, r15.w
          movc r16.w, r21.z, r14.z, r14.w
          movc r16.w, r21.y, r14.y, r16.w
          movc r16.w, r21.x, r14.x, r16.w
          imul null, r15.w, r15.w, l(10)
          ushr r15.w, r16.w, r15.w
          and r8.w, r15.w, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r12.w, r8.w, l(140), t54.xxxx
        endif 
        mov r7.w, r13.w
      endloop 
      mov r15.xyz, r19.xyzx
      mov r16.xyz, r20.xyzx
      mov r13.w, r7.w
      mov r15.w, r8.w
      mov r16.w, r12.w
      loop 
        ult r17.w, r13.w, r5.w
        ieq r18.w, r16.w, l(4)
        and r17.w, r17.w, r18.w
        breakc_z r17.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r21.xyz, r15.w, l(0), t54.xyzx
        add r21.xyz, -r5.xyzx, r21.xyzx
        dp3 r17.w, r21.xyzx, r21.xyzx
        sqrt r17.w, r17.w
        div r22.xyz, r21.xyzx, r17.wwww
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r23.xyz, r15.w, l(64), t54.xyzx
        dp3 r24.x, r22.xyzx, cb2[0].xyzx
        dp3 r24.y, r22.xyzx, cb2[1].xyzx
        dp3 r24.z, r22.xyzx, cb2[2].xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r22.xyz, r15.w, l(16), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.y, r15.w, l(44), t54.xxxx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.xyzw, r15.w, l(124), t54.xyzw
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r27.xyz, r15.w, l(144), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r28.xyz, r15.w, l(160), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r29.xyz, r15.w, l(176), t54.xyzx
        dp3 r30.x, r21.xyzx, r26.yzwy
        dp3 r30.y, r21.xyzx, r22.xyzx
        dp3 r30.z, r21.xyzx, r27.xyzx
        add r21.xyz, -r28.xyzx, |r30.xyzx|
        mul_sat r21.xyz, r29.xyzx, r21.xyzx
        max r17.w, r21.y, r21.x
        max r25.x, r21.z, r17.w
        sample_l_indexable(texture2d)(float,float,float,float) r17.w, r25.xyxx, t44.xywz, s13, l(0.000000)
        dp3 r18.w, -r7.xyzx, r24.xyzx
        add r18.w, r18.w, cb3[10].w
        div r18.w, r18.w, r3.x
        max r18.w, r18.w, l(0.000000)
        mul r21.xyz, r18.wwww, cb3[4].xyzx
        dp3 r18.w, r24.xyzx, r0.xyzx
        add r19.w, r18.w, cb3[11].y
        div r19.w, r19.w, r3.y
        max r19.w, r19.w, l(0.000000)
        mul r19.w, r19.w, cb3[11].x
        mul r22.xyz, r0.xyzx, r18.wwww
        mad r22.xyz, r22.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r24.xyzx
        dp3_sat r18.w, r22.xyzx, r7.xyzx
        log r18.w, r18.w
        mul r18.w, r1.y, r18.w
        exp r18.w, r18.w
        mad r21.xyz, r21.xyzx, r0.wwww, r19.wwww
        mul r21.xyz, r23.xyzx, r21.xyzx
        mul r22.xyz, r23.xyzx, r18.wwww
        mul r22.xyz, r17.wwww, r22.xyzx
        mad r15.xyz, r21.xyzx, r17.wwww, r15.xyzx
        mad r16.xyz, r22.xyzx, r26.xxxx, r16.xyzx
        iadd r17.w, r13.w, l(1)
        ult r18.w, r17.w, r5.w
        if_nz r18.w
          ult r21.xyz, r17.wwww, l(3, 6, 9, 0)
          iadd r22.xyz, r13.wwww, l(-2, -5, -8, 0)
          movc r18.w, r21.z, r22.y, r22.z
          movc r18.w, r21.y, r22.x, r18.w
          movc r18.w, r21.x, r17.w, r18.w
          movc r19.w, r21.z, r14.z, r14.w
          movc r19.w, r21.y, r14.y, r19.w
          movc r19.w, r21.x, r14.x, r19.w
          imul null, r18.w, r18.w, l(10)
          ushr r18.w, r19.w, r18.w
          and r15.w, r18.w, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r16.w, r15.w, l(140), t54.xxxx
        endif 
        mov r13.w, r17.w
      endloop 
      uge r15.w, r16.w, l(5)
      iadd r6.w, r13.w, -r15.w
    endloop 
    ult r5.w, r5.w, l(12)
    if_nz r5.w
      mov r12.xyz, r15.xyzx
      mov r13.xyz, r16.xyzx
      break 
    endif 
    iadd r3.w, r3.w, l(1)
    mov r12.xyz, r15.xyzx
    mov r13.xyz, r16.xyzx
  endloop 
  mov r6.xyz, r12.xyzx
  mov r8.xyz, r13.xyzx
endif 
dp3 r0.w, r2.xzwx, l(0.299000, 0.587000, 0.114000, 0.000000)
add r1.x, r2.y, l(2.000000)
mul r1.x, r1.x, l(0.010000)
mul r2.xyz, r1.xxxx, r2.xzwx
sample_l_indexable(texture2d)(float,float,float,float) r3.xyz, r1.zwzz, t0.xyzw, s11, l(0.000000)
mul r3.xyz, r3.xyzx, cb3[5].xyzx
dp3 r1.x, r0.xyzx, r7.xyzx
add_sat r1.y, -r1.x, l(1.000000)
log r1.y, r1.y
mul r1.y, r1.y, cb3[12].z
exp r1.y, r1.y
mul r0.w, r0.w, cb3[12].w
mul r0.w, r0.w, r1.y
mad r4.xyz, r10.xyzx, cb3[2].xyzx, -r3.xyzx
mad r3.xyz, r9.xxxx, r4.xyzx, r3.xyzx
sample_indexable(texture2d)(float,float,float,float) r1.y, r1.zwzz, t8.yxzw, s10
add_sat r1.z, -r9.y, l(1.000000)
mul r1.w, r1.y, r1.y
mad r1.y, cb3[13].y, r1.y, r1.z
mad_sat r1.y, r1.w, cb3[13].z, r1.y
add r4.xyz, -cb3[6].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad_sat r1.yzw, r1.yyyy, r4.xxyz, cb3[6].xxyz
mul r4.xyz, r8.xyzx, r1.yzwy
add r5.xyz, r6.xyzx, cb3[1].xyzx
ftoi r6.xy, v0.xyxx
mov r6.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r6.xyz, r6.xyzw, t53.xyzw
add r5.xyz, r5.xyzx, r6.xyzx
mul r1.yzw, r1.yyzw, r5.xxyz
mul r3.xyz, r3.xyzx, r1.yzwy
mul r0.xyz, r0.xyzx, r1.xxxx
mad r0.xyz, r0.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r7.xyzx
mov_sat r1.x, r1.x
mul r1.x, r1.x, r1.x
max r1.x, r1.x, l(0.010000)
div r1.x, l(1.000000, 1.000000, 1.000000, 1.000000), r1.x
min r1.x, r1.x, cb3[14].z
sample_l_indexable(texturecube)(float,float,float,float) r0.xyz, r0.xyzx, t4.xyzw, s11, l(0.000000)
max r1.y, r1.z, r1.y
mul r0.xyz, r0.xyzx, cb3[14].xxxx
max r1.y, r1.w, r1.y
add_sat r1.y, r1.y, cb3[14].y
mul r0.xyz, r1.xxxx, r0.xyzx
mad r0.xyz, r0.xyzx, r1.yyyy, r4.xyzx
mad r0.xyz, r0.xyzx, r2.xyzx, r3.xyzx
max o0.xyz, r0.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mul_sat r0.x, r0.w, l(0.200000)
sqrt o1.x, r0.x
mov o0.w, l(1.000000)
ret 
// Approximately 588 instruction slots used
