//8389ee69b0cc9bde-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Thu Feb 04 22:01:49 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 [unused]
//   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 [unused]
//   float4 FogParams2;                 // Offset:  400 Size:    16 [unused]
//   float4 FogParams3;                 // Offset:  416 Size:    16 [unused]
//   float3 GlobalAmbient;              // Offset:  432 Size:    12
//   float __padding8;                  // Offset:  444 Size:     4 [unused]
//   float4 GlobalParams[16];           // Offset:  448 Size:   256
//   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 [unused]
//   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 [unused]
//   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
//
// }
//
// cbuffer IrradianceBuffer
// {
//
//   float4 IrradianceStateRed0;        // Offset:    0 Size:    16
//   float4 IrradianceStateRed1;        // Offset:   16 Size:    16
//   float4 IrradianceStateGreen0;      // Offset:   32 Size:    16
//   float4 IrradianceStateGreen1;      // Offset:   48 Size:    16
//   float4 IrradianceStateBlue0;       // Offset:   64 Size:    16
//   float4 IrradianceStateBlue1;       // Offset:   80 Size:    16
//   float4 IrradianceStateBase;        // Offset:   96 Size:    16
//   float4 IrradianceConstantData;     // Offset:  112 Size:    16 [unused]
//
// }
//
// 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
// SamplerGenericBilinearClamp       sampler      NA          NA   13        1
// p_default_Material_n169_n231_661830C016465534_cp0_Param_texture    texture  float4          2d    0        1
// p_default_Setup_n28_NormalBufferTexture_texture    texture  float4          2d    2        1
// p_default_Setup_n7_n70_Texture_texture    texture  float4          2d    3        1
// p_default_Setup_n7_n74_Texture_texture    texture  float4          2d    4        1
// p_default_Setup_n7_n133_Texture_texture    texture  float4          2d    5        1
// p_default_Setup_n7_9075B4F026705685_cp2_Param_texture    texture  float4          2d    6        1
// p_default_Setup_n7_8B09DF1018700059_cp0_Param_texture    texture  float4          2d    7        1
// p_default_Setup_n14_n70_Texture_texture    texture  float4          2d    8        1
// p_default_Setup_n14_n74_Texture_texture    texture  float4          2d    9        1
// p_default_Setup_n14_n133_Texture_texture    texture  float4          2d   10        1
// p_default_Setup_n3_n74_Texture_texture    texture  float4          2d   11        1
// p_default_Setup_n14_9075B4F026705685_cp2_Param_texture    texture  float4          2d   12        1
// p_default_Setup_n3_n109_Texture_texture    texture  float4          2d   13        1
// p_default_Setup_n3_n70_Texture_texture    texture  float4          2d   14        1
// p_default_Setup_n14_8B09DF1018700059_cp0_Param_texture    texture  float4          2d   15        1
// LightAccumulation_texture         texture  float4          2d   51        1
// SpecularAccumulation_texture      texture  float4          2d   52        1
// AmbientAccumulation_texture       texture  float4          2d   53        1
// LightDataBuffer                   texture  struct         r/o   54        1
// SceneBuffer                       cbuffer      NA          NA    2        1
// MaterialBuffer                    cbuffer      NA          NA    3        1
// IrradianceBuffer                  cbuffer      NA          NA    6        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   x z 
// TEXCOORD                 0   xyzw        2     NONE   float   xy  
// TEXCOORD                 2   xyz         3     NONE   float   xyz 
// PSIZE                    0   x           4     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[46], immediateIndexed
dcl_constantbuffer cb2[82], immediateIndexed
dcl_constantbuffer cb3[26], immediateIndexed
dcl_constantbuffer cb6[7], immediateIndexed
dcl_sampler s10, mode_default
dcl_sampler s11, mode_default
dcl_sampler s13, mode_default
dcl_resource_texture2d (float,float,float,float) t0
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) t51
dcl_resource_texture2d (float,float,float,float) t52
dcl_resource_texture2d (float,float,float,float) t53
dcl_resource_structured t54, 384 
dcl_input_ps_siv linear noperspective v0.xyw, position
dcl_input_ps linear v1.xz
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyz
dcl_output o0.xyzw
dcl_output o1.x
// dcl_temps 10
dcl_temps 12
dcl_resource_texture2d (float,float,float,float) t125
mad r0.xy, v0.xyxx, cb2[45].zwzz, cb2[45].xyxx
sample_indexable(texture2d)(float,float,float,float) r1.xyz, r0.xyxx, t2.xyzw, s10
mul r0.z, r1.y, r1.y
mad r1.w, r1.x, r1.x, -r0.z
dp4 r2.x, r1.xyzw, cb6[1].xyzw
dp4 r2.y, r1.xyzw, cb6[3].xyzw
dp4 r2.z, r1.xyzw, cb6[5].xyzw
mul r3.xyzw, r1.yzzz, r1.xxyz
dp4 r4.x, r3.xyzw, cb6[0].xyzw
dp4 r4.y, r3.xyzw, cb6[2].xyzw
dp4 r4.z, r3.xyzw, cb6[4].xyzw
add r2.xyz, r2.xyzx, r4.xyzx
add r2.xyz, r2.xyzx, cb6[6].xyzx
max r2.xyz, r2.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
add r3.xyz, cb2[27].xyzx, -cb2[38].xyzx
mad r0.z, r1.z, l(0.500000), l(0.500000)
mad r3.xyz, r0.zzzz, r3.xyzx, cb2[38].xyzx
add r2.xyz, r2.xyzx, r3.xyzx
ftoi r3.xy, v0.xyxx
mov r3.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r3.xyz, r3.xyzw, t53.xyzw
add r4.xyz, r3.xyzx, -cb3[11].xyzx
mad r4.xyz, cb3[21].zzzz, r4.xyzx, cb3[11].xyzx
sample_indexable(texture2d)(float,float,float,float) r5.xyz, r0.xyxx, t51.xyzw, s13
add r6.xyz, r5.xyzx, -cb3[11].xyzx
mad r6.xyz, cb3[22].zzzz, r6.xyzx, cb3[11].xyzx
mul r4.xyz, r4.xyzx, r6.xyzx
mul r4.xyz, r4.xyzx, cb3[22].xxxx
mul r0.zw, v2.xxxy, cb3[19].xxxy
sample_indexable(texture2d)(float,float,float,float) r0.z, r0.zwzz, t5.yzxw, s11
mul r6.xyzw, v2.xyxy, cb3[20].xyzw
sample_indexable(texture2d)(float,float,float,float) r0.w, r6.xyxx, t10.yzwx, s11
mad_sat r7.x, v1.z, cb3[12].w, cb3[23].w
mul r8.xyzw, v2.xyxy, cb3[16].zwxy
sample_indexable(texture2d)(float,float,float,float) r7.y, r8.zwzz, t12.yxzw, s11
sample_indexable(texture2d)(float,float,float,float) r6.xy, r8.xyxx, t11.xyzw, s11
mov r7.z, l(1.000000)
dp3_sat r1.w, cb3[14].xyzx, r7.xyzx
mad r0.z, -r1.w, r0.w, r0.z
mul r0.w, r0.w, r1.w
mul r7.xy, v2.xyxx, cb3[21].xyxx
sample_indexable(texture2d)(float,float,float,float) r7.y, r7.xyxx, t6.yxzw, s11
mad_sat r7.x, v1.x, cb3[5].w, cb3[4].w
mov r7.z, l(1.000000)
dp3_sat r2.w, cb3[4].xyzx, r7.xyzx
mad r0.z, r2.w, r0.z, r0.w
mul r4.xyz, r0.zzzz, r4.xyzx
add r0.zw, cb3[25].xxxy, l(0.000000, 0.000000, 1.000000, 1.000000)
ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r7.xyz, cb7[0].x, l(16), t54.xyzx
dp3 r8.x, -r7.xyzx, cb2[0].xyzx
dp3 r8.y, -r7.xyzx, cb2[1].xyzx
dp3 r8.z, -r7.xyzx, cb2[2].xyzx
movc r7.xyz, cb7[0].yyyy, r8.xyzx, l(0,0,0,0)
mad r8.xy, r0.xyxx, cb2[18].xyxx, cb2[18].zwzz
mul r8.xy, r8.xyxx, v0.wwww
mov r8.z, v0.w

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


dp3 r3.w, -r8.xyzx, -r8.xyzx
rsq r3.w, r3.w
mul r8.xyz, r3.wwww, -r8.xyzx
dp3 r9.x, r8.xyzx, cb2[0].xyzx
dp3 r9.y, r8.xyzx, cb2[1].xyzx
dp3 r9.z, r8.xyzx, cb2[2].xyzx
dp3 r3.w, -r9.xyzx, r7.xyzx
dp3_sat r4.w, r7.xyzx, r1.xyzx
add r7.xy, r3.wwww, cb3[25].xyxx
div r0.zw, r7.xxxy, r0.zzzw
max r0.zw, r0.zzzw, l(0.000000, 0.000000, 0.000000, 0.000000)
mul r7.xyz, r5.xyzx, cb3[14].wwww
mad r3.xyz, r3.xyzx, cb3[13].wwww, r7.xyzx
add r3.xyz, r3.xyzx, cb3[22].yyyy
mad r7.xyz, r0.zzzz, r4.xyzx, r3.xyzx
mad r3.xyz, r4.xyzx, r0.wwww, r3.xyzx
add r4.xyz, -r5.xyzx, r7.xyzx
mad r4.xyz, r1.wwww, r4.xyzx, r5.xyzx
add r3.xyz, r3.xyzx, -r4.xyzx
mad r3.xyz, r2.wwww, r3.xyzx, r4.xyzx
add_sat r0.z, cb3[3].w, cb3[7].w
mul r4.xyz, r0.zzzz, cb3[8].xyzx
mad r5.xyz, -r0.zzzz, cb3[8].xyzx, cb3[10].xyzx
mad r4.xyz, r1.wwww, r5.xyzx, r4.xyzx
add r5.xyz, -r4.xyzx, cb3[13].xyzx
mad r4.xyz, r2.wwww, r5.xyzx, r4.xyzx
add r3.xyz, r3.xyzx, r4.xyzx
mul r4.xy, v2.xyxx, cb3[15].xyxx
sample_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t13.yzwx, s11
add_sat r3.w, -cb3[11].w, l(1.000000)
mad_sat r0.w, r0.w, cb3[11].w, r3.w
add r0.w, r0.w, l(-1.000000)
mad r0.w, r0.z, r0.w, l(1.000000)
add r3.w, -r0.w, l(1.000000)
mad r0.w, r1.w, r3.w, r0.w
add r3.w, -r0.w, l(1.000000)
mad r0.w, r2.w, r3.w, r0.w
mad r2.xyz, r2.xyzx, r0.wwww, r3.xyzx
add r3.x, cb3[24].y, cb3[24].x
add_sat r3.x, -r3.x, l(1.000000)
sample_indexable(texture2d)(float,float,float,float) r3.y, r0.xyxx, t0.yxzw, s10
mad r3.x, cb3[24].x, r3.y, r3.x
mul r3.y, r3.y, r3.y
mad_sat r3.x, r3.y, cb3[24].y, r3.x
add r3.yzw, -cb3[3].xxyz, l(0.000000, 1.000000, 1.000000, 1.000000)
mad_sat r3.xyz, r3.xxxx, r3.yzwy, cb3[3].xyzx
mul r2.xyz, r2.xyzx, r3.xyzx
dp3 r3.w, v3.xyzx, v3.xyzx
rsq r3.w, r3.w
mul r4.xyz, r3.wwww, v3.xyzx
mul r5.xy, r0.xyxx, v0.wwww
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r0.xyxx, t52.xyzw, s13
mul r3.yzw, r3.xxyz, r7.xxyz
mul r0.x, r0.w, r3.x
mov r5.z, v0.w
mov r5.w, l(1.000000)
dp4 r0.y, cb2[15].xyzw, r5.xyzw
deriv_rty_fine r7.y, r0.y
deriv_rtx_fine r8.x, r0.y
dp4 r0.y, cb2[16].xyzw, r5.xyzw
dp4 r0.w, cb2[17].xyzw, r5.xyzw
deriv_rty_fine r7.xz, r0.wwyw
deriv_rtx_fine r8.yz, r0.yywy
mul r5.xyz, r4.yzxy, r7.xyzx
mad r5.xyz, r7.zxyz, r4.zxyz, -r5.xyzx
dp3 r7.x, r5.xyzx, r9.xyzx
dp3 r0.y, r8.xyzx, r5.xyzx
mul r5.xyz, r4.zxyz, r8.yzxy
mad r5.xyz, r4.yzxy, r8.zxyz, -r5.xyzx
dp3 r7.y, r5.xyzx, r9.xyzx
div r0.yw, r7.xxxy, r0.yyyy
deriv_rty_fine r5.xy, v2.xyxx
mul r5.xy, r0.wwww, r5.xyxx
deriv_rtx_fine r5.zw, v2.xxxy
mad r0.yw, r0.yyyy, r5.zzzw, r5.xxxy
mul r5.xy, r0.ywyy, cb3[18].zwzz
mul r0.yw, r0.yyyw, cb3[19].zzzw
sample_indexable(texture2d)(float,float,float,float) r3.x, v2.xyxx, t15.xyzw, s11
add r3.x, r3.x, l(-0.500000)
mul r3.x, r3.x, cb3[23].x
mad r5.zw, r5.xxxy, r3.xxxx, v2.xxxy
mad r5.xy, r5.xyxx, r3.xxxx, r6.zwzz
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r5.xyxx, t8.xyzw, s11
mul r5.xy, r5.zwzz, cb3[15].zwzz
sample_indexable(texture2d)(float,float,float,float) r5.xy, r5.xyxx, t9.xyzw, s11
add r3.x, -cb3[24].w, cb3[24].z
mad r3.x, r5.y, r3.x, cb3[24].w
add r5.y, cb3[6].w, -cb3[9].w
mad r5.y, r6.y, r5.y, cb3[9].w
mad r6.xyz, cb3[12].xyzx, r6.xxxx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r6.xyz, r0.zzzz, r6.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r5.y, r5.y, l(-1.000000)
mad r5.y, r0.z, r5.y, l(1.000000)
add r3.x, r3.x, -r5.y
mad r3.x, r1.w, r3.x, r5.y
sample_indexable(texture2d)(float,float,float,float) r5.y, v2.xyxx, t7.yxzw, s11
add r5.y, r5.y, l(-0.500000)
mul r5.y, r5.y, cb3[25].z
mad r5.zw, r0.yyyw, r5.yyyy, v2.xxxy
mul r5.zw, r5.zzzw, cb3[18].xxxy
sample_indexable(texture2d)(float,float,float,float) r5.zw, r5.zwzz, t4.zwxy, s11
add r6.w, cb3[8].w, -cb3[10].w
mad r5.w, r5.w, r6.w, cb3[10].w
add r5.w, -r3.x, r5.w
mad r3.x, r2.w, r5.w, r3.x
add r3.x, r3.x, l(2.000000)
mul r3.x, r3.x, l(0.010000)
mad r8.xyz, cb3[7].xyzx, r5.xxxx, -r6.xyzx
mad r6.xyz, r1.wwww, r8.xyzx, r6.xyzx
mad r5.xzw, cb3[5].xxyz, r5.zzzz, -r6.xxyz
mad r5.xzw, r2.wwww, r5.xxzw, r6.xxyz
mul r6.xyz, r3.xxxx, r5.xzwx
dp3 r3.x, r5.xzwx, l(0.299000, 0.587000, 0.114000, 0.000000)
mul r3.yzw, r3.yyzw, r6.xxyz
dp3 r5.x, r9.xyzx, r1.xyzx
mul r1.xyz, r1.xyzx, r5.xxxx
mad r1.xyz, r1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r9.xyzx
dp3 r1.x, r1.xyzx, r4.xyzx
mad_sat r1.x, cb3[25].w, r1.x, l(1.000000)
mul r1.x, r1.x, r1.x
mov_sat r1.y, r5.x
max r1.z, r5.x, l(1.000000012E-007)
add r1.z, -r1.z, l(1.000000)
add r4.x, -r1.y, l(1.000000)
log r4.x, r4.x
mul r4.y, r4.x, cb3[22].w
mul r4.x, r4.x, cb3[23].z
exp r4.x, r4.x
mul r5.xzw, r4.xxxx, cb3[6].xxyz
exp r4.x, r4.y
mul r4.xyz, r4.xxxx, cb3[9].xyzx
mad r6.x, -r1.y, cb3[21].w, l(1.000000)
mad r1.y, -r1.y, cb3[23].y, l(1.000000)
mad r5.xzw, r4.wwww, r5.xxzw, r1.yyyy
mad r4.xyz, r4.wwww, r4.xyzx, r6.xxxx
add r4.xyz, r4.xyzx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r4.xyz, r1.wwww, r4.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r5.xzw, -r4.xxyz, r5.xxzw
mad r4.xyz, r2.wwww, r5.xzwx, r4.xyzx
mul r6.xyzw, v2.xyxy, cb3[17].zwxy
sample_indexable(texture2d)(float,float,float,float) r5.xzw, r6.xyxx, t14.xwyz, s11
mad r0.yw, r0.yyyw, r5.yyyy, r6.zzzw
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r0.ywyy, t3.xyzw, s11
mad r5.xyz, r5.xzwx, cb3[2].xyzx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r0.yzw, r0.zzzz, r5.xxyz, l(0.000000, 1.000000, 1.000000, 1.000000)
mad r5.xyz, r7.xyzx, cb3[1].xyzx, -r0.yzwy
mad r0.yzw, r1.wwww, r5.xxyz, r0.yyzw
mad r5.xyz, r6.xyzx, cb3[0].xyzx, -r0.yzwy
mad r0.yzw, r2.wwww, r5.xxyz, r0.yyzw
mul r0.yzw, r4.xxyz, r0.yyzw
mad r0.yzw, r2.xxyz, r0.yyzw, r3.yyzw
max o0.xyz, r0.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
mov o0.w, l(1.000000)
mul r0.y, r1.z, r1.z
mul r0.y, r0.y, r0.y
mul r0.y, r1.z, r0.y
mad r0.y, r0.y, l(0.960000), l(0.040000)
mul r0.x, r0.y, r0.x
mul r0.x, r1.x, r0.x
mul r0.x, r3.x, r0.x
mul_sat r0.x, r0.x, l(0.250000)
sqrt o1.x, r0.x
ret 
// Approximately 219 instruction slots used
