Texture2DArray<float4> t14 : register(t14);

Texture2D<float4> t2 : register(t2);

Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s14_s : register(s14);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb2 : register(b2)
{
  float4 cb2[38];
}

cbuffer cb1 : register(b1)
{
  float4 cb1[8];
}


Texture2D<float4> StereoParams : register(t125);
Texture1D<float4> IniParams : register(t120);

void main( 
  float4 v0 : SV_POSITION0,
  float4 v1 : TEXCOORD0,
  float4 v2 : TEXCOORD4,
  float4 v3 : TEXCOORD1,
  float4 v4 : TEXCOORD2,
  float4 v5 : TEXCOORD3,
  float3 v6 : TEXCOORD5,
  float4 v7 : COLOR0,
  uint v8 : SV_IsFrontFace0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.x = dot(v6.xyz, v6.xyz);
  r0.x = rsqrt(r0.x);
  r0.yzw = v6.xyz * r0.xxx;
  r1.xyzw = t0.Sample(s0_s, v1.xy).xyzw;
  r2.xy = t1.Sample(s1_s, v1.xy).xy;
  r2.xy = r2.xy * float2(2,2) + float2(-1,-1);
  r2.w = dot(r2.xy, r2.xy);
  r2.w = min(1, r2.w);
  r2.w = 1 + -r2.w;
  r2.z = sqrt(r2.w);
  r3.xy = t2.Sample(s2_s, v1.xy).xy;
  r3.xz = cb2[11].xy * r3.yx;
  r2.w = -r3.y * cb2[11].x + 1;
  r2.w = r2.w * 2 + -1;
  r2.w = 8.65590954 * r2.w;
  r2.w = exp2(r2.w);
  r2.w = 1 + r2.w;
  r2.w = 3 / r2.w;
  r2.w = 3 + -r2.w;
  r3.y = 3.14159274 * r3.z;
  r3.x = r3.x * 10 + 1;
  r3.x = exp2(r3.x);
  r4.x = dot(v3.xyz, r2.xyz);
  r4.y = dot(v4.xyz, r2.xyz);
  r4.z = dot(v5.xyz, r2.xyz);
  r2.x = dot(r4.xyz, r4.xyz);
  r2.x = rsqrt(r2.x);
  r4.xyz = r4.xyz * r2.xxx;
  r4.w = v8.x ? r4.y : -r4.y;
  r2.x = cb2[10].x == 1.000000;
  if (r2.x != 0) {
    r2.x = v2.w < cb2[37].w;
    r5.xyz = cb2[37].zyx < v2.www;
    r6.xyzw = r5.zzzz ? cb2[28].xyzw : cb2[25].xyzw;
    r7.xyzw = r5.zzzz ? cb2[29].xyzw : cb2[26].xyzw;
    r2.y = r5.z ? 1.000000 : 0;
    r6.xyzw = r5.yyyy ? cb2[31].xyzw : r6.xyzw;
    r7.xyzw = r5.yyyy ? cb2[32].xyzw : r7.xyzw;
    r2.y = r5.y ? 2 : r2.y;
    r6.xyzw = r5.xxxx ? cb2[34].xyzw : r6.xyzw;
    r7.xyzw = r5.xxxx ? cb2[35].xyzw : r7.xyzw;
    r8.z = r5.x ? 3 : r2.y;
    r9.xyz = v2.xyz;
    r9.w = 1;
    r8.x = dot(r6.xyzw, r9.xyzw);
    r8.y = dot(r7.xyzw, r9.xyzw);
    r2.y = t14.Sample(s14_s, r8.xyz).x;
    if (r2.x != 0) {
      r6.xyzw = r5.zzzz ? cb2[30].xyzw : cb2[27].xyzw;
      r6.xyzw = r5.yyyy ? cb2[33].xyzw : r6.xyzw;
      r5.xyzw = r5.xxxx ? cb2[36].xyzw : r6.xyzw;
      r2.x = dot(r5.xyzw, r9.xyzw);
      r2.x = r2.y >= r2.x;
      r2.x = r2.x ? 1.000000 : 0;
    } else {
      r2.x = 1;
    }
  } else {
    r2.x = 1;
  }
  r2.y = 1 + -cb2[11].x;
  r2.z = dot(r0.ywz, r4.xzw);
  r3.z = dot(cb2[0].xzy, r4.xzw);
  r5.xyz = -r4.xwz * r2.zzz + r0.yzw;
  r6.xyz = -r4.xwz * r3.zzz + cb2[0].xyz;
  r3.w = dot(r5.xyz, r6.xyz);
  r4.y = r2.y * r2.y;
  r6.xy = r2.yy * r2.yy + float2(0.569999993,0.0900000036);
  r6.xy = r4.yy / r6.xy;
  r2.y = 0.449999988 * r6.y;
  r4.y = -r6.x * 0.5 + 1;
  r5.w = -r2.z * r2.z + 1;
  r6.x = -r3.z * r3.z + 1;
  r6.x = saturate(r6.x * r5.w);
  r6.x = sqrt(r6.x);
  r6.y = max(r3.z, r2.z);
  r6.x = r6.x / r6.y;
  r6.y = max(0, r3.z);
  r3.w = max(0, r3.w);
  r3.w = r3.w * r2.y;
  r3.w = r3.w * r6.x + r4.y;
  r3.w = r6.y * r3.w;
  r6.xzw = cb2[1].xyz * r3.www;
  r3.w = min(1, r6.y);
  r6.y = saturate(r2.z);
  r7.x = 1 + -r6.y;
  r7.x = log2(r7.x);
  r7.x = 0.00999999978 * r7.x;
  r7.x = exp2(r7.x);
  r7.y = saturate(dot(r0.yzw, -cb2[0].xyz));
  r7.y = r7.x * r7.y;
  r7.y = r7.y * r3.w;
  r7.yzw = cb2[1].xyz * r7.yyy;
  r7.yzw = r7.yzw * r2.www;
  r6.xzw = r6.xzw * r2.xxx + r7.yzw;
  r7.yzw = cb1[7].yyy * r1.xyz;
  r8.x = saturate(-r3.z);
  r7.yzw = r8.xxx * r7.yzw;
  r6.xzw = cb2[1].xyz * r7.yzw + r6.xzw;
  r3.z = cb1[7].x + r3.z;
  r7.y = 1 + cb1[7].x;
  r3.z = saturate(r3.z / r7.y);
  r3.z = r3.z + -r3.w;
  r3.z = max(0, r3.z);
  r7.yzw = cb2[1].xyz * r3.zzz;
  r6.xzw = r7.yzw * r1.xyz + r6.xzw;
  r6.xzw = r6.xzw * r2.xxx;
  r7.yzw = v6.xyz * r0.xxx + cb2[0].xyz;
  r3.z = dot(r7.yzw, r7.yzw);
  r3.z = rsqrt(r3.z);
  r7.yzw = r7.yzw * r3.zzz;
  r3.z = saturate(dot(r0.yzw, r7.yzw));
  r7.y = saturate(dot(r7.ywz, r4.xzw));
  r7.z = 2 + r3.x;
  r7.z = 0.159154937 * r7.z;
  r7.w = log2(r7.y);
  r7.w = r7.w * r3.x;
  r7.w = exp2(r7.w);
  r7.w = r7.z * r7.w;
  r8.x = max(1.1920929e-007, r3.z);
  r8.y = min(r6.y, r3.w);
  r7.y = r7.y + r7.y;
  r8.z = r8.y * r7.y;
  r8.z = r8.x >= r8.z;
  r8.y = r6.y == r8.y;
  r8.w = r3.w / r6.y;
  r8.y = r8.y ? 1 : r8.w;
  r7.y = r8.y * r7.y;
  r7.y = r7.y / r8.x;
  r8.x = 1 / r6.y;
  r7.y = r8.z ? r7.y : r8.x;
  r3.z = 1 + -r3.z;
  r8.y = r3.z * r3.z;
  r8.y = r8.y * r8.y;
  r8.z = r8.y * r3.z;
  r3.z = -r3.z * r8.y + 1;
  r3.z = r3.z * 0.200000003 + r8.z;
  r3.z = min(1, r3.z);
  r3.z = r3.z * r7.y;
  r3.z = r3.z * r7.w;
  r3.z = 0.25 * r3.z;
  r3.z = min(15, r3.z);
  r3.z = r3.y * r3.z;
  r8.yzw = cb2[1].xyz * r3.zzz;
  r8.yzw = r8.yzw * r3.www;
  r8.yzw = r8.yzw * r2.xxx;
  r2.x = frac(cb2[19].w);
  r2.x = cb2[19].w + -r2.x;
  r2.x = min(20, r2.x);
  r2.x = max(0, r2.x);
  r3.z = 0 < r2.x;
  if (r3.z != 0) {
    r9.xyz = r6.xzw;
    r10.xyz = r8.yzw;
    r3.z = 0;
    while (true) {
      r3.w = (int)r3.z;
      r3.w = r3.w >= r2.x;
      if (r3.w != 0) break;
      r11.xyz = cb2[r3.z+13].xyz + -v2.xyz;
      r3.w = dot(r11.xyz, r11.xyz);
      r7.y = sqrt(r3.w);
      r7.y = saturate(r7.y / cb2[r3.z+13].w);
      r7.y = -r7.y * r7.y + 1;
      r7.y = log2(r7.y);
      r7.y = 2.20000005 * r7.y;
      r7.y = exp2(r7.y);
      r3.w = rsqrt(r3.w);
      r11.xyz = r11.xyz * r3.www;
      r3.w = dot(r11.xzy, r4.xzw);
      r12.xyz = -r4.xwz * r3.www + r11.xyz;
      r7.w = dot(r5.xyz, r12.xyz);
      r9.w = -r3.w * r3.w + 1;
      r9.w = saturate(r9.w * r5.w);
      r9.w = sqrt(r9.w);
      r10.w = max(r3.w, r2.z);
      r9.w = r9.w / r10.w;
      r3.w = max(0, r3.w);
      r7.w = max(0, r7.w);
      r7.w = r7.w * r2.y;
      r7.w = r7.w * r9.w + r4.y;
      r7.w = r7.w * r3.w;
      r12.xyz = cb2[r3.z+19].xyz * r7.www;
      r7.w = r7.y * r7.y;
      r12.xyz = r7.www * r12.xyz + r9.xyz;
      r3.w = min(1, r3.w);
      r7.w = saturate(dot(r0.yzw, -r11.xyz));
      r7.w = r7.x * r7.w;
      r7.w = r7.w * r3.w;
      r13.xyz = cb2[r3.z+19].xyz * r7.www;
      r13.xyz = r13.xyz * r2.www;
      r9.xyz = r13.xyz * r7.yyy + r12.xyz;
      r11.xyz = v6.xyz * r0.xxx + r11.xyz;
      r7.w = dot(r11.xyz, r11.xyz);
      r7.w = rsqrt(r7.w);
      r11.xyz = r11.xyz * r7.www;
      r7.w = saturate(dot(r0.yzw, r11.xyz));
      r9.w = saturate(dot(r11.xzy, r4.xzw));
      r10.w = log2(r9.w);
      r10.w = r10.w * r3.x;
      r10.w = exp2(r10.w);
      r10.w = r10.w * r7.z;
      r11.x = max(1.1920929e-007, r7.w);
      r11.y = min(r6.y, r3.w);
      r9.w = r9.w + r9.w;
      r11.z = r11.y * r9.w;
      r11.z = r11.x >= r11.z;
      r11.y = r6.y == r11.y;
      r11.w = r3.w / r6.y;
      r11.y = r11.y ? 1 : r11.w;
      r9.w = r11.y * r9.w;
      r9.w = r9.w / r11.x;
      r9.w = r11.z ? r9.w : r8.x;
      r7.w = 1 + -r7.w;
      r11.x = r7.w * r7.w;
      r11.x = r11.x * r11.x;
      r11.y = r11.x * r7.w;
      r7.w = -r7.w * r11.x + 1;
      r7.w = r7.w * 0.200000003 + r11.y;
      r7.w = min(1, r7.w);
      r7.w = r7.w * r9.w;
      r7.w = r7.w * r10.w;
      r7.w = 0.25 * r7.w;
      r7.w = min(15, r7.w);
      r7.w = r7.w * r3.y;
      r11.xyz = cb2[r3.z+19].xyz * r7.www;
      r11.xyz = r11.xyz * r3.www;
      r10.xyz = r11.xyz * r7.yyy;
      r3.z = (int)r3.z + 1;
    }
    r6.xzw = r9.xyz;
    r8.yzw = r10.xyz;
  }
  r0.xyz = cb2[3].yzw + r6.xzw;
  r0.xyz = r0.xyz * r1.xyz;
  o0.xyz = r0.xyz * v7.xyz + r8.yzw;
  r0.x = r1.w * v7.w + -cb2[3].x;
  r0.x = r0.x < 0;
  if (r0.x != 0) discard;
  o0.w = cb2[2].z;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.9 on Mon Nov 23 23:47:27 2015
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float       
// TEXCOORD                 0   xy          1     NONE   float   xy  
// TEXCOORD                 4   xyzw        2     NONE   float   xyzw
// TEXCOORD                 1   xyz         3     NONE   float   xyz 
// TEXCOORD                 2   xyz         4     NONE   float   xyz 
// TEXCOORD                 3   xyz         5     NONE   float   xyz 
// TEXCOORD                 5   xyz         6     NONE   float   xyz 
// COLOR                    0   xyzw        7     NONE   float   xyzw
// SV_IsFrontFace           0   x           8    FFACE    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[8], immediateIndexed
dcl_constantbuffer cb2[38], dynamicIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s14, 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_texture2darray (float,float,float,float) t14
dcl_input_ps linear v1.xy
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyz
dcl_input_ps linear v7.xyzw
dcl_input_ps_sgv v8.x, is_front_face
dcl_output o0.xyzw
dcl_temps 14
dp3 r0.x, v6.xyzx, v6.xyzx
rsq r0.x, r0.x
mul r0.yzw, r0.xxxx, v6.xxyz
sample_indexable(texture2d)(float,float,float,float) r1.xyzw, v1.xyxx, t0.xyzw, s0
sample_indexable(texture2d)(float,float,float,float) r2.xy, v1.xyxx, t1.xyzw, s1
mad r2.xy, r2.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r2.w, r2.xyxx, r2.xyxx
min r2.w, r2.w, l(1.000000)
add r2.w, -r2.w, l(1.000000)
sqrt r2.z, r2.w
sample_indexable(texture2d)(float,float,float,float) r3.xy, v1.xyxx, t2.xyzw, s2
mul r3.xz, r3.yyxy, cb2[11].xxyx
mad r2.w, -r3.y, cb2[11].x, l(1.000000)
mad r2.w, r2.w, l(2.000000), l(-1.000000)
mul r2.w, r2.w, l(8.655910)
exp r2.w, r2.w
add r2.w, r2.w, l(1.000000)
div r2.w, l(3.000000), r2.w
add r2.w, -r2.w, l(3.000000)
mul r3.y, r3.z, l(3.14159274)
mad r3.x, r3.x, l(10.000000), l(1.000000)
exp r3.x, r3.x
dp3 r4.x, v3.xyzx, r2.xyzx
dp3 r4.y, v4.xyzx, r2.xyzx
dp3 r4.z, v5.xyzx, r2.xyzx
dp3 r2.x, r4.xyzx, r4.xyzx
rsq r2.x, r2.x
mul r4.xyz, r2.xxxx, r4.xyzx
movc r4.w, v8.x, r4.y, -r4.y
eq r2.x, cb2[10].x, l(1.000000)
if_nz r2.x
  lt r2.x, v2.w, cb2[37].w
  lt r5.xyz, cb2[37].zyxz, v2.wwww
  movc r6.xyzw, r5.zzzz, cb2[28].xyzw, cb2[25].xyzw
  movc r7.xyzw, r5.zzzz, cb2[29].xyzw, cb2[26].xyzw
  and r2.y, r5.z, l(0x3f800000)
  movc r6.xyzw, r5.yyyy, cb2[31].xyzw, r6.xyzw
  movc r7.xyzw, r5.yyyy, cb2[32].xyzw, r7.xyzw
  movc r2.y, r5.y, l(2.000000), r2.y
  movc r6.xyzw, r5.xxxx, cb2[34].xyzw, r6.xyzw
  movc r7.xyzw, r5.xxxx, cb2[35].xyzw, r7.xyzw
  movc r8.z, r5.x, l(3.000000), r2.y
  mov r9.xyz, v2.xyzx
  mov r9.w, l(1.000000)
  dp4 r8.x, r6.xyzw, r9.xyzw
  dp4 r8.y, r7.xyzw, r9.xyzw
  sample_indexable(texture2darray)(float,float,float,float) r2.y, r8.xyzx, t14.yxzw, s14
  if_nz r2.x
    movc r6.xyzw, r5.zzzz, cb2[30].xyzw, cb2[27].xyzw
    movc r6.xyzw, r5.yyyy, cb2[33].xyzw, r6.xyzw
    movc r5.xyzw, r5.xxxx, cb2[36].xyzw, r6.xyzw
    dp4 r2.x, r5.xyzw, r9.xyzw
    ge r2.x, r2.y, r2.x
    and r2.x, r2.x, l(0x3f800000)
  else 
    mov r2.x, l(1.000000)
  endif 
else 
  mov r2.x, l(1.000000)
endif 
add r2.y, -cb2[11].x, l(1.000000)
dp3 r2.z, r0.ywzy, r4.xzwx
dp3 r3.z, cb2[0].xzyx, r4.xzwx
mad r5.xyz, -r4.xwzx, r2.zzzz, r0.yzwy
mad r6.xyz, -r4.xwzx, r3.zzzz, cb2[0].xyzx
dp3 r3.w, r5.xyzx, r6.xyzx
mul r4.y, r2.y, r2.y
mad r6.xy, r2.yyyy, r2.yyyy, l(0.570000, 0.090000, 0.000000, 0.000000)
div r6.xy, r4.yyyy, r6.xyxx
mul r2.y, r6.y, l(0.450000)
mad r4.y, -r6.x, l(0.500000), l(1.000000)
mad r5.w, -r2.z, r2.z, l(1.000000)
mad r6.x, -r3.z, r3.z, l(1.000000)
mul_sat r6.x, r5.w, r6.x
sqrt r6.x, r6.x
max r6.y, r2.z, r3.z
div r6.x, r6.x, r6.y
max r6.y, r3.z, l(0.000000)
max r3.w, r3.w, l(0.000000)
mul r3.w, r2.y, r3.w
mad r3.w, r3.w, r6.x, r4.y
mul r3.w, r3.w, r6.y
mul r6.xzw, r3.wwww, cb2[1].xxyz
min r3.w, r6.y, l(1.000000)
mov_sat r6.y, r2.z
add r7.x, -r6.y, l(1.000000)
log r7.x, r7.x
mul r7.x, r7.x, l(0.010000)
exp r7.x, r7.x
dp3_sat r7.y, r0.yzwy, -cb2[0].xyzx
mul r7.y, r7.y, r7.x
mul r7.y, r3.w, r7.y
mul r7.yzw, r7.yyyy, cb2[1].xxyz
mul r7.yzw, r2.wwww, r7.yyzw
mad r6.xzw, r6.xxzw, r2.xxxx, r7.yyzw
mul r7.yzw, r1.xxyz, cb1[7].yyyy
mov_sat r8.x, -r3.z
mul r7.yzw, r7.yyzw, r8.xxxx
mad r6.xzw, cb2[1].xxyz, r7.yyzw, r6.xxzw
add r3.z, r3.z, cb1[7].x
add r7.y, cb1[7].x, l(1.000000)
div_sat r3.z, r3.z, r7.y
add r3.z, -r3.w, r3.z
max r3.z, r3.z, l(0.000000)
mul r7.yzw, r3.zzzz, cb2[1].xxyz
mad r6.xzw, r7.yyzw, r1.xxyz, r6.xxzw
mul r6.xzw, r2.xxxx, r6.xxzw
mad r7.yzw, v6.xxyz, r0.xxxx, cb2[0].xxyz
dp3 r3.z, r7.yzwy, r7.yzwy
rsq r3.z, r3.z
mul r7.yzw, r3.zzzz, r7.yyzw
dp3_sat r3.z, r0.yzwy, r7.yzwy
dp3_sat r7.y, r7.ywzy, r4.xzwx
add r7.z, r3.x, l(2.000000)
mul r7.z, r7.z, l(0.159154937)
log r7.w, r7.y
mul r7.w, r3.x, r7.w
exp r7.w, r7.w
mul r7.w, r7.w, r7.z
max r8.x, r3.z, l(1.192092896E-007)
min r8.y, r3.w, r6.y
add r7.y, r7.y, r7.y
mul r8.z, r7.y, r8.y
ge r8.z, r8.x, r8.z
eq r8.y, r6.y, r8.y
div r8.w, r3.w, r6.y
movc r8.y, r8.y, l(1.000000), r8.w
mul r7.y, r7.y, r8.y
div r7.y, r7.y, r8.x
div r8.x, l(1.000000, 1.000000, 1.000000, 1.000000), r6.y
movc r7.y, r8.z, r7.y, r8.x
add r3.z, -r3.z, l(1.000000)
mul r8.y, r3.z, r3.z
mul r8.y, r8.y, r8.y
mul r8.z, r3.z, r8.y
mad r3.z, -r3.z, r8.y, l(1.000000)
mad r3.z, r3.z, l(0.200000), r8.z
min r3.z, r3.z, l(1.000000)
mul r3.z, r7.y, r3.z
mul r3.z, r7.w, r3.z
mul r3.z, r3.z, l(0.250000)
min r3.z, r3.z, l(15.000000)
mul r3.z, r3.z, r3.y
mul r8.yzw, r3.zzzz, cb2[1].xxyz
mul r8.yzw, r3.wwww, r8.yyzw
mul r8.yzw, r2.xxxx, r8.yyzw
frc r2.x, cb2[19].w
add r2.x, -r2.x, cb2[19].w
min r2.x, r2.x, l(20.000000)
max r2.x, r2.x, l(0.000000)
lt r3.z, l(0.000000), r2.x
if_nz r3.z
  mov r9.xyz, r6.xzwx
  mov r10.xyz, r8.yzwy
  mov r3.z, l(0)
  loop 
    itof r3.w, r3.z
    ge r3.w, r3.w, r2.x
    breakc_nz r3.w
    add r11.xyz, -v2.xyzx, cb2[r3.z + 13].xyzx
    dp3 r3.w, r11.xyzx, r11.xyzx
    sqrt r7.y, r3.w
    div_sat r7.y, r7.y, cb2[r3.z + 13].w
    mad r7.y, -r7.y, r7.y, l(1.000000)
    log r7.y, r7.y
    mul r7.y, r7.y, l(2.200000)
    exp r7.y, r7.y
    rsq r3.w, r3.w
    mul r11.xyz, r3.wwww, r11.xyzx
    dp3 r3.w, r11.xzyx, r4.xzwx
    mad r12.xyz, -r4.xwzx, r3.wwww, r11.xyzx
    dp3 r7.w, r5.xyzx, r12.xyzx
    mad r9.w, -r3.w, r3.w, l(1.000000)
    mul_sat r9.w, r5.w, r9.w
    sqrt r9.w, r9.w
    max r10.w, r2.z, r3.w
    div r9.w, r9.w, r10.w
    max r3.w, r3.w, l(0.000000)
    max r7.w, r7.w, l(0.000000)
    mul r7.w, r2.y, r7.w
    mad r7.w, r7.w, r9.w, r4.y
    mul r7.w, r3.w, r7.w
    mul r12.xyz, r7.wwww, cb2[r3.z + 19].xyzx
    mul r7.w, r7.y, r7.y
    mad r12.xyz, r7.wwww, r12.xyzx, r9.xyzx
    min r3.w, r3.w, l(1.000000)
    dp3_sat r7.w, r0.yzwy, -r11.xyzx
    mul r7.w, r7.w, r7.x
    mul r7.w, r3.w, r7.w
    mul r13.xyz, r7.wwww, cb2[r3.z + 19].xyzx
    mul r13.xyz, r2.wwww, r13.xyzx
    mad r9.xyz, r13.xyzx, r7.yyyy, r12.xyzx
    mad r11.xyz, v6.xyzx, r0.xxxx, r11.xyzx
    dp3 r7.w, r11.xyzx, r11.xyzx
    rsq r7.w, r7.w
    mul r11.xyz, r7.wwww, r11.xyzx
    dp3_sat r7.w, r0.yzwy, r11.xyzx
    dp3_sat r9.w, r11.xzyx, r4.xzwx
    log r10.w, r9.w
    mul r10.w, r3.x, r10.w
    exp r10.w, r10.w
    mul r10.w, r7.z, r10.w
    max r11.x, r7.w, l(1.192092896E-007)
    min r11.y, r3.w, r6.y
    add r9.w, r9.w, r9.w
    mul r11.z, r9.w, r11.y
    ge r11.z, r11.x, r11.z
    eq r11.y, r6.y, r11.y
    div r11.w, r3.w, r6.y
    movc r11.y, r11.y, l(1.000000), r11.w
    mul r9.w, r9.w, r11.y
    div r9.w, r9.w, r11.x
    movc r9.w, r11.z, r9.w, r8.x
    add r7.w, -r7.w, l(1.000000)
    mul r11.x, r7.w, r7.w
    mul r11.x, r11.x, r11.x
    mul r11.y, r7.w, r11.x
    mad r7.w, -r7.w, r11.x, l(1.000000)
    mad r7.w, r7.w, l(0.200000), r11.y
    min r7.w, r7.w, l(1.000000)
    mul r7.w, r9.w, r7.w
    mul r7.w, r10.w, r7.w
    mul r7.w, r7.w, l(0.250000)
    min r7.w, r7.w, l(15.000000)
    mul r7.w, r3.y, r7.w
    mul r11.xyz, r7.wwww, cb2[r3.z + 19].xyzx
    mul r11.xyz, r3.wwww, r11.xyzx
    mul r10.xyz, r7.yyyy, r11.xyzx
    iadd r3.z, r3.z, l(1)
  endloop 
  mov r6.xzw, r9.xxyz
  mov r8.yzw, r10.xxyz
endif 
add r0.xyz, r6.xzwx, cb2[3].yzwy
mul r0.xyz, r1.xyzx, r0.xyzx
mad o0.xyz, r0.xyzx, v7.xyzx, r8.yzwy
mad r0.x, r1.w, v7.w, -cb2[3].x
lt r0.x, r0.x, l(0.000000)
discard_nz r0.x
mov o0.w, cb2[2].z
ret 
// Approximately 0 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 