//93898ab20b3af843-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Sat Feb 13 12:39:48 2016
//
//
// Buffer Definitions: 
//
// 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 [unused]
//   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 [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 [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
//   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 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_n226_n247_n254_661830C016465534_cp0_Param_texture    texture  float4          2d    0        1
// p_default_Material_n232_n234_Texture_texture    texture  float4          2d    1        1
// p_default_Setup_n1_n67_Texture_texture    texture  float4          2d    2        1
// p_default_Setup_n1_n65_Texture_texture    texture  float4          2d    3        1
// p_default_Setup_n34_n67_Texture_texture    texture  float4          2d    4        1
// p_default_Setup_n34_n65_Texture_texture    texture  float4          2d    5        1
// p_default_Setup_n34_470EB2D06866788_cp8_Param_texture    texture  float4          2d    6        1
// p_default_Setup_n33_n67_Texture_texture    texture  float4          2d    7        1
// p_default_Setup_n19_n65_Texture_texture    texture  float4          2d    8        1
// p_default_Setup_n33_n65_Texture_texture    texture  float4          2d    9        1
// p_default_Setup_n19_n67_Texture_texture    texture  float4          2d   10        1
// p_default_Setup_n33_470EB2D06866788_cp8_Param_texture    texture  float4          2d   11        1
// p_default_Setup_n38_Texture_texture    texture  float4          2d   12        1
// p_default_Setup_n40_n67_Texture_texture    texture  float4          2d   13        1
// p_default_Setup_n45_Texture_texture    texture  float4          2d   14        1
// p_default_Setup_n40_n65_Texture_texture    texture  float4          2d   15        1
// p_default_Setup_n8_NormalBufferTexture_texture    texture  float4          2d   16        1
// p_default_Setup_n23_Texture_texture    texture  float4          2d   17        1
// p_default_Setup_n44_BD8AA44026454365_cp7_Param_texture    texture  float4          2d   18        1
// p_default_Setup_n16_n129_4DF3FB3016561432_cp3_Param_texture    texture  float4          2d   19        1
// p_default_Setup_n16_n124_Texture_texture    texture  float4          2d   20        1
// p_default_Setup_n16_n112_Texture_texture    texture  float4          2d   21        1
// p_default_Setup_n16_47D689602565118_cp5_Param_texture    texture  float4          2d   22        1
// p_default_Setup_n5_471057409100914_cp8_Param_texture    texture  float4          2d   23        1
// p_default_Setup_n5_n92_Texture_texture    texture  float4          2d   24        1
// p_default_Setup_n5_n112_Texture_texture    texture  float4          2d   25        1
// LightAccumulation_texture         texture  float4          2d   51        1
// SpecularAccumulation_texture      texture  float4          2d   52        1
// AmbientAccumulation_texture       texture  float4          2d   53        1
// DrawableBuffer                    cbuffer      NA          NA    1        1
// SceneBuffer                       cbuffer      NA          NA    2        1
// MaterialBuffer                    cbuffer      NA          NA    3        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy w
// COLOR                    1   xyzw        1     NONE   float   x zw
// TEXCOORD                 0   xyzw        2     NONE   float   xy  
// TEXCOORD                 2   xyz         3     NONE   float   xyz 
// PSIZE                    0   x           4     NONE    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 cb1[259], dynamicIndexed
dcl_constantbuffer cb2[95], immediateIndexed
dcl_constantbuffer cb3[35], 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) 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) t21
dcl_resource_texture2d (float,float,float,float) t22
dcl_resource_texture2d (float,float,float,float) t23
dcl_resource_texture2d (float,float,float,float) t24
dcl_resource_texture2d (float,float,float,float) t25
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_input_ps_siv linear noperspective v0.xyw, position
dcl_input_ps linear v1.xzw
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyz
dcl_input_ps constant v4.x
dcl_output o0.xyzw
dcl_output o1.x
// dcl_temps 15
dcl_temps 17
dcl_resource_texture2d (float,float,float,float) t125
mul r0.xy, v0.xyxx, l(0.250000, 0.250000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r0.x, r0.xyxx, t1.xyzw, s11
mov r0.y, v4.x
mad r0.x, r0.x, cb1[r0.y + 3].y, cb1[r0.y + 3].z
mul r1.xyzw, v2.xyxy, cb3[21].zwxy
sample_indexable(texture2d)(float,float,float,float) r2.xyzw, r1.xyxx, t8.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r0.yz, r1.zwzz, t2.zxyw, s11
mul r1.xyzw, r2.xyzw, cb3[4].xyzw
max r0.w, r1.w, l(0.000000)
add r1.w, r0.w, -cb1[2].x
mov o0.w, r0.w
min r0.x, r0.x, r1.w
lt r0.x, r0.x, l(0.000000)
discard_nz r0.x
add r0.x, -cb3[30].y, cb3[30].z
mad r0.x, r0.z, r0.x, cb3[30].y
mul r0.y, r0.y, cb3[31].x
mul r2.xyzw, v2.xyxy, cb3[17].zwxy
sample_indexable(texture2d)(float,float,float,float) r0.z, r2.xyxx, t19.yzxw, s11
sample_indexable(texture2d)(float,float,float,float) r2.xyz, r2.zwzz, t5.xyzw, s11
mul r0.z, r0.z, cb3[15].w
dp3 r0.w, v3.xyzx, v3.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, v3.xyzx
mov r4.z, v0.w
mad r5.xy, v0.xyxx, cb2[45].zwzz, cb2[45].xyxx
mad r5.zw, r5.xxxy, cb2[18].xxxy, cb2[18].zzzw
mul r4.xy, r5.zwzz, v0.wwww

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


dp3 r0.w, -r4.xyzx, -r4.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, -r4.xyzx
dp3 r6.z, r4.xyzx, cb2[2].xyzx
dp3 r6.x, r4.xyzx, cb2[0].xyzx
dp3 r6.y, r4.xyzx, cb2[1].xyzx
dp3 r0.w, -r6.xyzx, r3.xyzx
add r0.w, r0.w, r0.w
mad r4.xy, r3.xyxx, -r0.wwww, -r6.xyxx
mul r4.xy, r4.xyxx, cb3[26].zzzz
sample_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t19.xzwy, s11
mul_sat r0.z, r0.z, r0.w
add r0.w, cb3[29].y, -cb3[31].y
mul r4.xyzw, v2.xyxy, cb3[16].zwxy
sample_indexable(texture2d)(float,float,float,float) r4.xy, r4.xyxx, t20.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r7.y, r4.zwzz, t6.yxzw, s11
mad r0.w, r4.y, r0.w, cb3[31].y
add r1.w, -r0.w, l(1.000000)
mad r0.w, r0.z, r1.w, r0.w
add r1.w, -cb3[11].w, cb3[28].z
mul r8.xyzw, v2.xyxy, cb3[20].xyzw
sample_indexable(texture2d)(float,float,float,float) r4.yz, r8.xyxx, t24.zxyw, s11
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r8.zwzz, t9.xyzw, s11
mad r1.w, r4.z, r1.w, cb3[11].w
add r2.w, cb3[29].z, -cb3[32].x
mul r9.xyzw, v2.xyxy, cb3[22].xyzw
sample_indexable(texture2d)(float,float,float,float) r4.zw, r9.xyxx, t10.zwxy, s11
sample_indexable(texture2d)(float,float,float,float) r9.y, r9.zwzz, t11.yxzw, s11
mad r2.w, r4.w, r2.w, cb3[32].x
mul r3.w, r4.z, cb3[28].w
mul r10.xyz, r3.wwww, cb3[7].xyzx
add r1.w, r1.w, -r2.w
mul r11.xyzw, v2.xyxy, cb3[23].zwxy
sample_indexable(texture2d)(float,float,float,float) r12.y, r11.zwzz, t23.yxzw, s11
sample_indexable(texture2d)(float,float,float,float) r3.w, r11.xyxx, t14.yzwx, s11
mov r12.z, l(1.000000)
sample_indexable(texture2d)(float,float,float,float) r4.zw, v2.xyxx, t17.ywxz, s11
mad r4.z, r4.z, cb3[32].y, cb3[29].x
mad r4.w, r4.w, cb3[30].w, cb3[30].x
mov_sat r11.xyz, v1.xzwx
mul_sat r12.x, r4.z, r11.x
dp3_sat r4.z, cb3[14].xyzx, r12.xyzx
mad r1.w, r4.z, r1.w, r2.w
add r0.w, r0.w, -r1.w
mul_sat r12.x, r4.w, r11.y
mul r13.xyzw, v2.xyxy, cb3[18].xyzw
sample_indexable(texture2d)(float,float,float,float) r12.y, r13.xyxx, t22.yxzw, s11
sample_indexable(texture2d)(float,float,float,float) r5.zw, r13.zwzz, t4.zwxy, s11
mov r12.z, l(1.000000)
dp3_sat r2.w, cb3[5].xyzx, r12.xyzx
mad r0.w, r2.w, r0.w, r1.w
add r1.w, cb3[13].w, -cb3[14].w
mul r12.xyzw, v2.xyxy, cb3[25].zwxy
sample_indexable(texture2d)(float,float,float,float) r11.xy, r12.zwzz, t13.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r12.xyz, r12.xyxx, t25.xyzw, s11
mad r12.xyz, cb3[11].xyzx, r12.xyzx, -r1.xyzx
mad r1.xyz, r4.zzzz, r12.xyzx, r1.xyzx
mad r1.w, r11.y, r1.w, cb3[14].w
mul r4.w, r11.x, cb3[12].w
add r1.w, -r0.w, r1.w
add r6.w, r2.w, r4.z
min r6.w, r6.w, l(1.000000)
add r6.w, -r6.w, l(1.000000)
mul r12.xyzw, v2.xyxy, cb3[24].zwxy
sample_indexable(texture2d)(float,float,float,float) r11.xyw, r12.xyxx, t12.xywz, s11
sample_indexable(texture2d)(float,float,float,float) r12.xyz, r12.zwzz, t15.xyzw, s11
mul r11.xyw, r6.wwww, r11.xyxw
mul r3.w, r3.w, r6.w
mad_sat r3.w, r3.w, cb3[31].w, cb3[31].z
mad_sat r6.w, r11.x, cb3[9].w, cb3[10].w
mad r0.w, r6.w, r1.w, r0.w
add r1.w, cb3[5].w, -cb3[7].w
mul r13.xyzw, v2.xyxy, cb3[19].xyzw
sample_indexable(texture2d)(float,float,float,float) r13.xy, r13.xyxx, t7.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r14.xyz, r13.zwzz, t3.xyzw, s11
mad r1.w, r13.y, r1.w, cb3[7].w
mul r7.w, r13.x, cb3[6].w
add r1.w, -r0.w, r1.w
mad_sat r9.x, r11.y, cb3[33].z, cb3[8].w
mad_sat r7.x, r11.w, cb3[28].y, cb3[28].x
mov r9.z, l(1.000000)
dp3_sat r8.w, cb3[9].xyzx, r9.xyzx
mad r0.w, r8.w, r1.w, r0.w
add r1.w, -cb3[26].w, cb3[27].x
mad r1.w, r5.w, r1.w, cb3[26].w
mul r5.z, r5.z, cb3[27].z
add r1.w, -r0.w, r1.w
mov r7.z, l(1.000000)
dp3_sat r5.w, cb3[8].xyzx, r7.xyzx
mad r0.w, r5.w, r1.w, r0.w
add r0.x, -r0.w, r0.x
mad r0.x, r3.w, r0.x, r0.w
mad r0.w, r0.x, cb3[32].z, -r0.x
mad r0.x, r11.z, r0.w, r0.x
add r0.x, r0.x, l(2.000000)
mul r0.x, r0.x, l(0.010000)
mad r7.xyz, cb3[27].wwww, r4.yyyy, -r10.xyzx
mad r7.xyz, r4.zzzz, r7.xyzx, r10.xyzx
mul r0.w, r4.x, cb3[29].w
mad r1.w, -cb3[29].w, r4.x, cb3[27].y
mad r0.z, r0.z, r1.w, r0.w
add r4.xyz, -r7.xyzx, r0.zzzz
mad r4.xyz, r2.wwww, r4.xyzx, r7.xyzx
mad r7.xyz, cb3[15].xyzx, r4.wwww, -r4.xyzx
mad r4.xyz, r6.wwww, r7.xyzx, r4.xyzx
mad r7.xyz, cb3[10].xyzx, r7.wwww, -r4.xyzx
mad r4.xyz, r8.wwww, r7.xyzx, r4.xyzx
mad r7.xyz, cb3[12].xyzx, r5.zzzz, -r4.xyzx
mad r4.xyz, r5.wwww, r7.xyzx, r4.xyzx
mad r0.yzw, cb3[6].xxyz, r0.yyyy, -r4.xxyz
mad r0.yzw, r3.wwww, r0.yyzw, r4.xxyz
mad r4.xyz, r0.yzwy, cb3[32].wwww, -r0.yzwy
mad r0.yzw, r11.zzzz, r4.xxyz, r0.yyzw
mul r4.xyz, r0.xxxx, r0.yzwy
dp3 r0.x, r0.yzwy, l(0.299000, 0.587000, 0.114000, 0.000000)
add r0.y, cb3[33].w, cb3[34].x
add_sat r0.y, -r0.y, l(1.000000)
sample_indexable(texture2d)(float,float,float,float) r0.z, r5.xyxx, t0.yzxw, s10
mad r0.y, cb3[33].w, r0.z, r0.y
mul r0.z, r0.z, r0.z
mad_sat r0.y, r0.z, cb3[34].x, r0.y
add r7.xyz, -cb2[94].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad_sat r0.yzw, r0.yyyy, r7.xxyz, cb2[94].xxyz
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r5.xyxx, t52.xyzw, s13
mul r7.xyz, r0.yzwy, r7.xyzx
mul r4.xyz, r4.xyzx, r7.xyzx
mul r7.xy, v2.xyxx, cb3[26].xyxx
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r7.xyxx, t21.xyzw, s11
mad r7.xyz, r7.xyzx, cb3[13].xyzx, -r1.xyzx
mad r1.xyz, r2.wwww, r7.xyzx, r1.xyzx
add r7.xyz, -r1.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r9.xyz, -r12.xyzx, cb3[2].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r10.xyz, r12.xyzx, cb3[2].xyzx
mad r7.xyz, -r9.xyzx, r7.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r7.xyz, r7.xyzx, r10.xyzx
mul r10.xyz, r1.xyzx, r10.xyzx
mad r7.xyz, r9.xyzx, r10.xyzx, r7.xyzx
add r7.xyz, -r1.xyzx, r7.xyzx
mad r1.xyz, r6.wwww, r7.xyzx, r1.xyzx
mad r7.xyz, r8.xyzx, cb3[0].xyzx, -r1.xyzx
mad r1.xyz, r8.wwww, r7.xyzx, r1.xyzx
mad r2.xyz, r2.xyzx, cb3[1].xyzx, -r1.xyzx
mad r1.xyz, r5.wwww, r2.xyzx, r1.xyzx
add r2.xyz, -r1.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r7.xyz, -r14.xyzx, cb3[3].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r8.xyz, r14.xyzx, cb3[3].xyzx
mad r2.xyz, -r7.xyzx, r2.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r2.xyz, r2.xyzx, r8.xyzx
mul r8.xyz, r1.xyzx, r8.xyzx
mad r2.xyz, r7.xyzx, r8.xyzx, r2.xyzx
add r2.xyz, -r1.xyzx, r2.xyzx
mad r1.xyz, r3.wwww, r2.xyzx, r1.xyzx
mad r2.xyz, r1.xyzx, cb3[33].xxxx, -r1.xyzx
mad r1.xyz, r11.zzzz, r2.xyzx, r1.xyzx
ftoi r2.xy, v0.xyxx
mov r2.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r2.xyz, r2.xyzw, t53.xyzw
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r5.xyxx, t51.xyzw, s13
sample_indexable(texture2d)(float,float,float,float) r5.xyz, r5.xyxx, t16.xyzw, s10
sample_indexable(texture2d)(float,float,float,float) r1.w, v2.xyxx, t18.yzwx, s11
add_sat r2.w, -cb3[33].y, l(1.000000)
mad_sat r1.w, cb3[33].y, r1.w, r2.w
mad r2.xyz, r1.wwww, r2.xyzx, r7.xyzx
mul r1.w, r0.y, r1.w
mul r0.yzw, r0.yyzw, r2.xxyz
mad r0.yzw, r0.yyzw, r1.xxyz, r4.xxyz
max o0.xyz, r0.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
dp3 r0.y, r5.xyzx, r6.xyzx
mul r1.xyz, r5.xyzx, r0.yyyy
max r0.y, r0.y, l(1.000000012E-007)
add r0.y, -r0.y, l(1.000000)
mad r1.xyz, r1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r6.xyzx
dp3 r0.z, r1.xyzx, r3.xyzx
mad_sat r0.z, cb3[34].y, r0.z, l(1.000000)
mul r0.z, r0.z, r0.z
mul r0.w, r0.y, r0.y
mul r0.w, r0.w, r0.w
mul r0.y, r0.y, r0.w
mad r0.y, r0.y, l(0.960000), l(0.040000)
mul r0.y, r0.y, r1.w
mul r0.y, r0.z, r0.y
mul r0.x, r0.x, r0.y
mul_sat r0.x, r0.x, l(0.250000)
sqrt o1.x, r0.x
ret 
// Approximately 213 instruction slots used
