// Reflections
Texture2D<float4> t8 : register(t8);

Texture2D<float4> t7 : register(t7);

Texture2D<float4> t6 : register(t6);

Texture2D<float4> t5 : register(t5);

Texture2D<float4> t4 : register(t4);

Texture2D<float4> t3 : register(t3);

Texture2D<float4> t2 : register(t2);

Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s8_s : register(s8);

SamplerState s7_s : register(s7);

SamplerState s6_s : register(s6);

SamplerState s5_s : register(s5);

SamplerState s4_s : register(s4);

SamplerState s3_s : register(s3);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb3 : register(b3)
{
  float4 cb3[22];
}

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

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

cbuffer cb0 : register(b0)
{
  float4 cb0[129];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);
#include "matrix.hlsl"

void main( 
  linear centroid float4 v0 : TEXCOORD10,
  linear centroid float4 v1 : TEXCOORD11,
  float4 v2 : COLOR0,
  float2 v3 : TEXCOORD0,
  float4 v4 : SV_Position0,
  uint v5 : SV_IsFrontFace0,
  out float4 o0 : SV_Target0,
  out float4 o1 : SV_Target1,
  out float4 o2 : SV_Target2,
  out float4 o3 : SV_Target3,
  out float4 o4 : SV_Target4,
  out float4 o5 : SV_Target5)
{
  float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyz = v1.zxy * v0.yzx;
  r0.xyz = v1.yzx * v0.zxy + -r0.xyz;
  r0.xyz = v1.www * r0.xyz;
  r1.xyzw = cb0[37].xyzw * v4.yyyy;
  r1.xyzw = v4.xxxx * cb0[36].xyzw + r1.xyzw;
  r1.xyzw = v4.zzzz * cb0[38].xyzw + r1.xyzw;
  r1.xyzw = cb0[39].xyzw + r1.xyzw;
  r1.xyz = r1.xyz / r1.www;
  
// Common SVPositionToTranslatedWorld fix:
float4 s = StereoParams.Load(0);
matrix TranslatedWorldToClip = MATRIX(cb0, 0);
matrix ClipToTranslatedWorld = MATRIX(cb0, 32);
float4 t = mul(r1.xyz, TranslatedWorldToClip);
t.x -= s.x * (t.w - s.y);
r1.xyz = mul(t, ClipToTranslatedWorld);
  
  r0.w = dot(-r1.xyz, -r1.xyz);
  r0.w = rsqrt(r0.w);
  r2.xyz = -r1.xyz * r0.www;
  r3.xy = t0.Sample(s0_s, v3.xy).xy;
  r3.xy = r3.xy * float2(2,2) + float2(-1,-1);
  r0.w = dot(r3.xy, r3.xy);
  r0.w = 1 + -r0.w;
  r0.w = max(0, r0.w);
  r3.z = sqrt(r0.w);
  r4.xy = v3.xy * float2(2,2) + float2(-0.5,-0.5);
  r4.zw = t1.Sample(s8_s, r4.xy).xy;
  r5.xy = r4.zw * float2(2,2) + float2(-1,-1);
  r0.w = dot(r5.xy, r5.xy);
  r0.w = 1 + -r0.w;
  r0.w = max(0, r0.w);
  r5.z = sqrt(r0.w);
  r0.w = t2.SampleLevel(s1_s, r4.xy, -1).x;
  r0.w = cb3[16].x * r0.w;
  r4.xyz = r5.xyz * cb3[16].yyy + -r3.xyz;
  r3.xyw = r0.www * r4.xyz + r3.xyz;
  r4.xy = cb3[16].ww * v3.xy;
  r4.xy = t3.Sample(s2_s, r4.xy).xy;
  r4.xy = r4.xy * float2(2,2) + float2(-1,-1);
  r1.w = dot(r4.xy, r4.xy);
  r1.w = 1 + -r1.w;
  r1.w = max(0, r1.w);
  r4.z = sqrt(r1.w);
  r4.xyz = cb3[2].xyz * r4.xyz;
  r5.xyw = t4.Sample(s3_s, v3.xy).xyz;
  r3.xyw = r4.xyz * r5.www + r3.xyw;
  r3.xyw = r3.xyw * cb0[122].www + cb0[122].xyz;
  r1.w = dot(r3.xyw, r3.xyw);
  r1.w = rsqrt(r1.w);
  r3.xyw = r3.xyw * r1.www;
  r0.xyz = r3.yyy * r0.xyz;
  r0.xyz = r3.xxx * v0.xyz + r0.xyz;
  r0.xyz = r3.www * v1.xyz + r0.xyz;
  r1.w = dot(r0.xyz, r0.xyz);
  r1.w = rsqrt(r1.w);
  r0.xyz = r1.www * r0.xyz;
  r3.xy = t5.Sample(s4_s, v3.xy).xy;
  r1.w = cb3[17].x * r3.y + r3.y;
  r4.xyz = cb3[3].xyz + r1.www;
  r6.xyz = t6.Sample(s5_s, v3.xy).xyz;
  r1.w = dot(r6.xyz, float3(0.300000012,0.589999974,0.109999999));
  r7.xyz = r1.www + -r6.xyz;
  r6.xyz = cb3[17].yyy * r7.xyz + r6.xyz;
  r7.xyz = cb3[8].xyz * r6.xyz;
  r8.xyz = -r6.xyz * cb3[8].xyz + float3(1,1,1);
  r8.xyz = r8.xyz + r8.xyz;
  r3.yw = float2(1.5,1.5) * v3.xy;
  r9.xyzw = t7.Sample(s6_s, r3.yw).xyzw;
  r10.xyzw = float4(1,1,1,1) + -r9.xyzw;
  r8.xyz = -r8.xyz * r10.xyz + float3(1,1,1);
  r10.xyz = r9.xyz * r7.xyz;
  r10.xyz = r10.xyz + r10.xyz;
  r11.xyz = cmp(r7.xyz >= float3(0.5,0.5,0.5));
  r8.xyz = r11.xyz ? r8.xyz : r10.xyz;
  r1.w = cb3[17].w * r5.w;
  r6.xyz = -r6.xyz * cb3[8].xyz + r8.xyz;
  r6.xyz = r1.www * r6.xyz + r7.xyz;
  r1.w = dot(r0.xyz, r2.xyz);
  r1.w = max(0, r1.w);
  r1.w = 1 + -r1.w;
  r1.w = max(9.99999997e-007, abs(r1.w));
  r2.x = r1.w * r1.w;
  r2.y = r2.x * r2.x;
  r1.w = r2.y * r1.w;
  r2.yzw = float3(1,1,1) + -r6.xyz;
  r2.yzw = r2.yzw * r1.www;
  r2.yzw = cb3[18].xxx * r2.yzw + r6.xyz;
  r1.w = r5.z + -r3.z;
  r0.w = r0.w * r1.w + r3.z;
  r0.w = r0.w * 0.5 + 0.5;
  r1.w = r3.x * r0.w + -1;
  r1.w = cb3[18].y * r1.w + 1;
  r2.yzw = r2.yzw * r1.www;
  r2.yzw = saturate(cb3[4].xyz * r2.yzw);
  r3.x = cb3[18].z * r5.x;
  r3.y = -cb3[18].z * r5.x + 1;
  r3.y = r3.y + r3.y;
  r3.y = -r3.y * r10.w + 1;
  r3.z = dot(r3.xx, r9.ww);
  r3.w = cmp(r3.x >= 0.5);
  r3.y = r3.w ? r3.y : r3.z;
  r3.y = -cb3[18].z * r5.x + r3.y;
  r3.x = cb3[18].w * r3.y + r3.x;
  r1.w = saturate(r3.x * r1.w);
  r3.x = -1 + cb3[19].x;
  r0.w = saturate(r0.w * r3.x + 1);
  r3.x = max(9.99999997e-007, abs(r5.y));
  r3.x = log2(r3.x);
  r3.x = cb3[19].y * r3.x;
  r3.x = exp2(r3.x);
  r3.y = cb3[19].z + -cb3[19].w;
  o4.w = saturate(r3.x * r3.y + cb3[19].w);
  o2.z = r0.w * cb0[123].y + cb0[123].x;
  r0.w = t8.SampleBias(s7_s, v3.xy, cb3[20].x).x;
  r0.w = -1 + r0.w;
  r0.w = cb3[18].y * r0.w + 1;
  r3.x = dot(r9.xyz, float3(0.300000012,0.589999974,0.109999999));
  r3.xyz = r3.xxx + -r9.xyz;
  r3.xyz = cb3[20].zzz * r3.xyz + r9.xyz;
  r5.xyz = float3(1,1,1) + -r3.xyz;
  r5.xyz = -cb3[14].xyz * r5.xyz + float3(1,1,1);
  r3.xyz = cb3[15].xyz * r3.xyz;
  r3.w = cmp(cb3[20].w >= 0.5);
  r6.x = r3.w ? r5.x : r3.x;
  r3.xw = cmp(cb3[21].xy >= float2(0.5,0.5));
  r6.yz = r3.xw ? r5.yz : r3.yz;
  r3.xyz = -cb3[12].xyz + r6.xyz;
  r3.xyz = cb3[21].zzz * r3.xyz + cb3[12].xyz;
  r5.xyz = r3.xyz * cb3[21].www + -r3.xyz;
  r5.xyz = r5.xyz * r2.xxx;
  r3.xyz = cb3[18].xxx * r5.xyz + r3.xyz;
  r5.xyz = float3(0.00999999978,0.00999999978,0.00999999978) + -r3.xyz;
  r3.xyz = r5.xyz * float3(0.5,0.5,0.5) + r3.xyz;
  r3.xyz = saturate(r3.xyz * r0.www);
  r3.xyz = saturate(r3.xyz * cb0[120].www + cb0[120].xyz);
  r0.w = cmp(0 < cb1[11].y);
  o5.x = r0.w ? cb2[5].x : 1;
  o4.xyz = sqrt(r3.xyz);
  r0.w = cb0[121].w * r1.w;
  r3.xyz = r2.yzw * cb0[120].www + cb0[120].xyz;
  r5.xyz = r0.www * float3(0.0799999982,0.0799999982,0.0799999982) + cb0[121].xyz;
  r3.xyz = r5.xyz * float3(0.449999988,0.449999988,0.449999988) + r3.xyz;
  r4.xyz = max(float3(0,0,0), r4.xyz);
  r0.w = cmp(0 < cb0[124].x);
  if (r0.w != 0) {
    r1.xyz = -cb0[58].xyz + r1.xyz;
    r5.xyz = -cb1[8].xyz + r1.xyz;
    r6.xyz = float3(1,1,1) + cb1[9].xyz;
    r5.xyz = cmp(r6.xyz < abs(r5.xyz));
    r0.w = (int)r5.y | (int)r5.x;
    r0.w = (int)r5.z | (int)r0.w;
    r1.x = dot(r1.xyz, float3(0.577000022,0.577000022,0.577000022));
    r1.x = 0.00200000009 * r1.x;
    r1.x = frac(r1.x);
    r1.x = cmp(0.5 < r1.x);
    r1.xyz = r1.xxx ? float3(0,1,1) : float3(1,1,0);
    r4.xyz = r0.www ? r1.xyz : r4.xyz;
  }
  o0.xyz = cb0[128].xxx * r3.xyz + r4.xyz;
  r1.xyz = float3(0.0078125,0.0078125,0.0078125) * v4.xyx;
  r1.xyz = frac(r1.xyz);
  r1.xyz = r1.xyz * float3(128,128,128) + float3(-64.3406219,-72.4656219,-64.3406219);
  r1.xyz = r1.xyz * r1.xyy;
  r0.w = dot(r1.xyz, float3(20.390625,60.703125,2.42812085));
  r0.w = frac(r0.w);
  r0.w = -0.5 + r0.w;
  o1.xyz = r0.xyz * float3(0.5,0.5,0.5) + float3(0.5,0.5,0.5);
  o3.w = 0.00392156886 * r0.w;
  o0.w = 0;
  o1.w = cb1[11].x;
  o2.xw = float2(0,0.760784328);
  o2.y = r1.w;
  o3.xyz = r2.yzw;
  o5.yzw = float3(1,1,1);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.65 on Wed Sep 20 20:59:39 2017
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                10   xyzw        0     NONE   float   xyz 
// TEXCOORD                11   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float       
// TEXCOORD                 0   xy          3     NONE   float   xy  
// SV_Position              0   xyzw        4      POS   float   xyz 
// SV_IsFrontFace           0   x           5    FFACE    uint       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
// SV_Target                1   xyzw        1   TARGET   float   xyzw
// SV_Target                2   xyzw        2   TARGET   float   xyzw
// SV_Target                3   xyzw        3   TARGET   float   xyzw
// SV_Target                4   xyzw        4   TARGET   float   xyzw
// SV_Target                5   xyzw        5   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[129], immediateIndexed
dcl_constantbuffer cb1[12], immediateIndexed
dcl_constantbuffer cb2[6], immediateIndexed
dcl_constantbuffer cb3[22], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_default
dcl_sampler s6, mode_default
dcl_sampler s7, mode_default
dcl_sampler s8, 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_input_ps linear centroid v0.xyz
dcl_input_ps linear centroid v1.xyzw
dcl_input_ps linear v3.xy
dcl_input_ps_siv linear noperspective v4.xyz, position
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_temps 12
mul r0.xyz, v0.yzxy, v1.zxyz
mad r0.xyz, v1.yzxy, v0.zxyz, -r0.xyzx
mul r0.xyz, r0.xyzx, v1.wwww
mul r1.xyzw, v4.yyyy, cb0[37].xyzw
mad r1.xyzw, v4.xxxx, cb0[36].xyzw, r1.xyzw
mad r1.xyzw, v4.zzzz, cb0[38].xyzw, r1.xyzw
add r1.xyzw, r1.xyzw, cb0[39].xyzw
div r1.xyz, r1.xyzx, r1.wwww
dp3 r0.w, -r1.xyzx, -r1.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, -r1.xyzx
sample_indexable(texture2d)(float,float,float,float) r3.xy, v3.xyxx, t0.xyzw, s0
mad r3.xy, r3.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r3.xyxx, r3.xyxx
add r0.w, -r0.w, l(1.000000)
max r0.w, r0.w, l(0.000000)
sqrt r3.z, r0.w
mad r4.xy, v3.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-0.500000, -0.500000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r4.zw, r4.xyxx, t1.zwxy, s8
mad r5.xy, r4.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r5.xyxx, r5.xyxx
add r0.w, -r0.w, l(1.000000)
max r0.w, r0.w, l(0.000000)
sqrt r5.z, r0.w
sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t2.yzwx, s1, l(-1.000000)
mul r0.w, r0.w, cb3[16].x
mad r4.xyz, r5.xyzx, cb3[16].yyyy, -r3.xyzx
mad r3.xyw, r0.wwww, r4.xyxz, r3.xyxz
mul r4.xy, v3.xyxx, cb3[16].wwww
sample_indexable(texture2d)(float,float,float,float) r4.xy, r4.xyxx, t3.xyzw, s2
mad r4.xy, r4.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r1.w, r4.xyxx, r4.xyxx
add r1.w, -r1.w, l(1.000000)
max r1.w, r1.w, l(0.000000)
sqrt r4.z, r1.w
mul r4.xyz, r4.xyzx, cb3[2].xyzx
sample_indexable(texture2d)(float,float,float,float) r5.xyw, v3.xyxx, t4.xywz, s3
mad r3.xyw, r4.xyxz, r5.wwww, r3.xyxw
mad r3.xyw, r3.xyxw, cb0[122].wwww, cb0[122].xyxz
dp3 r1.w, r3.xywx, r3.xywx
rsq r1.w, r1.w
mul r3.xyw, r1.wwww, r3.xyxw
mul r0.xyz, r0.xyzx, r3.yyyy
mad r0.xyz, r3.xxxx, v0.xyzx, r0.xyzx
mad r0.xyz, r3.wwww, v1.xyzx, r0.xyzx
dp3 r1.w, r0.xyzx, r0.xyzx
rsq r1.w, r1.w
mul r0.xyz, r0.xyzx, r1.wwww
sample_indexable(texture2d)(float,float,float,float) r3.xy, v3.xyxx, t5.xyzw, s4
mad r1.w, cb3[17].x, r3.y, r3.y
add r4.xyz, r1.wwww, cb3[3].xyzx
sample_indexable(texture2d)(float,float,float,float) r6.xyz, v3.xyxx, t6.xyzw, s5
dp3 r1.w, r6.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
add r7.xyz, -r6.xyzx, r1.wwww
mad r6.xyz, cb3[17].yyyy, r7.xyzx, r6.xyzx
mul r7.xyz, r6.xyzx, cb3[8].xyzx
mad r8.xyz, -r6.xyzx, cb3[8].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r8.xyz, r8.xyzx, r8.xyzx
mul r3.yw, v3.xxxy, l(0.000000, 1.500000, 0.000000, 1.500000)
sample_indexable(texture2d)(float,float,float,float) r9.xyzw, r3.ywyy, t7.xyzw, s6
add r10.xyzw, -r9.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
mad r8.xyz, -r8.xyzx, r10.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r10.xyz, r7.xyzx, r9.xyzx
add r10.xyz, r10.xyzx, r10.xyzx
ge r11.xyz, r7.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
movc r8.xyz, r11.xyzx, r8.xyzx, r10.xyzx
mul r1.w, r5.w, cb3[17].w
mad r6.xyz, -r6.xyzx, cb3[8].xyzx, r8.xyzx
mad r6.xyz, r1.wwww, r6.xyzx, r7.xyzx
dp3 r1.w, r0.xyzx, r2.xyzx
max r1.w, r1.w, l(0.000000)
add r1.w, -r1.w, l(1.000000)
max r1.w, |r1.w|, l(0.000001)
mul r2.x, r1.w, r1.w
mul r2.y, r2.x, r2.x
mul r1.w, r1.w, r2.y
add r2.yzw, -r6.xxyz, l(0.000000, 1.000000, 1.000000, 1.000000)
mul r2.yzw, r1.wwww, r2.yyzw
mad r2.yzw, cb3[18].xxxx, r2.yyzw, r6.xxyz
add r1.w, -r3.z, r5.z
mad r0.w, r0.w, r1.w, r3.z
mad r0.w, r0.w, l(0.500000), l(0.500000)
mad r1.w, r3.x, r0.w, l(-1.000000)
mad r1.w, cb3[18].y, r1.w, l(1.000000)
mul r2.yzw, r1.wwww, r2.yyzw
mul_sat r2.yzw, r2.yyzw, cb3[4].xxyz
mul r3.x, r5.x, cb3[18].z
mad r3.y, -cb3[18].z, r5.x, l(1.000000)
add r3.y, r3.y, r3.y
mad r3.y, -r3.y, r10.w, l(1.000000)
dp2 r3.z, r3.xxxx, r9.wwww
ge r3.w, r3.x, l(0.500000)
movc r3.y, r3.w, r3.y, r3.z
mad r3.y, -cb3[18].z, r5.x, r3.y
mad r3.x, cb3[18].w, r3.y, r3.x
mul_sat r1.w, r1.w, r3.x
add r3.x, cb3[19].x, l(-1.000000)
mad_sat r0.w, r0.w, r3.x, l(1.000000)
max r3.x, |r5.y|, l(0.000001)
log r3.x, r3.x
mul r3.x, r3.x, cb3[19].y
exp r3.x, r3.x
add r3.y, -cb3[19].w, cb3[19].z
mad_sat o4.w, r3.x, r3.y, cb3[19].w
mad o2.z, r0.w, cb0[123].y, cb0[123].x
sample_b_indexable(texture2d)(float,float,float,float) r0.w, v3.xyxx, t8.yzwx, s7, cb3[20].x
add r0.w, r0.w, l(-1.000000)
mad r0.w, cb3[18].y, r0.w, l(1.000000)
dp3 r3.x, r9.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
add r3.xyz, -r9.xyzx, r3.xxxx
mad r3.xyz, cb3[20].zzzz, r3.xyzx, r9.xyzx
add r5.xyz, -r3.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r5.xyz, -cb3[14].xyzx, r5.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r3.xyz, r3.xyzx, cb3[15].xyzx
ge r3.w, cb3[20].w, l(0.500000)
movc r6.x, r3.w, r5.x, r3.x
ge r3.xw, cb3[21].xxxy, l(0.500000, 0.000000, 0.000000, 0.500000)
movc r6.yz, r3.xxwx, r5.yyzy, r3.yyzy
add r3.xyz, r6.xyzx, -cb3[12].xyzx
mad r3.xyz, cb3[21].zzzz, r3.xyzx, cb3[12].xyzx
mad r5.xyz, r3.xyzx, cb3[21].wwww, -r3.xyzx
mul r5.xyz, r2.xxxx, r5.xyzx
mad r3.xyz, cb3[18].xxxx, r5.xyzx, r3.xyzx
add r5.xyz, -r3.xyzx, l(0.010000, 0.010000, 0.010000, 0.000000)
mad r3.xyz, r5.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), r3.xyzx
mul_sat r3.xyz, r0.wwww, r3.xyzx
mad_sat r3.xyz, r3.xyzx, cb0[120].wwww, cb0[120].xyzx
lt r0.w, l(0.000000), cb1[11].y
movc o5.x, r0.w, cb2[5].x, l(1.000000)
sqrt o4.xyz, r3.xyzx
mul r0.w, r1.w, cb0[121].w
mad r3.xyz, r2.yzwy, cb0[120].wwww, cb0[120].xyzx
mad r5.xyz, r0.wwww, l(0.080000, 0.080000, 0.080000, 0.000000), cb0[121].xyzx
mad r3.xyz, r5.xyzx, l(0.450000, 0.450000, 0.450000, 0.000000), r3.xyzx
max r4.xyz, r4.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r0.w, l(0.000000), cb0[124].x
if_nz r0.w
  add r1.xyz, r1.xyzx, -cb0[58].xyzx
  add r5.xyz, r1.xyzx, -cb1[8].xyzx
  add r6.xyz, cb1[9].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  lt r5.xyz, r6.xyzx, |r5.xyzx|
  or r0.w, r5.y, r5.x
  or r0.w, r5.z, r0.w
  dp3 r1.x, r1.xyzx, l(0.577000, 0.577000, 0.577000, 0.000000)
  mul r1.x, r1.x, l(0.002000)
  frc r1.x, r1.x
  lt r1.x, l(0.500000), r1.x
  movc r1.xyz, r1.xxxx, l(0,1.000000,1.000000,0), l(1.000000,1.000000,0,0)
  movc r4.xyz, r0.wwww, r1.xyzx, r4.xyzx
endif 
mad o0.xyz, cb0[128].xxxx, r3.xyzx, r4.xyzx
mul r1.xyz, v4.xyxx, l(0.00781250000, 0.00781250000, 0.00781250000, 0.000000)
frc r1.xyz, r1.xyzx
mad r1.xyz, r1.xyzx, l(128.000000, 128.000000, 128.000000, 0.000000), l(-64.340622, -72.465622, -64.340622, 0.000000)
mul r1.xyz, r1.xyyx, r1.xyzx
dp3 r0.w, r1.xyzx, l(20.390625, 60.703125, 2.42812085, 0.000000)
frc r0.w, r0.w
add r0.w, r0.w, l(-0.500000)
mad o1.xyz, r0.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
mul o3.w, r0.w, l(0.00392156886)
mov o0.w, l(0)
mov o1.w, cb1[11].x
mov o2.xw, l(0,0,0,0.760784328)
mov o2.y, r1.w
mov o3.xyz, r2.yzwy
mov o5.yzw, l(0,1.000000,1.000000,1.000000)
ret 
// Approximately 0 instruction slots used

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