//Water reflections
// ---- Created with 3Dmigoto v0.6.109 on Sun Feb 15 19:53:28 2026
Texture3D<float4> t11 : register(t11);

TextureCube<float4> t10 : register(t10);

TextureCube<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 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[30];
}

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,
  float2 v1 : TEXCOORD0,
  float w1 : TEXCOORD6,
  float4 v2 : TEXCOORD1,
  float4 v3 : TEXCOORD2,
  float4 v4 : TEXCOORD3,
  float4 v5 : TEXCOORD4,
  float4 v6 : TEXCOORD5,
  float4 v7 : TEXCOORD8,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14;
  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 ;
float fov =  rsqrt(cb13[17].x * cb13[17].x + cb13[18].x * cb13[18].x + cb13[19].x * cb13[19].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 = v1.xy * cb0[5].xy + cb0[5].zw;
  r1.w = 1 / cb0[6].x;
  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 = r2.ww ? cb0[6].yz : cb0[6].zy;
  r3.xy = cb1[0].yy * r4.xy + r3.xy;
  r4.xy = v1.xy * cb0[8].xy + cb0[8].zw;
  r4.xy = r4.xy * r1.ww;
  r4.zw = r2.ww ? cb0[7].xy : cb0[7].yx;
  r4.zw = cb1[0].yy * r4.zw + r4.xy;
  r5.xy = r2.ww ? cb0[9].yz : cb0[9].zy;
  r4.xy = cb1[0].yy * r5.xy + r4.xy;
  r5.x = saturate(v3.z);
  r5.y = 0.0222222228 * cb0[9].w;
  r5.z = -cb0[9].w * 0.0222222228 + 1;
  r5.z = r5.x + -r5.z;
  r5.z = max(0, r5.z);
  r5.z = min(2, r5.z);
  r5.y = 1 / r5.y;
  r5.y = saturate(r5.z * r5.y);
  r5.z = 0.0222222228 * cb0[10].y;
  r5.w = -cb0[10].y * 0.0222222228 + 1;
  r5.x = r5.x + -r5.w;
  r5.x = max(0, r5.x);
  r5.x = min(2, r5.x);
  r5.z = 1 / r5.z;
  r5.x = saturate(r5.x * r5.z);
  r5.xy = float2(1,1) + -r5.xy;
  r5.x = log2(r5.x);
  r5.x = cb0[10].z * r5.x;
  r5.x = exp2(r5.x);
  r5.x = min(1, r5.x);
  r5.y = log2(r5.y);
  r5.y = cb0[10].x * r5.y;
  r5.y = exp2(r5.y);
  r5.y = saturate(r5.y + -r5.x);
  r6.xyz = t0.Sample(s2_s, r3.zw).xyw;
  r3.z = 1.20000005 * cb0[13].z;
  r6.x = r6.x * r6.z;
  r5.zw = r6.xy * float2(2,2) + float2(-1,-1);
  r6.xy = r5.zw * r3.zz;
  r3.w = dot(r6.xy, r6.xy);
  r3.w = min(1, r3.w);
  r3.w = 1 + -r3.w;
  r3.w = sqrt(r3.w);
  r6.xyz = t0.Sample(s2_s, r3.xy).xyw;
  r6.x = r6.x * r6.z;
  r3.xy = r6.xy * float2(2,2) + float2(-1,-1);
  r3.xy = cb0[13].zz * r3.xy;
  r6.x = dot(r3.xy, r3.xy);
  r6.x = min(1, r6.x);
  r6.x = 1 + -r6.x;
  r6.x = sqrt(r6.x);
  r3.xy = r5.zw * r3.zz + r3.xy;
  r3.z = r6.x * r3.w;
  r3.w = dot(r3.xyz, r3.xyz);
  r3.w = rsqrt(r3.w);
  r3.xyz = r3.xyz * r3.www;
  r6.xyz = t1.Sample(s3_s, r4.zw).xyw;
  r6.x = r6.x * r6.z;
  r4.zw = r6.xy * float2(2,2) + float2(-1,-1);
  r5.zw = cb0[13].ww * r4.zw;
  r3.w = dot(r5.zw, r5.zw);
  r3.w = min(1, r3.w);
  r3.w = 1 + -r3.w;
  r3.w = sqrt(r3.w);
  r6.xyz = t1.Sample(s3_s, r4.xy).xyw;
  r6.x = r6.x * r6.z;
  r5.zw = r6.xy * float2(2,2) + float2(-1,-1);
  r5.zw = cb0[13].ww * r5.zw;
  r6.x = dot(r5.zw, r5.zw);
  r6.x = min(1, r6.x);
  r6.x = 1 + -r6.x;
  r6.x = sqrt(r6.x);
  r7.xy = r4.zw * cb0[13].ww + r5.zw;
  r7.z = r6.x * r3.w;
  r3.w = dot(r7.xyz, r7.xyz);
  r3.w = rsqrt(r3.w);
  r6.xyz = r7.xyz * r3.www + -r3.xyz;
  r3.xyz = r5.yyy * r6.xyz + r3.xyz;
  r4.zw = v1.xy * cb0[12].xy + cb0[12].zw;
  r4.zw = r4.zw * r1.ww;
  r5.zw = r2.ww ? cb0[11].xy : cb0[11].yx;
  r5.zw = cb1[0].yy * r5.zw + r4.zw;
  r6.xy = r2.ww ? cb0[13].xy : cb0[13].yx;
  r4.zw = cb1[0].yy * r6.xy + r4.zw;
  r6.xyz = t2.Sample(s4_s, r5.zw).xyw;
  r6.x = r6.x * r6.z;
  r5.zw = r6.xy * float2(2,2) + float2(-1,-1);
  r6.xy = cb0[14].xx * r5.zw;
  r3.w = dot(r6.xy, r6.xy);
  r3.w = min(1, r3.w);
  r3.w = 1 + -r3.w;
  r3.w = sqrt(r3.w);
  r6.xyz = t2.Sample(s4_s, r4.zw).xyw;
  r6.x = r6.x * r6.z;
  r6.xy = r6.xy * float2(2,2) + float2(-1,-1);
  r6.xy = cb0[14].xx * r6.xy;
  r6.z = dot(r6.xy, r6.xy);
  r6.z = min(1, r6.z);
  r6.z = 1 + -r6.z;
  r6.z = sqrt(r6.z);
  r7.xy = r5.zw * cb0[14].xx + r6.xy;
  r7.z = r6.z * r3.w;
  r3.w = dot(r7.xyz, r7.xyz);
  r3.w = rsqrt(r3.w);
  r6.xyz = r7.xyz * r3.www + -r3.xyz;
  r3.xyz = r5.xxx * r6.xyz + r3.xyz;
  r6.xyw = float3(9.99999996e-12,0,9.99999996e-12) + v5.wxw;
  r3.w = 0.5 * r6.x;
  r5.z = -r6.x * 0.5 + v5.y;
  r6.z = -r5.z * cb1[5].x + r3.w;
  r6.yzw = r6.yzw / r6.xxx;
  r5.zw = r6.yz / r6.ww;
  r5.zw = r3.xy * cb0[14].yy + r5.zw;
  r6.yzw = t3.Sample(s5_s, r5.zw).xyz;
  r5.zw = v5.xy / r6.xx;
  r3.w = t4.Sample(s6_s, r5.zw).x;
  r3.w = cb1[7].z * r3.w + cb1[7].w;
  r3.w = 1 / r3.w;
  r3.w = r3.w + -r6.x;
  r5.z = cb0[17].x + abs(r3.w);
  r5.z = log2(r5.z);
  r5.zw = cb0[17].yz * r5.zx;
  r5.z = exp2(r5.z);
  r6.x = 100 + -r5.z;
  r5.z = saturate(r5.w * r6.x + r5.z);
  r7.xyz = cb0[16].xyz + -cb0[15].xyz;
  r7.xyz = r5.zzz * r7.xyz + cb0[15].xyz;
  r5.w = cb0[18].w + abs(r3.w);
  r5.w = log2(r5.w);
  r5.w = cb0[19].x * r5.w;
  r5.w = exp2(r5.w);
  r5.w = min(1, r5.w);
  r8.xy = v1.xy * cb0[20].xy + cb0[20].zw;
  r8.zw = r2.ww ? cb0[19].yz : cb0[19].zy;
  r8.xy = r8.xy * r1.ww;
  r8.xy = cb1[0].yy * r8.zw + r8.xy;
  r6.x = t5.Sample(s7_s, r8.xy).w;
  r6.x = r6.x * r5.w;
  r8.xyz = cb0[18].xyz + -r7.xyz;
  r8.xyz = r6.xxx * r8.xyz + r7.xyz;
  r8.xyz = r8.xyz + -r6.yzw;
  r6.yzw = r5.www * r8.xyz + r6.yzw;
  r5.w = 1 + -r5.z;
  r7.xyz = r7.xyz + -r6.yzw;
  r6.yzw = r5.www * r7.xyz + r6.yzw;
  r4.x = t6.Sample(s8_s, r4.xy).w;
  r7.xy = r2.ww ? cb0[21].xy : cb0[21].yx;
  r7.zw = v1.xy * cb0[22].xy + cb0[22].zw;
  r7.zw = r7.zw * r1.ww;
  r8.xy = cb1[1].xx * r7.xy;
  r8.xy = r8.xy * float2(-1.20000005,-0.899999976) + r7.zw;
  r1.w = t7.Sample(s9_s, r8.xy).w;
  r7.xy = r7.xy * cb1[1].xx + r7.zw;
  r2.w = t7.Sample(s9_s, r7.xy).w;
  r2.w = min(r2.w, r1.w);
  r2.w = log2(r2.w);
  r2.w = cb0[23].x * r2.w;
  r2.w = exp2(r2.w);
  r2.w = 20 * r2.w;
  r2.w = min(1, r2.w);
  r2.w = r2.w * r4.x;
  r4.x = log2(r4.x);
  r4.x = cb0[24].x * r4.x;
  r4.x = exp2(r4.x);
  r4.x = min(1, r4.x);
  r4.x = r5.y * r4.x;
  r8.xyz = r2.www * cb0[23].yzw + -r6.yzw;
  r6.yzw = r4.xxx * r8.xyz + r6.yzw;
  r2.w = t8.Sample(s10_s, r4.zw).w;
  r4.yz = float2(-0.469999999,0.370000005) + r7.xy;
  r4.y = t7.Sample(s9_s, r4.yz).w;
  r1.w = min(r4.y, r1.w);
  r1.w = log2(r1.w);
  r1.w = cb0[24].y * r1.w;
  r1.w = exp2(r1.w);
  r1.w = 20 * r1.w;
  r1.w = min(1, r1.w);
  r4.y = 0.5 * r2.w;
  r1.w = r1.w * r4.y + r4.y;
  r2.w = log2(r2.w);
  r2.w = cb0[25].w * r2.w;
  r2.w = exp2(r2.w);
  r2.w = min(1, r2.w);
  r2.w = r5.x * r2.w;
  r4.yzw = r1.www * cb0[25].xyz + -r6.yzw;
  r4.yzw = r2.www * r4.yzw + r6.yzw;
  r1.w = saturate(max(r3.x, r3.y));
  r6.yzw = cb0[16].xyz * r1.www;
  r7.xy = cb0[26].yw + -cb0[26].xz;
  r1.w = r5.z * r7.x + cb0[26].x;
  r6.yzw = r6.yzw * r1.www;
  r1.w = log2(r5.z);
  r1.w = cb0[27].x * r1.w;
  r1.w = exp2(r1.w);
  r1.w = r1.w * r7.y + cb0[26].z;
  r5.z = cb0[27].y + -r1.w;
  r1.w = r6.x * r5.z + r1.w;
  r4.x = r4.x * r5.y;
  r5.y = cb0[27].z + -r1.w;
  r1.w = r4.x * r5.y + r1.w;
  r2.w = r2.w * r5.x;
  r5.x = cb0[27].w + -r1.w;
  r1.w = r2.w * r5.x + r1.w;
  r5.x = cb0[28].y + -cb0[28].x;
  r5.x = r6.x * r5.x + cb0[28].x;
  r5.y = cb0[28].z + -r5.x;
  r4.x = r4.x * r5.y + r5.x;
  r5.x = cb0[28].w + -r4.x;
  r2.w = r2.w * r5.x + r4.x;
  r3.w = log2(abs(r3.w));
  r3.w = cb0[29].y * r3.w;
  r3.w = exp2(r3.w);
  r3.w = min(1, r3.w);
  r3.w = log2(r3.w);
  r3.w = cb0[29].z * r3.w;
  o0.w = exp2(r3.w);
  r3.w = cmp(cb5[0].x == 1.000000);
  if (r3.w != 0) {
    r4.x = cmp(cb5[0].y == 1.000000);
    r5.xyz = cb5[2].xyz * v3.www;
    r5.xyz = cb5[1].xyz * v2.www + r5.xyz;
    r5.xyz = cb5[3].xyz * v4.www + r5.xyz;
    r5.xyz = cb5[4].xyz + r5.xyz;
    r5.xyz = r4.xxx ? r5.xyz : r0.xyz;
    r5.xyz = -cb5[6].xyz + r5.xyz;
    r7.yzw = cb5[5].xyz * r5.xyz;
    r4.x = r7.y * 0.25 + 0.75;
    r5.x = cb5[0].z * 0.5 + 0.75;
    r7.x = max(r5.x, r4.x);
    r7.xyzw = t11.Sample(s1_s, r7.xzw).xyzw;
  } else {
    r7.xyzw = float4(1,1,1,1);
  }
  r4.x = saturate(dot(r7.xyzw, cb2[46].xyzw));
  r5.x = dot(v2.xyz, r3.xyz);
  r5.y = dot(v3.xyz, r3.xyz);
  r5.z = dot(v4.xyz, r3.xyz);
  r3.x = dot(r5.xyz, r5.xyz);
  r3.x = rsqrt(r3.x);
  r7.xyz = r5.xyz * r3.xxx;
  r3.x = 1 + -r2.w;
  r3.y = dot(-r2.xyz, r7.xyz);
  r3.y = r3.y + r3.y;
  r5.xyz = r7.xyz * -r3.yyy + -r2.xyz;
  r8.xyz = cb0[2].xyz * r4.xxx;
  if (r3.w != 0) {
    r3.y = cmp(cb5[0].y == 1.000000);
    r9.xyz = cb5[2].xyz * v3.www;
    r9.xyz = cb5[1].xyz * v2.www + r9.xyz;
    r9.xyz = cb5[3].xyz * v4.www + r9.xyz;
    r9.xyz = cb5[4].xyz + r9.xyz;
    r3.yzw = r3.yyy ? r9.xyz : r0.xyz;
    r3.yzw = -cb5[6].xyz + r3.yzw;
    r9.yzw = cb5[5].xyz * r3.yzw;
    r3.y = 0.25 * r9.y;
    r3.z = 0.5 * cb5[0].z;
    r3.w = -cb5[0].z * 0.5 + 0.25;
    r3.y = max(r3.y, r3.z);
    r9.x = min(r3.y, r3.w);
    r10.xyzw = t11.Sample(s1_s, r9.xzw).xyzw;
    r3.yzw = float3(0.25,0,0) + r9.xzw;
    r11.xyzw = t11.Sample(s1_s, r3.yzw).xyzw;
    r3.yzw = float3(0.5,0,0) + r9.xzw;
    r9.xyzw = t11.Sample(s1_s, r3.yzw).xyzw;
    r7.w = 1;
    r10.x = dot(r10.xyzw, r7.xyzw);
    r10.y = dot(r11.xyzw, r7.xyzw);
    r10.z = dot(r9.xyzw, r7.xyzw);
  } else {
    r7.w = 1;
    r10.x = dot(cb2[39].xyzw, r7.xyzw);
    r10.y = dot(cb2[40].xyzw, r7.xyzw);
    r10.z = dot(cb2[41].xyzw, r7.xyzw);
  }
  r3.yzw = v6.xyz + r10.xyz;
  r3.yzw = max(float3(0,0,0), r3.yzw);
  r4.x = cmp(0 < cb4[2].w);
  if (r4.x != 0) {
    r4.x = dot(r5.xyz, r5.xyz);
    r4.x = rsqrt(r4.x);
    r9.xyz = r5.xyz * r4.xxx;
    r10.xyz = cb4[0].xyz + -r0.xyz;
    r10.xyz = r10.xyz / r9.xyz;
    r11.xyz = cb4[1].xyz + -r0.xyz;
    r11.xyz = r11.xyz / r9.xyz;
    r12.xyz = cmp(float3(0,0,0) < r9.xyz);
    r10.xyz = r12.xyz ? r10.xyz : r11.xyz;
    r4.x = min(r10.x, r10.y);
    r4.x = min(r4.x, r10.z);
    r10.xyz = -cb4[2].xyz + r0.xyz;
    r9.xyz = r9.xyz * r4.xxx + r10.xyz;
  } else {
    r9.xyz = r5.xyz;
  }
  r4.x = -r3.x * 0.699999988 + 1.70000005;
  r4.x = r4.x * r3.x;
  r4.x = 6 * r4.x;
  r9.xyzw = t9.SampleLevel(s0_s, r9.xyz, r4.x).xyzw;
  r6.x = -1 + r9.w;
  r6.x = cb4[3].w * r6.x + 1;
  r6.x = log2(r6.x);
  r6.x = cb4[3].y * r6.x;
  r6.x = exp2(r6.x);
  r6.x = cb4[3].x * r6.x;
  r10.xyz = r6.xxx * r9.xyz;
  r7.w = cmp(cb4[1].w < 0.999989986);
  if (r7.w != 0) {
    r7.w = cmp(0 < cb4[6].w);
    if (r7.w != 0) {
      r7.w = dot(r5.xyz, r5.xyz);
      r7.w = rsqrt(r7.w);
      r11.xyz = r7.www * r5.xyz;
      r12.xyz = cb4[4].xyz + -r0.xyz;
      r12.xyz = r12.xyz / r11.xyz;
      r13.xyz = cb4[5].xyz + -r0.xyz;
      r13.xyz = r13.xyz / r11.xyz;
      r14.xyz = cmp(float3(0,0,0) < r11.xyz);
      r12.xyz = r14.xyz ? r12.xyz : r13.xyz;
      r7.w = min(r12.x, r12.y);
      r7.w = min(r7.w, r12.z);
      r0.xyz = -cb4[6].xyz + r0.xyz;
      r5.xyz = r11.xyz * r7.www + r0.xyz;
    }
    r11.xyzw = t10.SampleLevel(s0_s, r5.xyz, r4.x).xyzw;
    r0.x = -1 + r11.w;
    r0.x = cb4[7].w * r0.x + 1;
    r0.x = log2(r0.x);
    r0.x = cb4[7].y * r0.x;
    r0.x = exp2(r0.x);
    r0.x = cb4[7].x * r0.x;
    r0.xyz = r0.xxx * r11.xyz;
    r5.xyz = r6.xxx * r9.xyz + -r0.xyz;
    r10.xyz = cb4[1].www * r5.xyz + r0.xyz;
  }
  r0.xyz = cb0[29].xxx * r10.xyz;
  r4.x = max(r1.w, r1.w);
  r4.x = max(r4.x, r1.w);
  r4.x = 1 + -r4.x;
  r4.yzw = r4.yzw * r4.xxx;
  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(r7.xyz, r2.xyz);
  r2.x = saturate(dot(r7.xyz, cb2[0].xyz));
  r2.y = saturate(dot(r7.xyz, r1.xyz));
  r1.x = saturate(dot(cb2[0].xyz, r1.xyz));
  r1.y = r1.x * r1.x;
  r1.y = dot(r1.yy, r3.xx);
  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 = r3.x * r3.x;
  r1.z = max(0.00200000009, r1.z);
  r3.x = 1 + -r1.z;
  r5.x = abs(r0.w) * r3.x + r1.z;
  r3.x = r2.x * r3.x + r1.z;
  r0.w = r3.x * abs(r0.w);
  r0.w = r2.x * r5.x + r0.w;
  r0.w = 9.99999975e-06 + r0.w;
  r0.w = 0.5 / r0.w;
  r3.x = r1.z * r1.z;
  r5.x = r2.y * r3.x + -r2.y;
  r2.y = r5.x * r2.y + 1;
  r3.x = 0.318309873 * r3.x;
  r2.y = r2.y * r2.y + 1.00000001e-07;
  r2.y = r3.x / r2.y;
  r0.w = r2.y * r0.w;
  r0.w = 3.14159274 * r0.w;
  r0.w = r0.w * r2.x;
  r0.w = max(0, r0.w);
  r1.z = r1.z * r1.z + 1;
  r1.z = 1 / r1.z;
  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 + -r4.x;
  r2.x = saturate(r2.w + r2.x);
  r5.xyz = r8.xyz * r1.yyy;
  r3.xyz = r3.yzw * cb0[29].xxx + r5.xyz;
  r5.xyz = r0.www * r8.xyz;
  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;
  r5.xyz = r5.xyz * r0.www;
  r3.xyz = r4.yzw * r3.xyz + r5.xyz;
  r0.w = r2.x + -r1.w;
  r0.w = r2.z * r0.w + r1.w;
  r0.xyz = r0.xyz * r0.www + r3.xyz;
  r0.xyz = r5.www * r6.yzw + r0.xyz;
  r0.w = w1.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.109 on Sun Feb 15 19:53:28 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 6     z         1     NONE   float     z
// 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
// TEXCOORD                 5   xyz         6     NONE   float   xyz
// TEXCOORD                 8   xyzw        7     NONE   float
//
//
// 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[30], 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_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_texturecube (float,float,float,float) t9
dcl_resource_texturecube (float,float,float,float) t10
dcl_resource_texture3d (float,float,float,float) t11
dcl_input_ps linear v1.xy
dcl_input_ps linear v1.z
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.xyz
dcl_output o0.xyzw
dcl_temps 15
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
mad r3.xy, v1.xyxx, cb0[5].xyxx, cb0[5].zwzz
div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), cb0[6].x
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
movc r4.xy, r2.wwww, cb0[6].yzyy, cb0[6].zyzz
mad r3.xy, cb1[0].yyyy, r4.xyxx, r3.xyxx
mad r4.xy, v1.xyxx, cb0[8].xyxx, cb0[8].zwzz
mul r4.xy, r1.wwww, r4.xyxx
movc r4.zw, r2.wwww, cb0[7].xxxy, cb0[7].yyyx
mad r4.zw, cb1[0].yyyy, r4.zzzw, r4.xxxy
movc r5.xy, r2.wwww, cb0[9].yzyy, cb0[9].zyzz
mad r4.xy, cb1[0].yyyy, r5.xyxx, r4.xyxx
mov_sat r5.x, v3.z
mul r5.y, cb0[9].w, l(0.0222222228)
mad r5.z, -cb0[9].w, l(0.0222222228), l(1.000000)
add r5.z, -r5.z, r5.x
max r5.z, r5.z, l(0.000000)
min r5.z, r5.z, l(2.000000)
div r5.y, l(1.000000, 1.000000, 1.000000, 1.000000), r5.y
mul_sat r5.y, r5.y, r5.z
mul r5.z, cb0[10].y, l(0.0222222228)
mad r5.w, -cb0[10].y, l(0.0222222228), l(1.000000)
add r5.x, -r5.w, r5.x
max r5.x, r5.x, l(0.000000)
min r5.x, r5.x, l(2.000000)
div r5.z, l(1.000000, 1.000000, 1.000000, 1.000000), r5.z
mul_sat r5.x, r5.z, r5.x
add r5.xy, -r5.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
log r5.x, r5.x
mul r5.x, r5.x, cb0[10].z
exp r5.x, r5.x
min r5.x, r5.x, l(1.000000)
log r5.y, r5.y
mul r5.y, r5.y, cb0[10].x
exp r5.y, r5.y
add_sat r5.y, -r5.x, r5.y
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r3.zwzz, t0.xywz, s2
mul r3.z, cb0[13].z, l(1.200000)
mul r6.x, r6.z, r6.x
mad r5.zw, r6.xxxy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
mul r6.xy, r3.zzzz, r5.zwzz
dp2 r3.w, r6.xyxx, r6.xyxx
min r3.w, r3.w, l(1.000000)
add r3.w, -r3.w, l(1.000000)
sqrt r3.w, r3.w
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r3.xyxx, t0.xywz, s2
mul r6.x, r6.z, r6.x
mad r3.xy, r6.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r3.xy, r3.xyxx, cb0[13].zzzz
dp2 r6.x, r3.xyxx, r3.xyxx
min r6.x, r6.x, l(1.000000)
add r6.x, -r6.x, l(1.000000)
sqrt r6.x, r6.x
mad r3.xy, r5.zwzz, r3.zzzz, r3.xyxx
mul r3.z, r3.w, r6.x
dp3 r3.w, r3.xyzx, r3.xyzx
rsq r3.w, r3.w
mul r3.xyz, r3.wwww, r3.xyzx
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r4.zwzz, t1.xywz, s3
mul r6.x, r6.z, r6.x
mad r4.zw, r6.xxxy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
mul r5.zw, r4.zzzw, cb0[13].wwww
dp2 r3.w, r5.zwzz, r5.zwzz
min r3.w, r3.w, l(1.000000)
add r3.w, -r3.w, l(1.000000)
sqrt r3.w, r3.w
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r4.xyxx, t1.xywz, s3
mul r6.x, r6.z, r6.x
mad r5.zw, r6.xxxy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
mul r5.zw, r5.zzzw, cb0[13].wwww
dp2 r6.x, r5.zwzz, r5.zwzz
min r6.x, r6.x, l(1.000000)
add r6.x, -r6.x, l(1.000000)
sqrt r6.x, r6.x
mad r7.xy, r4.zwzz, cb0[13].wwww, r5.zwzz
mul r7.z, r3.w, r6.x
dp3 r3.w, r7.xyzx, r7.xyzx
rsq r3.w, r3.w
mad r6.xyz, r7.xyzx, r3.wwww, -r3.xyzx
mad r3.xyz, r5.yyyy, r6.xyzx, r3.xyzx
mad r4.zw, v1.xxxy, cb0[12].xxxy, cb0[12].zzzw
mul r4.zw, r1.wwww, r4.zzzw
movc r5.zw, r2.wwww, cb0[11].xxxy, cb0[11].yyyx
mad r5.zw, cb1[0].yyyy, r5.zzzw, r4.zzzw
movc r6.xy, r2.wwww, cb0[13].xyxx, cb0[13].yxyy
mad r4.zw, cb1[0].yyyy, r6.xxxy, r4.zzzw
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r5.zwzz, t2.xywz, s4
mul r6.x, r6.z, r6.x
mad r5.zw, r6.xxxy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
mul r6.xy, r5.zwzz, cb0[14].xxxx
dp2 r3.w, r6.xyxx, r6.xyxx
min r3.w, r3.w, l(1.000000)
add r3.w, -r3.w, l(1.000000)
sqrt r3.w, r3.w
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r4.zwzz, t2.xywz, s4
mul r6.x, r6.z, r6.x
mad r6.xy, r6.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r6.xy, r6.xyxx, cb0[14].xxxx
dp2 r6.z, r6.xyxx, r6.xyxx
min r6.z, r6.z, l(1.000000)
add r6.z, -r6.z, l(1.000000)
sqrt r6.z, r6.z
mad r7.xy, r5.zwzz, cb0[14].xxxx, r6.xyxx
mul r7.z, r3.w, r6.z
dp3 r3.w, r7.xyzx, r7.xyzx
rsq r3.w, r3.w
mad r6.xyz, r7.xyzx, r3.wwww, -r3.xyzx
mad r3.xyz, r5.xxxx, r6.xyzx, r3.xyzx
add r6.xyw, v5.wxww, l(9.999999960E-12, 0.000000, 0.000000, 9.999999960E-12)
mul r3.w, r6.x, l(0.500000)
mad r5.z, -r6.x, l(0.500000), v5.y
mad r6.z, -r5.z, cb1[5].x, r3.w
div r6.yzw, r6.yyzw, r6.xxxx
div r5.zw, r6.yyyz, r6.wwww
mad r5.zw, r3.xxxy, cb0[14].yyyy, r5.zzzw
sample_indexable(texture2d)(float,float,float,float) r6.yzw, r5.zwzz, t3.wxyz, s5
div r5.zw, v5.xxxy, r6.xxxx
sample_indexable(texture2d)(float,float,float,float) r3.w, r5.zwzz, t4.yzwx, s6
mad r3.w, cb1[7].z, r3.w, cb1[7].w
div r3.w, l(1.000000, 1.000000, 1.000000, 1.000000), r3.w
add r3.w, -r6.x, r3.w
add r5.z, |r3.w|, cb0[17].x
log r5.z, r5.z
mul r5.zw, r5.zzzx, cb0[17].yyyz
exp r5.z, r5.z
add r6.x, -r5.z, l(100.000000)
mad_sat r5.z, r5.w, r6.x, r5.z
add r7.xyz, -cb0[15].xyzx, cb0[16].xyzx
mad r7.xyz, r5.zzzz, r7.xyzx, cb0[15].xyzx
add r5.w, |r3.w|, cb0[18].w
log r5.w, r5.w
mul r5.w, r5.w, cb0[19].x
exp r5.w, r5.w
min r5.w, r5.w, l(1.000000)
mad r8.xy, v1.xyxx, cb0[20].xyxx, cb0[20].zwzz
movc r8.zw, r2.wwww, cb0[19].yyyz, cb0[19].zzzy
mul r8.xy, r1.wwww, r8.xyxx
mad r8.xy, cb1[0].yyyy, r8.zwzz, r8.xyxx
sample_indexable(texture2d)(float,float,float,float) r6.x, r8.xyxx, t5.wxyz, s7
mul r6.x, r5.w, r6.x
add r8.xyz, -r7.xyzx, cb0[18].xyzx
mad r8.xyz, r6.xxxx, r8.xyzx, r7.xyzx
add r8.xyz, -r6.yzwy, r8.xyzx
mad r6.yzw, r5.wwww, r8.xxyz, r6.yyzw
add r5.w, -r5.z, l(1.000000)
add r7.xyz, -r6.yzwy, r7.xyzx
mad r6.yzw, r5.wwww, r7.xxyz, r6.yyzw
sample_indexable(texture2d)(float,float,float,float) r4.x, r4.xyxx, t6.wxyz, s8
movc r7.xy, r2.wwww, cb0[21].xyxx, cb0[21].yxyy
mad r7.zw, v1.xxxy, cb0[22].xxxy, cb0[22].zzzw
mul r7.zw, r1.wwww, r7.zzzw
mul r8.xy, r7.xyxx, cb1[1].xxxx
mad r8.xy, r8.xyxx, l(-1.200000, -0.900000, 0.000000, 0.000000), r7.zwzz
sample_indexable(texture2d)(float,float,float,float) r1.w, r8.xyxx, t7.xyzw, s9
mad r7.xy, r7.xyxx, cb1[1].xxxx, r7.zwzz
sample_indexable(texture2d)(float,float,float,float) r2.w, r7.xyxx, t7.xyzw, s9
min r2.w, r1.w, r2.w
log r2.w, r2.w
mul r2.w, r2.w, cb0[23].x
exp r2.w, r2.w
mul r2.w, r2.w, l(20.000000)
min r2.w, r2.w, l(1.000000)
mul r2.w, r4.x, r2.w
log r4.x, r4.x
mul r4.x, r4.x, cb0[24].x
exp r4.x, r4.x
min r4.x, r4.x, l(1.000000)
mul r4.x, r4.x, r5.y
mad r8.xyz, r2.wwww, cb0[23].yzwy, -r6.yzwy
mad r6.yzw, r4.xxxx, r8.xxyz, r6.yyzw
sample_indexable(texture2d)(float,float,float,float) r2.w, r4.zwzz, t8.xyzw, s10
add r4.yz, r7.xxyx, l(0.000000, -0.470000, 0.370000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r4.y, r4.yzyy, t7.xwyz, s9
min r1.w, r1.w, r4.y
log r1.w, r1.w
mul r1.w, r1.w, cb0[24].y
exp r1.w, r1.w
mul r1.w, r1.w, l(20.000000)
min r1.w, r1.w, l(1.000000)
mul r4.y, r2.w, l(0.500000)
mad r1.w, r1.w, r4.y, r4.y
log r2.w, r2.w
mul r2.w, r2.w, cb0[25].w
exp r2.w, r2.w
min r2.w, r2.w, l(1.000000)
mul r2.w, r2.w, r5.x
mad r4.yzw, r1.wwww, cb0[25].xxyz, -r6.yyzw
mad r4.yzw, r2.wwww, r4.yyzw, r6.yyzw
max_sat r1.w, r3.y, r3.x
mul r6.yzw, r1.wwww, cb0[16].xxyz
add r7.xy, -cb0[26].xzxx, cb0[26].ywyy
mad r1.w, r5.z, r7.x, cb0[26].x
mul r6.yzw, r1.wwww, r6.yyzw
log r1.w, r5.z
mul r1.w, r1.w, cb0[27].x
exp r1.w, r1.w
mad r1.w, r1.w, r7.y, cb0[26].z
add r5.z, -r1.w, cb0[27].y
mad r1.w, r6.x, r5.z, r1.w
mul r4.x, r5.y, r4.x
add r5.y, -r1.w, cb0[27].z
mad r1.w, r4.x, r5.y, r1.w
mul r2.w, r5.x, r2.w
add r5.x, -r1.w, cb0[27].w
mad r1.w, r2.w, r5.x, r1.w
add r5.x, -cb0[28].x, cb0[28].y
mad r5.x, r6.x, r5.x, cb0[28].x
add r5.y, -r5.x, cb0[28].z
mad r4.x, r4.x, r5.y, r5.x
add r5.x, -r4.x, cb0[28].w
mad r2.w, r2.w, r5.x, r4.x
log r3.w, |r3.w|
mul r3.w, r3.w, cb0[29].y
exp r3.w, r3.w
min r3.w, r3.w, l(1.000000)
log r3.w, r3.w
mul r3.w, r3.w, cb0[29].z
exp o0.w, r3.w
eq r3.w, cb5[0].x, l(1.000000)
if_nz r3.w
  eq r4.x, cb5[0].y, l(1.000000)
  mul r5.xyz, v3.wwww, cb5[2].xyzx
  mad r5.xyz, cb5[1].xyzx, v2.wwww, r5.xyzx
  mad r5.xyz, cb5[3].xyzx, v4.wwww, r5.xyzx
  add r5.xyz, r5.xyzx, cb5[4].xyzx
  movc r5.xyz, r4.xxxx, r5.xyzx, r0.xyzx
  add r5.xyz, r5.xyzx, -cb5[6].xyzx
  mul r7.yzw, r5.xxyz, cb5[5].xxyz
  mad r4.x, r7.y, l(0.250000), l(0.750000)
  mad r5.x, cb5[0].z, l(0.500000), l(0.750000)
  max r7.x, r4.x, r5.x
  sample_indexable(texture3d)(float,float,float,float) r7.xyzw, r7.xzwx, t11.xyzw, s1
else
  mov r7.xyzw, l(1.000000,1.000000,1.000000,1.000000)
endif
dp4_sat r4.x, r7.xyzw, cb2[46].xyzw
dp3 r5.x, v2.xyzx, r3.xyzx
dp3 r5.y, v3.xyzx, r3.xyzx
dp3 r5.z, v4.xyzx, r3.xyzx
dp3 r3.x, r5.xyzx, r5.xyzx
rsq r3.x, r3.x
mul r7.xyz, r3.xxxx, r5.xyzx
add r3.x, -r2.w, l(1.000000)
dp3 r3.y, -r2.xyzx, r7.xyzx
add r3.y, r3.y, r3.y
mad r5.xyz, r7.xyzx, -r3.yyyy, -r2.xyzx
mul r8.xyz, r4.xxxx, cb0[2].xyzx
if_nz r3.w
  eq r3.y, cb5[0].y, l(1.000000)
  mul r9.xyz, v3.wwww, cb5[2].xyzx
  mad r9.xyz, cb5[1].xyzx, v2.wwww, r9.xyzx
  mad r9.xyz, cb5[3].xyzx, v4.wwww, r9.xyzx
  add r9.xyz, r9.xyzx, cb5[4].xyzx
  movc r3.yzw, r3.yyyy, r9.xxyz, r0.xxyz
  add r3.yzw, r3.yyzw, -cb5[6].xxyz
  mul r9.yzw, r3.yyzw, cb5[5].xxyz
  mul r3.y, r9.y, l(0.250000)
  mul r3.z, cb5[0].z, l(0.500000)
  mad r3.w, -cb5[0].z, l(0.500000), l(0.250000)
  max r3.y, r3.z, r3.y
  min r9.x, r3.w, r3.y
  sample_indexable(texture3d)(float,float,float,float) r10.xyzw, r9.xzwx, t11.xyzw, s1
  add r3.yzw, r9.xxzw, l(0.000000, 0.250000, 0.000000, 0.000000)
  sample_indexable(texture3d)(float,float,float,float) r11.xyzw, r3.yzwy, t11.xyzw, s1
  add r3.yzw, r9.xxzw, l(0.000000, 0.500000, 0.000000, 0.000000)
  sample_indexable(texture3d)(float,float,float,float) r9.xyzw, r3.yzwy, t11.xyzw, s1
  mov r7.w, l(1.000000)
  dp4 r10.x, r10.xyzw, r7.xyzw
  dp4 r10.y, r11.xyzw, r7.xyzw
  dp4 r10.z, r9.xyzw, r7.xyzw
else
  mov r7.w, l(1.000000)
  dp4 r10.x, cb2[39].xyzw, r7.xyzw
  dp4 r10.y, cb2[40].xyzw, r7.xyzw
  dp4 r10.z, cb2[41].xyzw, r7.xyzw
endif
add r3.yzw, r10.xxyz, v6.xxyz
max r3.yzw, r3.yyzw, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r4.x, l(0.000000), cb4[2].w
if_nz r4.x
  dp3 r4.x, r5.xyzx, r5.xyzx
  rsq r4.x, r4.x
  mul r9.xyz, r4.xxxx, r5.xyzx
  add r10.xyz, -r0.xyzx, cb4[0].xyzx
  div r10.xyz, r10.xyzx, r9.xyzx
  add r11.xyz, -r0.xyzx, cb4[1].xyzx
  div r11.xyz, r11.xyzx, r9.xyzx
  lt r12.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r9.xyzx
  movc r10.xyz, r12.xyzx, r10.xyzx, r11.xyzx
  min r4.x, r10.y, r10.x
  min r4.x, r10.z, r4.x
  add r10.xyz, r0.xyzx, -cb4[2].xyzx
  mad r9.xyz, r9.xyzx, r4.xxxx, r10.xyzx
else
  mov r9.xyz, r5.xyzx
endif
mad r4.x, -r3.x, l(0.700000), l(1.700000)
mul r4.x, r3.x, r4.x
mul r4.x, r4.x, l(6.000000)
sample_l_indexable(texturecube)(float,float,float,float) r9.xyzw, r9.xyzx, t9.xyzw, s0, r4.x
add r6.x, r9.w, l(-1.000000)
mad r6.x, cb4[3].w, r6.x, l(1.000000)
log r6.x, r6.x
mul r6.x, r6.x, cb4[3].y
exp r6.x, r6.x
mul r6.x, r6.x, cb4[3].x
mul r10.xyz, r9.xyzx, r6.xxxx
lt r7.w, cb4[1].w, l(0.999990)
if_nz r7.w
  lt r7.w, l(0.000000), cb4[6].w
  if_nz r7.w
    dp3 r7.w, r5.xyzx, r5.xyzx
    rsq r7.w, r7.w
    mul r11.xyz, r5.xyzx, r7.wwww
    add r12.xyz, -r0.xyzx, cb4[4].xyzx
    div r12.xyz, r12.xyzx, r11.xyzx
    add r13.xyz, -r0.xyzx, cb4[5].xyzx
    div r13.xyz, r13.xyzx, r11.xyzx
    lt r14.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r11.xyzx
    movc r12.xyz, r14.xyzx, r12.xyzx, r13.xyzx
    min r7.w, r12.y, r12.x
    min r7.w, r12.z, r7.w
    add r0.xyz, r0.xyzx, -cb4[6].xyzx
    mad r5.xyz, r11.xyzx, r7.wwww, r0.xyzx
  endif
  sample_l_indexable(texturecube)(float,float,float,float) r11.xyzw, r5.xyzx, t10.xyzw, s0, r4.x
  add r0.x, r11.w, l(-1.000000)
  mad r0.x, cb4[7].w, r0.x, l(1.000000)
  log r0.x, r0.x
  mul r0.x, r0.x, cb4[7].y
  exp r0.x, r0.x
  mul r0.x, r0.x, cb4[7].x
  mul r0.xyz, r11.xyzx, r0.xxxx
  mad r5.xyz, r6.xxxx, r9.xyzx, -r0.xyzx
  mad r10.xyz, cb4[1].wwww, r5.xyzx, r0.xyzx
endif
mul r0.xyz, r10.xyzx, cb0[29].xxxx
max r4.x, r1.w, r1.w
max r4.x, r1.w, r4.x
add r4.x, -r4.x, l(1.000000)
mul r4.yzw, r4.xxxx, r4.yyzw
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, r7.xyzx, r2.xyzx
dp3_sat r2.x, r7.xyzx, cb2[0].xyzx
dp3_sat r2.y, r7.xyzx, r1.xyzx
dp3_sat r1.x, cb2[0].xyzx, r1.xyzx
mul r1.y, r1.x, r1.x
dp2 r1.y, r1.yyyy, r3.xxxx
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, r3.x, r3.x
max r1.z, r1.z, l(0.002000)
add r3.x, -r1.z, l(1.000000)
mad r5.x, |r0.w|, r3.x, r1.z
mad r3.x, r2.x, r3.x, r1.z
mul r0.w, |r0.w|, r3.x
mad r0.w, r2.x, r5.x, r0.w
add r0.w, r0.w, l(0.000010)
div r0.w, l(0.500000), r0.w
mul r3.x, r1.z, r1.z
mad r5.x, r2.y, r3.x, -r2.y
mad r2.y, r5.x, r2.y, l(1.000000)
mul r3.x, r3.x, l(0.318309873)
mad r2.y, r2.y, r2.y, l(1.000000012E-07)
div r2.y, r3.x, r2.y
mul r0.w, r0.w, r2.y
mul r0.w, r0.w, l(3.14159274)
mul r0.w, r2.x, r0.w
max r0.w, r0.w, l(0.000000)
mad r1.z, r1.z, r1.z, l(1.000000)
div r1.z, l(1.000000, 1.000000, 1.000000, 1.000000), r1.z
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, -r4.x, l(1.000000)
add_sat r2.x, r2.x, r2.w
mul r5.xyz, r1.yyyy, r8.xyzx
mad r3.xyz, r3.yzwy, cb0[29].xxxx, r5.xyzx
mul r5.xyz, r8.xyzx, 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 r5.xyz, r0.wwww, r5.xyzx
mad r3.xyz, r4.yzwy, r3.xyzx, r5.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
mad r0.xyz, r5.wwww, r6.yzwy, r0.xyzx
div r0.w, v1.z, 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

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