//pool halo
// ---- Created with geo-11 v0.7.9 on Sun Jul  5 19:30:37 2026
Texture3D<float4> t9 : register(t9);

TextureCube<float4> t8 : register(t8);

TextureCube<float4> t7 : register(t7);

Texture3D<float4> t6 : register(t6);

Texture2D<float4> t5 : register(t5);

Texture2D<float4> t4 : register(t4);

Texture2D<float4> t3 : register(t3);

TextureCube<float4> t2 : register(t2);

Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s8_s : register(s8);

SamplerState s7_s : register(s7);

SamplerState s6_s : register(s6);

SamplerState s5_s : register(s5);

SamplerState s4_s : register(s4);

SamplerState s3_s : register(s3);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

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

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

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

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

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

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




// 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 : TEXCOORD5,
  float4 v2 : TEXCOORD1,
  float4 v3 : TEXCOORD2,
  float4 v4 : TEXCOORD3,
  float4 v5 : TEXCOORD4,
  float4 v6 : TEXCOORD6,
  float4 v7 : TEXCOORD8,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r70;
  uint4 bitmask, uiDest;
  float4 fDest;

float4 s = StereoParams.Load(0);
float4 testeo = IniParams.Load(int2(90,0));


  r0.x = v2.w;
  r0.y = v3.w;
  r0.z = v4.w;
  r1.xyz = cb1[4].xyz + -r0.xyz;

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.xyz = v3.xyz * r2.yyy;
  r3.xyz = v2.xyz * r2.xxx + r3.xyz;
  r3.xyz = v4.xyz * r2.zzz + r3.xyz;
  r4.xyz = -r2.xyz;
  r1.w = 150 + -w1.x;
  r1.w = cmp(r1.w < 0);
  if (r1.w != 0) discard;
  r5.xyzw = float4(0.300000012,0.300000012,0.100000001,0.100000001) * r0.xzxz;
  r5.xyzw = r5.xyzw / cb0[9].wwww;
  r6.xw = float2(0.0500000007,0.0399999991) * cb1[0].yy;
  r6.yz = float2(0,0);
  r6.xyzw = r6.xyzw + r5.xyzw;
  r7.x = 0.0166666675 * cb1[0].y;
  r7.y = 0;
  r5.xy = r7.xy + r5.xy;
  r7.xyz = float3(9.99999975e-05,9.99999975e-05,9.99999975e-05) + v5.xyw;
  
//float4 s = StereoParams.Load(0);
//float4 testeo = IniParams.Load(int2(90,0));  
//r7.x += s.x * (r7.z - s.y ) *  0.5 ;   
  
  r5.zw = r7.xy / r7.zz;
  r7.xyzw = t0.Sample(s7_s, r5.zw).xyzw;
  r1.w = cb1[7].z * r7.x + cb1[7].w;
  r1.w = 1 / r1.w;
  r1.w = -w1.x + r1.w;
  r1.w = saturate(cb0[8].x * r1.w);
  r2.w = dot(r3.xyz, r3.xyz);
  r2.w = rsqrt(r2.w);
  r2.w = saturate(r3.z * r2.w);
  r2.w = 1 + -r2.w;
  r3.xyzw = t1.Sample(s6_s, v1.xy).xyzw;
  r3.yzw = cb0[9].yyy * r3.xyz;
  r7.xyz = float3(0.400000006,0.449999988,0.400000006) + -cb0[7].xyz;
  r3.yzw = r3.yzw * r7.xyz + cb0[7].xyz;
  r3.yzw = r3.yzw * cb0[9].xxx + float3(-0.5,-0.5,-0.5);
  r3.yzw = r3.yzw * cb0[8].www + float3(0.5,0.5,0.5);
  r7.xyzw = t2.Sample(s8_s, r4.xyz).xyzw;
  r7.yzw = r7.xxx * r3.yzw;
  r8.xyzw = t3.Sample(s3_s, r6.xy).xyzw;
  r6.xyzw = t4.Sample(s4_s, r6.zw).xyzw;
  r6.xyz = r6.xyw + -r8.xyw;
  r6.yzw = r6.xyz * float3(0.5,0.5,0.5) + r8.xyw;
  r5.zw = float2(3,0.699999988) * r3.xx;
  r3.x = r5.z * cb0[9].z + cb0[9].y;
  r6.x = r6.y * r6.w;
  r6.xy = r6.xz * float2(2,2) + float2(-1,-1);
  r6.xy = r6.xy * r3.xx;
  r3.x = dot(r6.xy, r6.xy);
  r3.x = min(1, r3.x);
  r3.x = 1 + -r3.x;
  r6.z = sqrt(r3.x);
  r2.w = log2(r2.w);
  r2.w = 150 * r2.w;
  r2.w = exp2(r2.w);
  r2.w = cb0[7].w + -r2.w;
  o0.w = r2.w * r1.w;
  r8.xyzw = t5.Sample(s5_s, r5.xy).xyzw;
  r1.w = r8.x * r8.x;
  r1.w = r8.x * r1.w + cb0[8].y;
  r1.w = r5.w * cb0[9].y + r1.w;
  r2.w = cmp(cb4[0].x == 1.000000);
  if (r2.w != 0) {
    r3.x = cmp(cb4[0].y == 1.000000);
    r5.xyz = cb4[2].xyz * v3.www;
    r5.xyz = cb4[1].xyz * v2.www + r5.xyz;
    r5.xyz = cb4[3].xyz * v4.www + r5.xyz;
    r5.xyz = cb4[4].xyz + r5.xyz;
    r5.xyz = r3.xxx ? r5.xyz : r0.xyz;
    r5.xyz = -cb4[6].xyz + r5.xyz;
    r5.yzw = cb4[5].xyz * r5.xyz;
    r3.x = r5.y * 0.25 + 0.75;
    r4.w = cb4[0].z * 0.5 + 0.75;
    r5.x = max(r4.w, r3.x);
    r5.xyzw = t9.Sample(s1_s, r5.xzw).xyzw;
  } else {
    r5.xyzw = float4(1,1,1,1);
  }
  r3.x = saturate(dot(r5.xyzw, cb2[46].xyzw));
  r5.x = dot(v2.xyz, r6.xyz);
  r5.y = dot(v3.xyz, r6.xyz);
  r5.z = dot(v4.xyz, r6.xyz);
  r4.w = dot(r5.xyz, r5.xyz);
  r4.w = rsqrt(r4.w);
  r5.xyz = r5.xyz * r4.www;
  r4.w = 1 + -r1.w;
  r6.x = dot(r4.xyz, r5.xyz);
  r6.x = r6.x + r6.x;
  r4.xyz = r5.xyz * -r6.xxx + r4.xyz;
  r6.xyz = cb0[2].xyz * r3.xxx;
  if (r2.w != 0) {
    r2.w = cmp(cb4[0].y == 1.000000);
    r8.xyz = cb4[2].xyz * v3.www;
    r8.xyz = cb4[1].xyz * v2.www + r8.xyz;
    r8.xyz = cb4[3].xyz * v4.www + r8.xyz;
    r8.xyz = cb4[4].xyz + r8.xyz;
    r8.xyz = r2.www ? r8.xyz : r0.xyz;
    r8.xyz = -cb4[6].xyz + r8.xyz;
    r8.yzw = cb4[5].xyz * r8.xyz;
    r2.w = 0.25 * r8.y;
    r3.x = 0.5 * cb4[0].z;
    r6.w = -cb4[0].z * 0.5 + 0.25;
    r2.w = max(r3.x, r2.w);
    r8.x = min(r2.w, r6.w);
    r9.xyzw = t9.Sample(s1_s, r8.xzw).xyzw;
    r10.xyz = float3(0.25,0,0) + r8.xzw;
    r10.xyzw = t9.Sample(s1_s, r10.xyz).xyzw;
    r8.xyz = float3(0.5,0,0) + r8.xzw;
    r8.xyzw = t9.Sample(s1_s, r8.xyz).xyzw;
    r5.w = 1;
    r9.x = dot(r9.xyzw, r5.xyzw);
    r9.y = dot(r10.xyzw, r5.xyzw);
    r9.z = dot(r8.xyzw, r5.xyzw);
  } else {
    r5.w = 1;
    r9.x = dot(cb2[39].xyzw, r5.xyzw);
    r9.y = dot(cb2[40].xyzw, r5.xyzw);
    r9.z = dot(cb2[41].xyzw, r5.xyzw);
  }
  r8.xyz = v6.xyz + r9.xyz;
  r8.xyz = max(float3(0,0,0), r8.xyz);
  r8.xyz = log2(r8.xyz);
  r8.xyz = float3(0.416666657,0.416666657,0.416666657) * r8.xyz;
  r8.xyz = exp2(r8.xyz);
  r8.xyz = r8.xyz * float3(1.05499995,1.05499995,1.05499995) + float3(-0.0549999997,-0.0549999997,-0.0549999997);
  r8.xyz = max(float3(0,0,0), r8.xyz);
  r2.w = cmp(0 < cb3[2].w);
  if (r2.w != 0) {
    r2.w = dot(r4.xyz, r4.xyz);
    r2.w = rsqrt(r2.w);
    r9.xyz = r4.xyz * r2.www;
    r10.xyz = cb3[0].xyz + -r0.xyz;
    r10.xyz = r10.xyz / r9.xyz;
    r11.xyz = cb3[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;
    r2.w = min(r10.x, r10.y);
    r2.w = min(r2.w, r10.z);
    r10.xyz = -cb3[2].xyz + r0.xyz;
    r9.xyz = r9.xyz * r2.www + r10.xyz;
  } else {
    r9.xyz = r4.xyz;
  }
  r2.w = -r4.w * 0.699999988 + 1.70000005;
  r2.w = r4.w * r2.w;
  r2.w = 6 * r2.w;
  r9.xyzw = t7.SampleLevel(s0_s, r9.xyz, r2.w).xyzw;
  r3.x = -1 + r9.w;
  r3.x = cb3[3].w * r3.x + 1;
  r3.x = cb3[3].x * r3.x;
  r10.xyz = r3.xxx * r9.xyz;
  r5.w = cmp(cb3[1].w < 0.999989986);
  if (r5.w != 0) {
    r5.w = cmp(0 < cb3[6].w);
    if (r5.w != 0) {
      r5.w = dot(r4.xyz, r4.xyz);
      r5.w = rsqrt(r5.w);
      r11.xyz = r5.www * r4.xyz;
      r12.xyz = cb3[4].xyz + -r0.xyz;
      r12.xyz = r12.xyz / r11.xyz;
      r13.xyz = cb3[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;
      r5.w = min(r12.x, r12.y);
      r5.w = min(r5.w, r12.z);
      r0.xyz = -cb3[6].xyz + r0.xyz;
      r4.xyz = r11.xyz * r5.www + r0.xyz;
    }
    r11.xyzw = t8.SampleLevel(s0_s, r4.xyz, r2.w).xyzw;
    r0.x = -1 + r11.w;
    r0.x = cb3[7].w * r0.x + 1;
    r0.x = cb3[7].x * r0.x;
    r0.xyz = r0.xxx * r11.xyz;
    r4.xyz = r3.xxx * r9.xyz + -r0.xyz;
    r10.xyz = cb3[1].www * r4.xyz + r0.xyz;
  }
  r0.xyz = r3.yzw * r7.xxx + float3(-0.220916301,-0.220916301,-0.220916301);
  r0.xyz = cb0[8].zzz * r0.xyz + float3(0.220916301,0.220916301,0.220916301);
  r2.w = -cb0[8].z * 0.779083729 + 0.779083729;
  r3.xyz = r7.yzw * r2.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.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);
  r3.w = r2.z * r2.z;
  r3.w = r3.w * r3.w;
  r2.z = r3.w * r2.z;
  r1.y = r1.y * r2.z + 1;
  r1.y = r1.z * r1.y;
  r1.y = r1.y * r2.x;
  r1.z = r4.w * r4.w;
  r1.z = max(0.00200000009, r1.z);
  r3.w = 1 + -r1.z;
  r4.x = abs(r0.w) * r3.w + r1.z;
  r3.w = r2.x * r3.w + r1.z;
  r0.w = r3.w * abs(r0.w);
  r0.w = r2.x * r4.x + r0.w;
  r0.w = 9.99999975e-06 + r0.w;
  r0.w = 0.5 / r0.w;
  r3.w = r1.z * r1.z;
  r4.x = r2.y * r3.w + -r2.y;
  r2.y = r4.x * r2.y + 1;
  r3.w = 0.318309873 * r3.w;
  r2.y = r2.y * r2.y + 1.00000001e-07;
  r2.y = r3.w / 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.w + 1;
  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 = -r2.w + r1.w;
  r1.w = saturate(1 + r1.w);
  r2.xyw = r6.xyz * r1.yyy + r8.xyz;
  r4.xyz = r0.www * r6.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 * r10.xyz;
  r3.xyz = r1.www + -r0.xyz;
  r0.xyz = r2.zzz * r3.xyz + r0.xyz;
  r0.xyz = r1.xyz * r0.xyz + r2.xyw;
  r1.xyz = v5.xyz / v5.www;
  r0.w = cb1[7].z * r1.z + cb1[7].w;
  r0.w = 1 / r0.w;
  r0.w = -cb0[6].x + r0.w;
  r1.z = cb0[6].y + -cb0[6].x;
  r1.w = r0.w / r1.z;
  r1.xyzw = t6.SampleLevel(s2_s, r1.xyw, 0).xyzw;
  o0.xyz = r0.xyz * r1.www + r1.xyz;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.7.9 on Sun Jul  5 19:30:37 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                 5     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   xyzw
// TEXCOORD                 6   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_4_0
dcl_constantbuffer CB0[10], immediateIndexed
dcl_constantbuffer CB1[8], immediateIndexed
dcl_constantbuffer CB2[47], immediateIndexed
dcl_constantbuffer CB3[8], immediateIndexed
dcl_constantbuffer CB4[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_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texturecube (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_texture3d (float,float,float,float) t6
dcl_resource_texturecube (float,float,float,float) t7
dcl_resource_texturecube (float,float,float,float) t8
dcl_resource_texture3d (float,float,float,float) t9
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.xyzw
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
mul r3.xyz, r2.yyyy, v3.xyzx
mad r3.xyz, v2.xyzx, r2.xxxx, r3.xyzx
mad r3.xyz, v4.xyzx, r2.zzzz, r3.xyzx
mov r4.xyz, -r2.xyzx
add r1.w, -v1.z, l(150.000000)
lt r1.w, r1.w, l(0.000000)
discard_nz r1.w
mul r5.xyzw, r0.xzxz, l(0.300000, 0.300000, 0.100000, 0.100000)
div r5.xyzw, r5.xyzw, cb0[9].wwww
mul r6.xw, cb1[0].yyyy, l(0.050000, 0.000000, 0.000000, 0.040000)
mov r6.yz, l(0,0,0,0)
add r6.xyzw, r5.xyzw, r6.xyzw
mul r7.x, cb1[0].y, l(0.0166666675)
mov r7.y, l(0)
add r5.xy, r5.xyxx, r7.xyxx
add r7.xyz, v5.xywx, l(0.000100, 0.000100, 0.000100, 0.000000)
div r5.zw, r7.xxxy, r7.zzzz
sample r7.xyzw, r5.zwzz, t0.xyzw, s7
mad r1.w, cb1[7].z, r7.x, cb1[7].w
div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.w
add r1.w, r1.w, -v1.z
mul_sat r1.w, r1.w, cb0[8].x
dp3 r2.w, r3.xyzx, r3.xyzx
rsq r2.w, r2.w
mul_sat r2.w, r2.w, r3.z
add r2.w, -r2.w, l(1.000000)
sample r3.xyzw, v1.xyxx, t1.xyzw, s6
mul r3.yzw, r3.xxyz, cb0[9].yyyy
add r7.xyz, -cb0[7].xyzx, l(0.400000, 0.450000, 0.400000, 0.000000)
mad r3.yzw, r3.yyzw, r7.xxyz, cb0[7].xxyz
mad r3.yzw, r3.yyzw, cb0[9].xxxx, l(0.000000, -0.500000, -0.500000, -0.500000)
mad r3.yzw, r3.yyzw, cb0[8].wwww, l(0.000000, 0.500000, 0.500000, 0.500000)
sample r7.xyzw, r4.xyzx, t2.xyzw, s8
mul r7.yzw, r3.yyzw, r7.xxxx
sample r8.xyzw, r6.xyxx, t3.xyzw, s3
sample r6.xyzw, r6.zwzz, t4.xyzw, s4
add r6.xyz, -r8.xywx, r6.xywx
mad r6.yzw, r6.xxyz, l(0.000000, 0.500000, 0.500000, 0.500000), r8.xxyw
mul r5.zw, r3.xxxx, l(0.000000, 0.000000, 3.000000, 0.700000)
mad r3.x, r5.z, cb0[9].z, cb0[9].y
mul r6.x, r6.w, r6.y
mad r6.xy, r6.xzxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r6.xy, r3.xxxx, r6.xyxx
dp2 r3.x, r6.xyxx, r6.xyxx
min r3.x, r3.x, l(1.000000)
add r3.x, -r3.x, l(1.000000)
sqrt r6.z, r3.x
log r2.w, r2.w
mul r2.w, r2.w, l(150.000000)
exp r2.w, r2.w
add r2.w, -r2.w, cb0[7].w
mul o0.w, r1.w, r2.w
sample r8.xyzw, r5.xyxx, t5.xyzw, s5
mul r1.w, r8.x, r8.x
mad r1.w, r8.x, r1.w, cb0[8].y
mad r1.w, r5.w, cb0[9].y, r1.w
eq r2.w, cb4[0].x, l(1.000000)
if_nz r2.w
  eq r3.x, cb4[0].y, l(1.000000)
  mul r5.xyz, v3.wwww, cb4[2].xyzx
  mad r5.xyz, cb4[1].xyzx, v2.wwww, r5.xyzx
  mad r5.xyz, cb4[3].xyzx, v4.wwww, r5.xyzx
  add r5.xyz, r5.xyzx, cb4[4].xyzx
  movc r5.xyz, r3.xxxx, r5.xyzx, r0.xyzx
  add r5.xyz, r5.xyzx, -cb4[6].xyzx
  mul r5.yzw, r5.xxyz, cb4[5].xxyz
  mad r3.x, r5.y, l(0.250000), l(0.750000)
  mad r4.w, cb4[0].z, l(0.500000), l(0.750000)
  max r5.x, r3.x, r4.w
  sample r5.xyzw, r5.xzwx, t9.xyzw, s1
else
  mov r5.xyzw, l(1.000000,1.000000,1.000000,1.000000)
endif
dp4_sat r3.x, r5.xyzw, cb2[46].xyzw
dp3 r5.x, v2.xyzx, r6.xyzx
dp3 r5.y, v3.xyzx, r6.xyzx
dp3 r5.z, v4.xyzx, r6.xyzx
dp3 r4.w, r5.xyzx, r5.xyzx
rsq r4.w, r4.w
mul r5.xyz, r4.wwww, r5.xyzx
add r4.w, -r1.w, l(1.000000)
dp3 r6.x, r4.xyzx, r5.xyzx
add r6.x, r6.x, r6.x
mad r4.xyz, r5.xyzx, -r6.xxxx, r4.xyzx
mul r6.xyz, r3.xxxx, cb0[2].xyzx
if_nz r2.w
  eq r2.w, cb4[0].y, l(1.000000)
  mul r8.xyz, v3.wwww, cb4[2].xyzx
  mad r8.xyz, cb4[1].xyzx, v2.wwww, r8.xyzx
  mad r8.xyz, cb4[3].xyzx, v4.wwww, r8.xyzx
  add r8.xyz, r8.xyzx, cb4[4].xyzx
  movc r8.xyz, r2.wwww, r8.xyzx, r0.xyzx
  add r8.xyz, r8.xyzx, -cb4[6].xyzx
  mul r8.yzw, r8.xxyz, cb4[5].xxyz
  mul r2.w, r8.y, l(0.250000)
  mul r3.x, cb4[0].z, l(0.500000)
  mad r6.w, -cb4[0].z, l(0.500000), l(0.250000)
  max r2.w, r2.w, r3.x
  min r8.x, r6.w, r2.w
  sample r9.xyzw, r8.xzwx, t9.xyzw, s1
  add r10.xyz, r8.xzwx, l(0.250000, 0.000000, 0.000000, 0.000000)
  sample r10.xyzw, r10.xyzx, t9.xyzw, s1
  add r8.xyz, r8.xzwx, l(0.500000, 0.000000, 0.000000, 0.000000)
  sample r8.xyzw, r8.xyzx, t9.xyzw, s1
  mov r5.w, l(1.000000)
  dp4 r9.x, r9.xyzw, r5.xyzw
  dp4 r9.y, r10.xyzw, r5.xyzw
  dp4 r9.z, r8.xyzw, r5.xyzw
else
  mov r5.w, l(1.000000)
  dp4 r9.x, cb2[39].xyzw, r5.xyzw
  dp4 r9.y, cb2[40].xyzw, r5.xyzw
  dp4 r9.z, cb2[41].xyzw, r5.xyzw
endif
add r8.xyz, r9.xyzx, v6.xyzx
max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
log r8.xyz, r8.xyzx
mul r8.xyz, r8.xyzx, l(0.416666657, 0.416666657, 0.416666657, 0.000000)
exp r8.xyz, r8.xyzx
mad r8.xyz, r8.xyzx, l(1.055000, 1.055000, 1.055000, 0.000000), l(-0.055000, -0.055000, -0.055000, 0.000000)
max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r2.w, l(0.000000), cb3[2].w
if_nz r2.w
  dp3 r2.w, r4.xyzx, r4.xyzx
  rsq r2.w, r2.w
  mul r9.xyz, r2.wwww, r4.xyzx
  add r10.xyz, -r0.xyzx, cb3[0].xyzx
  div r10.xyz, r10.xyzx, r9.xyzx
  add r11.xyz, -r0.xyzx, cb3[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 r2.w, r10.y, r10.x
  min r2.w, r10.z, r2.w
  add r10.xyz, r0.xyzx, -cb3[2].xyzx
  mad r9.xyz, r9.xyzx, r2.wwww, r10.xyzx
else
  mov r9.xyz, r4.xyzx
endif
mad r2.w, -r4.w, l(0.700000), l(1.700000)
mul r2.w, r2.w, r4.w
mul r2.w, r2.w, l(6.000000)
sample_l r9.xyzw, r9.xyzx, t7.xyzw, s0, r2.w
add r3.x, r9.w, l(-1.000000)
mad r3.x, cb3[3].w, r3.x, l(1.000000)
mul r3.x, r3.x, cb3[3].x
mul r10.xyz, r9.xyzx, r3.xxxx
lt r5.w, cb3[1].w, l(0.999990)
if_nz r5.w
  lt r5.w, l(0.000000), cb3[6].w
  if_nz r5.w
    dp3 r5.w, r4.xyzx, r4.xyzx
    rsq r5.w, r5.w
    mul r11.xyz, r4.xyzx, r5.wwww
    add r12.xyz, -r0.xyzx, cb3[4].xyzx
    div r12.xyz, r12.xyzx, r11.xyzx
    add r13.xyz, -r0.xyzx, cb3[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 r5.w, r12.y, r12.x
    min r5.w, r12.z, r5.w
    add r0.xyz, r0.xyzx, -cb3[6].xyzx
    mad r4.xyz, r11.xyzx, r5.wwww, r0.xyzx
  endif
  sample_l r11.xyzw, r4.xyzx, t8.xyzw, s0, r2.w
  add r0.x, r11.w, l(-1.000000)
  mad r0.x, cb3[7].w, r0.x, l(1.000000)
  mul r0.x, r0.x, cb3[7].x
  mul r0.xyz, r11.xyzx, r0.xxxx
  mad r4.xyz, r3.xxxx, r9.xyzx, -r0.xyzx
  mad r10.xyz, cb3[1].wwww, r4.xyzx, r0.xyzx
endif
mad r0.xyz, r3.yzwy, r7.xxxx, l(-0.220916301, -0.220916301, -0.220916301, 0.000000)
mad r0.xyz, cb0[8].zzzz, r0.xyzx, l(0.220916301, 0.220916301, 0.220916301, 0.000000)
mad r2.w, -cb0[8].z, l(0.779083729), l(0.779083729)
mul r3.xyz, r2.wwww, r7.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, r4.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 r3.w, r2.z, r2.z
mul r3.w, r3.w, r3.w
mul r2.z, r2.z, r3.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, r4.w, r4.w
max r1.z, r1.z, l(0.002000)
add r3.w, -r1.z, l(1.000000)
mad r4.x, |r0.w|, r3.w, r1.z
mad r3.w, r2.x, r3.w, r1.z
mul r0.w, |r0.w|, r3.w
mad r0.w, r2.x, r4.x, r0.w
add r0.w, r0.w, l(0.000010)
div r0.w, l(0.500000), r0.w
mul r3.w, r1.z, r1.z
mad r4.x, r2.y, r3.w, -r2.y
mad r2.y, r4.x, r2.y, l(1.000000)
mul r3.w, r3.w, l(0.318309873)
mad r2.y, r2.y, r2.y, l(1.000000012E-07)
div r2.y, r3.w, 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.w, l(1.000000)
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, -r2.w
add_sat r1.w, r1.w, l(1.000000)
mad r2.xyw, r6.xyxz, r1.yyyy, r8.xyxz
mul r4.xyz, r6.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, r10.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
div r1.xyz, v5.xyzx, v5.wwww
mad r0.w, cb1[7].z, r1.z, cb1[7].w
div r0.w, l(1.000000, 1.000000, 1.000000, 1.000000), r0.w
add r0.w, r0.w, -cb0[6].x
add r1.z, -cb0[6].x, cb0[6].y
div r1.w, r0.w, r1.z
sample_l r1.xyzw, r1.xywx, t6.xyzw, s2, l(0.000000)
mad o0.xyz, r0.xyzx, r1.wwww, r1.xyzx
ret
// Approximately 0 instruction slots used

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