//river
// ---- Created with 3Dmigoto v0.6.164 on Wed Jan 21 00:14:20 2026
Texture3D<float4> t15 : register(t15);

TextureCube<float4> t14 : register(t14);

TextureCube<float4> t13 : register(t13);

Texture2D<float4> t12 : register(t12);

Texture2D<float4> t11 : register(t11);

Texture2D<float4> t10 : register(t10);

Texture2D<float4> t9 : register(t9);

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 s14_s : register(s14);

SamplerState s13_s : register(s13);

SamplerState s12_s : register(s12);

SamplerState s11_s : register(s11);

SamplerState s10_s : register(s10);

SamplerState s9_s : register(s9);

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 cb5 : register(b5)
{
  float4 cb5[7];
}

cbuffer cb4 : register(b4)
{
  float4 cb4[8];
}

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

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

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

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

cbuffer cb13 : register(b13)
{
  float4 cb13[20];
}



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


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

  r0.x = v2.w;
  r0.y = v3.w;
  r0.z = v4.w;
  r1.xyz = cb1[4].xyz + -r0.xyz;
  
float4 s = StereoParams.Load(0);
float4 testeo = IniParams.Load(int2(90,0));
float fov =  cb13[9].x * cb13[9].x + cb13[10].x * cb13[10].x + cb13[11].x * cb13[11].x ;
r1.x += s.x *   s.y * cb13[9].x  * fov ;  
r1.y += s.x *   s.y * cb13[10].x * fov ;
r1.z += s.x *   s.y * cb13[11].x * fov ;   
  
  r0.w = dot(r1.xyz, r1.xyz);
  r0.w = rsqrt(r0.w);
  r2.xyz = r1.xyz * r0.www;
  r3.xy = cb0[5].xy * v1.xy;
  r1.w = 1 / cb0[5].z;
  r3.xy = r3.xy * r1.ww;
  r2.w = asint(cb0[4].y);
  r2.w = cmp(r2.w == 1.000000);
  r3.zw = r2.ww ? cb0[4].zw : cb0[4].wz;
  r3.zw = cb1[0].yy * r3.zw + r3.xy;
  r4.xy = cb0[6].xy * cb0[5].xy;
  r4.xy = v1.zw * r4.xy;
  r4.xy = r2.ww ? r4.xy : r4.yx;
  r5.xyz = float3(0.150000006,0.200000003,0.600000024) * cb1[0].yyy;
  r5.xyz = frac(r5.xyz);
  r4.zw = r4.xy * r5.xx + r3.xy;
  r6.xyz = cb1[0].yyy * float3(0.150000006,0.200000003,0.600000024) + float3(0.5,0.5,0.5);
  r6.xyz = frac(r6.xyz);
  r3.xy = r4.xy * r6.xx + r3.xy;
  r7.xyz = float3(-0.5,-0.5,-0.5) + r5.xyz;
  r7.xyz = r7.xyz + r7.xyz;
  r8.xyz = t0.Sample(s3_s, r4.zw).xyw;
  r8.x = r8.x * r8.z;
  r4.xy = r8.xy * float2(2,2) + float2(-1,-1);
  r8.xy = cb0[5].ww * r4.xy;
  r4.x = dot(r8.xy, r8.xy);
  r4.x = min(1, r4.x);
  r4.x = 1 + -r4.x;
  r8.z = sqrt(r4.x);
  r9.xyz = t0.Sample(s3_s, r3.xy).xyw;
  r9.x = r9.x * r9.z;
  r4.xy = r9.xy * float2(2,2) + float2(-1,-1);
  r9.xy = cb0[5].ww * r4.xy;
  r4.x = dot(r9.xy, r9.xy);
  r4.x = min(1, r4.x);
  r4.x = 1 + -r4.x;
  r9.z = sqrt(r4.x);
  r9.xyz = r9.xyz + -r8.xyz;
  r8.xyz = abs(r7.xxx) * r9.xyz + r8.xyz;
  r4.xy = float2(0.0500000007,0.0500000007) * r8.xy;
  r4.xy = r3.zw * cb0[12].xy + r4.xy;
  r9.xyz = t1.Sample(s8_s, r4.xy).xyw;
  r9.x = r9.x * r9.z;
  r4.xy = r9.xy * float2(2,2) + float2(-1,-1);
  r9.xy = cb0[11].ww * r4.xy;
  r5.w = dot(r9.xy, r9.xy);
  r5.w = min(1, r5.w);
  r5.w = 1 + -r5.w;
  r5.w = sqrt(r5.w);
  r3.zw = r8.xy * float2(0.0500000007,0.0500000007) + r3.zw;
  r9.xyz = t0.Sample(s3_s, r3.zw).xyw;
  r9.x = r9.x * r9.z;
  r9.xy = r9.xy * float2(2,2) + float2(-1,-1);
  r9.xy = cb0[12].zz * r9.xy;
  r6.w = dot(r9.xy, r9.xy);
  r6.w = min(1, r6.w);
  r6.w = 1 + -r6.w;
  r6.w = sqrt(r6.w);
  r9.xy = r4.xy * cb0[11].ww + r9.xy;
  r9.z = r6.w * r5.w;
  r4.x = dot(r9.xyz, r9.xyz);
  r4.x = rsqrt(r4.x);
  r4.y = r9.z * r4.x;
  r9.xy = r9.xy * r4.xx + r8.xy;
  r9.z = r4.y * r8.z;
  r4.x = dot(r9.xyz, r9.xyz);
  r4.x = rsqrt(r4.x);
  r8.xyz = r9.xyz * r4.xxx;
  r10.xy = cb0[7].xy * v1.xy;
  r10.xy = r10.xy * r1.ww;
  r11.xyzw = r2.wwww ? cb0[6].zwzw : cb0[6].wzwz;
  r11.xyzw = cb1[0].yyyy * r11.xyzw + r10.xyxy;
  r10.zw = cb0[8].xy * cb0[7].xy;
  r10.zw = v1.zw * r10.zw;
  r10.zw = r2.ww ? r10.zw : r10.wz;
  r5.yw = r10.zw * r5.yy + r10.xy;
  r6.yw = r10.zw * r6.yy + r10.xy;
  r10.xyz = t2.Sample(s5_s, r5.yw).xyw;
  r10.x = r10.x * r10.z;
  r10.xy = r10.xy * float2(2,2) + float2(-1,-1);
  r10.xy = cb0[7].zz * r10.xy;
  r4.y = dot(r10.xy, r10.xy);
  r4.y = min(1, r4.y);
  r4.y = 1 + -r4.y;
  r10.z = sqrt(r4.y);
  r12.xyz = t2.Sample(s5_s, r6.yw).xyw;
  r12.x = r12.x * r12.z;
  r12.xy = r12.xy * float2(2,2) + float2(-1,-1);
  r12.xy = cb0[7].zz * r12.xy;
  r4.y = dot(r12.xy, r12.xy);
  r4.y = min(1, r4.y);
  r4.y = 1 + -r4.y;
  r12.z = sqrt(r4.y);
  r12.xyz = r12.xyz + -r10.xyz;
  r10.xyz = abs(r7.yyy) * r12.xyz + r10.xyz;
  r12.xy = float2(0.100000001,0.100000001) * r10.xy;
  r12.xy = r11.zw * cb0[12].xy + r12.xy;
  r12.xyz = t1.Sample(s8_s, r12.xy).xyw;
  r12.x = r12.x * r12.z;
  r12.xy = r12.xy * float2(2,2) + float2(-1,-1);
  r12.zw = cb0[11].ww * r12.xy;
  r4.y = dot(r12.zw, r12.zw);
  r4.y = min(1, r4.y);
  r4.y = 1 + -r4.y;
  r4.y = sqrt(r4.y);
  r11.xyzw = r10.xyxy * float4(0.100000001,0.100000001,0.0500000007,0.0500000007) + r11.xyzw;
  r13.xyz = t2.Sample(s5_s, r11.xy).xyw;
  r13.x = r13.x * r13.z;
  r11.xy = r13.xy * float2(2,2) + float2(-1,-1);
  r11.xy = cb0[12].zz * r11.xy;
  r7.w = dot(r11.xy, r11.xy);
  r7.w = min(1, r7.w);
  r7.w = 1 + -r7.w;
  r7.w = sqrt(r7.w);
  r12.xy = r12.xy * cb0[11].ww + r11.xy;
  r12.z = r7.w * r4.y;
  r4.y = dot(r12.xyz, r12.xyz);
  r4.y = rsqrt(r4.y);
  r7.w = r12.z * r4.y;
  r12.xy = r12.xy * r4.yy + r10.xy;
  r12.z = r7.w * r10.z;
  r4.y = dot(r12.xyz, r12.xyz);
  r4.y = rsqrt(r4.y);
  r7.w = saturate(v3.z);
  r8.w = 0.0222222228 * cb0[8].w;
  r9.w = -cb0[8].w * 0.0222222228 + 1;
  r9.w = -r9.w + r7.w;
  r9.w = max(0, r9.w);
  r9.w = min(2, r9.w);
  r8.w = 1 / r8.w;
  r8.w = saturate(r9.w * r8.w);
  r8.w = 1 + -r8.w;
  r8.w = log2(r8.w);
  r8.w = cb0[9].x * r8.w;
  r8.w = exp2(r8.w);
  r10.xy = float2(0.0222222228,0.5) * cb0[9].yw;
  r9.w = -cb0[9].y * 0.0222222228 + 1;
  r7.w = -r9.w + r7.w;
  r7.w = max(0, r7.w);
  r7.w = min(2, r7.w);
  r9.w = 1 / r10.x;
  r7.w = saturate(r9.w * r7.w);
  r7.w = 1 + -r7.w;
  r7.w = log2(r7.w);
  r7.w = cb0[9].z * r7.w;
  r7.w = exp2(r7.w);
  r7.w = min(1, r7.w);
  r8.w = saturate(r8.w + -r7.w);
  r10.xzw = r12.xyz * r4.yyy + -r8.xyz;
  r8.xyz = r8.www * r10.xzw + r8.xyz;
  r10.xz = cb0[10].zw * v1.xy;
  r10.xz = r10.xz * r1.ww;
  r13.xyzw = r2.wwww ? cb0[10].xyxy : cb0[10].yxyx;
  r13.xyzw = cb1[0].yyyy * r13.xyzw + r10.xzxz;
  r11.xy = cb0[11].yz * cb0[10].zw;
  r11.xy = v1.zw * r11.xy;
  r11.xy = r2.ww ? r11.xy : r11.yx;
  r14.xy = r11.xy * r5.zz + r10.xz;
  r10.xz = r11.xy * r6.zz + r10.xz;
  r15.xyz = t3.Sample(s7_s, r14.xy).xyw;
  r15.x = r15.x * r15.z;
  r11.xy = r15.xy * float2(2,2) + float2(-1,-1);
  r15.xy = cb0[11].xx * r11.xy;
  r5.z = dot(r15.xy, r15.xy);
  r5.z = min(1, r5.z);
  r5.z = 1 + -r5.z;
  r15.z = sqrt(r5.z);
  r16.xyz = t3.Sample(s7_s, r10.xz).xyw;
  r16.x = r16.x * r16.z;
  r11.xy = r16.xy * float2(2,2) + float2(-1,-1);
  r16.xy = cb0[11].xx * r11.xy;
  r5.z = dot(r16.xy, r16.xy);
  r5.z = min(1, r5.z);
  r5.z = 1 + -r5.z;
  r16.z = sqrt(r5.z);
  r16.xyz = r16.xyz + -r15.xyz;
  r15.xyz = abs(r7.zzz) * r16.xyz + r15.xyz;
  r11.xy = float2(0.150000006,0.150000006) * r15.xy;
  r11.xy = r13.zw * cb0[12].xy + r11.xy;
  r16.xyz = t1.Sample(s8_s, r11.xy).xyw;
  r16.x = r16.x * r16.z;
  r11.xy = r16.xy * float2(2,2) + float2(-1,-1);
  r14.zw = cb0[11].ww * r11.xy;
  r5.z = dot(r14.zw, r14.zw);
  r5.z = min(1, r5.z);
  r5.z = 1 + -r5.z;
  r5.z = sqrt(r5.z);
  r13.xyzw = r15.xyxy * float4(0.150000006,0.150000006,0.0500000007,0.0500000007) + r13.xyzw;
  r16.xyz = t3.Sample(s7_s, r13.xy).xyw;
  r16.x = r16.x * r16.z;
  r13.xy = r16.xy * float2(2,2) + float2(-1,-1);
  r13.xy = cb0[12].zz * r13.xy;
  r6.z = dot(r13.xy, r13.xy);
  r6.z = min(1, r6.z);
  r6.z = 1 + -r6.z;
  r6.z = sqrt(r6.z);
  r16.xy = r11.xy * cb0[11].ww + r13.xy;
  r16.z = r6.z * r5.z;
  r5.z = dot(r16.xyz, r16.xyz);
  r5.z = rsqrt(r5.z);
  r6.z = r16.z * r5.z;
  r16.xy = r16.xy * r5.zz + r15.xy;
  r16.z = r6.z * r15.z;
  r5.z = dot(r16.xyz, r16.xyz);
  r5.z = rsqrt(r5.z);
  r15.xyz = r16.xyz * r5.zzz + -r8.xyz;
  r8.xyz = r7.www * r15.xyz + r8.xyz;
  r9.xyz = r9.xyz * r4.xxx + -r8.xyz;
  r9.xyz = v6.xxx * r9.xyz + r8.xyz;
  r12.xyz = r12.xyz * r4.yyy + -r9.xyz;
  r9.xyz = v6.yyy * r12.xyz + r9.xyz;
  r12.xyz = r16.xyz * r5.zzz + -r9.xyz;
  r9.xyz = v6.zzz * r12.xyz + r9.xyz;
  r12.xyz = -cb1[4].xyz + r0.xyz;
  r4.x = dot(r12.xyz, r12.xyz);
  r4.x = sqrt(r4.x);
  r4.y = r4.x / cb0[13].x;
  r4.y = log2(r4.y);
  r4.y = cb0[13].y * r4.y;
  r4.y = exp2(r4.y);
  r4.y = min(1, r4.y);
  r12.x = cb0[12].w;
  r12.z = 1;
  r12.xyz = r9.xyz * r12.xxz + -r9.xyz;
  r9.xyz = r4.yyy * r12.xyz + r9.xyz;
  r12.xyw = float3(9.99999996e-12,0,9.99999996e-12) + v5.wxw;
  r4.y = 0.5 * r12.x;
  r5.z = -r12.x * 0.5 + v5.y;
  r12.z = -r5.z * cb1[5].x + r4.y;
  r12.yzw = r12.yzw / r12.xxx;
  r11.xy = r12.yz / r12.ww;
  r11.xy = r8.xy * cb0[13].zz + r11.xy;
  r12.yzw = t4.Sample(s9_s, r11.xy).xyz;
  r11.xy = v5.xy / r12.xx;
  r4.y = t5.Sample(s10_s, r11.xy).x;
  r4.y = cb1[7].z * r4.y + cb1[7].w;
  r4.y = 1 / r4.y;
  r4.y = r4.y + -r12.x;
  r5.z = cb0[16].x + abs(r4.y);
  r5.z = log2(r5.z);
  r5.z = cb0[16].y * r5.z;
  r5.z = exp2(r5.z);
  r5.z = min(1, r5.z);
  r11.xy = cb0[17].xy * cb0[16].zw;
  r11.xy = v1.zw * r11.xy;
  r11.xy = r2.ww ? r11.xy : r11.yx;
  r13.xy = cb0[17].xy * v1.xy;
  r13.xy = r13.xy * r1.ww;
  r14.zw = r11.xy * r5.xx + r13.xy;
  r11.xy = r11.xy * r6.xx + r13.xy;
  r13.xy = r8.xy * float2(0.0299999993,0.0299999993) + r14.zw;
  r6.z = t6.Sample(s11_s, r13.xy).w;
  r8.xy = r8.xy * float2(0.0299999993,0.0299999993) + r11.xy;
  r8.x = t6.Sample(s11_s, r8.xy).w;
  r8.x = r8.x + -r6.z;
  r6.z = abs(r7.x) * r8.x + r6.z;
  r6.z = r6.z * r5.z;
  r8.x = saturate(r7.w * -r6.z + r6.z);
  r8.y = 0.300000012 * cb0[4].x;
  r3.z = t7.Sample(s2_s, r3.zw).w;
  r3.w = t7.Sample(s2_s, r4.zw).w;
  r3.x = t7.Sample(s2_s, r3.xy).w;
  r3.x = r3.x + -r3.w;
  r3.x = abs(r7.x) * r3.x + r3.w;
  r3.y = t8.Sample(s4_s, r11.zw).w;
  r3.y = cb0[8].z * r3.y;
  r3.w = t8.Sample(s4_s, r5.yw).w;
  r4.z = t8.Sample(s4_s, r6.yw).w;
  r4.z = r4.z + -r3.w;
  r3.w = abs(r7.y) * r4.z + r3.w;
  r3.x = r8.y * r3.z + r3.x;
  r3.y = r3.y * 0.400000006 + r3.w;
  r3.y = r3.y * r8.w + -r3.x;
  r3.x = r8.w * r3.y + r3.x;
  r3.y = t9.Sample(s6_s, r13.zw).w;
  r3.z = t9.Sample(s6_s, r14.xy).w;
  r3.w = t9.Sample(s6_s, r10.xz).w;
  r3.w = r3.w + -r3.z;
  r3.z = abs(r7.z) * r3.w + r3.z;
  r3.y = r10.y * r3.y + r3.z;
  r3.y = r3.y * r7.w + -r3.x;
  r3.x = r7.w * r3.y + r3.x;
  r3.y = cb0[17].z * r3.x;
  r3.y = log2(abs(r3.y));
  r3.y = cb0[17].w * r3.y;
  r3.y = exp2(r3.y);
  r3.y = saturate(cb0[18].x * r3.y);
  r3.y = r8.x * r3.y;
  r8.xyz = cb0[14].xyz + -r12.yzw;
  r3.yzw = r8.xyz * r3.yyy;
  r3.yzw = r5.zzz * r3.yzw + r12.yzw;
  r4.z = cb0[21].x * abs(r4.y);
  r4.z = log2(r4.z);
  r4.z = -cb0[21].y * r4.z;
  r4.z = exp2(r4.z);
  r4.w = cb0[21].z * r7.w;
  r5.z = 100 + -r4.z;
  r4.z = saturate(r4.w * r5.z + r4.z);
  r8.xyz = cb0[20].xyz + -cb0[19].xyz;
  r8.xyz = r4.zzz * r8.xyz + cb0[19].xyz;
  r4.x = saturate(r4.x / cb0[22].z);
  r3.x = cb0[21].w * r3.x;
  r3.x = log2(abs(r3.x));
  r3.x = cb0[22].x * r3.x;
  r3.x = exp2(r3.x);
  r3.x = cb0[22].y * r3.x;
  r3.x = saturate(r4.x * -r3.x + r3.x);
  r11.xyz = cb0[20].xyz + -r8.xyz;
  r8.xyz = r3.xxx * r11.xyz + r8.xyz;
  r3.x = 1 + -r4.z;
  r11.xyz = r8.xyz + -r3.yzw;
  r3.yzw = r3.xxx * r11.xyz + r3.yzw;
  r4.x = t10.Sample(s12_s, r5.yw).w;
  r4.w = t10.Sample(s12_s, r6.yw).w;
  r4.w = r4.w + -r4.x;
  r4.x = abs(r7.y) * r4.w + r4.x;
  r5.yz = cb0[23].xy * cb0[23].zw;
  r5.yz = v1.zw * r5.yz;
  r5.yz = r2.ww ? r5.yz : r5.zy;
  r6.yw = cb0[23].zw * v1.xy;
  r6.yw = r6.yw * r1.ww;
  r5.xw = r5.yz * r5.xx + r6.yw;
  r1.w = t11.Sample(s13_s, r5.xw).w;
  r5.xy = r5.yz * r6.xx + r6.yw;
  r2.w = t11.Sample(s13_s, r5.xy).w;
  r2.w = r2.w + -r1.w;
  r1.w = abs(r7.x) * r2.w + r1.w;
  r1.w = log2(r1.w);
  r2.w = cb0[24].x * r1.w;
  r2.w = exp2(r2.w);
  r2.w = saturate(cb0[24].y * r2.w);
  r2.w = r2.w * r4.x;
  r4.x = log2(r4.x);
  r4.x = cb0[25].w * r4.x;
  r4.x = exp2(r4.x);
  r4.x = min(1, r4.x);
  r4.w = r8.w * r4.x;
  r5.xyz = r2.www * cb0[25].xyz + -r3.yzw;
  r3.yzw = r4.www * r5.xyz + r3.yzw;
  r5.x = t12.Sample(s14_s, r14.xy).w;
  r5.y = t12.Sample(s14_s, r10.xz).w;
  r5.y = r5.y + -r5.x;
  r5.x = abs(r7.z) * r5.y + r5.x;
  r1.w = cb0[26].x * r1.w;
  r1.w = exp2(r1.w);
  r1.w = saturate(cb0[26].y * r1.w);
  r5.y = 0.5 * r5.x;
  r1.w = r1.w * r5.y + r5.y;
  r5.x = log2(r5.x);
  r5.x = cb0[27].w * r5.x;
  r5.x = exp2(r5.x);
  r5.x = min(1, r5.x);
  r5.y = r7.w * r5.x;
  r6.xyw = r1.www * cb0[27].xyz + -r3.yzw;
  r3.yzw = r5.yyy * r6.xyw + r3.yzw;
  r6.xyw = r8.xyz + -r12.yzw;
  r6.xyw = r3.xxx * r6.xyw + r12.yzw;
  r7.xyz = r6.xyw + -r3.yzw;
  r3.xyz = v6.xxx * r7.xyz + r3.yzw;
  r7.xyz = r2.www * cb0[25].xyz + -r6.xyw;
  r7.xyz = r4.xxx * r7.xyz + r6.xyw;
  r7.xyz = r7.xyz + -r3.xyz;
  r3.xyz = v6.yyy * r7.xyz + r3.xyz;
  r7.xyz = r1.www * cb0[27].xyz + -r6.xyw;
  r5.xzw = r5.xxx * r7.xyz + r6.xyw;
  r5.xzw = r5.xzw + -r3.xyz;
  r3.xyz = v6.zzz * r5.xzw + r3.xyz;
  r1.w = log2(r4.z);
  r1.w = cb0[28].z * r1.w;
  r1.w = exp2(r1.w);
  r2.w = cb0[28].y + -cb0[28].x;
  r1.w = r1.w * r2.w + cb0[28].x;
  r2.w = cb0[28].w + -r1.w;
  r1.w = r6.z * r2.w + r1.w;
  r2.w = r4.w * r8.w;
  r4.xz = cb0[29].xy + -r1.ww;
  r3.w = r2.w * r4.x + r1.w;
  r5.x = r5.y * r7.w;
  r5.z = cb0[29].y + -r3.w;
  r3.w = r5.x * r5.z + r3.w;
  r5.z = -r3.w + r1.w;
  r3.w = v6.x * r5.z + r3.w;
  r4.x = r4.w * r4.x + r1.w;
  r4.x = r4.x + -r3.w;
  r3.w = v6.y * r4.x + r3.w;
  r1.w = r5.y * r4.z + r1.w;
  r1.w = r1.w + -r3.w;
  r1.w = v6.z * r1.w + r3.w;
  r3.w = cb0[29].w + -cb0[29].z;
  r3.w = r6.z * r3.w + cb0[29].z;
  r4.xz = cb0[30].xy + -r3.ww;
  r2.w = r2.w * r4.x + r3.w;
  r5.z = cb0[30].y + -r2.w;
  r2.w = r5.x * r5.z + r2.w;
  r5.x = r3.w + -r2.w;
  r2.w = v6.x * r5.x + r2.w;
  r4.x = r4.w * r4.x + r3.w;
  r4.x = r4.x + -r2.w;
  r2.w = v6.y * r4.x + r2.w;
  r3.w = r5.y * r4.z + r3.w;
  r3.w = r3.w + -r2.w;
  r2.w = v6.z * r3.w + r2.w;
  r3.w = saturate(cb0[30].w * abs(r4.y));
  r3.w = log2(r3.w);
  r3.w = cb0[31].x * r3.w;
  r3.w = exp2(r3.w);
  r3.w = min(1, r3.w);
  r3.w = v6.w * r3.w;
  r4.x = cb0[31].y * r3.w;
  o0.w = v9.x ? r3.w : r4.x;
  r3.w = cmp(cb5[0].x == 1.000000);
  if (r3.w != 0) {
    r4.x = cmp(cb5[0].y == 1.000000);
    r4.yzw = cb5[2].xyz * v3.www;
    r4.yzw = cb5[1].xyz * v2.www + r4.yzw;
    r4.yzw = cb5[3].xyz * v4.www + r4.yzw;
    r4.yzw = cb5[4].xyz + r4.yzw;
    r4.xyz = r4.xxx ? r4.yzw : r0.xyz;
    r4.xyz = -cb5[6].xyz + r4.xyz;
    r4.yzw = cb5[5].xyz * r4.xyz;
    r4.y = r4.y * 0.25 + 0.75;
    r5.x = cb5[0].z * 0.5 + 0.75;
    r4.x = max(r5.x, r4.y);
    r4.xyzw = t15.Sample(s1_s, r4.xzw).xyzw;
  } else {
    r4.xyzw = float4(1,1,1,1);
  }
  r4.x = saturate(dot(r4.xyzw, cb2[46].xyzw));
  r5.x = dot(v2.xyz, r9.xyz);
  r5.y = dot(v3.xyz, r9.xyz);
  r5.z = dot(v4.xyz, r9.xyz);
  r4.y = dot(r5.xyz, r5.xyz);
  r4.y = rsqrt(r4.y);
  r5.xyz = r5.xyz * r4.yyy;
  r4.y = 1 + -r2.w;
  r4.z = dot(-r2.xyz, r5.xyz);
  r4.z = r4.z + r4.z;
  r6.xyz = r5.xyz * -r4.zzz + -r2.xyz;
  r4.xzw = cb0[2].xyz * r4.xxx;
  if (r3.w != 0) {
    r3.w = cmp(cb5[0].y == 1.000000);
    r7.xyz = cb5[2].xyz * v3.www;
    r7.xyz = cb5[1].xyz * v2.www + r7.xyz;
    r7.xyz = cb5[3].xyz * v4.www + r7.xyz;
    r7.xyz = cb5[4].xyz + r7.xyz;
    r7.xyz = r3.www ? r7.xyz : r0.xyz;
    r7.xyz = -cb5[6].xyz + r7.xyz;
    r7.yzw = cb5[5].xyz * r7.xyz;
    r3.w = 0.25 * r7.y;
    r6.w = 0.5 * cb5[0].z;
    r7.y = -cb5[0].z * 0.5 + 0.25;
    r3.w = max(r6.w, r3.w);
    r7.x = min(r3.w, r7.y);
    r8.xyzw = t15.Sample(s1_s, r7.xzw).xyzw;
    r9.xyz = float3(0.25,0,0) + r7.xzw;
    r9.xyzw = t15.Sample(s1_s, r9.xyz).xyzw;
    r7.xyz = float3(0.5,0,0) + r7.xzw;
    r7.xyzw = t15.Sample(s1_s, r7.xyz).xyzw;
    r5.w = 1;
    r8.x = dot(r8.xyzw, r5.xyzw);
    r8.y = dot(r9.xyzw, r5.xyzw);
    r8.z = dot(r7.xyzw, r5.xyzw);
  } else {
    r5.w = 1;
    r8.x = dot(cb2[39].xyzw, r5.xyzw);
    r8.y = dot(cb2[40].xyzw, r5.xyzw);
    r8.z = dot(cb2[41].xyzw, r5.xyzw);
  }
  r7.xyz = v7.xyz + r8.xyz;
  r7.xyz = max(float3(0,0,0), r7.xyz);
  r7.xyz = log2(r7.xyz);
  r7.xyz = float3(0.416666657,0.416666657,0.416666657) * r7.xyz;
  r7.xyz = exp2(r7.xyz);
  r7.xyz = r7.xyz * float3(1.05499995,1.05499995,1.05499995) + float3(-0.0549999997,-0.0549999997,-0.0549999997);
  r7.xyz = max(float3(0,0,0), r7.xyz);
  r3.w = cmp(0 < cb4[2].w);
  if (r3.w != 0) {
    r3.w = dot(r6.xyz, r6.xyz);
    r3.w = rsqrt(r3.w);
    r8.xyz = r6.xyz * r3.www;
    r9.xyz = cb4[0].xyz + -r0.xyz;
    r9.xyz = r9.xyz / r8.xyz;
    r10.xyz = cb4[1].xyz + -r0.xyz;
    r10.xyz = r10.xyz / r8.xyz;
    r11.xyz = cmp(float3(0,0,0) < r8.xyz);
    r9.xyz = r11.xyz ? r9.xyz : r10.xyz;
    r3.w = min(r9.x, r9.y);
    r3.w = min(r3.w, r9.z);
    r9.xyz = -cb4[2].xyz + r0.xyz;
    r8.xyz = r8.xyz * r3.www + r9.xyz;
  } else {
    r8.xyz = r6.xyz;
  }
  r3.w = -r4.y * 0.699999988 + 1.70000005;
  r3.w = r4.y * r3.w;
  r3.w = 6 * r3.w;
  r8.xyzw = t13.SampleLevel(s0_s, r8.xyz, r3.w).xyzw;
  r5.w = -1 + r8.w;
  r5.w = cb4[3].w * r5.w + 1;
  r5.w = cb4[3].x * r5.w;
  r9.xyz = r5.www * r8.xyz;
  r6.w = cmp(cb4[1].w < 0.999989986);
  if (r6.w != 0) {
    r6.w = cmp(0 < cb4[6].w);
    if (r6.w != 0) {
      r6.w = dot(r6.xyz, r6.xyz);
      r6.w = rsqrt(r6.w);
      r10.xyz = r6.xyz * r6.www;
      r11.xyz = cb4[4].xyz + -r0.xyz;
      r11.xyz = r11.xyz / r10.xyz;
      r12.xyz = cb4[5].xyz + -r0.xyz;
      r12.xyz = r12.xyz / r10.xyz;
      r13.xyz = cmp(float3(0,0,0) < r10.xyz);
      r11.xyz = r13.xyz ? r11.xyz : r12.xyz;
      r6.w = min(r11.x, r11.y);
      r6.w = min(r6.w, r11.z);
      r0.xyz = -cb4[6].xyz + r0.xyz;
      r6.xyz = r10.xyz * r6.www + r0.xyz;
    }
    r6.xyzw = t14.SampleLevel(s0_s, r6.xyz, r3.w).xyzw;
    r0.x = -1 + r6.w;
    r0.x = cb4[7].w * r0.x + 1;
    r0.x = cb4[7].x * r0.x;
    r0.xyz = r0.xxx * r6.xyz;
    r6.xyz = r5.www * r8.xyz + -r0.xyz;
    r9.xyz = cb4[1].www * r6.xyz + r0.xyz;
  }
  r0.xyz = cb0[30].zzz * r9.xyz;
  r3.w = max(r1.w, r1.w);
  r3.w = max(r3.w, r1.w);
  r3.w = 1 + -r3.w;
  r3.xyz = r3.xyz * r3.www;
  r1.xyz = r1.xyz * r0.www + cb2[0].xyz;
  r0.w = dot(r1.xyz, r1.xyz);
  r0.w = max(0.00100000005, r0.w);
  r0.w = rsqrt(r0.w);
  r1.xyz = r1.xyz * r0.www;
  r0.w = dot(r5.xyz, r2.xyz);
  r2.x = saturate(dot(r5.xyz, cb2[0].xyz));
  r2.y = saturate(dot(r5.xyz, r1.xyz));
  r1.x = saturate(dot(cb2[0].xyz, r1.xyz));
  r1.y = r1.x * r1.x;
  r1.y = dot(r1.yy, r4.yy);
  r1.y = -0.5 + r1.y;
  r1.z = 1 + -r2.x;
  r2.z = r1.z * r1.z;
  r2.z = r2.z * r2.z;
  r1.z = r2.z * r1.z;
  r1.z = r1.y * r1.z + 1;
  r2.z = 1 + -abs(r0.w);
  r5.x = r2.z * r2.z;
  r5.x = r5.x * r5.x;
  r2.z = r5.x * r2.z;
  r1.y = r1.y * r2.z + 1;
  r1.y = r1.z * r1.y;
  r1.y = r1.y * r2.x;
  r1.z = r4.y * r4.y;
  r1.z = max(0.00200000009, r1.z);
  r5.x = 1 + -r1.z;
  r5.y = abs(r0.w) * r5.x + r1.z;
  r5.x = r2.x * r5.x + r1.z;
  r0.w = r5.x * abs(r0.w);
  r0.w = r2.x * r5.y + r0.w;
  r0.w = 9.99999975e-06 + r0.w;
  r0.w = 0.5 / r0.w;
  r5.x = r1.z * r1.z;
  r5.y = r2.y * r5.x + -r2.y;
  r2.y = r5.y * r2.y + 1;
  r5.x = 0.318309873 * r5.x;
  r2.y = r2.y * r2.y + 1.00000001e-07;
  r2.y = r5.x / r2.y;
  r0.w = r2.y * r0.w;
  r0.w = 3.14159274 * r0.w;
  r0.w = max(9.99999975e-05, r0.w);
  r0.w = sqrt(r0.w);
  r0.w = r0.w * r2.x;
  r1.z = 0.280000001 * r1.z;
  r1.z = -r1.z * r4.y + 1;
  r2.x = dot(r1.www, r1.www);
  r2.x = cmp(r2.x != 0.000000);
  r2.x = r2.x ? 1.000000 : 0;
  r0.w = r2.x * r0.w;
  r2.x = 1 + -r3.w;
  r2.x = saturate(r2.w + r2.x);
  r5.xyz = r4.xzw * r1.yyy;
  r5.xyz = r7.xyz * cb0[30].zzz + r5.xyz;
  r4.xyz = r0.www * r4.xzw;
  r0.w = 1 + -r1.x;
  r1.x = r0.w * r0.w;
  r1.x = r1.x * r1.x;
  r0.xyzw = r1.zzzx * r0.xyzw;
  r1.x = 1 + -r1.w;
  r0.w = r1.x * r0.w + r1.w;
  r4.xyz = r4.xyz * r0.www;
  r3.xyz = r3.xyz * r5.xyz + r4.xyz;
  r0.w = r2.x + -r1.w;
  r0.w = r2.z * r0.w + r1.w;
  r0.xyz = r0.xyz * r0.www + r3.xyz;
  r0.w = w7.x / cb1[5].y;
  r0.w = 1 + -r0.w;
  r0.w = cb1[5].z * r0.w;
  r0.w = max(0, r0.w);
  r0.w = saturate(r0.w * cb3[1].z + cb3[1].w);
  r0.xyz = -cb3[0].xyz + r0.xyz;
  o0.xyz = r0.www * r0.xyz + cb3[0].xyz;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Wed Jan 21 00:14:20 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
// TEXCOORD                 3   xyzw        4     NONE   float   xyzw
// TEXCOORD                 4   xyzw        5     NONE   float   xy w
// COLOR                    0   xyzw        6     NONE   float   xyzw
// TEXCOORD                 5   xyz         7     NONE   float   xyz
// TEXCOORD                 6      w        7     NONE   float      w
// TEXCOORD                 8   xyzw        8     NONE   float
// SV_IsFrontFace           0   x           9    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 CB0[32], immediateIndexed
dcl_constantbuffer CB1[8], immediateIndexed
dcl_constantbuffer CB2[47], immediateIndexed
dcl_constantbuffer CB3[2], immediateIndexed
dcl_constantbuffer CB4[8], immediateIndexed
dcl_constantbuffer CB5[7], 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_sampler s9, mode_default
dcl_sampler s10, mode_default
dcl_sampler s11, mode_default
dcl_sampler s12, mode_default
dcl_sampler s13, 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_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_texturecube (float,float,float,float) t13
dcl_resource_texturecube (float,float,float,float) t14
dcl_resource_texture3d (float,float,float,float) t15
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xyzw
dcl_input_ps linear v4.xyzw
dcl_input_ps linear v5.xyw
dcl_input_ps linear v6.xyzw
dcl_input_ps linear v7.xyz
dcl_input_ps linear v7.w
dcl_input_ps_sgv constant v9.x, is_front_face
dcl_output o0.xyzw
dcl_temps 17
mov r0.x, v2.w
mov r0.y, v3.w
mov r0.z, v4.w
add r1.xyz, -r0.xyzx, cb1[4].xyzx
dp3 r0.w, r1.xyzx, r1.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r1.xyzx
mul r3.xy, v1.xyxx, cb0[5].xyxx
div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), cb0[5].z
mul r3.xy, r1.wwww, r3.xyxx
itof r2.w, cb0[4].y
eq r2.w, r2.w, l(1.000000)
movc r3.zw, r2.wwww, cb0[4].zzzw, cb0[4].wwwz
mad r3.zw, cb1[0].yyyy, r3.zzzw, r3.xxxy
mul r4.xy, cb0[5].xyxx, cb0[6].xyxx
mul r4.xy, r4.xyxx, v1.zwzz
movc r4.xy, r2.wwww, r4.xyxx, r4.yxyy
mul r5.xyz, cb1[0].yyyy, l(0.150000, 0.200000, 0.600000, 0.000000)
frc r5.xyz, r5.xyzx
mad r4.zw, r4.xxxy, r5.xxxx, r3.xxxy
mad r6.xyz, cb1[0].yyyy, l(0.150000, 0.200000, 0.600000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
frc r6.xyz, r6.xyzx
mad r3.xy, r4.xyxx, r6.xxxx, r3.xyxx
add r7.xyz, r5.xyzx, l(-0.500000, -0.500000, -0.500000, 0.000000)
add r7.xyz, r7.xyzx, r7.xyzx
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r4.zwzz, t0.xywz, s3
mul r8.x, r8.z, r8.x
mad r4.xy, r8.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r8.xy, r4.xyxx, cb0[5].wwww
dp2 r4.x, r8.xyxx, r8.xyxx
min r4.x, r4.x, l(1.000000)
add r4.x, -r4.x, l(1.000000)
sqrt r8.z, r4.x
sample_indexable(texture2d)(float,float,float,float) r9.xyz, r3.xyxx, t0.xywz, s3
mul r9.x, r9.z, r9.x
mad r4.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r9.xy, r4.xyxx, cb0[5].wwww
dp2 r4.x, r9.xyxx, r9.xyxx
min r4.x, r4.x, l(1.000000)
add r4.x, -r4.x, l(1.000000)
sqrt r9.z, r4.x
add r9.xyz, -r8.xyzx, r9.xyzx
mad r8.xyz, |r7.xxxx|, r9.xyzx, r8.xyzx
mul r4.xy, r8.xyxx, l(0.050000, 0.050000, 0.000000, 0.000000)
mad r4.xy, r3.zwzz, cb0[12].xyxx, r4.xyxx
sample_indexable(texture2d)(float,float,float,float) r9.xyz, r4.xyxx, t1.xywz, s8
mul r9.x, r9.z, r9.x
mad r4.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r9.xy, r4.xyxx, cb0[11].wwww
dp2 r5.w, r9.xyxx, r9.xyxx
min r5.w, r5.w, l(1.000000)
add r5.w, -r5.w, l(1.000000)
sqrt r5.w, r5.w
mad r3.zw, r8.xxxy, l(0.000000, 0.000000, 0.050000, 0.050000), r3.zzzw
sample_indexable(texture2d)(float,float,float,float) r9.xyz, r3.zwzz, t0.xywz, s3
mul r9.x, r9.z, r9.x
mad r9.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r9.xy, r9.xyxx, cb0[12].zzzz
dp2 r6.w, r9.xyxx, r9.xyxx
min r6.w, r6.w, l(1.000000)
add r6.w, -r6.w, l(1.000000)
sqrt r6.w, r6.w
mad r9.xy, r4.xyxx, cb0[11].wwww, r9.xyxx
mul r9.z, r5.w, r6.w
dp3 r4.x, r9.xyzx, r9.xyzx
rsq r4.x, r4.x
mul r4.y, r4.x, r9.z
mad r9.xy, r9.xyxx, r4.xxxx, r8.xyxx
mul r9.z, r8.z, r4.y
dp3 r4.x, r9.xyzx, r9.xyzx
rsq r4.x, r4.x
mul r8.xyz, r4.xxxx, r9.xyzx
mul r10.xy, v1.xyxx, cb0[7].xyxx
mul r10.xy, r1.wwww, r10.xyxx
movc r11.xyzw, r2.wwww, cb0[6].zwzw, cb0[6].wzwz
mad r11.xyzw, cb1[0].yyyy, r11.xyzw, r10.xyxy
mul r10.zw, cb0[7].xxxy, cb0[8].xxxy
mul r10.zw, r10.zzzw, v1.zzzw
movc r10.zw, r2.wwww, r10.zzzw, r10.wwwz
mad r5.yw, r10.zzzw, r5.yyyy, r10.xxxy
mad r6.yw, r10.zzzw, r6.yyyy, r10.xxxy
sample_indexable(texture2d)(float,float,float,float) r10.xyz, r5.ywyy, t2.xywz, s5
mul r10.x, r10.z, r10.x
mad r10.xy, r10.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r10.xy, r10.xyxx, cb0[7].zzzz
dp2 r4.y, r10.xyxx, r10.xyxx
min r4.y, r4.y, l(1.000000)
add r4.y, -r4.y, l(1.000000)
sqrt r10.z, r4.y
sample_indexable(texture2d)(float,float,float,float) r12.xyz, r6.ywyy, t2.xywz, s5
mul r12.x, r12.z, r12.x
mad r12.xy, r12.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r12.xy, r12.xyxx, cb0[7].zzzz
dp2 r4.y, r12.xyxx, r12.xyxx
min r4.y, r4.y, l(1.000000)
add r4.y, -r4.y, l(1.000000)
sqrt r12.z, r4.y
add r12.xyz, -r10.xyzx, r12.xyzx
mad r10.xyz, |r7.yyyy|, r12.xyzx, r10.xyzx
mul r12.xy, r10.xyxx, l(0.100000, 0.100000, 0.000000, 0.000000)
mad r12.xy, r11.zwzz, cb0[12].xyxx, r12.xyxx
sample_indexable(texture2d)(float,float,float,float) r12.xyz, r12.xyxx, t1.xywz, s8
mul r12.x, r12.z, r12.x
mad r12.xy, r12.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r12.zw, r12.xxxy, cb0[11].wwww
dp2 r4.y, r12.zwzz, r12.zwzz
min r4.y, r4.y, l(1.000000)
add r4.y, -r4.y, l(1.000000)
sqrt r4.y, r4.y
mad r11.xyzw, r10.xyxy, l(0.100000, 0.100000, 0.050000, 0.050000), r11.xyzw
sample_indexable(texture2d)(float,float,float,float) r13.xyz, r11.xyxx, t2.xywz, s5
mul r13.x, r13.z, r13.x
mad r11.xy, r13.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r11.xy, r11.xyxx, cb0[12].zzzz
dp2 r7.w, r11.xyxx, r11.xyxx
min r7.w, r7.w, l(1.000000)
add r7.w, -r7.w, l(1.000000)
sqrt r7.w, r7.w
mad r12.xy, r12.xyxx, cb0[11].wwww, r11.xyxx
mul r12.z, r4.y, r7.w
dp3 r4.y, r12.xyzx, r12.xyzx
rsq r4.y, r4.y
mul r7.w, r4.y, r12.z
mad r12.xy, r12.xyxx, r4.yyyy, r10.xyxx
mul r12.z, r10.z, r7.w
dp3 r4.y, r12.xyzx, r12.xyzx
rsq r4.y, r4.y
mov_sat r7.w, v3.z
mul r8.w, cb0[8].w, l(0.0222222228)
mad r9.w, -cb0[8].w, l(0.0222222228), l(1.000000)
add r9.w, r7.w, -r9.w
max r9.w, r9.w, l(0.000000)
min r9.w, r9.w, l(2.000000)
div r8.w, l(1.000000, 1.000000, 1.000000, 1.000000), r8.w
mul_sat r8.w, r8.w, r9.w
add r8.w, -r8.w, l(1.000000)
log r8.w, r8.w
mul r8.w, r8.w, cb0[9].x
exp r8.w, r8.w
mul r10.xy, cb0[9].ywyy, l(0.0222222228, 0.500000, 0.000000, 0.000000)
mad r9.w, -cb0[9].y, l(0.0222222228), l(1.000000)
add r7.w, r7.w, -r9.w
max r7.w, r7.w, l(0.000000)
min r7.w, r7.w, l(2.000000)
div r9.w, l(1.000000, 1.000000, 1.000000, 1.000000), r10.x
mul_sat r7.w, r7.w, r9.w
add r7.w, -r7.w, l(1.000000)
log r7.w, r7.w
mul r7.w, r7.w, cb0[9].z
exp r7.w, r7.w
min r7.w, r7.w, l(1.000000)
add_sat r8.w, -r7.w, r8.w
mad r10.xzw, r12.xxyz, r4.yyyy, -r8.xxyz
mad r8.xyz, r8.wwww, r10.xzwx, r8.xyzx
mul r10.xz, v1.xxyx, cb0[10].zzwz
mul r10.xz, r1.wwww, r10.xxzx
movc r13.xyzw, r2.wwww, cb0[10].xyxy, cb0[10].yxyx
mad r13.xyzw, cb1[0].yyyy, r13.xyzw, r10.xzxz
mul r11.xy, cb0[10].zwzz, cb0[11].yzyy
mul r11.xy, r11.xyxx, v1.zwzz
movc r11.xy, r2.wwww, r11.xyxx, r11.yxyy
mad r14.xy, r11.xyxx, r5.zzzz, r10.xzxx
mad r10.xz, r11.xxyx, r6.zzzz, r10.xxzx
sample_indexable(texture2d)(float,float,float,float) r15.xyz, r14.xyxx, t3.xywz, s7
mul r15.x, r15.z, r15.x
mad r11.xy, r15.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r15.xy, r11.xyxx, cb0[11].xxxx
dp2 r5.z, r15.xyxx, r15.xyxx
min r5.z, r5.z, l(1.000000)
add r5.z, -r5.z, l(1.000000)
sqrt r15.z, r5.z
sample_indexable(texture2d)(float,float,float,float) r16.xyz, r10.xzxx, t3.xywz, s7
mul r16.x, r16.z, r16.x
mad r11.xy, r16.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r16.xy, r11.xyxx, cb0[11].xxxx
dp2 r5.z, r16.xyxx, r16.xyxx
min r5.z, r5.z, l(1.000000)
add r5.z, -r5.z, l(1.000000)
sqrt r16.z, r5.z
add r16.xyz, -r15.xyzx, r16.xyzx
mad r15.xyz, |r7.zzzz|, r16.xyzx, r15.xyzx
mul r11.xy, r15.xyxx, l(0.150000, 0.150000, 0.000000, 0.000000)
mad r11.xy, r13.zwzz, cb0[12].xyxx, r11.xyxx
sample_indexable(texture2d)(float,float,float,float) r16.xyz, r11.xyxx, t1.xywz, s8
mul r16.x, r16.z, r16.x
mad r11.xy, r16.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r14.zw, r11.xxxy, cb0[11].wwww
dp2 r5.z, r14.zwzz, r14.zwzz
min r5.z, r5.z, l(1.000000)
add r5.z, -r5.z, l(1.000000)
sqrt r5.z, r5.z
mad r13.xyzw, r15.xyxy, l(0.150000, 0.150000, 0.050000, 0.050000), r13.xyzw
sample_indexable(texture2d)(float,float,float,float) r16.xyz, r13.xyxx, t3.xywz, s7
mul r16.x, r16.z, r16.x
mad r13.xy, r16.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r13.xy, r13.xyxx, cb0[12].zzzz
dp2 r6.z, r13.xyxx, r13.xyxx
min r6.z, r6.z, l(1.000000)
add r6.z, -r6.z, l(1.000000)
sqrt r6.z, r6.z
mad r16.xy, r11.xyxx, cb0[11].wwww, r13.xyxx
mul r16.z, r5.z, r6.z
dp3 r5.z, r16.xyzx, r16.xyzx
rsq r5.z, r5.z
mul r6.z, r5.z, r16.z
mad r16.xy, r16.xyxx, r5.zzzz, r15.xyxx
mul r16.z, r15.z, r6.z
dp3 r5.z, r16.xyzx, r16.xyzx
rsq r5.z, r5.z
mad r15.xyz, r16.xyzx, r5.zzzz, -r8.xyzx
mad r8.xyz, r7.wwww, r15.xyzx, r8.xyzx
mad r9.xyz, r9.xyzx, r4.xxxx, -r8.xyzx
mad r9.xyz, v6.xxxx, r9.xyzx, r8.xyzx
mad r12.xyz, r12.xyzx, r4.yyyy, -r9.xyzx
mad r9.xyz, v6.yyyy, r12.xyzx, r9.xyzx
mad r12.xyz, r16.xyzx, r5.zzzz, -r9.xyzx
mad r9.xyz, v6.zzzz, r12.xyzx, r9.xyzx
add r12.xyz, r0.xyzx, -cb1[4].xyzx
dp3 r4.x, r12.xyzx, r12.xyzx
sqrt r4.x, r4.x
div r4.y, r4.x, cb0[13].x
log r4.y, r4.y
mul r4.y, r4.y, cb0[13].y
exp r4.y, r4.y
min r4.y, r4.y, l(1.000000)
mov r12.x, cb0[12].w
mov r12.z, l(1.000000)
mad r12.xyz, r9.xyzx, r12.xxzx, -r9.xyzx
mad r9.xyz, r4.yyyy, r12.xyzx, r9.xyzx
add r12.xyw, v5.wxww, l(9.999999960E-12, 0.000000, 0.000000, 9.999999960E-12)
mul r4.y, r12.x, l(0.500000)
mad r5.z, -r12.x, l(0.500000), v5.y
mad r12.z, -r5.z, cb1[5].x, r4.y
div r12.yzw, r12.yyzw, r12.xxxx
div r11.xy, r12.yzyy, r12.wwww
mad r11.xy, r8.xyxx, cb0[13].zzzz, r11.xyxx
sample_indexable(texture2d)(float,float,float,float) r12.yzw, r11.xyxx, t4.wxyz, s9
div r11.xy, v5.xyxx, r12.xxxx
sample_indexable(texture2d)(float,float,float,float) r4.y, r11.xyxx, t5.yxzw, s10
mad r4.y, cb1[7].z, r4.y, cb1[7].w
div r4.y, l(1.000000, 1.000000, 1.000000, 1.000000), r4.y
add r4.y, -r12.x, r4.y
add r5.z, |r4.y|, cb0[16].x
log r5.z, r5.z
mul r5.z, r5.z, cb0[16].y
exp r5.z, r5.z
min r5.z, r5.z, l(1.000000)
mul r11.xy, cb0[16].zwzz, cb0[17].xyxx
mul r11.xy, r11.xyxx, v1.zwzz
movc r11.xy, r2.wwww, r11.xyxx, r11.yxyy
mul r13.xy, v1.xyxx, cb0[17].xyxx
mul r13.xy, r1.wwww, r13.xyxx
mad r14.zw, r11.xxxy, r5.xxxx, r13.xxxy
mad r11.xy, r11.xyxx, r6.xxxx, r13.xyxx
mad r13.xy, r8.xyxx, l(0.030000, 0.030000, 0.000000, 0.000000), r14.zwzz
sample_indexable(texture2d)(float,float,float,float) r6.z, r13.xyxx, t6.xywz, s11
mad r8.xy, r8.xyxx, l(0.030000, 0.030000, 0.000000, 0.000000), r11.xyxx
sample_indexable(texture2d)(float,float,float,float) r8.x, r8.xyxx, t6.wxyz, s11
add r8.x, -r6.z, r8.x
mad r6.z, |r7.x|, r8.x, r6.z
mul r6.z, r5.z, r6.z
mad_sat r8.x, r7.w, -r6.z, r6.z
mul r8.y, cb0[4].x, l(0.300000)
sample_indexable(texture2d)(float,float,float,float) r3.z, r3.zwzz, t7.xywz, s2
sample_indexable(texture2d)(float,float,float,float) r3.w, r4.zwzz, t7.xyzw, s2
sample_indexable(texture2d)(float,float,float,float) r3.x, r3.xyxx, t7.wxyz, s2
add r3.x, -r3.w, r3.x
mad r3.x, |r7.x|, r3.x, r3.w
sample_indexable(texture2d)(float,float,float,float) r3.y, r11.zwzz, t8.xwyz, s4
mul r3.y, r3.y, cb0[8].z
sample_indexable(texture2d)(float,float,float,float) r3.w, r5.ywyy, t8.xyzw, s4
sample_indexable(texture2d)(float,float,float,float) r4.z, r6.ywyy, t8.xywz, s4
add r4.z, -r3.w, r4.z
mad r3.w, |r7.y|, r4.z, r3.w
mad r3.x, r8.y, r3.z, r3.x
mad r3.y, r3.y, l(0.400000), r3.w
mad r3.y, r3.y, r8.w, -r3.x
mad r3.x, r8.w, r3.y, r3.x
sample_indexable(texture2d)(float,float,float,float) r3.y, r13.zwzz, t9.xwyz, s6
sample_indexable(texture2d)(float,float,float,float) r3.z, r14.xyxx, t9.xywz, s6
sample_indexable(texture2d)(float,float,float,float) r3.w, r10.xzxx, t9.xyzw, s6
add r3.w, -r3.z, r3.w
mad r3.z, |r7.z|, r3.w, r3.z
mad r3.y, r10.y, r3.y, r3.z
mad r3.y, r3.y, r7.w, -r3.x
mad r3.x, r7.w, r3.y, r3.x
mul r3.y, r3.x, cb0[17].z
log r3.y, |r3.y|
mul r3.y, r3.y, cb0[17].w
exp r3.y, r3.y
mul_sat r3.y, r3.y, cb0[18].x
mul r3.y, r3.y, r8.x
add r8.xyz, -r12.yzwy, cb0[14].xyzx
mul r3.yzw, r3.yyyy, r8.xxyz
mad r3.yzw, r5.zzzz, r3.yyzw, r12.yyzw
mul r4.z, |r4.y|, cb0[21].x
log r4.z, r4.z
mul r4.z, r4.z, -cb0[21].y
exp r4.z, r4.z
mul r4.w, r7.w, cb0[21].z
add r5.z, -r4.z, l(100.000000)
mad_sat r4.z, r4.w, r5.z, r4.z
add r8.xyz, -cb0[19].xyzx, cb0[20].xyzx
mad r8.xyz, r4.zzzz, r8.xyzx, cb0[19].xyzx
div_sat r4.x, r4.x, cb0[22].z
mul r3.x, r3.x, cb0[21].w
log r3.x, |r3.x|
mul r3.x, r3.x, cb0[22].x
exp r3.x, r3.x
mul r3.x, r3.x, cb0[22].y
mad_sat r3.x, r4.x, -r3.x, r3.x
add r11.xyz, -r8.xyzx, cb0[20].xyzx
mad r8.xyz, r3.xxxx, r11.xyzx, r8.xyzx
add r3.x, -r4.z, l(1.000000)
add r11.xyz, -r3.yzwy, r8.xyzx
mad r3.yzw, r3.xxxx, r11.xxyz, r3.yyzw
sample_indexable(texture2d)(float,float,float,float) r4.x, r5.ywyy, t10.wxyz, s12
sample_indexable(texture2d)(float,float,float,float) r4.w, r6.ywyy, t10.xyzw, s12
add r4.w, -r4.x, r4.w
mad r4.x, |r7.y|, r4.w, r4.x
mul r5.yz, cb0[23].zzwz, cb0[23].xxyx
mul r5.yz, r5.yyzy, v1.zzwz
movc r5.yz, r2.wwww, r5.yyzy, r5.zzyz
mul r6.yw, v1.xxxy, cb0[23].zzzw
mul r6.yw, r1.wwww, r6.yyyw
mad r5.xw, r5.yyyz, r5.xxxx, r6.yyyw
sample_indexable(texture2d)(float,float,float,float) r1.w, r5.xwxx, t11.xyzw, s13
mad r5.xy, r5.yzyy, r6.xxxx, r6.ywyy
sample_indexable(texture2d)(float,float,float,float) r2.w, r5.xyxx, t11.xyzw, s13
add r2.w, -r1.w, r2.w
mad r1.w, |r7.x|, r2.w, r1.w
log r1.w, r1.w
mul r2.w, r1.w, cb0[24].x
exp r2.w, r2.w
mul_sat r2.w, r2.w, cb0[24].y
mul r2.w, r4.x, r2.w
log r4.x, r4.x
mul r4.x, r4.x, cb0[25].w
exp r4.x, r4.x
min r4.x, r4.x, l(1.000000)
mul r4.w, r4.x, r8.w
mad r5.xyz, r2.wwww, cb0[25].xyzx, -r3.yzwy
mad r3.yzw, r4.wwww, r5.xxyz, r3.yyzw
sample_indexable(texture2d)(float,float,float,float) r5.x, r14.xyxx, t12.wxyz, s14
sample_indexable(texture2d)(float,float,float,float) r5.y, r10.xzxx, t12.xwyz, s14
add r5.y, -r5.x, r5.y
mad r5.x, |r7.z|, r5.y, r5.x
mul r1.w, r1.w, cb0[26].x
exp r1.w, r1.w
mul_sat r1.w, r1.w, cb0[26].y
mul r5.y, r5.x, l(0.500000)
mad r1.w, r1.w, r5.y, r5.y
log r5.x, r5.x
mul r5.x, r5.x, cb0[27].w
exp r5.x, r5.x
min r5.x, r5.x, l(1.000000)
mul r5.y, r5.x, r7.w
mad r6.xyw, r1.wwww, cb0[27].xyxz, -r3.yzyw
mad r3.yzw, r5.yyyy, r6.xxyw, r3.yyzw
add r6.xyw, -r12.yzyw, r8.xyxz
mad r6.xyw, r3.xxxx, r6.xyxw, r12.yzyw
add r7.xyz, -r3.yzwy, r6.xywx
mad r3.xyz, v6.xxxx, r7.xyzx, r3.yzwy
mad r7.xyz, r2.wwww, cb0[25].xyzx, -r6.xywx
mad r7.xyz, r4.xxxx, r7.xyzx, r6.xywx
add r7.xyz, -r3.xyzx, r7.xyzx
mad r3.xyz, v6.yyyy, r7.xyzx, r3.xyzx
mad r7.xyz, r1.wwww, cb0[27].xyzx, -r6.xywx
mad r5.xzw, r5.xxxx, r7.xxyz, r6.xxyw
add r5.xzw, -r3.xxyz, r5.xxzw
mad r3.xyz, v6.zzzz, r5.xzwx, r3.xyzx
log r1.w, r4.z
mul r1.w, r1.w, cb0[28].z
exp r1.w, r1.w
add r2.w, -cb0[28].x, cb0[28].y
mad r1.w, r1.w, r2.w, cb0[28].x
add r2.w, -r1.w, cb0[28].w
mad r1.w, r6.z, r2.w, r1.w
mul r2.w, r8.w, r4.w
add r4.xz, -r1.wwww, cb0[29].xxyx
mad r3.w, r2.w, r4.x, r1.w
mul r5.x, r7.w, r5.y
add r5.z, -r3.w, cb0[29].y
mad r3.w, r5.x, r5.z, r3.w
add r5.z, r1.w, -r3.w
mad r3.w, v6.x, r5.z, r3.w
mad r4.x, r4.w, r4.x, r1.w
add r4.x, -r3.w, r4.x
mad r3.w, v6.y, r4.x, r3.w
mad r1.w, r5.y, r4.z, r1.w
add r1.w, -r3.w, r1.w
mad r1.w, v6.z, r1.w, r3.w
add r3.w, -cb0[29].z, cb0[29].w
mad r3.w, r6.z, r3.w, cb0[29].z
add r4.xz, -r3.wwww, cb0[30].xxyx
mad r2.w, r2.w, r4.x, r3.w
add r5.z, -r2.w, cb0[30].y
mad r2.w, r5.x, r5.z, r2.w
add r5.x, -r2.w, r3.w
mad r2.w, v6.x, r5.x, r2.w
mad r4.x, r4.w, r4.x, r3.w
add r4.x, -r2.w, r4.x
mad r2.w, v6.y, r4.x, r2.w
mad r3.w, r5.y, r4.z, r3.w
add r3.w, -r2.w, r3.w
mad r2.w, v6.z, r3.w, r2.w
mul_sat r3.w, |r4.y|, cb0[30].w
log r3.w, r3.w
mul r3.w, r3.w, cb0[31].x
exp r3.w, r3.w
min r3.w, r3.w, l(1.000000)
mul r3.w, r3.w, v6.w
mul r4.x, r3.w, cb0[31].y
movc o0.w, v9.x, r3.w, r4.x
eq r3.w, cb5[0].x, l(1.000000)
if_nz r3.w
  eq r4.x, cb5[0].y, l(1.000000)
  mul r4.yzw, v3.wwww, cb5[2].xxyz
  mad r4.yzw, cb5[1].xxyz, v2.wwww, r4.yyzw
  mad r4.yzw, cb5[3].xxyz, v4.wwww, r4.yyzw
  add r4.yzw, r4.yyzw, cb5[4].xxyz
  movc r4.xyz, r4.xxxx, r4.yzwy, r0.xyzx
  add r4.xyz, r4.xyzx, -cb5[6].xyzx
  mul r4.yzw, r4.xxyz, cb5[5].xxyz
  mad r4.y, r4.y, l(0.250000), l(0.750000)
  mad r5.x, cb5[0].z, l(0.500000), l(0.750000)
  max r4.x, r4.y, r5.x
  sample_indexable(texture3d)(float,float,float,float) r4.xyzw, r4.xzwx, t15.xyzw, s1
else
  mov r4.xyzw, l(1.000000,1.000000,1.000000,1.000000)
endif
dp4_sat r4.x, r4.xyzw, cb2[46].xyzw
dp3 r5.x, v2.xyzx, r9.xyzx
dp3 r5.y, v3.xyzx, r9.xyzx
dp3 r5.z, v4.xyzx, r9.xyzx
dp3 r4.y, r5.xyzx, r5.xyzx
rsq r4.y, r4.y
mul r5.xyz, r4.yyyy, r5.xyzx
add r4.y, -r2.w, l(1.000000)
dp3 r4.z, -r2.xyzx, r5.xyzx
add r4.z, r4.z, r4.z
mad r6.xyz, r5.xyzx, -r4.zzzz, -r2.xyzx
mul r4.xzw, r4.xxxx, cb0[2].xxyz
if_nz r3.w
  eq r3.w, cb5[0].y, l(1.000000)
  mul r7.xyz, v3.wwww, cb5[2].xyzx
  mad r7.xyz, cb5[1].xyzx, v2.wwww, r7.xyzx
  mad r7.xyz, cb5[3].xyzx, v4.wwww, r7.xyzx
  add r7.xyz, r7.xyzx, cb5[4].xyzx
  movc r7.xyz, r3.wwww, r7.xyzx, r0.xyzx
  add r7.xyz, r7.xyzx, -cb5[6].xyzx
  mul r7.yzw, r7.xxyz, cb5[5].xxyz
  mul r3.w, r7.y, l(0.250000)
  mul r6.w, cb5[0].z, l(0.500000)
  mad r7.y, -cb5[0].z, l(0.500000), l(0.250000)
  max r3.w, r3.w, r6.w
  min r7.x, r7.y, r3.w
  sample_indexable(texture3d)(float,float,float,float) r8.xyzw, r7.xzwx, t15.xyzw, s1
  add r9.xyz, r7.xzwx, l(0.250000, 0.000000, 0.000000, 0.000000)
  sample_indexable(texture3d)(float,float,float,float) r9.xyzw, r9.xyzx, t15.xyzw, s1
  add r7.xyz, r7.xzwx, l(0.500000, 0.000000, 0.000000, 0.000000)
  sample_indexable(texture3d)(float,float,float,float) r7.xyzw, r7.xyzx, t15.xyzw, s1
  mov r5.w, l(1.000000)
  dp4 r8.x, r8.xyzw, r5.xyzw
  dp4 r8.y, r9.xyzw, r5.xyzw
  dp4 r8.z, r7.xyzw, r5.xyzw
else
  mov r5.w, l(1.000000)
  dp4 r8.x, cb2[39].xyzw, r5.xyzw
  dp4 r8.y, cb2[40].xyzw, r5.xyzw
  dp4 r8.z, cb2[41].xyzw, r5.xyzw
endif
add r7.xyz, r8.xyzx, v7.xyzx
max r7.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
log r7.xyz, r7.xyzx
mul r7.xyz, r7.xyzx, l(0.416666657, 0.416666657, 0.416666657, 0.000000)
exp r7.xyz, r7.xyzx
mad r7.xyz, r7.xyzx, l(1.055000, 1.055000, 1.055000, 0.000000), l(-0.055000, -0.055000, -0.055000, 0.000000)
max r7.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r3.w, l(0.000000), cb4[2].w
if_nz r3.w
  dp3 r3.w, r6.xyzx, r6.xyzx
  rsq r3.w, r3.w
  mul r8.xyz, r3.wwww, r6.xyzx
  add r9.xyz, -r0.xyzx, cb4[0].xyzx
  div r9.xyz, r9.xyzx, r8.xyzx
  add r10.xyz, -r0.xyzx, cb4[1].xyzx
  div r10.xyz, r10.xyzx, r8.xyzx
  lt r11.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r8.xyzx
  movc r9.xyz, r11.xyzx, r9.xyzx, r10.xyzx
  min r3.w, r9.y, r9.x
  min r3.w, r9.z, r3.w
  add r9.xyz, r0.xyzx, -cb4[2].xyzx
  mad r8.xyz, r8.xyzx, r3.wwww, r9.xyzx
else
  mov r8.xyz, r6.xyzx
endif
mad r3.w, -r4.y, l(0.700000), l(1.700000)
mul r3.w, r3.w, r4.y
mul r3.w, r3.w, l(6.000000)
sample_l_indexable(texturecube)(float,float,float,float) r8.xyzw, r8.xyzx, t13.xyzw, s0, r3.w
add r5.w, r8.w, l(-1.000000)
mad r5.w, cb4[3].w, r5.w, l(1.000000)
mul r5.w, r5.w, cb4[3].x
mul r9.xyz, r8.xyzx, r5.wwww
lt r6.w, cb4[1].w, l(0.999990)
if_nz r6.w
  lt r6.w, l(0.000000), cb4[6].w
  if_nz r6.w
    dp3 r6.w, r6.xyzx, r6.xyzx
    rsq r6.w, r6.w
    mul r10.xyz, r6.wwww, r6.xyzx
    add r11.xyz, -r0.xyzx, cb4[4].xyzx
    div r11.xyz, r11.xyzx, r10.xyzx
    add r12.xyz, -r0.xyzx, cb4[5].xyzx
    div r12.xyz, r12.xyzx, r10.xyzx
    lt r13.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r10.xyzx
    movc r11.xyz, r13.xyzx, r11.xyzx, r12.xyzx
    min r6.w, r11.y, r11.x
    min r6.w, r11.z, r6.w
    add r0.xyz, r0.xyzx, -cb4[6].xyzx
    mad r6.xyz, r10.xyzx, r6.wwww, r0.xyzx
  endif
  sample_l_indexable(texturecube)(float,float,float,float) r6.xyzw, r6.xyzx, t14.xyzw, s0, r3.w
  add r0.x, r6.w, l(-1.000000)
  mad r0.x, cb4[7].w, r0.x, l(1.000000)
  mul r0.x, r0.x, cb4[7].x
  mul r0.xyz, r6.xyzx, r0.xxxx
  mad r6.xyz, r5.wwww, r8.xyzx, -r0.xyzx
  mad r9.xyz, cb4[1].wwww, r6.xyzx, r0.xyzx
endif
mul r0.xyz, r9.xyzx, cb0[30].zzzz
max r3.w, r1.w, r1.w
max r3.w, r1.w, r3.w
add r3.w, -r3.w, l(1.000000)
mul r3.xyz, r3.wwww, r3.xyzx
mad r1.xyz, r1.xyzx, r0.wwww, cb2[0].xyzx
dp3 r0.w, r1.xyzx, r1.xyzx
max r0.w, r0.w, l(0.001000)
rsq r0.w, r0.w
mul r1.xyz, r0.wwww, r1.xyzx
dp3 r0.w, r5.xyzx, r2.xyzx
dp3_sat r2.x, r5.xyzx, cb2[0].xyzx
dp3_sat r2.y, r5.xyzx, r1.xyzx
dp3_sat r1.x, cb2[0].xyzx, r1.xyzx
mul r1.y, r1.x, r1.x
dp2 r1.y, r1.yyyy, r4.yyyy
add r1.y, r1.y, l(-0.500000)
add r1.z, -r2.x, l(1.000000)
mul r2.z, r1.z, r1.z
mul r2.z, r2.z, r2.z
mul r1.z, r1.z, r2.z
mad r1.z, r1.y, r1.z, l(1.000000)
add r2.z, -|r0.w|, l(1.000000)
mul r5.x, r2.z, r2.z
mul r5.x, r5.x, r5.x
mul r2.z, r2.z, r5.x
mad r1.y, r1.y, r2.z, l(1.000000)
mul r1.y, r1.y, r1.z
mul r1.y, r2.x, r1.y
mul r1.z, r4.y, r4.y
max r1.z, r1.z, l(0.002000)
add r5.x, -r1.z, l(1.000000)
mad r5.y, |r0.w|, r5.x, r1.z
mad r5.x, r2.x, r5.x, r1.z
mul r0.w, |r0.w|, r5.x
mad r0.w, r2.x, r5.y, r0.w
add r0.w, r0.w, l(0.000010)
div r0.w, l(0.500000), r0.w
mul r5.x, r1.z, r1.z
mad r5.y, r2.y, r5.x, -r2.y
mad r2.y, r5.y, r2.y, l(1.000000)
mul r5.x, r5.x, l(0.318309873)
mad r2.y, r2.y, r2.y, l(1.000000012E-07)
div r2.y, r5.x, r2.y
mul r0.w, r0.w, r2.y
mul r0.w, r0.w, l(3.14159274)
max r0.w, r0.w, l(0.000100)
sqrt r0.w, r0.w
mul r0.w, r2.x, r0.w
mul r1.z, r1.z, l(0.280000)
mad r1.z, -r1.z, r4.y, l(1.000000)
dp3 r2.x, r1.wwww, r1.wwww
ne r2.x, r2.x, l(0.000000)
and r2.x, r2.x, l(0x3f800000)
mul r0.w, r0.w, r2.x
add r2.x, -r3.w, l(1.000000)
add_sat r2.x, r2.x, r2.w
mul r5.xyz, r1.yyyy, r4.xzwx
mad r5.xyz, r7.xyzx, cb0[30].zzzz, r5.xyzx
mul r4.xyz, r4.xzwx, r0.wwww
add r0.w, -r1.x, l(1.000000)
mul r1.x, r0.w, r0.w
mul r1.x, r1.x, r1.x
mul r0.xyzw, r0.xyzw, r1.zzzx
add r1.x, -r1.w, l(1.000000)
mad r0.w, r1.x, r0.w, r1.w
mul r4.xyz, r0.wwww, r4.xyzx
mad r3.xyz, r3.xyzx, r5.xyzx, r4.xyzx
add r0.w, -r1.w, r2.x
mad r0.w, r2.z, r0.w, r1.w
mad r0.xyz, r0.xyzx, r0.wwww, r3.xyzx
div r0.w, v7.w, cb1[5].y
add r0.w, -r0.w, l(1.000000)
mul r0.w, r0.w, cb1[5].z
max r0.w, r0.w, l(0.000000)
mad_sat r0.w, r0.w, cb3[1].z, cb3[1].w
add r0.xyz, r0.xyzx, -cb3[0].xyzx
mad o0.xyz, r0.wwww, r0.xyzx, cb3[0].xyzx
ret
// Approximately 0 instruction slots used

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