//spider's nest
// ---- Created with 3Dmigoto v0.6.109 on Sat Feb 21 09:03:48 2026
Texture3D<float4> t6 : register(t6);

TextureCube<float4> t5 : register(t5);

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




// 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 : COLOR0,
  float2 v5 : TEXCOORD3,
  float w5 : TEXCOORD6,
  float4 v6 : TEXCOORD4,
  float4 v7 : TEXCOORD5,
  float4 v8 : TEXCOORD7,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.x = v1.w;
  r0.y = v2.w;
  r0.z = v3.w;
  r1.xyz = cb1[4].xyz + -r0.xyz;
  r0.w = dot(r1.xyz, r1.xyz);
  r0.w = rsqrt(r0.w);
  r2.xyz = r1.xyz * r0.www;
  r3.xyzw = t0.Sample(s2_s, v5.xy).xyzw;
  r3.xyzw = cb0[5].xyzw * r3.xyzw;
  r4.xyzw = v4.wxyz * r3.wxyz;
  r5.xy = cmp(float2(0,0) < cb0[8].xy);
  r1.w = (int)r5.y | (int)r5.x;
  if (r1.w != 0) {
	  
	  
float4 s = StereoParams.Load(0);
float4 testeo = IniParams.Load(int2(90,0));  
v6.x += s.x * (v6.w - s.y) * 0.5;
	  
    r5.xy = v6.xy / v6.ww;
    r5.xyzw = t1.Sample(s5_s, r5.xy).xyzw;
    r1.w = cb1[7].z * r5.x + cb1[7].w;
    r1.w = 1 / r1.w;
    r1.w = -cb0[8].x + r1.w;
    r1.w = -v6.z + r1.w;
    r1.w = saturate(cb0[8].y * r1.w);
    r4.x = r4.x * r1.w;
  } else {
    r1.w = 1;
  }
  r2.w = -cb0[9].x + v6.z;
  r2.w = saturate(cb0[9].y * r2.w);
  o0.w = r4.x * r2.w;
  r5.xyzw = t2.Sample(s3_s, v5.xy).xyzw;
  r5.x = r5.x * r5.w;
  r5.xy = r5.xy * float2(2,2) + float2(-1,-1);
  r5.xy = cb0[6].xx * r5.xy;
  r3.w = dot(r5.xy, r5.xy);
  r3.w = min(1, r3.w);
  r3.w = 1 + -r3.w;
  r5.z = sqrt(r3.w);
  r3.w = dot(r5.xyz, r5.xyz);
  r3.w = rsqrt(r3.w);
  r5.xyz = r5.xyz * r3.www;
  r6.xyzw = t3.Sample(s4_s, v5.xy).xyzw;
  r6.xyz = r6.xyz * r2.www;
  r6.xyz = r6.xyz * r1.www;
  r1.w = cmp(cb5[0].x == 1.000000);
  if (r1.w != 0) {
    r2.w = cmp(cb5[0].y == 1.000000);
    r7.xyz = cb5[2].xyz * v2.www;
    r7.xyz = cb5[1].xyz * v1.www + r7.xyz;
    r7.xyz = cb5[3].xyz * v3.www + r7.xyz;
    r7.xyz = cb5[4].xyz + r7.xyz;
    r7.xyz = r2.www ? r7.xyz : r0.xyz;
    r7.xyz = -cb5[6].xyz + r7.xyz;
    r7.yzw = cb5[5].xyz * r7.xyz;
    r2.w = r7.y * 0.25 + 0.75;
    r3.w = cb5[0].z * 0.5 + 0.75;
    r7.x = max(r3.w, r2.w);
    r7.xyzw = t6.Sample(s1_s, r7.xzw).xyzw;
  } else {
    r7.xyzw = float4(1,1,1,1);
  }
  r2.w = saturate(dot(r7.xyzw, cb2[46].xyzw));
  r7.x = dot(v1.xyz, r5.xyz);
  r7.y = dot(v2.xyz, r5.xyz);
  r7.z = dot(v3.xyz, r5.xyz);
  r3.w = dot(r7.xyz, r7.xyz);
  r3.w = rsqrt(r3.w);
  r5.xyz = r7.xyz * r3.www;
  r3.w = 1 + -cb0[7].y;
  r4.x = dot(-r2.xyz, r5.xyz);
  r4.x = r4.x + r4.x;
  r7.xyz = r5.xyz * -r4.xxx + -r2.xyz;
  r8.xyz = cb0[2].xyz * r2.www;
  if (r1.w != 0) {
    r1.w = cmp(cb5[0].y == 1.000000);
    r9.xyz = cb5[2].xyz * v2.www;
    r9.xyz = cb5[1].xyz * v1.www + r9.xyz;
    r9.xyz = cb5[3].xyz * v3.www + r9.xyz;
    r9.xyz = cb5[4].xyz + r9.xyz;
    r9.xyz = r1.www ? r9.xyz : r0.xyz;
    r9.xyz = -cb5[6].xyz + r9.xyz;
    r9.yzw = cb5[5].xyz * r9.xyz;
    r1.w = 0.25 * r9.y;
    r2.w = 0.5 * cb5[0].z;
    r4.x = -cb5[0].z * 0.5 + 0.25;
    r1.w = max(r2.w, r1.w);
    r9.x = min(r1.w, r4.x);
    r10.xyzw = t6.Sample(s1_s, r9.xzw).xyzw;
    r11.xyz = float3(0.25,0,0) + r9.xzw;
    r11.xyzw = t6.Sample(s1_s, r11.xyz).xyzw;
    r9.xyz = float3(0.5,0,0) + r9.xzw;
    r9.xyzw = t6.Sample(s1_s, r9.xyz).xyzw;
    r5.w = 1;
    r10.x = dot(r10.xyzw, r5.xyzw);
    r10.y = dot(r11.xyzw, r5.xyzw);
    r10.z = dot(r9.xyzw, r5.xyzw);
  } else {
    r5.w = 1;
    r10.x = dot(cb2[39].xyzw, r5.xyzw);
    r10.y = dot(cb2[40].xyzw, r5.xyzw);
    r10.z = dot(cb2[41].xyzw, r5.xyzw);
  }
  r9.xyz = v7.xyz + r10.xyz;
  r9.xyz = max(float3(0,0,0), r9.xyz);
  r1.w = cmp(0 < cb4[2].w);
  if (r1.w != 0) {
    r1.w = dot(r7.xyz, r7.xyz);
    r1.w = rsqrt(r1.w);
    r10.xyz = r7.xyz * r1.www;
    r11.xyz = cb4[0].xyz + -r0.xyz;
    r11.xyz = r11.xyz / r10.xyz;
    r12.xyz = cb4[1].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;
    r1.w = min(r11.x, r11.y);
    r1.w = min(r1.w, r11.z);
    r11.xyz = -cb4[2].xyz + r0.xyz;
    r10.xyz = r10.xyz * r1.www + r11.xyz;
  } else {
    r10.xyz = r7.xyz;
  }
  r1.w = -r3.w * 0.699999988 + 1.70000005;
  r1.w = r3.w * r1.w;
  r1.w = 6 * r1.w;
  r10.xyzw = t4.SampleLevel(s0_s, r10.xyz, r1.w).xyzw;
  r2.w = -1 + r10.w;
  r2.w = cb4[3].w * r2.w + 1;
  r2.w = log2(r2.w);
  r2.w = cb4[3].y * r2.w;
  r2.w = exp2(r2.w);
  r2.w = cb4[3].x * r2.w;
  r11.xyz = r2.www * r10.xyz;
  r4.x = cmp(cb4[1].w < 0.999989986);
  if (r4.x != 0) {
    r4.x = cmp(0 < cb4[6].w);
    if (r4.x != 0) {
      r4.x = dot(r7.xyz, r7.xyz);
      r4.x = rsqrt(r4.x);
      r12.xyz = r7.xyz * r4.xxx;
      r13.xyz = cb4[4].xyz + -r0.xyz;
      r13.xyz = r13.xyz / r12.xyz;
      r14.xyz = cb4[5].xyz + -r0.xyz;
      r14.xyz = r14.xyz / r12.xyz;
      r15.xyz = cmp(float3(0,0,0) < r12.xyz);
      r13.xyz = r15.xyz ? r13.xyz : r14.xyz;
      r4.x = min(r13.x, r13.y);
      r4.x = min(r4.x, r13.z);
      r0.xyz = -cb4[6].xyz + r0.xyz;
      r7.xyz = r12.xyz * r4.xxx + r0.xyz;
    }
    r7.xyzw = t5.SampleLevel(s0_s, r7.xyz, r1.w).xyzw;
    r0.x = -1 + r7.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 * r7.xyz;
    r7.xyz = r2.www * r10.xyz + -r0.xyz;
    r11.xyz = cb4[1].www * r7.xyz + r0.xyz;
  }
  r0.xyz = r3.xyz * v4.xyz + float3(-0.0399999991,-0.0399999991,-0.0399999991);
  r0.xyz = cb0[7].xxx * r0.xyz + float3(0.0399999991,0.0399999991,0.0399999991);
  r1.w = -cb0[7].x * 0.959999979 + 0.959999979;
  r3.xyz = r4.yzw * r1.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, r3.ww);
  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);
  r2.w = r2.z * r2.z;
  r2.w = r2.w * r2.w;
  r2.z = r2.w * r2.z;
  r1.y = r1.y * r2.z + 1;
  r1.y = r1.z * r1.y;
  r1.y = r1.y * r2.x;
  r1.z = r3.w * r3.w;
  r1.z = max(0.00200000009, r1.z);
  r2.w = 1 + -r1.z;
  r3.w = abs(r0.w) * r2.w + r1.z;
  r2.w = r2.x * r2.w + r1.z;
  r0.w = r2.w * abs(r0.w);
  r0.w = r2.x * r3.w + r0.w;
  r0.w = 9.99999975e-06 + r0.w;
  r0.w = 0.5 / r0.w;
  r2.w = r1.z * r1.z;
  r3.w = r2.y * r2.w + -r2.y;
  r2.y = r3.w * r2.y + 1;
  r2.w = 0.318309873 * r2.w;
  r2.y = r2.y * r2.y + 1.00000001e-07;
  r2.y = r2.w / 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(r0.xyz, r0.xyz);
  r2.x = cmp(r2.x != 0.000000);
  r2.x = r2.x ? 1.000000 : 0;
  r0.w = r2.x * r0.w;
  r1.w = 1 + -r1.w;
  r1.w = saturate(cb0[7].y + r1.w);
  r2.xyw = r8.xyz * r1.yyy + r9.xyz;
  r4.xyz = r0.www * r8.xyz;
  r0.w = 1 + -r1.x;
  r1.x = r0.w * r0.w;
  r1.x = r1.x * r1.x;
  r0.w = r1.x * r0.w;
  r5.xyz = float3(1,1,1) + -r0.xyz;
  r5.xyz = r5.xyz * r0.www + r0.xyz;
  r4.xyz = r5.xyz * r4.xyz;
  r2.xyw = r3.xyz * r2.xyw + r4.xyz;
  r1.xyz = r1.zzz * r11.xyz;
  r3.xyz = r1.www + -r0.xyz;
  r0.xyz = r2.zzz * r3.xyz + r0.xyz;
  r0.xyz = r1.xyz * r0.xyz + r2.xyw;
  r0.xyz = r6.xyz * cb0[6].yzw + r0.xyz;
  r0.w = w5.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 Sat Feb 21 09:03:48 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
// COLOR                    0   xyzw        4     NONE   float   xyzw
// TEXCOORD                 3   xy          5     NONE   float   xy
// TEXCOORD                 6     z         5     NONE   float     z
// TEXCOORD                 4   xyzw        6     NONE   float   xyzw
// TEXCOORD                 5   xyz         7     NONE   float   xyz
// TEXCOORD                 7   xyzw        8     NONE   float
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer CB0[10], 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_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_texturecube (float,float,float,float) t4
dcl_resource_texturecube (float,float,float,float) t5
dcl_resource_texture3d (float,float,float,float) t6
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.xy
dcl_input_ps linear v5.z
dcl_input_ps linear v6.xyzw
dcl_input_ps linear v7.xyz
dcl_output o0.xyzw
dcl_temps 16
mov r0.x, v1.w
mov r0.y, v2.w
mov r0.z, v3.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
sample r3.xyzw, v5.xyxx, t0.xyzw, s2
mul r3.xyzw, r3.xyzw, cb0[5].xyzw
mul r4.xyzw, r3.wxyz, v4.wxyz
lt r5.xy, l(0.000000, 0.000000, 0.000000, 0.000000), cb0[8].xyxx
or r1.w, r5.y, r5.x
if_nz r1.w
  div r5.xy, v6.xyxx, v6.wwww
  sample r5.xyzw, r5.xyxx, t1.xyzw, s5
  mad r1.w, cb1[7].z, r5.x, cb1[7].w
  div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.w
  add r1.w, r1.w, -cb0[8].x
  add r1.w, r1.w, -v6.z
  mul_sat r1.w, r1.w, cb0[8].y
  mul r4.x, r1.w, r4.x
else
  mov r1.w, l(1.000000)
endif
add r2.w, v6.z, -cb0[9].x
mul_sat r2.w, r2.w, cb0[9].y
mul o0.w, r2.w, r4.x
sample r5.xyzw, v5.xyxx, t2.xyzw, s3
mul r5.x, r5.w, r5.x
mad r5.xy, r5.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r5.xy, r5.xyxx, cb0[6].xxxx
dp2 r3.w, r5.xyxx, r5.xyxx
min r3.w, r3.w, l(1.000000)
add r3.w, -r3.w, l(1.000000)
sqrt r5.z, r3.w
dp3 r3.w, r5.xyzx, r5.xyzx
rsq r3.w, r3.w
mul r5.xyz, r3.wwww, r5.xyzx
sample r6.xyzw, v5.xyxx, t3.xyzw, s4
mul r6.xyz, r2.wwww, r6.xyzx
mul r6.xyz, r1.wwww, r6.xyzx
eq r1.w, cb5[0].x, l(1.000000)
if_nz r1.w
  eq r2.w, cb5[0].y, l(1.000000)
  mul r7.xyz, v2.wwww, cb5[2].xyzx
  mad r7.xyz, cb5[1].xyzx, v1.wwww, r7.xyzx
  mad r7.xyz, cb5[3].xyzx, v3.wwww, r7.xyzx
  add r7.xyz, r7.xyzx, cb5[4].xyzx
  movc r7.xyz, r2.wwww, r7.xyzx, r0.xyzx
  add r7.xyz, r7.xyzx, -cb5[6].xyzx
  mul r7.yzw, r7.xxyz, cb5[5].xxyz
  mad r2.w, r7.y, l(0.250000), l(0.750000)
  mad r3.w, cb5[0].z, l(0.500000), l(0.750000)
  max r7.x, r2.w, r3.w
  sample r7.xyzw, r7.xzwx, t6.xyzw, s1
else
  mov r7.xyzw, l(1.000000,1.000000,1.000000,1.000000)
endif
dp4_sat r2.w, r7.xyzw, cb2[46].xyzw
dp3 r7.x, v1.xyzx, r5.xyzx
dp3 r7.y, v2.xyzx, r5.xyzx
dp3 r7.z, v3.xyzx, r5.xyzx
dp3 r3.w, r7.xyzx, r7.xyzx
rsq r3.w, r3.w
mul r5.xyz, r3.wwww, r7.xyzx
add r3.w, -cb0[7].y, l(1.000000)
dp3 r4.x, -r2.xyzx, r5.xyzx
add r4.x, r4.x, r4.x
mad r7.xyz, r5.xyzx, -r4.xxxx, -r2.xyzx
mul r8.xyz, r2.wwww, cb0[2].xyzx
if_nz r1.w
  eq r1.w, cb5[0].y, l(1.000000)
  mul r9.xyz, v2.wwww, cb5[2].xyzx
  mad r9.xyz, cb5[1].xyzx, v1.wwww, r9.xyzx
  mad r9.xyz, cb5[3].xyzx, v3.wwww, r9.xyzx
  add r9.xyz, r9.xyzx, cb5[4].xyzx
  movc r9.xyz, r1.wwww, r9.xyzx, r0.xyzx
  add r9.xyz, r9.xyzx, -cb5[6].xyzx
  mul r9.yzw, r9.xxyz, cb5[5].xxyz
  mul r1.w, r9.y, l(0.250000)
  mul r2.w, cb5[0].z, l(0.500000)
  mad r4.x, -cb5[0].z, l(0.500000), l(0.250000)
  max r1.w, r1.w, r2.w
  min r9.x, r4.x, r1.w
  sample r10.xyzw, r9.xzwx, t6.xyzw, s1
  add r11.xyz, r9.xzwx, l(0.250000, 0.000000, 0.000000, 0.000000)
  sample r11.xyzw, r11.xyzx, t6.xyzw, s1
  add r9.xyz, r9.xzwx, l(0.500000, 0.000000, 0.000000, 0.000000)
  sample r9.xyzw, r9.xyzx, t6.xyzw, s1
  mov r5.w, l(1.000000)
  dp4 r10.x, r10.xyzw, r5.xyzw
  dp4 r10.y, r11.xyzw, r5.xyzw
  dp4 r10.z, r9.xyzw, r5.xyzw
else
  mov r5.w, l(1.000000)
  dp4 r10.x, cb2[39].xyzw, r5.xyzw
  dp4 r10.y, cb2[40].xyzw, r5.xyzw
  dp4 r10.z, cb2[41].xyzw, r5.xyzw
endif
add r9.xyz, r10.xyzx, v7.xyzx
max r9.xyz, r9.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r1.w, l(0.000000), cb4[2].w
if_nz r1.w
  dp3 r1.w, r7.xyzx, r7.xyzx
  rsq r1.w, r1.w
  mul r10.xyz, r1.wwww, r7.xyzx
  add r11.xyz, -r0.xyzx, cb4[0].xyzx
  div r11.xyz, r11.xyzx, r10.xyzx
  add r12.xyz, -r0.xyzx, cb4[1].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 r1.w, r11.y, r11.x
  min r1.w, r11.z, r1.w
  add r11.xyz, r0.xyzx, -cb4[2].xyzx
  mad r10.xyz, r10.xyzx, r1.wwww, r11.xyzx
else
  mov r10.xyz, r7.xyzx
endif
mad r1.w, -r3.w, l(0.700000), l(1.700000)
mul r1.w, r1.w, r3.w
mul r1.w, r1.w, l(6.000000)
sample_l r10.xyzw, r10.xyzx, t4.xyzw, s0, r1.w
add r2.w, r10.w, l(-1.000000)
mad r2.w, cb4[3].w, r2.w, l(1.000000)
log r2.w, r2.w
mul r2.w, r2.w, cb4[3].y
exp r2.w, r2.w
mul r2.w, r2.w, cb4[3].x
mul r11.xyz, r10.xyzx, r2.wwww
lt r4.x, cb4[1].w, l(0.999990)
if_nz r4.x
  lt r4.x, l(0.000000), cb4[6].w
  if_nz r4.x
    dp3 r4.x, r7.xyzx, r7.xyzx
    rsq r4.x, r4.x
    mul r12.xyz, r4.xxxx, r7.xyzx
    add r13.xyz, -r0.xyzx, cb4[4].xyzx
    div r13.xyz, r13.xyzx, r12.xyzx
    add r14.xyz, -r0.xyzx, cb4[5].xyzx
    div r14.xyz, r14.xyzx, r12.xyzx
    lt r15.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r12.xyzx
    movc r13.xyz, r15.xyzx, r13.xyzx, r14.xyzx
    min r4.x, r13.y, r13.x
    min r4.x, r13.z, r4.x
    add r0.xyz, r0.xyzx, -cb4[6].xyzx
    mad r7.xyz, r12.xyzx, r4.xxxx, r0.xyzx
  endif
  sample_l r7.xyzw, r7.xyzx, t5.xyzw, s0, r1.w
  add r0.x, r7.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, r7.xyzx, r0.xxxx
  mad r7.xyz, r2.wwww, r10.xyzx, -r0.xyzx
  mad r11.xyz, cb4[1].wwww, r7.xyzx, r0.xyzx
endif
mad r0.xyz, r3.xyzx, v4.xyzx, l(-0.040000, -0.040000, -0.040000, 0.000000)
mad r0.xyz, cb0[7].xxxx, r0.xyzx, l(0.040000, 0.040000, 0.040000, 0.000000)
mad r1.w, -cb0[7].x, l(0.960000), l(0.960000)
mul r3.xyz, r1.wwww, r4.yzwy
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, r3.wwww
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 r2.w, r2.z, r2.z
mul r2.w, r2.w, r2.w
mul r2.z, r2.z, r2.w
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.w, r3.w
max r1.z, r1.z, l(0.002000)
add r2.w, -r1.z, l(1.000000)
mad r3.w, |r0.w|, r2.w, r1.z
mad r2.w, r2.x, r2.w, r1.z
mul r0.w, |r0.w|, r2.w
mad r0.w, r2.x, r3.w, r0.w
add r0.w, r0.w, l(0.000010)
div r0.w, l(0.500000), r0.w
mul r2.w, r1.z, r1.z
mad r3.w, r2.y, r2.w, -r2.y
mad r2.y, r3.w, r2.y, l(1.000000)
mul r2.w, r2.w, l(0.318309873)
mad r2.y, r2.y, r2.y, l(1.000000012E-07)
div r2.y, r2.w, 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, r0.xyzx, r0.xyzx
ne r2.x, r2.x, l(0.000000)
and r2.x, r2.x, l(0x3f800000)
mul r0.w, r0.w, r2.x
add r1.w, -r1.w, l(1.000000)
add_sat r1.w, r1.w, cb0[7].y
mad r2.xyw, r8.xyxz, r1.yyyy, r9.xyxz
mul r4.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.w, r0.w, r1.x
add r5.xyz, -r0.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r5.xyz, r5.xyzx, r0.wwww, r0.xyzx
mul r4.xyz, r4.xyzx, r5.xyzx
mad r2.xyw, r3.xyxz, r2.xyxw, r4.xyxz
mul r1.xyz, r11.xyzx, r1.zzzz
add r3.xyz, -r0.xyzx, r1.wwww
mad r0.xyz, r2.zzzz, r3.xyzx, r0.xyzx
mad r0.xyz, r1.xyzx, r0.xyzx, r2.xywx
mad r0.xyz, r6.xyzx, cb0[6].yzwy, r0.xyzx
div r0.w, v5.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

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