//b21480f149ab5425-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Sun Feb 07 01:11:57 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 [unused]
//   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
//   float3 __CameraPosition;           // Offset:  160 Size:    12
//   float __padding12;                 // Offset:  172 Size:     4 [unused]
//   float3 CameraDirection;            // Offset:  176 Size:    12
//   float __padding9;                  // Offset:  188 Size:     4 [unused]
//   float3 DepthFactors;               // Offset:  192 Size:    12 [unused]
//   float __padding10;                 // Offset:  204 Size:     4 [unused]
//   float3 ShadowDepthBiasAndLightType;// Offset:  208 Size:    12 [unused]
//   float __padding11;                 // Offset:  220 Size:     4 [unused]
//   float4 SubframeViewport;           // Offset:  224 Size:    16 [unused]
//   row_major float3x4 DepthToWorld;   // Offset:  240 Size:    48
//   float4 DepthToView;                // Offset:  288 Size:    16
//   float4 OneOverDepthToView;         // Offset:  304 Size:    16 [unused]
//   float4 DepthToW;                   // Offset:  320 Size:    16
//   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
//   float4 FogParams3;                 // Offset:  416 Size:    16
//   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
//   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 InstanceBuffer
// {
//
//   struct InstanceStruct
//   {
//       
//       float4 InstanceParams[8];      // Offset:    0
//
//   } InstanceParameters[256];         // Offset:    0 Size: 32768
//
// }
//
// 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 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_n136_n209_fogCube_texture    texture  float4        cube    0        1
// p_default_Material_n128_144624A417689878_Param_texture    texture  float4        cube    1        1
// p_default_Setup_n8_05602DE49167171_Param_texture    texture  float4          2d    2        1
// p_default_Setup_2844DB3C23427741_DepthBufferTexture_texture    texture  float4          2d    3        1
// p_default_Material_n116_n166_49EF29C0204713_cp0_Param_texture    texture  float4          2d    4        1
// p_default_Material_n116_n166_19B9FD0C15847118_Param_texture    texture  float4          2d    5        1
// p_default_Setup_n1_n64_Texture_texture    texture  float4          2d    6        1
// p_default_Setup_n1_n71_Texture_texture    texture  float4          2d    7        1
// p_default_Material_n116_n165_661830C016465534_cp0_Param_texture    texture  float4          2d    8        1
// p_default_Setup_n0_n71_Texture_texture    texture  float4          2d    9        1
// p_default_Setup_n0_n64_Texture_texture    texture  float4          2d   10        1
// AttenuationSampler_texture        texture  float4          2d   44        1
// DrawableBuffer                    cbuffer      NA          NA    1        1
// SceneBuffer                       cbuffer      NA          NA    2        1
// MaterialBuffer                    cbuffer      NA          NA    3        1
// InstanceBuffer                    cbuffer      NA          NA    5        1
// IrradianceBuffer                  cbuffer      NA          NA    6        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    y  
// TEXCOORD                 0   xyzw        2     NONE   float   xy  
// TEXCOORD                 1   xyzw        3     NONE   float   xy  
// TEXCOORD                 2   xyz         4     NONE   float   xyz 
// TEXCOORD                 3   xyz         5     NONE   float   xyz 
// TEXCOORD                 4   xyz         6     NONE   float   xyz 
// PSIZE                    0   x           7     NONE    uint   x   
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb1[259], dynamicIndexed
dcl_constantbuffer cb2[96], immediateIndexed
dcl_constantbuffer cb3[18], immediateIndexed
dcl_constantbuffer cb5[2046], dynamicIndexed
dcl_constantbuffer cb6[7], immediateIndexed
dcl_sampler s10, mode_default
dcl_sampler s11, mode_default
dcl_sampler s13, mode_default
dcl_resource_texturecube (float,float,float,float) t0
dcl_resource_texturecube (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) t44
dcl_input_ps_siv linear noperspective v0.xyw, position
dcl_input_ps linear v1.y
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xy
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyz
dcl_input_ps constant v7.x
dcl_output o0.xyzw
// dcl_temps 11
dcl_temps 13
dcl_resource_texture2d (float,float,float,float) t125
mad r0.xyzw, v0.xyxy, cb2[45].zwzw, cb2[45].xyxy
mul r1.xy, r0.xyxx, v0.wwww
mov r1.z, v0.w
mov r1.w, l(1.000000)

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


dp4 r2.x, cb2[15].xyzw, r1.xyzw
dp4 r2.y, cb2[16].xyzw, r1.xyzw
dp4 r2.z, cb2[17].xyzw, r1.xyzw
mad r0.xy, r0.zwzz, cb2[18].xyxx, cb2[18].zwzz
mul r1.xy, r0.xyxx, v0.wwww
mov r1.z, v0.w

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


dp3 r0.x, -r1.xyzx, -r1.xyzx
rsq r0.x, r0.x
mul r1.xyz, r0.xxxx, -r1.xyzx
dp3 r3.x, r1.xyzx, cb2[0].xyzx
dp3 r3.y, r1.xyzx, cb2[1].xyzx
dp3 r3.z, r1.xyzx, cb2[2].xyzx
ishl r0.x, v7.x, l(3)
mad r1.xy, r2.xyxx, cb5[r0.x + 4].xyxx, cb5[r0.x + 4].zwzz
sample_indexable(texture2d)(float,float,float,float) r1.zw, r1.xyxx, t2.zwxy, s11
mad r4.xy, r1.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.y, r4.xyxx, r4.xyxx
add r0.y, -r0.y, l(1.000000)
max r0.y, r0.y, l(0.000000)
sqrt r4.z, r0.y
lt r0.y, l(0.000000), cb5[r0.x + 5].x
add r1.xy, r1.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
dp2 r1.x, r1.xyxx, r1.xyxx
sqrt r1.x, r1.x
add r1.y, l(1.000000), -cb5[r0.x + 5].y
mad r1.x, r1.x, l(2.000000), -r1.y
div_sat r0.x, r1.x, cb5[r0.x + 5].y
add r0.x, -r0.x, l(1.000000)
mul r0.x, r0.x, r0.x
movc r0.x, r0.y, r0.x, l(1.000000)
mov r1.x, cb3[17].x
mov r1.z, l(1.000000)
mul r1.xyz, r4.xyzx, r1.xxzx
dp3 r0.y, r1.xyzx, r1.xyzx
rsq r0.y, r0.y
mul r1.xyz, r0.yyyy, r1.xyzx
mul r1.xy, r0.xxxx, r1.xyxx
add r2.xyw, r2.xyxz, -cb2[10].xyxz
dp3 r0.y, r2.xywx, cb2[11].xyzx
sample_l_indexable(texture2d)(float,float,float,float) r3.w, r0.zwzz, t3.yzwx, s10, l(0.000000)
mad r3.w, r3.w, cb2[20].x, cb2[20].y
max r3.w, r3.w, l(0.000001)
div r3.w, l(1.000000, 1.000000, 1.000000, 1.000000), r3.w
max r4.x, v1.y, l(0.000000)
mad r4.yz, cb3[16].wwww, r1.xxyx, v2.xxyx
add r3.w, -r0.y, r3.w
mad r5.xy, v3.xyxx, cb3[10].zwzz, r4.yzyy
mad r5.zw, r5.xxxy, cb3[14].xxxy, cb3[9].xxxy
mad r5.zw, cb2[24].xxxx, cb3[8].zzzw, r5.zzzw
mad r5.xy, r5.xyxx, cb3[8].xyxx, cb3[7].zwzz
mad r5.xy, cb2[24].xxxx, cb3[7].xyxx, r5.xyxx
sample_indexable(texture2d)(float,float,float,float) r5.zw, r5.zwzz, t10.zwxy, s11
mad r6.xy, r5.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r4.w, r6.xyxx, r6.xyxx
add r4.w, -r4.w, l(1.000000)
max r4.w, r4.w, l(0.000000)
sqrt r4.w, r4.w
sample_indexable(texture2d)(float,float,float,float) r5.xyz, r5.xyxx, t9.xyzw, s11
mad r7.xy, r4.yzyy, cb3[9].zwzz, cb3[10].xyxx
mad r7.xy, cb2[24].xxxx, cb3[11].xyxx, r7.xyxx
mad r4.yz, r4.yyzy, cb3[11].zzwz, cb3[12].xxyx
mad r4.yz, cb2[24].xxxx, cb3[13].xxyx, r4.yyzy
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r4.yzyy, t7.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r4.yz, r7.xyxx, t6.zxyw, s11
mad r7.xy, r4.yzyy, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r4.y, r7.xyxx, r7.xyxx
add r4.xy, -r4.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
max r4.y, r4.y, l(0.000000)
sqrt r4.y, r4.y
mul r8.xyz, r8.xyzx, cb3[0].xyzx
mov r4.z, l(1.000000)
mul r4.z, r4.z, cb3[5].w
mul r4.z, r4.z, cb3[17].y
add r7.z, -r4.y, l(1.000000)
add r6.z, -r4.w, l(1.000000)
mul r6.xyz, r6.xyzx, cb3[15].zzzz
mad r6.xyz, cb3[14].wwww, r7.xyzx, r6.xyzx
mad r1.w, -r0.x, r1.z, l(1.000000)
mad r1.xyz, cb3[16].zzzz, r1.xywx, r6.xyzx
add r1.w, -r1.z, l(1.000000)
dp3 r0.x, r1.xywx, r1.xywx
rsq r0.x, r0.x
mul r1.xyz, r0.xxxx, r1.xywx
mad r5.xyz, r5.xyzx, cb3[5].xyzx, -r8.xyzx
mad r5.xyz, r4.zzzz, r5.xyzx, r8.xyzx
add r6.xyz, -cb3[3].xyzx, cb3[4].xyzx
mad r4.yzw, r4.zzzz, r6.xxyz, cb3[3].xxyz
mul r6.xyz, r1.yyyy, v6.xyzx
mad r1.xyw, r1.xxxx, v5.xyxz, r6.xyxz
mad r1.xyz, r1.zzzz, v4.xyzx, r1.xywx
dp3 r0.x, r1.xyzx, r1.xyzx
rsq r0.x, r0.x
mul r1.xyz, r0.xxxx, r1.xyzx
max r0.x, r3.z, l(0.000000)
log r0.x, r0.x
mul r0.x, r0.x, cb3[15].y
exp r0.x, r0.x
mul r0.x, r0.x, cb3[14].z
mul_sat r5.w, r3.w, cb3[1].y
mul r5.w, r5.w, cb3[15].x
mul r0.x, r4.x, r0.x
add r4.x, -cb3[12].z, cb3[12].w
add r0.y, r0.y, -cb3[12].z
div r4.x, l(1.000000, 1.000000, 1.000000, 1.000000), r4.x
mul_sat r0.y, r0.y, r4.x
mad r4.x, r0.y, l(-2.000000), l(3.000000)
mul r0.y, r0.y, r0.y
mul r0.y, r0.y, r4.x
add r4.x, -cb3[13].z, cb3[13].w
add r3.w, |r3.w|, -cb3[13].z
div r4.x, l(1.000000, 1.000000, 1.000000, 1.000000), r4.x
mul_sat r3.w, r3.w, r4.x
mad r4.x, r3.w, l(-2.000000), l(3.000000)
mul r3.w, r3.w, r3.w
mul r3.w, r3.w, r4.x
max r0.y, r0.y, r3.w
mul r0.y, r0.y, cb3[6].w
add r6.xyz, -cb3[2].xyzx, cb3[6].xyzx
mad r6.xyz, r0.yyyy, r6.xyzx, cb3[2].xyzx
ftoi r7.xy, v0.xyxx
mov r7.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r0.y, r7.xyzw, t8.yxzw
mul r7.xyzw, r1.yzzz, r1.xxyz
mul r3.w, r1.y, r1.y
mad r1.w, r1.x, r1.x, -r3.w
dp4 r8.x, r7.xyzw, cb6[0].xyzw
dp4 r8.y, r7.xyzw, cb6[2].xyzw
dp4 r8.z, r7.xyzw, cb6[4].xyzw
dp4 r7.x, r1.xyzw, cb6[1].xyzw
dp4 r7.y, r1.xyzw, cb6[3].xyzw
dp4 r7.z, r1.xyzw, cb6[5].xyzw
add r7.xyz, r7.xyzx, r8.xyzx
add r7.xyz, r7.xyzx, cb6[6].xyzx
max r7.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r1.w, r1.z, l(0.500000), l(0.500000)
add r8.xyz, cb2[27].xyzx, -cb2[38].xyzx
mad r8.xyz, r1.wwww, r8.xyzx, cb2[38].xyzx
add r7.xyz, r7.xyzx, r8.xyzx
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r0.zwzz, t5.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r9.xyz, r0.zwzz, t4.xyzw, s11
max r0.z, r9.y, r9.x
max r0.z, r9.z, r0.z
mad r0.z, r0.z, r0.z, r0.z
mul r0.z, r0.z, l(0.500000)
dp3 r0.w, r8.xyzx, l(0.299000, 0.587000, 0.114000, 0.000000)
add r7.xyz, r7.xyzx, r8.xyzx
mul r9.xyz, r0.yyyy, r7.xyzx
mul r8.xyz, r0.zzzz, r8.xyzx
max r0.z, r0.w, l(0.000010)
div r8.xyz, r8.xyzx, r0.zzzz
mul r10.xyz, r5.xyzx, r9.xyzx
mad r5.xyz, -r9.xyzx, r5.xyzx, r6.xyzx
mad r0.xzw, r0.xxxx, r5.xxyz, r10.xxyz
dp3 r1.w, r3.xyzx, r1.xyzx
mul r1.xyz, r1.xyzx, r1.wwww
mad r1.xyz, r1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r3.xyzx
mad r3.xyz, r0.yyyy, r7.xyzx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r3.xyz, cb3[17].wwww, r3.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
sample_l_indexable(texturecube)(float,float,float,float) r1.xyz, r1.xyzx, t1.xyzw, s11, l(0.000000)
mul r1.xyz, r1.xyzx, cb3[17].zzzz
mad r1.xyz, r3.xyzx, r1.xyzx, r8.xyzx
mad r0.xyz, r1.xyzx, r4.yzwy, r0.xzwx
eq r0.w, cb2[95].w, l(0.000000)
movc r1.xyz, r0.wwww, cb2[95].xyzx, cb2[35].xyzx
max r1.xyz, r1.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
log r1.xyz, r1.xyzx
mul r1.xyz, r1.xyzx, cb2[26].yyyy
exp r1.xyz, r1.xyzx
mad r3.x, r2.z, cb2[9].y, cb2[25].y
mov r3.yw, cb2[25].zzzz
sample_l_indexable(texture2d)(float,float,float,float) r0.w, r3.xyxx, t44.xzwy, s13, l(0.000000)
dp3 r1.w, r2.xywx, r2.xywx
sqrt r1.w, r1.w
lt r2.z, l(0.000000), cb2[26].w
if_nz r2.z
  mul r3.xy, r2.xyxx, cb2[9].wwww
  mad r4.x, cb2[25].w, r2.y, r3.x
  mad r4.y, -cb2[25].w, r2.x, r3.y
  mov r4.z, r2.w
  sample_indexable(texturecube)(float,float,float,float) r2.xyz, r4.xyzx, t0.xyzw, s11
  add r2.xyz, r2.xyzx, -cb2[95].xyzx
  mad r2.xyz, cb2[26].wwww, r2.xyzx, cb2[95].xyzx
else 
  mov r2.xyz, cb2[95].xyzx
endif 
max r2.xyz, r2.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
log r2.xyz, r2.xyzx
mul r2.xyz, r2.xyzx, cb2[26].yyyy
exp r2.xyz, r2.xyzx
mad r3.z, r1.w, cb2[9].x, cb2[25].x
sample_l_indexable(texture2d)(float,float,float,float) r1.w, r3.zwzz, t44.yzwx, s13, l(0.000000)
mad r2.xyz, cb2[26].xxxx, r2.xyzx, -r0.xyzx
mad r0.xyz, r1.wwww, r2.xyzx, r0.xyzx
mad r1.xyz, cb2[26].xxxx, r1.xyzx, -r0.xyzx
mad r0.xyz, r0.wwww, r1.xyzx, r0.xyzx
mul o0.xyz, r0.xyzx, cb2[29].wwww
mov r0.x, v7.x
mul o0.w, r5.w, cb1[r0.x + 3].x
ret 
// Approximately 203 instruction slots used
