//04d3bb1a81c95fa5-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Fri Feb 05 20:58:55 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 DrawableBuffer
// {
//
//   float4 FogColor;                   // Offset:    0 Size:    16 [unused]
//   float4 DebugColor;                 // Offset:   16 Size:    16 [unused]
//   float AlphaThreshold;              // Offset:   32 Size:     4
//   float4 __InstancedMaterialOpacity[256];// Offset:   48 Size:  4096
//
// }
//
// 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 [unused]
//   float __padding12;                 // Offset:  172 Size:     4 [unused]
//   float3 CameraDirection;            // Offset:  176 Size:    12 [unused]
//   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
//   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
// ------------------------------ ---------- ------- ----------- ---- --------
// 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_n82_n123_661830C016465534_cp0_Param_texture    texture  float4          2d    0        1
// p_default_Setup_n0_Texture_texture    texture  float4          2d    1        1
// p_default_Material_n84_n93_Texture_texture    texture  float4          2d    2        1
// p_default_Material_n83_n145_Texture_texture    texture  float4        cube    3        1
// p_default_Setup_n5_n44_Texture_texture    texture  float4          2d    4        1
// p_default_Setup_n13_Texture_texture    texture  float4          2d    5        1
// p_default_Setup_n9_Texture_texture    texture  float4          2d    6        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
// DrawableBuffer                    cbuffer      NA          NA    1        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
// COLOR                    0   xyzw        1     NONE   float   xyz 
// TEXCOORD                 0   xyzw        2     NONE   float   xy  
// TEXCOORD                 2   xyz         3     NONE   float   xyz 
// PSIZE                    0   x           4     NONE    uint   x   
// SV_IsFrontFace           0   x           5    FFACE    uint   x   
//
//
// 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 cb1[259], dynamicIndexed
dcl_constantbuffer cb2[95], immediateIndexed
dcl_constantbuffer cb3[9], immediateIndexed
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) t2
dcl_resource_texturecube (float,float,float,float) t3
dcl_resource_texture2d (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) 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.xyz
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyz
dcl_input_ps constant v4.x
dcl_input_ps_sgv v5.x, is_front_face
dcl_output o0.xyzw
dcl_output o1.x
// dcl_temps 34
dcl_temps 36
dcl_resource_texture2d (float,float,float,float) t125
movc r0.xyz, v5.xxxx, v3.xyzx, -v3.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
mad r1.xy, v0.xyxx, cb2[45].zwzz, cb2[45].xyxx
mad r1.zw, r1.xxxy, cb2[18].xxxy, cb2[18].zzzw
mul r2.xy, r1.zwzz, v0.wwww
mov r2.z, v0.w

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


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