//a72b8e6d18cc2ed3-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Thu Feb 04 22:04:22 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 [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
//   float4 PSSMToMap1Const;            // Offset:  768 Size:    16
//   float4 PSSMToMap2Lin;              // Offset:  784 Size:    16
//   float4 PSSMToMap2Const;            // Offset:  800 Size:    16
//   float4 PSSMToMap3Lin;              // Offset:  816 Size:    16
//   float4 PSSMToMap3Const;            // Offset:  832 Size:    16
//   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
//   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_n172_19B9FD0C15847118_Param_texture    texture  float4          2d    0        1
// p_default_Setup_n35_Texture_texture    texture  float4          2d    1        1
// p_default_Setup_n44_Texture_texture    texture  float4          2d    2        1
// p_default_Setup_n40_Texture_texture    texture  float4          2d    3        1
// p_default_Material_n174_n192_n199_661830C016465534_cp0_Param_texture    texture  float4          2d    4        1
// p_default_Setup_n11_n79_Texture_texture    texture  float4          2d    5        1
// p_default_Material_n172_49EF29C0204713_cp0_Param_texture    texture  float4          2d    6        1
// p_default_Setup_n26_n139_Texture_texture    texture  float4          2d    7        1
// p_default_Setup_n11_n89_Texture_texture    texture  float4          2d    8        1
// p_default_Setup_n1_n69_Texture_texture    texture  float4          2d    9        1
// p_default_Setup_n26_n137_Texture_texture    texture  float4          2d   10        1
// p_default_Setup_n1_n56_Texture_texture    texture  float4          2d   11        1
// p_default_Setup_n12_n101_Texture_texture    texture  float4          2d   12        1
// p_default_Setup_n1_n58_Texture_texture    texture  float4          2d   13        1
// p_default_Setup_n12_n89_Texture_texture    texture  float4          2d   14        1
// p_default_Setup_n15_Texture_texture    texture  float4          2d   15        1
// p_default_Setup_n19_Texture_texture    texture  float4          2d   16        1
// p_default_Setup_n39_Texture_texture    texture  float4          2d   17        1
// p_default_Setup_n38_BD8AA44026454365_cp7_Param_texture    texture  float4          2d   18        1
// p_default_Setup_n12_n79_Texture_texture    texture  float4          2d   19        1
// p_default_Setup_n11_n101_Texture_texture    texture  float4          2d   20        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
// 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   xy  
// COLOR                    1   xyzw        2     NONE   float   xy w
// TEXCOORD                 0   xyzw        3     NONE   float   xy  
// TEXCOORD                 2   xyz         4     NONE   float   xyz 
//
//
// 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[17], 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) t2
dcl_resource_texture2d (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) t7
dcl_resource_texture2d (float,float,float,float) t8
dcl_resource_texture2d (float,float,float,float) t9
dcl_resource_texture2d (float,float,float,float) t10
dcl_resource_texture2d (float,float,float,float) t11
dcl_resource_texture2d (float,float,float,float) t12
dcl_resource_texture2d (float,float,float,float) t13
dcl_resource_texture2d (float,float,float,float) t14
dcl_resource_texture2d (float,float,float,float) t15
dcl_resource_texture2d (float,float,float,float) t16
dcl_resource_texture2d (float,float,float,float) t17
dcl_resource_texture2d (float,float,float,float) t18
dcl_resource_texture2d (float,float,float,float) t19
dcl_resource_texture2d (float,float,float,float) t20
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_input_ps_siv linear noperspective v0.xyw, position
dcl_input_ps linear v1.xy
dcl_input_ps linear v2.xyw
dcl_input_ps linear v3.xy
dcl_input_ps linear v4.xyz
dcl_output o0.xyzw
dcl_output o1.x
// dcl_temps 34
dcl_temps 36
dcl_resource_texture2d (float,float,float,float) t125
dp3 r0.x, v4.xyzx, v4.xyzx
rsq r0.x, r0.x
mul r0.yzw, r0.xxxx, v4.xxyz
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 r1.z, -r2.xyzx, -r2.xyzx
rsq r1.z, r1.z
mul r3.xyz, r1.zzzz, -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, v3.xyxx
deriv_rtx_fine r1.zw, v3.xxxy
mul r5.xy, r1.xyxx, v0.wwww
mov r5.z, v0.w
mov r5.w, l(1.000000)
dp4 r3.w, cb2[15].xyzw, r5.xyzw
dp4 r4.w, cb2[16].xyzw, r5.xyzw
dp4 r5.x, cb2[17].xyzw, r5.xyzw
deriv_rty_fine r6.x, r3.w
deriv_rty_fine r6.y, r4.w
deriv_rty_fine r6.z, r5.x
deriv_rtx_fine r7.z, r3.w
deriv_rtx_fine r7.x, r4.w
deriv_rtx_fine r7.y, r5.x
sample_indexable(texture2d)(float,float,float,float) r5.xyz, v3.xyxx, t3.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r8.xy, v3.xyxx, t1.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r3.w, v3.xyxx, t2.yzwx, s11
mul r8.zw, v3.xxxy, cb3[10].xxxy
sample_indexable(texture2d)(float,float,float,float) r8.zw, r8.zwzz, t9.zwxy, s11
mad r8.zw, r8.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
mul r9.xyzw, v3.xyxy, cb3[6].zwxy
sample_indexable(texture2d)(float,float,float,float) r10.xyzw, r9.xyxx, t11.xyzw, s11
mul r11.xyzw, v3.xyxy, cb3[8].zwxy
sample_indexable(texture2d)(float,float,float,float) r9.xy, r11.xyxx, t13.xyzw, s11
mul r11.xy, r8.zwzz, r8.zwzz
mad r4.w, -r8.z, r8.z, l(1.000000)
mad r4.w, -r8.w, r8.w, r4.w
max r5.w, r11.y, r11.x
mul r5.w, r5.w, l(0.0000610351563)
max r4.w, r4.w, r5.w
rsq r4.w, r4.w
mul r8.zw, r8.zzzw, -r4.wwww
mul r10.xyzw, r10.xyzw, cb3[0].xyzw
mul r4.w, r9.x, cb3[14].z
mul r8.zw, r8.zzzw, cb3[14].yyyy
add r5.w, cb3[14].w, -cb3[15].x
mad r5.w, r9.y, r5.w, cb3[15].x
mul r12.xyz, r4.wwww, cb3[1].xyzx
mov_sat r9.xy, v1.xyxx
sample_indexable(texture2d)(float,float,float,float) r11.xy, v3.xyxx, t15.xyzw, s11
mad r11.xy, r11.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r13.xy, v3.xyxx, t16.xyzw, s11
mad r13.xy, r13.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r14.xyz, v3.xyxx, t17.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r4.w, v3.xyxx, t18.yzwx, s11
add_sat r6.w, -cb3[10].w, l(1.000000)
mad_sat r4.w, cb3[10].w, r4.w, r6.w
mov_sat r15.xyz, v2.xywx
mul r13.zw, r13.xxxy, r13.xxxy
mad r6.w, -r13.x, r13.x, l(1.000000)
mad r6.w, -r13.y, r13.y, r6.w
max r7.w, r13.w, r13.z
mul r7.w, r7.w, l(0.0000610351563)
max r6.w, r6.w, r7.w
rsq r6.w, r6.w
mul r13.xy, r13.xyxx, -r6.wwww
mul r13.zw, r11.xxxy, r11.xxxy
mad r6.w, -r11.x, r11.x, l(1.000000)
mad r6.w, -r11.y, r11.y, r6.w
max r7.w, r13.w, r13.z
mul r7.w, r7.w, l(0.0000610351563)
max r6.w, r6.w, r7.w
rsq r6.w, r6.w
mul r11.xy, r11.xyxx, -r6.wwww
dp3 r6.w, r7.zxyz, r0.yzwy
mad r7.xyz, -r6.wwww, r0.zwyz, r7.xyzx
dp3 r6.w, r6.xyzx, r0.yzwy
mad r6.xyz, -r6.wwww, r0.yzwy, r6.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 r16.xyz, r3.zzzz, r6.xyzx
mad r16.xyz, r7.zxyz, r3.yyyy, r16.xyzx
lt r1.z, l(0.000000), |r1.z|
dp3 r1.w, r16.xyzx, r16.xyzx
rsq r1.w, r1.w
mul r17.xyz, r1.wwww, r16.xyzx
movc r16.xyz, r1.zzzz, r17.xyzx, r16.xyzx
mul r17.xyz, r0.wyzw, r16.yzxy
mad r17.xyz, r0.zwyz, r16.zxyz, -r17.xyzx
mul r18.xyz, r0.wyzw, r7.xyzx
mad r7.xyz, r0.zwyz, r7.yzxy, -r18.xyzx
dp3 r1.z, r6.xyzx, r7.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, r17.xyzx
mul r1.zw, r9.yyyy, r11.xxxy
add r6.x, r9.y, r9.x
add r6.y, -r6.x, l(1.000000)
lt r6.z, l(1.000000), r6.x
div r6.xw, r9.xxxy, r6.xxxx
movc r6.xz, r6.zzzz, r6.xxwx, r9.xxyx
add r7.xyz, r14.xyzx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r7.xyz, r6.xxxx, r7.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r5.xyz, r5.xyzx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r5.xyz, r6.zzzz, r5.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
min r5.xyz, r5.xyzx, r7.xyzx
mul r5.xyz, r5.xyzx, r10.xyzx
mad r1.zw, r13.xxxy, r9.xxxx, r1.zzzw
mad r1.zw, r8.zzzw, r6.yyyy, r1.zzzw
mul r6.xyzw, v3.xyxy, cb3[7].xyzw
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r6.xyxx, t20.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r6.xy, r11.zwzz, t5.xyzw, s11
mad r6.xy, r6.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r11.xyzw, v3.xyxy, cb3[9].xyzw
sample_indexable(texture2d)(float,float,float,float) r8.zw, r11.xyxx, t8.zwxy, s11
mul r9.xy, r6.xyxx, r6.xyxx
mad r7.w, -r6.x, r6.x, l(1.000000)
mad r7.w, -r6.y, r6.y, r7.w
max r9.x, r9.y, r9.x
mul r9.x, r9.x, l(0.0000610351563)
max r7.w, r7.w, r9.x
rsq r7.w, r7.w
mul r6.xy, r6.xyxx, -r7.wwww
add r7.w, -cb3[5].w, cb3[11].y
mad r7.w, r8.w, r7.w, cb3[5].w
mad r8.x, r8.x, cb3[14].x, cb3[13].y
mul_sat r8.x, r8.x, r15.x
mad r7.xyz, cb3[5].xyzx, r7.xyzx, -r5.xyzx
mad r5.xyz, r8.xxxx, r7.xyzx, r5.xyzx
mad r6.xy, r6.xyxx, cb3[11].zzzz, -r1.zwzz
mad r1.zw, r8.xxxx, r6.xxxy, r1.zzzw
mad r7.xyz, cb3[11].xxxx, r8.zzzz, -r12.xyzx
mad r7.xyz, r8.xxxx, r7.xyzx, r12.xyzx
add r6.x, -r5.w, r7.w
mad r5.w, r8.x, r6.x, r5.w
sample_indexable(texture2d)(float,float,float,float) r8.xzw, r9.zwzz, t12.xwyz, s11
sample_indexable(texture2d)(float,float,float,float) r6.xy, r11.zwzz, t19.xyzw, s11
mad r6.xy, r6.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r6.zw, r6.zwzz, t14.zwxy, s11
mul r9.xy, r6.xyxx, r6.xyxx
mad r7.w, -r6.x, r6.x, l(1.000000)
mad r7.w, -r6.y, r6.y, r7.w
max r9.x, r9.y, r9.x
mul r9.x, r9.x, l(0.0000610351563)
max r7.w, r7.w, r9.x
rsq r7.w, r7.w
mul r6.xy, r6.xyxx, -r7.wwww
add r7.w, cb3[1].w, -cb3[15].w
mad r6.w, r6.w, r7.w, cb3[15].w
mad r7.w, r8.y, cb3[4].w, cb3[3].w
mul_sat r7.w, r7.w, r15.y
mad r8.xyz, cb3[3].xyzx, r8.xzwx, -r5.xyzx
mad r5.xyz, r7.wwww, r8.xyzx, r5.xyzx
mad r6.xy, r6.xyxx, cb3[2].wwww, -r1.zwzz
mad r1.zw, r7.wwww, r6.xxxy, r1.zzzw
mad r6.xyz, cb3[10].zzzz, r6.zzzz, -r7.xyzx
mad r6.xyz, r7.wwww, r6.xyzx, r7.xyzx
add r6.w, -r5.w, r6.w
mad r5.w, r7.w, r6.w, r5.w
mul r7.xyz, r3.xyzx, r1.wwww
mad r7.xyz, r1.zzzz, r16.xyzx, r7.xyzx
mad r7.xyz, v4.xyzx, r0.xxxx, -r7.xyzx
dp3 r1.z, r7.xyzx, r7.xyzx
rsq r1.z, r1.z
mul r7.xyz, r1.zzzz, r7.xyzx
sample_indexable(texture2d)(float,float,float,float) r1.zw, v3.xyxx, t10.zwxy, s11
mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
sample_indexable(texture2d)(float,float,float,float) r6.w, v3.xyxx, t7.yzwx, s11
max r7.w, cb3[13].w, l(0.001000)
mul r8.xy, r1.zwzz, r1.zwzz
mad r8.z, -r1.z, r1.z, l(1.000000)
mad r8.z, -r1.w, r1.w, r8.z
max r8.x, r8.y, r8.x
mul r8.x, r8.x, l(0.0000610351563)
max r8.x, r8.x, r8.z
rsq r8.x, r8.x
mul r1.zw, r1.zzzw, -r8.xxxx
mul r6.w, r15.z, r6.w
mul r3.xyz, r3.xyzx, r1.wwww
mad r3.xyz, r1.zzzz, r16.xyzx, r3.xyzx
mad r3.xyz, v4.xyzx, r0.xxxx, -r3.xyzx
dp3 r0.x, r3.xyzx, r3.xyzx
rsq r0.x, r0.x
mul r3.xyz, r0.xxxx, r3.xyzx
mad r8.xyz, r5.xyzx, cb3[12].yyyy, -r5.xyzx
mad r5.xyz, r15.zzzz, r8.xyzx, r5.xyzx
mad r0.x, r5.w, cb3[11].w, -r5.w
mad r0.x, r15.z, r0.x, r5.w
mad r8.xyz, r6.xyzx, cb3[12].xxxx, -r6.xyzx
mad r6.xyz, r15.zzzz, r8.xyzx, r6.xyzx
mad r1.z, r0.x, cb3[12].z, -r0.x
mad r0.x, r6.w, r1.z, r0.x
mad r8.xyz, r6.xyzx, cb3[12].wwww, -r6.xyzx
mad r6.xyz, r6.wwww, r8.xyzx, r6.xyzx
mad r8.xyz, r5.xyzx, cb3[4].xyzx, -r5.xyzx
mad r5.xyz, r6.wwww, r8.xyzx, r5.xyzx
dp3_sat r1.z, r4.xyzx, r3.xyzx
max r1.w, |r2.y|, |r2.x|
add r8.xyz, -r1.wwww, cb2[70].yzwy
div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.z
mov r9.z, l(1.000000)
mov r2.w, l(1.000000)
mov r11.xyz, r2.xyzx
mov r11.w, l(1.000000)
mov r10.xyz, l(0,0,0,0)
mov r12.xyz, l(0,0,0,0)
mov r5.w, l(0)
loop 
  uge r8.w, r5.w, cb7[0].y
  breakc_nz r8.w
  iadd r8.w, r5.w, cb7[0].x
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r13.xyz, r8.w, l(16), t54.xyzx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r14.xyz, r8.w, l(64), t54.xyzx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r15.xyz, r8.w, l(112), t54.xyzx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r9.w, r8.w, l(156), t54.xxxx
  ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r12.w, r8.w, l(172), t54.xxxx
  dp3 r16.x, -r13.xyzx, cb2[0].xyzx
  dp3 r16.y, -r13.xyzx, cb2[1].xyzx
  dp3 r16.z, -r13.xyzx, cb2[2].xyzx
  if_nz r9.w
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r13.xyzw, r8.w, l(192), t54.xyzw
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r17.xyzw, r8.w, l(208), t54.xyzw
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r18.xyzw, r8.w, l(224), t54.xyzw
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r19.xyzw, r8.w, l(240), t54.xyzw
    mov r20.x, r13.x
    mov r20.y, r17.x
    mov r20.z, r18.x
    mov r20.w, r19.x
    dp4 r20.x, r2.xyzw, r20.xyzw
    mov r21.x, r13.y
    mov r21.y, r17.y
    mov r21.z, r18.y
    mov r21.w, r19.y
    dp4 r20.y, r2.xyzw, r21.xyzw
    mov r21.x, r13.z
    mov r21.y, r17.z
    mov r21.z, r18.z
    mov r21.w, r19.z
    dp4 r20.z, r2.xyzw, r21.xyzw
    mov r19.x, r13.w
    mov r19.y, r17.w
    mov r19.z, r18.w
    dp4 r9.w, r2.xyzw, r19.xyzw
    add r13.xyzw, -r9.wwww, cb2[53].xyzw
    min r13.yzw, r8.xxyz, r13.yyzw
    lt r13.yzw, l(0.000000, 0.000000, 0.000000, 0.000000), r13.yyzw
    movc r17.xyz, r13.yyyy, cb2[47].xyzx, cb2[47].wwww
    movc r18.xyz, r13.yyyy, cb2[48].xyzx, cb2[48].wwww
    movc r17.xyz, r13.zzzz, cb2[49].xyzx, r17.xyzx
    movc r18.xyz, r13.zzzz, cb2[50].xyzx, r18.xyzx
    movc r17.xyz, r13.wwww, cb2[51].xyzx, r17.xyzx
    movc r13.yzw, r13.wwww, cb2[52].xxyz, r18.xxyz
    mad r13.yzw, r20.xxyz, r17.xxyz, r13.yyzw
    lt r9.w, l(0.000000), r13.x
    mad r17.xyzw, cb2[71].zwzw, l(-0.500000, 0.500000, 0.500000, 0.500000), r13.yzyz
    sample_c_lz_indexable(texture2d)(float,float,float,float) r13.x, r17.xyxx, t43.xxxx, s14, r13.w
    sample_c_lz_indexable(texture2d)(float,float,float,float) r14.w, r17.zwzz, t43.xxxx, s14, r13.w
    add r13.x, r13.x, r14.w
    mad r17.xyzw, cb2[71].zwzw, l(-0.500000, -0.500000, 0.500000, -0.500000), r13.yzyz
    sample_c_lz_indexable(texture2d)(float,float,float,float) r13.y, r17.xyxx, t43.xxxx, s14, r13.w
    add r13.x, r13.y, r13.x
    sample_c_lz_indexable(texture2d)(float,float,float,float) r13.y, r17.zwzz, t43.xxxx, s14, r13.w
    add r13.x, r13.y, r13.x
    mul r13.x, r13.x, l(0.250000)
    movc r9.w, r9.w, r13.x, l(1.000000)
  else 
    mov r9.w, l(1.000000)
  endif 
  if_nz r12.w
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r13.xyzw, r8.w, l(256), t54.xyzw
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r17.xyzw, r8.w, l(272), t54.xyzw
    ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r18.xyzw, r8.w, l(288), t54.xyzw
    dp4 r8.w, r13.xyzw, r11.xyzw
    dp4 r12.w, r17.xyzw, r11.xyzw
    dp4 r13.x, r18.xyzw, r11.xyzw
    div r17.x, r8.w, r13.x
    div r17.y, r12.w, r13.x
    sample_l_indexable(texture2d)(float,float,float,float) r13.xyz, r17.xyxx, t40.xyzw, s12, l(0.000000)
  else 
    mov r13.xyz, l(1.000000,1.000000,1.000000,0)
  endif 
  dp3 r8.w, r7.xyzx, r16.xyzx
  mov_sat r9.x, r8.w
  mad r9.y, r8.w, l(0.500000), l(0.500000)
  dp3 r8.w, r9.xyzx, r15.xyzx
  add r15.xyz, r4.xyzx, r16.xyzx
  dp3 r9.x, r15.xyzx, r15.xyzx
  rsq r9.x, r9.x
  mul r15.xyz, r9.xxxx, r15.xyzx
  dp3_sat r9.x, r16.xyzx, r3.xyzx
  dp3_sat r9.y, r4.xyzx, r15.xyzx
  dp3_sat r12.w, r15.xyzx, r3.xyzx
  log r13.w, r12.w
  mul r13.w, r7.w, r13.w
  exp r13.w, r13.w
  max r9.y, r9.y, l(1.192092896E-007)
  min r14.w, r1.z, r9.x
  add r12.w, r12.w, r12.w
  mul r15.x, r12.w, r14.w
  ge r15.x, r9.y, r15.x
  eq r14.w, r1.z, r14.w
  div r9.x, r9.x, r1.z
  movc r9.x, r14.w, l(1.000000), r9.x
  mul r9.x, r12.w, r9.x
  div r9.x, r9.x, r9.y
  movc r9.x, r15.x, r9.x, r1.w
  mul r9.x, r13.w, r9.x
  mul r14.xyz, r14.xyzx, r8.wwww
  mul r13.xyz, r13.xyzx, r14.xyzx
  mad r10.xyz, r13.xyzx, r9.wwww, r10.xyzx
  mad r12.xyz, r9.xxxx, r6.wwww, r12.xyzx
  iadd r5.w, r5.w, l(1)
endloop 
if_nz cb7[0].x
  mul r8.xy, v0.xyxx, l(0.062500, 0.062500, 0.000000, 0.000000)
  round_ni r8.xy, r8.xyxx
  utof r2.w, cb7[0].z
  mad r2.w, r8.y, r2.w, r8.x
  ftou r2.w, r2.w
  ishl r2.w, r2.w, l(1)
  dp3 r5.w, r11.xyzx, r11.xyzx
  sqrt r5.w, r5.w
  mov r8.z, l(1.000000)
  mov r9.z, l(1.000000)
  mov r13.xyz, r11.xyzx
  mov r13.w, l(1.000000)
  mov r11.w, l(1.000000)
  mov r14.z, l(1.000000)
  mov r15.xyz, r10.xyzx
  mov r16.xyz, r12.xyzx
  mov r8.w, l(0)
  loop 
    uge r9.w, r8.w, l(2)
    breakc_nz r9.w
    iadd r9.w, r2.w, r8.w
    ld_indexable(buffer)(uint,uint,uint,uint) r17.xyzw, r9.wwww, t55.xyzw
    ushr r18.xyzw, r17.xyzw, l(30, 30, 30, 30)
    iadd r9.w, r18.y, r18.x
    iadd r9.w, r18.z, r9.w
    iadd r9.w, r18.w, r9.w
    mov r18.xyz, r15.xyzx
    mov r19.xyz, r16.xyzx
    mov r12.w, l(0)
    loop 
      uge r14.w, r12.w, r9.w
      breakc_nz r14.w
      ult r20.xyz, r12.wwww, l(3, 6, 9, 0)
      iadd r21.xyz, r12.wwww, l(-3, -6, -9, 0)
      movc r14.w, r20.z, r21.y, r21.z
      movc r14.w, r20.y, r21.x, r14.w
      movc r14.w, r20.x, r12.w, r14.w
      movc r15.w, r20.z, r17.z, r17.w
      movc r15.w, r20.y, r17.y, r15.w
      movc r15.w, r20.x, r17.x, r15.w
      imul null, r14.w, r14.w, l(10)
      ushr r14.w, r15.w, r14.w
      and r14.w, r14.w, l(1023)
      ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r15.w, r14.w, l(140), t54.xxxx
      mov r20.xyz, r18.xyzx
      mov r21.xyz, r19.xyzx
      mov r16.w, r12.w
      mov r18.w, r14.w
      mov r19.w, r15.w
      loop 
        ult r20.w, r16.w, r9.w
        ieq r22.xy, r19.wwww, l(0, 1, 0, 0)
        or r21.w, r22.y, r22.x
        and r20.w, r20.w, r21.w
        breakc_z r20.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r22.xzw, r18.w, l(0), t54.xxyz
        if_nz r22.y
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r23.xyzw, r18.w, l(12), t54.xyzw
          add r24.xyz, r11.xyzx, -r22.xzwx
          dp3 r20.w, r24.xyzx, r23.yzwy
          max r20.w, r20.w, l(0.000000)
          min r20.w, r23.x, r20.w
          mad r22.xzw, r20.wwww, r23.yyzw, r22.xxzw
        endif 
        add r22.xyz, -r2.xyzx, r22.xzwx
        dp3 r20.w, r22.xyzx, r22.xyzx
        sqrt r20.w, r20.w
        div r22.xyz, r22.xyzx, r20.wwww
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r23.xyz, r18.w, l(64), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.xyz, r18.w, l(112), t54.xyzx
        dp3 r25.x, r22.xyzx, cb2[0].xyzx
        dp3 r25.y, r22.xyzx, cb2[1].xyzx
        dp3 r25.z, r22.xyzx, cb2[2].xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r21.w, r18.w, l(32), t54.xxxx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r22.yz, r18.w, l(40), t54.xxyx
        mad_sat r22.x, r20.w, r21.w, r22.y
        sample_l_indexable(texture2d)(float,float,float,float) r20.w, r22.xzxx, t44.xywz, s13, l(0.000000)
        dp3 r21.w, r7.xyzx, r25.xyzx
        mov_sat r8.x, r21.w
        mad r8.y, r21.w, l(0.500000), l(0.500000)
        dp3 r8.x, r8.xyzx, r24.xyzx
        add r22.xyz, r4.xyzx, r25.xyzx
        dp3 r8.y, r22.xyzx, r22.xyzx
        rsq r8.y, r8.y
        mul r22.xyz, r8.yyyy, r22.xyzx
        dp3_sat r8.y, r25.xyzx, r3.xyzx
        dp3_sat r21.w, r4.xyzx, r22.xyzx
        dp3_sat r22.x, r22.xyzx, r3.xyzx
        log r22.y, r22.x
        mul r22.y, r7.w, r22.y
        exp r22.y, r22.y
        max r21.w, r21.w, l(1.192092896E-007)
        min r22.z, r1.z, r8.y
        add r22.x, r22.x, r22.x
        mul r22.w, r22.x, r22.z
        ge r22.w, r21.w, r22.w
        eq r22.z, r1.z, r22.z
        div r8.y, r8.y, r1.z
        movc r8.y, r22.z, l(1.000000), r8.y
        mul r8.y, r22.x, r8.y
        div r8.y, r8.y, r21.w
        movc r8.y, r22.w, r8.y, r1.w
        mul r8.y, r22.y, r8.y
        mul r22.xyz, r23.xyzx, r8.xxxx
        mad r20.xyz, r22.xyzx, r20.wwww, r20.xyzx
        mad r21.xyz, r8.yyyy, r6.wwww, r21.xyzx
        iadd r8.x, r16.w, l(1)
        ult r8.y, r8.x, r9.w
        if_nz r8.y
          ult r22.xyz, r8.xxxx, l(3, 6, 9, 0)
          iadd r23.xyz, r16.wwww, l(-2, -5, -8, 0)
          movc r8.y, r22.z, r23.y, r23.z
          movc r8.y, r22.y, r23.x, r8.y
          movc r8.y, r22.x, r8.x, r8.y
          movc r20.w, r22.z, r17.z, r17.w
          movc r20.w, r22.y, r17.y, r20.w
          movc r20.w, r22.x, r17.x, r20.w
          imul null, r8.y, r8.y, l(10)
          ushr r8.y, r20.w, r8.y
          and r18.w, r8.y, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r19.w, r18.w, l(140), t54.xxxx
        endif 
        mov r16.w, r8.x
      endloop 
      mov r22.xyz, r20.xyzx
      mov r23.xyz, r21.xyzx
      mov r8.x, r16.w
      mov r8.y, r18.w
      mov r14.w, r19.w
      loop 
        ult r15.w, r8.x, r9.w
        ieq r24.xy, r14.wwww, l(2, 3, 0, 0)
        or r20.w, r24.y, r24.x
        and r15.w, r15.w, r20.w
        breakc_z r15.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.xzw, r8.y, l(16), t54.xxyz
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyz, r8.y, l(0), t54.xyzx
        if_nz r24.y
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.xyz, r8.y, l(128), t54.xyzx
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r15.w, r8.y, l(12), t54.xxxx
          add r27.xyz, r11.xyzx, -r25.xyzx
          dp3 r20.w, r27.xyzx, r26.xyzx
          max r20.w, r20.w, l(0.000000)
          min r15.w, r15.w, r20.w
          mad r25.xyz, r15.wwww, r26.xyzx, r25.xyzx
        endif 
        add r25.xyz, -r2.xyzx, r25.xyzx
        dp3 r15.w, r25.xyzx, r25.xyzx
        sqrt r15.w, r15.w
        div r25.xyz, r25.xyzx, r15.wwww
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.xyz, r8.y, l(64), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r27.xyz, r8.y, l(112), t54.xyzx
        dp3 r28.x, r25.xyzx, cb2[0].xyzx
        dp3 r28.y, r25.xyzx, cb2[1].xyzx
        dp3 r28.z, r25.xyzx, cb2[2].xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r29.xyz, r8.y, l(32), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r30.xyzw, r8.y, l(44), t54.xyzw
        mov r29.w, r30.x
        mad r29.xy, r15.wwww, r29.xyxx, r29.zwzz
        dp3 r20.w, r25.xyzx, -r24.xzwx
        mad_sat r21.w, r20.w, r30.y, r30.z
        mul r22.w, r21.w, r21.w
        mad r21.w, -r21.w, l(2.000000), l(3.000000)
        mul r21.w, r21.w, r22.w
        mul r21.w, r21.w, r21.w
        mul r15.w, r15.w, r20.w
        lt r15.w, r15.w, r30.w
        movc r15.w, r15.w, l(0), r21.w
        sample_l_indexable(texture2d)(float,float,float,float) r20.w, r29.xyxx, t44.xywz, s13, l(0.000000)
        mul r15.w, r15.w, r20.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r20.w, r8.y, l(172), t54.xxxx
        if_nz r20.w
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r20.w, r8.y, l(188), t54.xxxx
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.xyzw, r8.y, l(256), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyzw, r8.y, l(272), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r29.xyzw, r8.y, l(288), t54.xyzw
          dp4 r21.w, r24.xyzw, r13.xyzw
          dp4 r22.w, r25.xyzw, r13.xyzw
          dp4 r23.w, r29.xyzw, r13.xyzw
          div r24.x, r21.w, r23.w
          div r24.y, r22.w, r23.w
          utof r24.z, r20.w
          sample_l_indexable(texture2darray)(float,float,float,float) r24.xyz, r24.xyzx, t56.xyzw, s12, l(0.000000)
        else 
          mov r24.xyz, l(1.000000,1.000000,1.000000,0)
        endif 
        dp3 r20.w, r24.xyzx, r24.xyzx
        mul r20.w, r15.w, r20.w
        lt r20.w, cb2[24].w, r20.w
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r21.w, r8.y, l(156), t54.xxxx
        ine r21.w, r21.w, l(0)
        and r20.w, r20.w, r21.w
        if_nz r20.w
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyzw, r8.y, l(192), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r29.xyzw, r8.y, l(208), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r30.xyzw, r8.y, l(224), t54.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r31.xyzw, r8.y, l(240), t54.xyzw
          mov r32.x, r25.x
          mov r32.y, r29.x
          mov r32.z, r30.x
          mov r32.w, r31.x
          dp4 r32.x, r11.xyzw, r32.xyzw
          mov r33.x, r25.y
          mov r33.y, r29.y
          mov r33.z, r30.y
          mov r33.w, r31.y
          dp4 r32.y, r11.xyzw, r33.xyzw
          mov r33.x, r25.z
          mov r33.y, r29.z
          mov r33.z, r30.z
          mov r33.w, r31.z
          dp4 r20.w, r11.xyzw, r33.xyzw
          mov r31.x, r25.w
          mov r31.y, r29.w
          mov r31.z, r30.w
          dp4 r21.w, r11.xyzw, r31.xyzw
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyzw, r8.y, l(80), t54.xyzw
          mad_sat r25.xy, r5.wwww, r25.xyxx, r25.zwzz
          div r29.xyzw, r32.xyxy, r21.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) r21.w, r30.xyxx, t43.xxxx, s14, r20.w
          sample_c_lz_indexable(texture2d)(float,float,float,float) r22.w, r30.zwzz, t43.xxxx, s14, r20.w
          add r21.w, r21.w, r22.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) r22.w, r29.xyxx, t43.xxxx, s14, r20.w
          add r21.w, r21.w, r22.w
          sample_c_lz_indexable(texture2d)(float,float,float,float) r20.w, r29.zwzz, t43.xxxx, s14, r20.w
          add r20.w, r20.w, r21.w
          mul r20.w, r20.w, l(0.250000)
          mad r20.w, r20.w, r25.x, r25.y
        else 
          mov r20.w, l(1.000000)
        endif 
        dp3 r21.w, r7.xyzx, r28.xyzx
        mov_sat r9.x, r21.w
        mad r9.y, r21.w, l(0.500000), l(0.500000)
        dp3 r9.x, r9.xyzx, r27.xyzx
        add r25.xyz, r4.xyzx, r28.xyzx
        dp3 r9.y, r25.xyzx, r25.xyzx
        rsq r9.y, r9.y
        mul r25.xyz, r9.yyyy, r25.xyzx
        dp3_sat r9.y, r28.xyzx, r3.xyzx
        dp3_sat r21.w, r4.xyzx, r25.xyzx
        dp3_sat r22.w, r25.xyzx, r3.xyzx
        log r23.w, r22.w
        mul r23.w, r7.w, r23.w
        exp r23.w, r23.w
        max r21.w, r21.w, l(1.192092896E-007)
        min r24.w, r1.z, r9.y
        add r22.w, r22.w, r22.w
        mul r25.x, r22.w, r24.w
        ge r25.x, r21.w, r25.x
        eq r24.w, r1.z, r24.w
        div r9.y, r9.y, r1.z
        movc r9.y, r24.w, l(1.000000), r9.y
        mul r9.y, r22.w, r9.y
        div r9.y, r9.y, r21.w
        movc r9.y, r25.x, r9.y, r1.w
        mul r9.y, r23.w, r9.y
        mul r25.xyz, r26.xyzx, r9.xxxx
        mul r24.xyz, r24.xyzx, r25.xyzx
        mul r24.xyz, r20.wwww, r24.xyzx
        mad r22.xyz, r24.xyzx, r15.wwww, r22.xyzx
        mad r23.xyz, r9.yyyy, r6.wwww, r23.xyzx
        iadd r9.x, r8.x, l(1)
        ult r9.y, r9.x, r9.w
        if_nz r9.y
          ult r24.xyz, r9.xxxx, l(3, 6, 9, 0)
          iadd r25.xyz, r8.xxxx, l(-2, -5, -8, 0)
          movc r9.y, r24.z, r25.y, r25.z
          movc r9.y, r24.y, r25.x, r9.y
          movc r9.y, r24.x, r9.x, r9.y
          movc r15.w, r24.z, r17.z, r17.w
          movc r15.w, r24.y, r17.y, r15.w
          movc r15.w, r24.x, r17.x, r15.w
          imul null, r9.y, r9.y, l(10)
          ushr r9.y, r15.w, r9.y
          and r8.y, r9.y, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r14.w, r8.y, l(140), t54.xxxx
        endif 
        mov r8.x, r9.x
      endloop 
      mov r18.xyz, r22.xyzx
      mov r19.xyz, r23.xyzx
      mov r9.xy, r8.xyxx
      mov r15.w, r14.w
      loop 
        ult r20.w, r9.x, r9.w
        ieq r21.w, r15.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) r24.xyz, r9.y, l(0), t54.xyzx
        add r24.xyz, -r2.xyzx, r24.xyzx
        dp3 r20.w, r24.xyzx, r24.xyzx
        sqrt r20.w, r20.w
        div r25.xyz, r24.xyzx, r20.wwww
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.xyz, r9.y, l(64), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r27.xyz, r9.y, l(112), t54.xyzx
        dp3 r28.x, r25.xyzx, cb2[0].xyzx
        dp3 r28.y, r25.xyzx, cb2[1].xyzx
        dp3 r28.z, r25.xyzx, cb2[2].xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyz, r9.y, l(16), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r29.y, r9.y, l(44), t54.xxxx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r30.xyz, r9.y, l(128), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r31.xyz, r9.y, l(144), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r32.xyz, r9.y, l(160), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r33.xyz, r9.y, l(176), t54.xyzx
        dp3 r30.x, r24.xyzx, r30.xyzx
        dp3 r30.y, r24.xyzx, r25.xyzx
        dp3 r30.z, r24.xyzx, r31.xyzx
        add r24.xyz, -r32.xyzx, |r30.xyzx|
        mul_sat r24.xyz, r33.xyzx, r24.xyzx
        max r20.w, r24.y, r24.x
        max r29.x, r24.z, r20.w
        sample_l_indexable(texture2d)(float,float,float,float) r20.w, r29.xyxx, t44.xywz, s13, l(0.000000)
        dp3 r21.w, r7.xyzx, r28.xyzx
        mov_sat r14.x, r21.w
        mad r14.y, r21.w, l(0.500000), l(0.500000)
        dp3 r14.x, r14.xyzx, r27.xyzx
        add r24.xyz, r4.xyzx, r28.xyzx
        dp3 r14.y, r24.xyzx, r24.xyzx
        rsq r14.y, r14.y
        mul r24.xyz, r14.yyyy, r24.xyzx
        dp3_sat r14.y, r28.xyzx, r3.xyzx
        dp3_sat r21.w, r4.xyzx, r24.xyzx
        dp3_sat r22.w, r24.xyzx, r3.xyzx
        log r23.w, r22.w
        mul r23.w, r7.w, r23.w
        exp r23.w, r23.w
        max r21.w, r21.w, l(1.192092896E-007)
        min r24.x, r1.z, r14.y
        add r22.w, r22.w, r22.w
        mul r24.y, r22.w, r24.x
        ge r24.y, r21.w, r24.y
        eq r24.x, r1.z, r24.x
        div r14.y, r14.y, r1.z
        movc r14.y, r24.x, l(1.000000), r14.y
        mul r14.y, r22.w, r14.y
        div r14.y, r14.y, r21.w
        movc r14.y, r24.y, r14.y, r1.w
        mul r14.y, r23.w, r14.y
        mul r24.xyz, r26.xyzx, r14.xxxx
        mad r18.xyz, r24.xyzx, r20.wwww, r18.xyzx
        mad r19.xyz, r14.yyyy, r6.wwww, r19.xyzx
        iadd r14.x, r9.x, l(1)
        ult r14.y, r14.x, r9.w
        if_nz r14.y
          ult r24.xyz, r14.xxxx, l(3, 6, 9, 0)
          iadd r25.xyz, r9.xxxx, l(-2, -5, -8, 0)
          movc r14.y, r24.z, r25.y, r25.z
          movc r14.y, r24.y, r25.x, r14.y
          movc r14.y, r24.x, r14.x, r14.y
          movc r20.w, r24.z, r17.z, r17.w
          movc r20.w, r24.y, r17.y, r20.w
          movc r20.w, r24.x, r17.x, r20.w
          imul null, r14.y, r14.y, l(10)
          ushr r14.y, r20.w, r14.y
          and r9.y, r14.y, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r15.w, r9.y, l(140), t54.xxxx
        endif 
        mov r9.x, r14.x
      endloop 
      uge r9.y, r15.w, l(5)
      iadd r12.w, -r9.y, r9.x
    endloop 
    ult r9.y, r9.w, l(12)
    if_nz r9.y
      mov r15.xyz, r18.xyzx
      mov r16.xyz, r19.xyzx
      break 
    endif 
    iadd r8.w, r8.w, l(1)
    mov r15.xyz, r18.xyzx
    mov r16.xyz, r19.xyzx
  endloop 
  mov r10.xyz, r15.xyzx
  mov r12.xyz, r16.xyzx
endif 
sample_indexable(texture2d)(float,float,float,float) r2.xyz, r1.xyxx, t0.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r3.xyz, r1.xyxx, t6.xyzw, s11
dp3 r1.z, r6.xyzx, l(0.299000, 0.587000, 0.114000, 0.000000)
max o0.w, r10.w, l(0.000000)
add r0.x, r0.x, l(2.000000)
mul r0.x, r0.x, l(0.010000)
mul r6.xyz, r0.xxxx, r6.xyzx
add r8.xyz, -r2.xyzx, r10.xyzx
mad r2.xyz, r3.wwww, r8.xyzx, r2.xyzx
sample_indexable(texture2d)(float,float,float,float) r0.x, r1.xyxx, t4.xyzw, s10
add r1.x, cb3[15].z, cb3[15].y
add_sat r1.x, -r1.x, l(1.000000)
mul r1.y, r0.x, r0.x
mad r0.x, cb3[15].y, r0.x, r1.x
mad_sat r0.x, r1.y, cb3[15].z, r0.x
add r1.xyw, -cb3[2].xyxz, l(1.000000, 1.000000, 0.000000, 1.000000)
mad_sat r1.xyw, r0.xxxx, r1.xyxw, cb3[2].xyxz
mul r3.xyz, r3.xyzx, r1.xywx
ftoi r8.xy, v0.xyxx
mov r8.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r8.xyz, r8.xyzw, t53.xyzw
mad r2.xyz, r4.wwww, r8.xyzx, r2.xyzx
mul r2.xyz, r1.xywx, r2.xyzx
mul r0.x, r1.x, r4.w
mul r1.xyw, r6.xyxz, r3.xyxz
add r2.w, -cb3[13].x, cb3[13].z
mad r3.xyz, r2.xyzx, r2.wwww, cb3[13].xxxx
dp3 r2.w, r7.xyzx, r4.xyzx
max r3.w, r2.w, l(1.000000012E-007)
add r3.w, -r3.w, l(1.000000)
mul r4.w, r3.w, r3.w
mul r4.w, r4.w, r4.w
mul r3.w, r3.w, r4.w
mad r3.w, r3.w, l(0.960000), l(0.040000)
mul r6.xyz, r7.xyzx, r2.wwww
mad r4.xyz, r6.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r4.xyzx
dp3 r0.y, r4.xyzx, r0.yzwy
mad_sat r0.y, cb3[16].y, r0.y, l(1.000000)
mul r0.y, r0.y, r0.y
mul r0.y, r3.w, r0.y
mul r0.y, r0.y, cb3[16].x
mul r0.x, r0.x, r0.y
mul r0.x, r1.z, r0.x
mad r0.yzw, r2.xxyz, r5.xxyz, r1.xxyw
mad r0.yzw, r3.xxyz, r12.xxyz, r0.yyzw
max o0.xyz, r0.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
mul_sat r0.x, r0.x, l(0.250000)
sqrt o1.x, r0.x
ret 
// Approximately 749 instruction slots used
