// ---- Created with 3Dmigoto v0.6.109 on Sat Feb 21 09:02:10 2026
Texture3D<float4> t5 : register(t5);

TextureCube<float4> t4 : register(t4);

TextureCube<float4> t3 : register(t3);

Texture2D<float4> t2 : register(t2);

Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

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

cbuffer cb5 : register(b5)
{
  float4 cb5[8];
}

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

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

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

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 : TEXCOORD5,
  float4 v7 : TEXCOORD6,
  float4 v8 : TEXCOORD7,
  float4 v9 : TEXCOORD8,
  uint v10 : SV_IsFrontFace0,
  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.z = v10.x ? 1 : -1;
  r1.x = v1.w;
  r1.y = v2.w;
  r1.z = v3.w;
  r2.xyz = cb1[4].xyz + -r1.xyz;
  
float4 s = StereoParams.Load(0);
float4 testeo = IniParams.Load(int2(90,0));
//float fov =  rsqrt(cb13[17].x * cb13[17].x + cb13[18].x * cb13[18].x + cb13[19].x * cb13[19].x);
//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);
r2.x += s.x *   s.y * cb13[9].x  / fov ;  
r2.y += s.x *   s.y * cb13[10].x / fov ;
r2.z += s.x *   s.y * cb13[11].x / fov ;   
  
  r0.w = dot(r2.xyz, r2.xyz);
  r0.w = rsqrt(r0.w);
  r3.xyz = r2.xyz * r0.www;
  r4.xy = cb1[0].xx * cb0[12].xy;
  r4.xy = cb0[9].xx * r4.xy;
  r4.xy = v4.xy * cb0[9].xx + r4.xy;
  r4.xyzw = t0.Sample(s2_s, r4.xy).xyzw;
  r4.xz = r4.wy * float2(2,2) + float2(-1,-1);
  r4.xz = r4.xz * float2(0.0500000007,0.0500000007) + v4.xy;
  r5.xyzw = t0.Sample(s2_s, r4.xz).xyzw;
  r1.w = saturate(cb0[9].y * v5.w);
  r4.xy = -r5.wy + r4.wy;
  r4.xy = r1.ww * r4.xy + r5.wy;
  r4.xy = r4.xy * float2(2,2) + float2(-1,-1);
  r4.xy = cb0[11].xx * r4.xy;
  r4.zw = r4.xy * float2(0.0500000007,0.0500000007) + v4.zw;
  r5.xyzw = t0.Sample(s2_s, r4.zw).xyzw;
  r6.xyzw = t0.Sample(s2_s, v7.xy).xyzw;
  r4.zw = r5.wy * float2(2,2) + float2(-1,-1);
  r4.xy = r4.zw * cb0[11].yy + r4.xy;
  r4.zw = r6.wy * float2(2,2) + float2(-1,-1);
  r4.xy = r4.zw * cb0[11].zz + r4.xy;
  r1.w = dot(r4.xy, r4.xy);
  r1.w = min(1, r1.w);
  r1.w = 1 + -r1.w;
  r4.z = sqrt(r1.w);
  r1.w = dot(r4.xyz, r4.xyz);
  r1.w = rsqrt(r1.w);
  r4.xyz = r4.xyz * r1.www;
  r5.xyz = r4.xyz * r0.zzz;
  r6.x = dot(v1.xyz, r5.xyz);
  r6.z = dot(v3.xyz, r5.xyz);
  r7.xy = v5.xy / v5.ww;
  r8.xyzw = t1.Sample(s4_s, r7.xy).xyzw;
  r1.w = cb1[7].z * r8.x + cb1[7].w;
  r1.w = 1 / r1.w;
  r1.w = -v5.w + r1.w;
  r1.w = saturate(cb0[21].z * r1.w);
  r2.w = 1 + -v5.z;
  r8.yz = cb0[31].xy * cb0[26].ww;
  r8.yz = r8.yz * r2.ww;
  r8.yz = r8.yz * r1.ww;
  r8.yz = r6.xz * r8.yz + v5.xy;
  r9.xy = r8.yz / v5.ww;
  r10.xyzw = t1.SampleLevel(s4_s, r9.xy, 0).xyzw;
  r2.w = cb1[7].z * r10.x + cb1[7].w;
  r2.w = 1 / r2.w;
  r2.w = cmp(r2.w < v5.w);
  r7.z = r8.x;
  r9.z = r10.x;
  r7.xyz = r2.www ? r7.xyz : r9.xyz;
  r7.zw = cb1[7].zx * r7.zz + cb1[7].wy;
  r7.zw = float2(1,1) / r7.zw;
  r2.w = -v5.w + r7.z;
  r3.w = saturate(cb0[21].z * r2.w);
  r4.w = cb1[5].z / v6.z;
  r8.xyz = v6.xyz * r4.www;
  r8.xyz = r8.xyz * r7.www;
  r4.w = cb2[19].y * r8.y;
  r4.w = cb2[18].y * r8.x + r4.w;
  r4.w = cb2[20].y * r8.z + r4.w;
  r4.w = cb2[21].y + r4.w;
  r4.w = v6.w + -r4.w;
  r5.w = -cb0[24].x + r4.w;
  r5.w = saturate(r5.w / cb0[24].y);
  r5.w = -11.5415602 * r5.w;
  r5.w = exp2(r5.w);
  r5.w = 1 + -r5.w;
  r6.w = saturate(cb0[24].z);
  r5.w = r6.w * r5.w;
  r2.w = v10.x ? r2.w : v5.w;
  r6.w = cb0[24].w * -r2.w;
  r6.w = 1.44269502 * r6.w;
  r6.w = exp2(r6.w);
  r6.w = 1 + -r6.w;
  r6.w = max(0, r6.w);
  r5.w = max(r6.w, r5.w);
  r4.w = saturate(r4.w / cb0[25].w);
  r4.w = -r4.w * r4.w;
  r4.w = cb0[25].z * r4.w;
  r4.w = exp2(r4.w);
  r2.w = cb0[26].x * -r2.w;
  r2.w = 1.44269502 * r2.w;
  r2.w = exp2(r2.w);
  r2.w = r2.w * r4.w;
  r2.w = min(1, r2.w);
  r2.w = -1 + r2.w;
  r2.w = cb0[26].z * r2.w + 1;
  r2.w = saturate(r5.w * cb0[25].y + r2.w);
  r8.xyzw = float4(1,-0.449999988,-0.0289999992,-0.0179999992) + -r2.wwww;
  r4.w = cb0[26].y * r8.x;
  r8.xyz = saturate(r4.www * r8.yzw + r2.www);
  r7.xyzw = t2.SampleLevel(s3_s, r7.xy, 0).xyzw;
  r0.xy = float2(0,0);
  r4.xyz = r4.xyz * r0.zzz + -r0.yyz;
  r0.xyz = cb0[21].www * r4.xyz + r0.xyz;
  r4.x = dot(v1.xyz, r0.xyz);
  r4.y = dot(v2.xyz, r0.xyz);
  r4.z = dot(v3.xyz, r0.xyz);
  r0.x = v5.z / cb1[5].y;
  r0.x = 1 + -r0.x;
  r0.x = cb1[5].z * r0.x;
  r0.x = max(0, r0.x);
  r0.y = cmp(cb6[0].x == 1.000000);
  if (r0.y != 0) {
    r0.z = cmp(cb6[0].y == 1.000000);
    r9.xyz = cb6[2].xyz * v2.www;
    r9.xyz = cb6[1].xyz * v1.www + r9.xyz;
    r9.xyz = cb6[3].xyz * v3.www + r9.xyz;
    r9.xyz = cb6[4].xyz + r9.xyz;
    r9.xyz = r0.zzz ? r9.xyz : r1.xyz;
    r9.xyz = -cb6[6].xyz + r9.xyz;
    r9.yzw = cb6[5].xyz * r9.xyz;
    r0.z = r9.y * 0.25 + 0.75;
    r2.w = cb6[0].z * 0.5 + 0.75;
    r9.x = max(r2.w, r0.z);
    r9.xyzw = t5.Sample(s1_s, r9.xzw).xyzw;
  } else {
    r9.xyzw = float4(1,1,1,1);
  }
  r0.z = saturate(dot(r9.xyzw, cb3[46].xyzw));
  r6.y = dot(v2.xyz, r5.xyz);
  r2.w = dot(r6.xyz, r6.xyz);
  r2.w = rsqrt(r2.w);
  r6.xyz = r6.xyz * r2.www;
  r2.w = 1 + -cb0[22].x;
  r4.w = dot(-r3.xyz, r4.xyz);
  r4.w = r4.w + r4.w;
  r4.xyz = r4.xyz * -r4.www + -r3.xyz;
  r5.xyz = cb0[2].xyz * r0.zzz;
  if (r0.y != 0) {
    r0.y = cmp(cb6[0].y == 1.000000);
    r9.xyz = cb6[2].xyz * v2.www;
    r9.xyz = cb6[1].xyz * v1.www + r9.xyz;
    r9.xyz = cb6[3].xyz * v3.www + r9.xyz;
    r9.xyz = cb6[4].xyz + r9.xyz;
    r9.xyz = r0.yyy ? r9.xyz : r1.xyz;
    r9.xyz = -cb6[6].xyz + r9.xyz;
    r9.yzw = cb6[5].xyz * r9.xyz;
    r0.y = 0.25 * r9.y;
    r0.z = 0.5 * cb6[0].z;
    r4.w = -cb6[0].z * 0.5 + 0.25;
    r0.y = max(r0.y, r0.z);
    r9.x = min(r0.y, r4.w);
    r10.xyzw = t5.Sample(s1_s, r9.xzw).xyzw;
    r11.xyz = float3(0.25,0,0) + r9.xzw;
    r11.xyzw = t5.Sample(s1_s, r11.xyz).xyzw;
    r9.xyz = float3(0.5,0,0) + r9.xzw;
    r9.xyzw = t5.Sample(s1_s, r9.xyz).xyzw;
    r6.w = 1;
    r10.x = dot(r10.xyzw, r6.xyzw);
    r10.y = dot(r11.xyzw, r6.xyzw);
    r10.z = dot(r9.xyzw, r6.xyzw);
  } else {
    r6.w = 1;
    r10.x = dot(cb3[39].xyzw, r6.xyzw);
    r10.y = dot(cb3[40].xyzw, r6.xyzw);
    r10.z = dot(cb3[41].xyzw, r6.xyzw);
  }
  r9.xyz = v8.xyz + r10.xyz;
  r9.xyz = max(float3(0,0,0), r9.xyz);
  r0.y = cmp(0 < cb5[2].w);
  if (r0.y != 0) {
    r0.y = dot(r4.xyz, r4.xyz);
    r0.y = rsqrt(r0.y);
    r10.xyz = r4.xyz * r0.yyy;
    r11.xyz = cb5[0].xyz + -r1.xyz;
    r11.xyz = r11.xyz / r10.xyz;
    r12.xyz = cb5[1].xyz + -r1.xyz;
    r12.xyz = r12.xyz / r10.xyz;
    r13.xyz = cmp(float3(0,0,0) < r10.xyz);
    r11.xyz = r13.xyz ? r11.xyz : r12.xyz;
    r0.y = min(r11.x, r11.y);
    r0.y = min(r0.y, r11.z);
    r11.xyz = -cb5[2].xyz + r1.xyz;
    r10.xyz = r10.xyz * r0.yyy + r11.xyz;
  } else {
    r10.xyz = r4.xyz;
  }
  r0.y = -r2.w * 0.699999988 + 1.70000005;
  r0.y = r2.w * r0.y;
  r0.y = 6 * r0.y;
  r10.xyzw = t3.SampleLevel(s0_s, r10.xyz, r0.y).xyzw;
  r0.z = -1 + r10.w;
  r0.z = cb5[3].w * r0.z + 1;
  r0.z = log2(r0.z);
  r0.z = cb5[3].y * r0.z;
  r0.z = exp2(r0.z);
  r0.z = cb5[3].x * r0.z;
  r11.xyz = r0.zzz * r10.xyz;
  r2.w = cmp(cb5[1].w < 0.999989986);
  if (r2.w != 0) {
    r2.w = cmp(0 < cb5[6].w);
    if (r2.w != 0) {
      r2.w = dot(r4.xyz, r4.xyz);
      r2.w = rsqrt(r2.w);
      r12.xyz = r4.xyz * r2.www;
      r13.xyz = cb5[4].xyz + -r1.xyz;
      r13.xyz = r13.xyz / r12.xyz;
      r14.xyz = cb5[5].xyz + -r1.xyz;
      r14.xyz = r14.xyz / r12.xyz;
      r15.xyz = cmp(float3(0,0,0) < r12.xyz);
      r13.xyz = r15.xyz ? r13.xyz : r14.xyz;
      r2.w = min(r13.x, r13.y);
      r2.w = min(r2.w, r13.z);
      r1.xyz = -cb5[6].xyz + r1.xyz;
      r4.xyz = r12.xyz * r2.www + r1.xyz;
    }
    r4.xyzw = t4.SampleLevel(s0_s, r4.xyz, r0.y).xyzw;
    r0.y = -1 + r4.w;
    r0.y = cb5[7].w * r0.y + 1;
    r0.y = log2(r0.y);
    r0.y = cb5[7].y * r0.y;
    r0.y = exp2(r0.y);
    r0.y = cb5[7].x * r0.y;
    r1.xyz = r0.yyy * r4.xyz;
    r4.xyz = r0.zzz * r10.xyz + -r1.xyz;
    r11.xyz = cb5[1].www * r4.xyz + r1.xyz;
  }
  r0.y = max(cb0[3].x, cb0[3].y);
  r0.y = max(cb0[3].z, r0.y);
  r0.y = 1 + -r0.y;
  r0.z = 1 + -cb0[21].y;
  r1.xyz = r2.xyz * r0.www + cb3[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(r6.xyz, r3.xyz);
  r2.x = saturate(dot(r6.xyz, cb3[0].xyz));
  r2.y = saturate(dot(r6.xyz, r1.xyz));
  r1.x = saturate(dot(cb3[0].xyz, r1.xyz));
  r1.y = r0.z * r0.z;
  r0.z = -r0.z * r0.z + 1;
  r1.z = abs(r0.w) * r0.z + r1.y;
  r0.z = r2.x * r0.z + r1.y;
  r0.z = abs(r0.w) * r0.z;
  r0.z = r2.x * r1.z + r0.z;
  r0.z = 9.99999975e-06 + r0.z;
  r0.z = 0.5 / r0.z;
  r1.z = r1.y * r1.y;
  r2.z = r2.y * r1.z + -r2.y;
  r2.y = r2.z * r2.y + 1;
  r1.z = 0.318309873 * r1.z;
  r2.y = r2.y * r2.y + 1.00000001e-07;
  r1.z = r1.z / r2.y;
  r0.z = r1.z * r0.z;
  r0.z = 3.14159274 * r0.z;
  r0.z = r0.z * r2.x;
  r0.z = max(0, r0.z);
  r2.xyz = r0.zzz * r5.xyz;
  r0.z = 1 + -r1.x;
  r1.x = r0.z * r0.z;
  r1.x = r1.x * r1.x;
  r0.z = r1.x * r0.z;
  r4.xyz = float3(1,1,1) + -cb0[3].xyz;
  r4.xyz = r4.xyz * r0.zzz + cb0[3].xyz;
  r0.z = r1.y * r1.y + 1;
  r0.z = 1 / r0.z;
  r0.y = cb0[21].y + -r0.y;
  r0.y = saturate(1 + r0.y);
  r1.x = 0.999707043 * cb0[6].y;
  r1.x = r1.x * r1.x;
  r1.y = -abs(r0.w) * abs(r0.w) + 1;
  r1.z = r1.x * r1.y;
  r1.z = cmp(1 >= r1.z);
  r1.x = -r1.x * r1.y + 1;
  r1.x = sqrt(r1.x);
  r1.x = 1 + -r1.x;
  r1.y = r1.x * r1.x;
  r1.y = r1.y * r1.y;
  r1.x = r1.y * r1.x;
  r1.y = -0.0203699991 + r0.y;
  r1.x = r1.x * r1.y + 0.0203699991;
  r1.x = r1.z ? r1.x : 1;
  r0.w = 1 + -abs(r0.w);
  r0.w = log2(r0.w);
  r0.w = cb0[4].x * r0.w;
  r0.w = exp2(r0.w);
  r10.xyz = -cb0[3].xyz + r0.yyy;
  r10.xyz = r0.www * r10.xyz + cb0[3].xyz;
  r1.xyz = v10.xxx ? r10.xyz : r1.xxx;
  r0.y = saturate(cb3[0].y);
  r10.xyz = r5.xyz * r0.yyy;
  r0.y = dot(cb3[0].xyz, r3.xyz);
  r0.y = saturate(1.75 + r0.y);
  r0.y = 1 + -r0.y;
  r0.y = r0.y * 2 + 1;
  r9.xyz = r10.xyz * r0.yyy + r9.xyz;
  r10.xyz = float3(1,1,1) + -r1.xyz;
  r12.xyz = r10.xyz * r7.xyz;
  r12.xyz = v10.xxx ? r7.xyz : r12.xyz;
  r9.xyz = cb0[23].xyz * r9.xyz + -r12.xyz;
  r9.xyz = r5.www * r9.xyz + r12.xyz;
  r8.xyz = r9.xyz * r8.xyz;
  r0.yzw = r0.zzz * r11.xyz;
  r0.yzw = r0.yzw * r1.xyz;
  r0.yzw = cb0[6].xxx * r0.yzw;
  r1.xyz = v10.xxx ? float3(1,1,1) : cb0[7].xyz;
  r0.yzw = r1.xyz * r0.yzw;
  r0.yzw = r2.xyz * r4.xyz + r0.yzw;
  r1.x = 1 + -r5.w;
  r1.xyz = r1.xxx * r0.yzw;
  r2.xyz = r8.xyz * r10.xyz;
  r2.xyz = v10.xxx ? r2.xyz : r8.xyz;
  r0.yzw = v10.xxx ? r0.yzw : r1.xyz;
  r0.yzw = r2.xyz + r0.yzw;
  r1.xyz = -r6.xyz * float3(0.100000001,0.100000001,0.100000001) + cb3[0].xyz;
  r1.x = saturate(dot(-r1.xyz, r3.xyz));
  r1.x = r1.x * cb0[8].x + -cb0[8].x;
  r1.x = exp2(r1.x);
  r1.y = 1 + -abs(r6.y);
  r1.y = saturate(r1.y + r1.y);
  r1.x = r1.x * r1.y;
  r1.xyz = r1.xxx * r5.xyz;
  r1.xyz = cb0[8].yzw * r1.xyz;
  r1.xyz = saturate(float3(10,10,10) * r1.xyz);
  r0.yzw = r1.xyz + r0.yzw;
  r0.yzw = r0.yzw + -r7.xyz;
  r0.yzw = r3.www * r0.yzw + r7.xyz;
  r0.x = saturate(r0.x * cb4[1].z + cb4[1].w);
  r1.xyz = -cb4[0].xyz + r0.yzw;
  r1.xyz = r0.xxx * r1.xyz + cb4[0].xyz;
  o0.xyz = v10.xxx ? r1.xyz : r0.yzw;
  o0.w = r1.w;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.109 on Sat Feb 21 09:02:10 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   xyzw
// TEXCOORD                 5   xyzw        6     NONE   float   xyzw
// TEXCOORD                 6   xyzw        7     NONE   float   xy
// TEXCOORD                 7   xyz         8     NONE   float   xyz
// TEXCOORD                 8   xyzw        9     NONE   float
// SV_IsFrontFace           0   x          10    FFACE    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer CB0[32], immediateIndexed
dcl_constantbuffer CB1[8], immediateIndexed
dcl_constantbuffer CB2[22], immediateIndexed
dcl_constantbuffer CB3[47], immediateIndexed
dcl_constantbuffer CB4[2], immediateIndexed
dcl_constantbuffer CB5[8], immediateIndexed
dcl_constantbuffer CB6[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_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_texturecube (float,float,float,float) t3
dcl_resource_texturecube (float,float,float,float) t4
dcl_resource_texture3d (float,float,float,float) t5
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.xyzw
dcl_input_ps linear v6.xyzw
dcl_input_ps linear v7.xy
dcl_input_ps linear v8.xyz
dcl_input_ps_sgv constant v10.x, is_front_face
dcl_output o0.xyzw
dcl_temps 16
movc r0.z, v10.x, l(1.000000), l(-1.000000)
mov r1.x, v1.w
mov r1.y, v2.w
mov r1.z, v3.w
add r2.xyz, -r1.xyzx, cb1[4].xyzx
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r2.xyzx
mul r4.xy, cb0[12].xyxx, cb1[0].xxxx
mul r4.xy, r4.xyxx, cb0[9].xxxx
mad r4.xy, v4.xyxx, cb0[9].xxxx, r4.xyxx
sample r4.xyzw, r4.xyxx, t0.xyzw, s2
mad r4.xz, r4.wwyw, l(2.000000, 0.000000, 2.000000, 0.000000), l(-1.000000, 0.000000, -1.000000, 0.000000)
mad r4.xz, r4.xxzx, l(0.050000, 0.000000, 0.050000, 0.000000), v4.xxyx
sample r5.xyzw, r4.xzxx, t0.xyzw, s2
mul_sat r1.w, v5.w, cb0[9].y
add r4.xy, r4.wyww, -r5.wyww
mad r4.xy, r1.wwww, r4.xyxx, r5.wyww
mad r4.xy, r4.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r4.xy, r4.xyxx, cb0[11].xxxx
mad r4.zw, r4.xxxy, l(0.000000, 0.000000, 0.050000, 0.050000), v4.zzzw
sample r5.xyzw, r4.zwzz, t0.xyzw, s2
sample r6.xyzw, v7.xyxx, t0.xyzw, s2
mad r4.zw, r5.wwwy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
mad r4.xy, r4.zwzz, cb0[11].yyyy, r4.xyxx
mad r4.zw, r6.wwwy, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
mad r4.xy, r4.zwzz, cb0[11].zzzz, r4.xyxx
dp2 r1.w, r4.xyxx, r4.xyxx
min r1.w, r1.w, l(1.000000)
add r1.w, -r1.w, l(1.000000)
sqrt r4.z, r1.w
dp3 r1.w, r4.xyzx, r4.xyzx
rsq r1.w, r1.w
mul r4.xyz, r1.wwww, r4.xyzx
mul r5.xyz, r0.zzzz, r4.xyzx
dp3 r6.x, v1.xyzx, r5.xyzx
dp3 r6.z, v3.xyzx, r5.xyzx
div r7.xy, v5.xyxx, v5.wwww
sample r8.xyzw, r7.xyxx, t1.xyzw, s4
mad r1.w, cb1[7].z, r8.x, cb1[7].w
div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.w
add r1.w, r1.w, -v5.w
mul_sat r1.w, r1.w, cb0[21].z
add r2.w, -v5.z, l(1.000000)
mul r8.yz, cb0[26].wwww, cb0[31].xxyx
mul r8.yz, r2.wwww, r8.yyzy
mul r8.yz, r1.wwww, r8.yyzy
mad r8.yz, r6.xxzx, r8.yyzy, v5.xxyx
div r9.xy, r8.yzyy, v5.wwww
sample_l r10.xyzw, r9.xyxx, t1.xyzw, s4, l(0.000000)
mad r2.w, cb1[7].z, r10.x, cb1[7].w
div r2.w, l(1.000000, 1.000000, 1.000000, 1.000000), r2.w
lt r2.w, r2.w, v5.w
mov r7.z, r8.x
mov r9.z, r10.x
movc r7.xyz, r2.wwww, r7.xyzx, r9.xyzx
mad r7.zw, cb1[7].zzzx, r7.zzzz, cb1[7].wwwy
div r7.zw, l(1.000000, 1.000000, 1.000000, 1.000000), r7.zzzw
add r2.w, r7.z, -v5.w
mul_sat r3.w, r2.w, cb0[21].z
div r4.w, cb1[5].z, v6.z
mul r8.xyz, r4.wwww, v6.xyzx
mul r8.xyz, r7.wwww, r8.xyzx
mul r4.w, r8.y, cb2[19].y
mad r4.w, cb2[18].y, r8.x, r4.w
mad r4.w, cb2[20].y, r8.z, r4.w
add r4.w, r4.w, cb2[21].y
add r4.w, -r4.w, v6.w
add r5.w, r4.w, -cb0[24].x
div_sat r5.w, r5.w, cb0[24].y
mul r5.w, r5.w, l(-11.541560)
exp r5.w, r5.w
add r5.w, -r5.w, l(1.000000)
mov_sat r6.w, cb0[24].z
mul r5.w, r5.w, r6.w
movc r2.w, v10.x, r2.w, v5.w
mul r6.w, -r2.w, cb0[24].w
mul r6.w, r6.w, l(1.442695)
exp r6.w, r6.w
add r6.w, -r6.w, l(1.000000)
max r6.w, r6.w, l(0.000000)
max r5.w, r5.w, r6.w
div_sat r4.w, r4.w, cb0[25].w
mul r4.w, r4.w, -r4.w
mul r4.w, r4.w, cb0[25].z
exp r4.w, r4.w
mul r2.w, -r2.w, cb0[26].x
mul r2.w, r2.w, l(1.442695)
exp r2.w, r2.w
mul r2.w, r4.w, r2.w
min r2.w, r2.w, l(1.000000)
add r2.w, r2.w, l(-1.000000)
mad r2.w, cb0[26].z, r2.w, l(1.000000)
mad_sat r2.w, r5.w, cb0[25].y, r2.w
add r8.xyzw, -r2.wwww, l(1.000000, -0.450000, -0.029000, -0.018000)
mul r4.w, r8.x, cb0[26].y
mad_sat r8.xyz, r4.wwww, r8.yzwy, r2.wwww
sample_l r7.xyzw, r7.xyxx, t2.xyzw, s3, l(0.000000)
mov r0.xy, l(0,0,0,0)
mad r4.xyz, r4.xyzx, r0.zzzz, -r0.yyzy
mad r0.xyz, cb0[21].wwww, r4.xyzx, r0.xyzx
dp3 r4.x, v1.xyzx, r0.xyzx
dp3 r4.y, v2.xyzx, r0.xyzx
dp3 r4.z, v3.xyzx, r0.xyzx
div r0.x, v5.z, cb1[5].y
add r0.x, -r0.x, l(1.000000)
mul r0.x, r0.x, cb1[5].z
max r0.x, r0.x, l(0.000000)
eq r0.y, cb6[0].x, l(1.000000)
if_nz r0.y
  eq r0.z, cb6[0].y, l(1.000000)
  mul r9.xyz, v2.wwww, cb6[2].xyzx
  mad r9.xyz, cb6[1].xyzx, v1.wwww, r9.xyzx
  mad r9.xyz, cb6[3].xyzx, v3.wwww, r9.xyzx
  add r9.xyz, r9.xyzx, cb6[4].xyzx
  movc r9.xyz, r0.zzzz, r9.xyzx, r1.xyzx
  add r9.xyz, r9.xyzx, -cb6[6].xyzx
  mul r9.yzw, r9.xxyz, cb6[5].xxyz
  mad r0.z, r9.y, l(0.250000), l(0.750000)
  mad r2.w, cb6[0].z, l(0.500000), l(0.750000)
  max r9.x, r0.z, r2.w
  sample r9.xyzw, r9.xzwx, t5.xyzw, s1
else
  mov r9.xyzw, l(1.000000,1.000000,1.000000,1.000000)
endif
dp4_sat r0.z, r9.xyzw, cb3[46].xyzw
dp3 r6.y, v2.xyzx, r5.xyzx
dp3 r2.w, r6.xyzx, r6.xyzx
rsq r2.w, r2.w
mul r6.xyz, r2.wwww, r6.xyzx
add r2.w, -cb0[22].x, l(1.000000)
dp3 r4.w, -r3.xyzx, r4.xyzx
add r4.w, r4.w, r4.w
mad r4.xyz, r4.xyzx, -r4.wwww, -r3.xyzx
mul r5.xyz, r0.zzzz, cb0[2].xyzx
if_nz r0.y
  eq r0.y, cb6[0].y, l(1.000000)
  mul r9.xyz, v2.wwww, cb6[2].xyzx
  mad r9.xyz, cb6[1].xyzx, v1.wwww, r9.xyzx
  mad r9.xyz, cb6[3].xyzx, v3.wwww, r9.xyzx
  add r9.xyz, r9.xyzx, cb6[4].xyzx
  movc r9.xyz, r0.yyyy, r9.xyzx, r1.xyzx
  add r9.xyz, r9.xyzx, -cb6[6].xyzx
  mul r9.yzw, r9.xxyz, cb6[5].xxyz
  mul r0.y, r9.y, l(0.250000)
  mul r0.z, cb6[0].z, l(0.500000)
  mad r4.w, -cb6[0].z, l(0.500000), l(0.250000)
  max r0.y, r0.z, r0.y
  min r9.x, r4.w, r0.y
  sample r10.xyzw, r9.xzwx, t5.xyzw, s1
  add r11.xyz, r9.xzwx, l(0.250000, 0.000000, 0.000000, 0.000000)
  sample r11.xyzw, r11.xyzx, t5.xyzw, s1
  add r9.xyz, r9.xzwx, l(0.500000, 0.000000, 0.000000, 0.000000)
  sample r9.xyzw, r9.xyzx, t5.xyzw, s1
  mov r6.w, l(1.000000)
  dp4 r10.x, r10.xyzw, r6.xyzw
  dp4 r10.y, r11.xyzw, r6.xyzw
  dp4 r10.z, r9.xyzw, r6.xyzw
else
  mov r6.w, l(1.000000)
  dp4 r10.x, cb3[39].xyzw, r6.xyzw
  dp4 r10.y, cb3[40].xyzw, r6.xyzw
  dp4 r10.z, cb3[41].xyzw, r6.xyzw
endif
add r9.xyz, r10.xyzx, v8.xyzx
max r9.xyz, r9.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r0.y, l(0.000000), cb5[2].w
if_nz r0.y
  dp3 r0.y, r4.xyzx, r4.xyzx
  rsq r0.y, r0.y
  mul r10.xyz, r0.yyyy, r4.xyzx
  add r11.xyz, -r1.xyzx, cb5[0].xyzx
  div r11.xyz, r11.xyzx, r10.xyzx
  add r12.xyz, -r1.xyzx, cb5[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 r0.y, r11.y, r11.x
  min r0.y, r11.z, r0.y
  add r11.xyz, r1.xyzx, -cb5[2].xyzx
  mad r10.xyz, r10.xyzx, r0.yyyy, r11.xyzx
else
  mov r10.xyz, r4.xyzx
endif
mad r0.y, -r2.w, l(0.700000), l(1.700000)
mul r0.y, r0.y, r2.w
mul r0.y, r0.y, l(6.000000)
sample_l r10.xyzw, r10.xyzx, t3.xyzw, s0, r0.y
add r0.z, r10.w, l(-1.000000)
mad r0.z, cb5[3].w, r0.z, l(1.000000)
log r0.z, r0.z
mul r0.z, r0.z, cb5[3].y
exp r0.z, r0.z
mul r0.z, r0.z, cb5[3].x
mul r11.xyz, r10.xyzx, r0.zzzz
lt r2.w, cb5[1].w, l(0.999990)
if_nz r2.w
  lt r2.w, l(0.000000), cb5[6].w
  if_nz r2.w
    dp3 r2.w, r4.xyzx, r4.xyzx
    rsq r2.w, r2.w
    mul r12.xyz, r2.wwww, r4.xyzx
    add r13.xyz, -r1.xyzx, cb5[4].xyzx
    div r13.xyz, r13.xyzx, r12.xyzx
    add r14.xyz, -r1.xyzx, cb5[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 r2.w, r13.y, r13.x
    min r2.w, r13.z, r2.w
    add r1.xyz, r1.xyzx, -cb5[6].xyzx
    mad r4.xyz, r12.xyzx, r2.wwww, r1.xyzx
  endif
  sample_l r4.xyzw, r4.xyzx, t4.xyzw, s0, r0.y
  add r0.y, r4.w, l(-1.000000)
  mad r0.y, cb5[7].w, r0.y, l(1.000000)
  log r0.y, r0.y
  mul r0.y, r0.y, cb5[7].y
  exp r0.y, r0.y
  mul r0.y, r0.y, cb5[7].x
  mul r1.xyz, r4.xyzx, r0.yyyy
  mad r4.xyz, r0.zzzz, r10.xyzx, -r1.xyzx
  mad r11.xyz, cb5[1].wwww, r4.xyzx, r1.xyzx
endif
max r0.y, cb0[3].y, cb0[3].x
max r0.y, r0.y, cb0[3].z
add r0.y, -r0.y, l(1.000000)
add r0.z, -cb0[21].y, l(1.000000)
mad r1.xyz, r2.xyzx, r0.wwww, cb3[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, r6.xyzx, r3.xyzx
dp3_sat r2.x, r6.xyzx, cb3[0].xyzx
dp3_sat r2.y, r6.xyzx, r1.xyzx
dp3_sat r1.x, cb3[0].xyzx, r1.xyzx
mul r1.y, r0.z, r0.z
mad r0.z, -r0.z, r0.z, l(1.000000)
mad r1.z, |r0.w|, r0.z, r1.y
mad r0.z, r2.x, r0.z, r1.y
mul r0.z, r0.z, |r0.w|
mad r0.z, r2.x, r1.z, r0.z
add r0.z, r0.z, l(0.000010)
div r0.z, l(0.500000), r0.z
mul r1.z, r1.y, r1.y
mad r2.z, r2.y, r1.z, -r2.y
mad r2.y, r2.z, r2.y, l(1.000000)
mul r1.z, r1.z, l(0.318309873)
mad r2.y, r2.y, r2.y, l(1.000000012E-07)
div r1.z, r1.z, r2.y
mul r0.z, r0.z, r1.z
mul r0.z, r0.z, l(3.14159274)
mul r0.z, r2.x, r0.z
max r0.z, r0.z, l(0.000000)
mul r2.xyz, r5.xyzx, r0.zzzz
add r0.z, -r1.x, l(1.000000)
mul r1.x, r0.z, r0.z
mul r1.x, r1.x, r1.x
mul r0.z, r0.z, r1.x
add r4.xyz, -cb0[3].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r4.xyz, r4.xyzx, r0.zzzz, cb0[3].xyzx
mad r0.z, r1.y, r1.y, l(1.000000)
div r0.z, l(1.000000, 1.000000, 1.000000, 1.000000), r0.z
add r0.y, -r0.y, cb0[21].y
add_sat r0.y, r0.y, l(1.000000)
mul r1.x, cb0[6].y, l(0.999707043)
mul r1.x, r1.x, r1.x
mad r1.y, -|r0.w|, |r0.w|, l(1.000000)
mul r1.z, r1.y, r1.x
ge r1.z, l(1.000000), r1.z
mad r1.x, -r1.x, r1.y, l(1.000000)
sqrt r1.x, r1.x
add r1.x, -r1.x, l(1.000000)
mul r1.y, r1.x, r1.x
mul r1.y, r1.y, r1.y
mul r1.x, r1.x, r1.y
add r1.y, r0.y, l(-0.020370)
mad r1.x, r1.x, r1.y, l(0.020370)
movc r1.x, r1.z, r1.x, l(1.000000)
add r0.w, -|r0.w|, l(1.000000)
log r0.w, r0.w
mul r0.w, r0.w, cb0[4].x
exp r0.w, r0.w
add r10.xyz, r0.yyyy, -cb0[3].xyzx
mad r10.xyz, r0.wwww, r10.xyzx, cb0[3].xyzx
movc r1.xyz, v10.xxxx, r10.xyzx, r1.xxxx
mov_sat r0.y, cb3[0].y
mul r10.xyz, r0.yyyy, r5.xyzx
dp3 r0.y, cb3[0].xyzx, r3.xyzx
add_sat r0.y, r0.y, l(1.750000)
add r0.y, -r0.y, l(1.000000)
mad r0.y, r0.y, l(2.000000), l(1.000000)
mad r9.xyz, r10.xyzx, r0.yyyy, r9.xyzx
add r10.xyz, -r1.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r12.xyz, r7.xyzx, r10.xyzx
movc r12.xyz, v10.xxxx, r7.xyzx, r12.xyzx
mad r9.xyz, cb0[23].xyzx, r9.xyzx, -r12.xyzx
mad r9.xyz, r5.wwww, r9.xyzx, r12.xyzx
mul r8.xyz, r8.xyzx, r9.xyzx
mul r0.yzw, r11.xxyz, r0.zzzz
mul r0.yzw, r1.xxyz, r0.yyzw
mul r0.yzw, r0.yyzw, cb0[6].xxxx
movc r1.xyz, v10.xxxx, l(1.000000,1.000000,1.000000,0), cb0[7].xyzx
mul r0.yzw, r0.yyzw, r1.xxyz
mad r0.yzw, r2.xxyz, r4.xxyz, r0.yyzw
add r1.x, -r5.w, l(1.000000)
mul r1.xyz, r0.yzwy, r1.xxxx
mul r2.xyz, r10.xyzx, r8.xyzx
movc r2.xyz, v10.xxxx, r2.xyzx, r8.xyzx
movc r0.yzw, v10.xxxx, r0.yyzw, r1.xxyz
add r0.yzw, r0.yyzw, r2.xxyz
mad r1.xyz, -r6.xyzx, l(0.100000, 0.100000, 0.100000, 0.000000), cb3[0].xyzx
dp3_sat r1.x, -r1.xyzx, r3.xyzx
mad r1.x, r1.x, cb0[8].x, -cb0[8].x
exp r1.x, r1.x
add r1.y, -|r6.y|, l(1.000000)
add_sat r1.y, r1.y, r1.y
mul r1.x, r1.y, r1.x
mul r1.xyz, r5.xyzx, r1.xxxx
mul r1.xyz, r1.xyzx, cb0[8].yzwy
mul_sat r1.xyz, r1.xyzx, l(10.000000, 10.000000, 10.000000, 0.000000)
add r0.yzw, r0.yyzw, r1.xxyz
add r0.yzw, -r7.xxyz, r0.yyzw
mad r0.yzw, r3.wwww, r0.yyzw, r7.xxyz
mad_sat r0.x, r0.x, cb4[1].z, cb4[1].w
add r1.xyz, r0.yzwy, -cb4[0].xyzx
mad r1.xyz, r0.xxxx, r1.xyzx, cb4[0].xyzx
movc o0.xyz, v10.xxxx, r1.xyzx, r0.yzwy
mov o0.w, r1.w
ret
// Approximately 0 instruction slots used

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