//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
// Buffer Definitions: 
//
// cbuffer _Globals
// {
//
//   float fLightDoF_Width;             // Offset:    0 Size:     4
//   float fLightDoF_Amount;            // Offset:    4 Size:     4
//   bool bLightDoF_UseCA;              // Offset:    8 Size:     4
//   float2 f2LightDoF_CA;              // Offset:   16 Size:     8
//   bool bLightDoF_AutoFocus;          // Offset:   24 Size:     4
//   float fLightDoF_AutoFocusSpeed;    // Offset:   28 Size:     4 [unused]
//   bool bLightDoF_UseMouseFocus;      // Offset:   32 Size:     4 [unused]
//   float2 f2Bokeh_AutoFocusCenter;    // Offset:   36 Size:     8 [unused]
//   float fLightDoF_ManualFocus;       // Offset:   44 Size:     4
//   float2 f2LightDoF_MouseCoord;      // Offset:   48 Size:     8 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim      HLSL Bind  Count
// ------------------------------ ---------- ------- ----------- -------------- ------
// __s0                              sampler      NA          NA             s0      1 
// __V__ReShade__BackBufferTex       texture  float4          2d             t0      1 
// __V__ReShade__DepthBufferTex      texture  float4          2d             t2      1 
// __V__tFocus                       texture  float4          2d             t4      1 
// _Globals                          cbuffer      NA          NA            cb0      1 
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float       
// TEXCOORD                 0   xy          1     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyz         0   TARGET   float   xyz 
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[3], immediateIndexed
dcl_sampler s0, 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) t4
dcl_input_ps linear v1.xy
dcl_output o0.xyz
dcl_temps 6
dp2 r0.x, v1.xyxx, l(12.989800, 78.233002, 0.000000, 0.000000)
sincos r0.x, null, r0.x
mul r0.x, r0.x, l(43758.542969)
frc r0.x, r0.x
sincos r1.x, r2.x, r0.x
sincos r0.x, null, -r0.x
mov r0.y, r2.x
dp2 r2.x, l(-0.406000, -0.326000, 0.000000, 0.000000), r0.xyxx
mov r0.z, r1.x
dp2 r2.y, l(-0.406000, -0.326000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.xy, r2.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  add r0.w, cb0[1].x, l(1.000000)
  mul r2.zw, r0.wwww, r1.zzzw
  mad r3.xy, r1.zwzz, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r3.zw, r0.wwww, r1.zzzw
  mad r4.xy, r1.zwzz, r0.wwww, v1.xyxx
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r3.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.x
  sample_indexable(texture2d)(float,float,float,float) r3.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r3.x, cb0[1].z, r3.x, cb0[2].w
  add r0.w, r0.w, -r3.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r2.zw, r0.wwww, r2.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.y, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.y
  add r0.w, -r3.x, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r3.yz, r0.wwww, r3.zzwz, v1.xxyx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  add r0.w, -r3.x, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r4.x, r2.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r4.y, r3.yzyy, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r4.z, r1.xyxx, t0.xyzw, s0, l(0.000000)
else 
  mul r1.xy, r2.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r4.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
endif 
dp2 r1.x, l(-0.074000, -0.840000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(-0.074000, -0.840000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r2.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r2.zw, r0.wwww, r2.xxxy
  mad r3.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r3.zw, r0.wwww, r2.xxxy
  mad r5.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r3.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.x
  sample_indexable(texture2d)(float,float,float,float) r3.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r3.x, cb0[1].z, r3.x, cb0[2].w
  add r0.w, r0.w, -r3.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r2.zw, r0.wwww, r2.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.y, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.y
  add r0.w, -r3.x, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r3.yz, r0.wwww, r3.zzwz, v1.xxyx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r3.x, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r2.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r2.x, r2.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.y, r3.yzyy, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r2.xyzx, r4.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r1.xyzx, r4.xyzx
endif 
dp2 r1.x, l(0.457000, -0.696000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(0.457000, -0.696000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r3.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r3.zw, r0.wwww, r3.xxxy
  mad r4.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r3.xxxy
  mad r5.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r2.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r2.w
  sample_indexable(texture2d)(float,float,float,float) r2.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r2.w, cb0[1].z, r2.w, cb0[2].w
  add r0.w, r0.w, -r2.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r3.zw, r0.wwww, r3.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r3.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r3.x, r3.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r1.xyzx, r2.xyzx
endif 
dp2 r1.x, l(0.621000, -0.203000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(0.621000, -0.203000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r2.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r2.zw, r0.wwww, r2.xxxy
  mad r4.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r2.xxxy
  mad r5.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.w
  sample_indexable(texture2d)(float,float,float,float) r3.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r3.w, cb0[1].z, r3.w, cb0[2].w
  add r0.w, r0.w, -r3.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r2.zw, r0.wwww, r2.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r2.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r2.x, r2.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r1.xyzx, r3.xyzx
endif 
dp2 r1.x, l(-0.195000, 0.962000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(-0.195000, 0.962000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r3.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r3.zw, r0.wwww, r3.xxxy
  mad r4.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r3.xxxy
  mad r5.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r2.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r2.w
  sample_indexable(texture2d)(float,float,float,float) r2.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r2.w, cb0[1].z, r2.w, cb0[2].w
  add r0.w, r0.w, -r2.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r3.zw, r0.wwww, r3.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r3.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r3.x, r3.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r1.xyzx, r2.xyzx
endif 
dp2 r1.x, l(-0.480000, 0.473000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(-0.480000, 0.473000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r2.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r2.zw, r0.wwww, r2.xxxy
  mad r4.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r2.xxxy
  mad r5.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.w
  sample_indexable(texture2d)(float,float,float,float) r3.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r3.w, cb0[1].z, r3.w, cb0[2].w
  add r0.w, r0.w, -r3.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r2.zw, r0.wwww, r2.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r2.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r2.x, r2.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r1.xyzx, r3.xyzx
endif 
dp2 r1.x, l(0.767000, 0.519000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(0.767000, 0.519000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r3.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r3.zw, r0.wwww, r3.xxxy
  mad r4.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r3.xxxy
  mad r5.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r2.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r2.w
  sample_indexable(texture2d)(float,float,float,float) r2.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r2.w, cb0[1].z, r2.w, cb0[2].w
  add r0.w, r0.w, -r2.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r3.zw, r0.wwww, r3.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r3.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r3.x, r3.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r1.xyzx, r2.xyzx
endif 
dp2 r1.x, l(-0.893000, 0.185000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(-0.893000, 0.185000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r2.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r2.zw, r0.wwww, r2.xxxy
  mad r4.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r2.xxxy
  mad r5.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.w
  sample_indexable(texture2d)(float,float,float,float) r3.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r3.w, cb0[1].z, r3.w, cb0[2].w
  add r0.w, r0.w, -r3.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r2.zw, r0.wwww, r2.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r2.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r2.x, r2.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r1.xyzx, r3.xyzx
endif 
dp2 r1.x, l(0.064000, 0.507000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(0.064000, 0.507000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r3.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r3.zw, r0.wwww, r3.xxxy
  mad r4.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r3.xxxy
  mad r5.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r2.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r2.w
  sample_indexable(texture2d)(float,float,float,float) r2.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r2.w, cb0[1].z, r2.w, cb0[2].w
  add r0.w, r0.w, -r2.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r3.zw, r0.wwww, r3.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r3.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r3.x, r3.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r1.xyzx, r2.xyzx
endif 
dp2 r1.x, l(0.412000, 0.896000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(0.412000, 0.896000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r2.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r2.zw, r0.wwww, r2.xxxy
  mad r4.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r2.xxxy
  mad r5.xy, r2.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r3.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r3.w
  sample_indexable(texture2d)(float,float,float,float) r3.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r3.w, cb0[1].z, r3.w, cb0[2].w
  add r0.w, r0.w, -r3.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r2.zw, r0.wwww, r2.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r3.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r2.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r2.x, r2.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r2.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r2.xyz, r1.xyzx, r3.xyzx
endif 
dp2 r1.x, l(-0.933000, -0.322000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(-0.933000, -0.322000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r1.zw, r1.xxxy, cb0[0].xxxx
  mul r3.xy, r1.zwzz, l(0.001389, 0.001427, 0.000000, 0.000000)
  add r0.w, cb0[1].x, l(1.000000)
  mul r3.zw, r0.wwww, r3.xxxy
  mad r4.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r0.w, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.zw, r0.wwww, r3.xxxy
  mad r5.xy, r3.xyxx, r0.wwww, v1.xyxx
  mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.001389, 0.001427), v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s0, l(0.000000)
  mad r2.w, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r2.w
  sample_indexable(texture2d)(float,float,float,float) r2.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r2.w, cb0[1].z, r2.w, cb0[2].w
  add r0.w, r0.w, -r2.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r3.zw, r0.wwww, r3.zzzw, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r5.xyxx, t2.yzwx, s0, l(0.000000)
  mad r4.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r4.x
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r4.xy, r0.wwww, r4.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.zwzz, t2.yzwx, s0, l(0.000000)
  mad r1.z, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.z
  add r0.w, -r2.w, r0.w
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.zw, r0.wwww, r3.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r3.x, r3.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.y, r4.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r3.z, r1.zwzz, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r2.xyzx, r3.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r3.xyz, r1.xyzx, r2.xyzx
endif 
dp2 r1.x, l(-0.598000, -0.792000, 0.000000, 0.000000), r0.xyxx
dp2 r1.y, l(-0.598000, -0.792000, 0.000000, 0.000000), r0.yzyy
if_nz cb0[0].z
  mul r0.xy, r1.xyxx, cb0[0].xxxx
  mul r0.zw, r0.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  add r1.z, cb0[1].x, l(1.000000)
  mul r2.xy, r0.zwzz, r1.zzzz
  mad r1.zw, r0.zzzw, r1.zzzz, v1.xxxy
  mad r2.z, cb0[1].x, l(0.500000), l(1.000000)
  mul r4.xy, r0.zwzz, r2.zzzz
  mad r2.zw, r0.zzzw, r2.zzzz, v1.xxxy
  mad r0.xy, r0.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.z, r1.zwzz, t2.yzxw, s0, l(0.000000)
  mad r1.w, -r1.z, l(999.000000), l(1000.000000)
  div r1.z, r1.z, r1.w
  sample_indexable(texture2d)(float,float,float,float) r1.w, l(0.000000, 0.000000, 0.000000, 0.000000), t4.yzwx, s0
  movc r1.w, cb0[1].z, r1.w, cb0[2].w
  add r1.z, -r1.w, r1.z
  mul_sat r1.z, r1.z, cb0[0].y
  mad r2.xy, r1.zzzz, r2.xyxx, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.z, r2.zwzz, t2.yzxw, s0, l(0.000000)
  mad r2.z, -r1.z, l(999.000000), l(1000.000000)
  div r1.z, r1.z, r2.z
  add r1.z, -r1.w, r1.z
  mul_sat r1.z, r1.z, cb0[0].y
  mad r2.zw, r1.zzzz, r4.xxxy, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r0.x, r0.xyxx, t2.xyzw, s0, l(0.000000)
  mad r0.y, -r0.x, l(999.000000), l(1000.000000)
  div r0.x, r0.x, r0.y
  add r0.x, -r1.w, r0.x
  mul_sat r0.x, r0.x, cb0[0].y
  mad r0.xy, r0.xxxx, r0.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r4.x, r2.xyxx, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r4.y, r2.zwzz, t0.xyzw, s0, l(0.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r4.z, r0.xyxx, t0.xyzw, s0, l(0.000000)
  add r0.xyz, r3.xyzx, r4.xyzx
else 
  mul r1.xy, r1.xyxx, cb0[0].xxxx
  mul r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.001389, 0.001427)
  mad r1.xy, r1.xyxx, l(0.001389, 0.001427, 0.000000, 0.000000), v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t2.yzwx, s0, l(0.000000)
  mad r1.x, -r0.w, l(999.000000), l(1000.000000)
  div r0.w, r0.w, r1.x
  sample_indexable(texture2d)(float,float,float,float) r1.x, l(0.000000, 0.000000, 0.000000, 0.000000), t4.xyzw, s0
  movc r1.x, cb0[1].z, r1.x, cb0[2].w
  add r0.w, r0.w, -r1.x
  mul_sat r0.w, r0.w, cb0[0].y
  mad r1.xy, r0.wwww, r1.zwzz, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t0.xyzw, s0, l(0.000000)
  add r0.xyz, r1.xyzx, r3.xyzx
endif 
mul o0.xyz, r0.xyzx, l(0.083000, 0.083000, 0.083000, 0.000000)
ret 
// Approximately 620 instruction slots used
