//rear mirror 
// ---- Created with 3Dmigoto v0.6.164 on Sat Jan 17 16:06:53 2026
Texture3D<float4> t8 : register(t8);

TextureCube<float4> t7 : register(t7);

TextureCube<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 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 cb7 : register(b7)
{
  float4 cb7[7];
}

cbuffer cb6 : register(b6)
{
  float4 cb6[8];
}

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

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

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

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

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

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




// 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 : TEXCOORD7,
  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.xyzw = t1.Sample(s4_s, v1.xy).xyzw;
  r1.xyzw = t0.Sample(s2_s, v1.xy).xyzw;
  r2.xyz = cb0[4].xyz * r1.xyz;
  r1.xyz = cb0[4].xyz * r1.xyz + float3(-0.220916301,-0.220916301,-0.220916301);
  r1.xyz = r0.xxx * r1.xyz + float3(0.220916301,0.220916301,0.220916301);
  r0.x = -r0.x * 0.779083729 + 0.779083729;
  r2.xyz = r2.xyz * r0.xxx;
  r3.xyzw = t2.Sample(s3_s, v1.xy).xyzw;
  r3.x = r3.x * r3.w;
  r0.yz = r3.xy * float2(2,2) + float2(-1,-1);
  r0.yz = cb0[8].xx * r0.yz;
  r1.w = dot(r0.yz, r0.yz);
  r1.w = min(1, r1.w);
  r1.w = 1 + -r1.w;
  r1.w = sqrt(r1.w);
  r3.xyz = v4.xyz * r0.zzz;
  r3.xyz = v3.xyz * r0.yyy + r3.xyz;
  r3.xyz = v5.xyz * r1.www + r3.xyz;
  r0.y = dot(r3.xyz, r3.xyz);
  r0.y = rsqrt(r0.y);
  r3.xyz = r3.xyz * r0.yyy;
  r0.y = dot(v2.xyz, v2.xyz);
  r0.y = rsqrt(r0.y);
  r4.xyz = v2.xyz * r0.yyy;
  r5.x = v3.w;
  r5.y = v4.w;
  r5.z = v5.w;
  r6.xyz = cb1[4].xyz + -r5.xyz;
  r7.x = cb4[9].z;
  r7.y = cb4[10].z;
  r7.z = cb4[11].z;
  r0.z = dot(r6.xyz, r7.xyz);
  r6.xyz = -cb3[25].xyz + r5.xyz;
  r1.w = dot(r6.xyz, r6.xyz);
  r1.w = sqrt(r1.w);
  r1.w = r1.w + -r0.z;
  r0.z = cb3[25].w * r1.w + r0.z;
  r0.z = saturate(r0.z * cb3[24].z + cb3[24].w);
  r1.w = cmp(cb7[0].x == 1.000000);
  if (r1.w != 0) {
    r2.w = cmp(cb7[0].y == 1.000000);
    r6.xyz = cb7[2].xyz * v4.www;
    r6.xyz = cb7[1].xyz * v3.www + r6.xyz;
    r6.xyz = cb7[3].xyz * v5.www + r6.xyz;
    r6.xyz = cb7[4].xyz + r6.xyz;
    r6.xyz = r2.www ? r6.xyz : r5.xyz;
    r6.xyz = -cb7[6].xyz + r6.xyz;
    r6.yzw = cb7[5].xyz * r6.xyz;
    r2.w = r6.y * 0.25 + 0.75;
    r4.w = cb7[0].z * 0.5 + 0.75;
    r6.x = max(r4.w, r2.w);
    r6.xyzw = t8.Sample(s1_s, r6.xzw).xyzw;
  } else {
    r6.xyzw = float4(1,1,1,1);
  }
  r2.w = saturate(dot(r6.xyzw, cb2[46].xyzw));
  r6.xy = v7.xy / v7.ww;
  r6.xyzw = t3.Sample(s7_s, r6.xy).xyzw;
  r2.w = -r6.x + r2.w;
  r0.z = r0.z * r2.w + r6.x;
  r6.xyzw = t4.Sample(s5_s, v1.xy).xyzw;
  r2.w = 1 + -cb0[9].y;
  r2.w = r6.y * cb0[9].y + r2.w;
  r4.w = -r0.w * cb0[9].x + 1;
  r5.w = dot(r4.xyz, r3.xyz);
  r5.w = r5.w + r5.w;
  r6.xyz = r3.xyz * -r5.www + r4.xyz;
  r7.xyz = cb0[2].xyz * r0.zzz;
  if (r1.w != 0) {
    r0.z = cmp(cb7[0].y == 1.000000);
    r8.xyz = cb7[2].xyz * v4.www;
    r8.xyz = cb7[1].xyz * v3.www + r8.xyz;
    r8.xyz = cb7[3].xyz * v5.www + r8.xyz;
    r8.xyz = cb7[4].xyz + r8.xyz;
    r8.xyz = r0.zzz ? r8.xyz : r5.xyz;
    r8.xyz = -cb7[6].xyz + r8.xyz;
    r8.yzw = cb7[5].xyz * r8.xyz;
    r0.z = 0.25 * r8.y;
    r1.w = 0.5 * cb7[0].z;
    r5.w = -cb7[0].z * 0.5 + 0.25;
    r0.z = max(r1.w, r0.z);
    r8.x = min(r0.z, r5.w);
    r9.xyzw = t8.Sample(s1_s, r8.xzw).xyzw;
    r10.xyz = float3(0.25,0,0) + r8.xzw;
    r10.xyzw = t8.Sample(s1_s, r10.xyz).xyzw;
    r8.xyz = float3(0.5,0,0) + r8.xzw;
    r8.xyzw = t8.Sample(s1_s, r8.xyz).xyzw;
    r3.w = 1;
    r9.x = dot(r9.xyzw, r3.xyzw);
    r9.y = dot(r10.xyzw, r3.xyzw);
    r9.z = dot(r8.xyzw, r3.xyzw);
  } else {
    r3.w = 1;
    r9.x = dot(cb2[39].xyzw, r3.xyzw);
    r9.y = dot(cb2[40].xyzw, r3.xyzw);
    r9.z = dot(cb2[41].xyzw, r3.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);
  r0.z = cmp(0 < cb6[2].w);
  if (r0.z != 0) {
    r0.z = dot(r6.xyz, r6.xyz);
    r0.z = rsqrt(r0.z);
    r9.xyz = r6.xyz * r0.zzz;
    r10.xyz = cb6[0].xyz + -r5.xyz;
    r10.xyz = r10.xyz / r9.xyz;
    r11.xyz = cb6[1].xyz + -r5.xyz;
    r11.xyz = r11.xyz / r9.xyz;
    r12.xyz = cmp(float3(0,0,0) < r9.xyz);
    r10.xyz = r12.xyz ? r10.xyz : r11.xyz;
    r0.z = min(r10.x, r10.y);
    r0.z = min(r0.z, r10.z);
    r10.xyz = -cb6[2].xyz + r5.xyz;
    r9.xyz = r9.xyz * r0.zzz + r10.xyz;
  } else {
    r9.xyz = r6.xyz;
  }
  r0.z = -r4.w * 0.699999988 + 1.70000005;
  r0.z = r4.w * r0.z;
  r0.z = 6 * r0.z;
  
  
float4 s = StereoParams.Load(0);
float4 testeo = IniParams.Load(int2(90,0));
float fov =  cb4[9].x * cb4[9].x + cb4[10].x * cb4[10].x + cb4[11].x * cb4[11].x ;
r9.x -= s.x *   cb4[9].x  / fov * 0.5 ;  
r9.y -= s.x *   cb4[10].x / fov * 0.5 ;
r9.z -= s.x *   cb4[11].x / fov * 0.5 ;   
  
  r9.xyzw = t6.SampleLevel(s0_s, r9.xyz, r0.z).xyzw;
  r1.w = -1 + r9.w;
  r1.w = cb6[3].w * r1.w + 1;
  r1.w = cb6[3].x * r1.w;
  r10.xyz = r1.www * r9.xyz;
  r3.w = cmp(cb6[1].w < 0.999989986);
  if (r3.w != 0) {
    r3.w = cmp(0 < cb6[6].w);
    if (r3.w != 0) {
      r3.w = dot(r6.xyz, r6.xyz);
      r3.w = rsqrt(r3.w);
      r11.xyz = r6.xyz * r3.www;
      r12.xyz = cb6[4].xyz + -r5.xyz;
      r12.xyz = r12.xyz / r11.xyz;
      r13.xyz = cb6[5].xyz + -r5.xyz;
      r13.xyz = r13.xyz / r11.xyz;
      r14.xyz = cmp(float3(0,0,0) < r11.xyz);
      r12.xyz = r14.xyz ? r12.xyz : r13.xyz;
      r3.w = min(r12.x, r12.y);
      r3.w = min(r3.w, r12.z);
      r5.xyz = -cb6[6].xyz + r5.xyz;
      r6.xyz = r11.xyz * r3.www + r5.xyz;
    }
    r5.xyzw = t7.SampleLevel(s0_s, r6.xyz, r0.z).xyzw;
    r0.z = -1 + r5.w;
    r0.z = cb6[7].w * r0.z + 1;
    r0.z = cb6[7].x * r0.z;
    r5.xyz = r0.zzz * r5.xyz;
    r6.xyz = r1.www * r9.xyz + -r5.xyz;
    r10.xyz = cb6[1].www * r6.xyz + r5.xyz;
  }
  r5.xyz = r10.xyz * r2.www;
  r6.xyz = -v2.xyz * r0.yyy + cb2[0].xyz;
  r0.y = dot(r6.xyz, r6.xyz);
  r0.y = max(0.00100000005, r0.y);
  r0.y = rsqrt(r0.y);
  r6.xyz = r6.xyz * r0.yyy;
  r0.y = dot(r3.xyz, -r4.xyz);
  r0.z = saturate(dot(r3.xyz, cb2[0].xyz));
  r1.w = saturate(dot(r3.xyz, r6.xyz));
  r3.x = saturate(dot(cb2[0].xyz, r6.xyz));
  r3.y = r3.x * r3.x;
  r3.y = dot(r3.yy, r4.ww);
  r3.y = -0.5 + r3.y;
  r3.z = 1 + -r0.z;
  r3.w = r3.z * r3.z;
  r3.w = r3.w * r3.w;
  r3.z = r3.w * r3.z;
  r3.z = r3.y * r3.z + 1;
  r3.w = 1 + -abs(r0.y);
  r4.x = r3.w * r3.w;
  r4.x = r4.x * r4.x;
  r3.w = r4.x * r3.w;
  r3.y = r3.y * r3.w + 1;
  r3.y = r3.z * r3.y;
  r3.y = r3.y * r0.z;
  r3.z = r4.w * r4.w;
  r3.z = max(0.00200000009, r3.z);
  r4.x = 1 + -r3.z;
  r4.y = abs(r0.y) * r4.x + r3.z;
  r4.x = r0.z * r4.x + r3.z;
  r0.y = r4.x * abs(r0.y);
  r0.y = r0.z * r4.y + r0.y;
  r0.y = 9.99999975e-06 + r0.y;
  r0.y = 0.5 / r0.y;
  r4.x = r3.z * r3.z;
  r4.y = r1.w * r4.x + -r1.w;
  r1.w = r4.y * r1.w + 1;
  r4.x = 0.318309873 * r4.x;
  r1.w = r1.w * r1.w + 1.00000001e-07;
  r1.w = r4.x / r1.w;
  r0.y = r1.w * r0.y;
  r0.y = 3.14159274 * r0.y;
  r0.y = max(9.99999975e-05, r0.y);
  r0.y = sqrt(r0.y);
  r0.y = r0.y * r0.z;
  r0.z = 0.280000001 * r3.z;
  r0.z = -r0.z * r4.w + 1;
  r1.w = dot(r1.xyz, r1.xyz);
  r1.w = cmp(r1.w != 0.000000);
  r1.w = r1.w ? 1.000000 : 0;
  r0.y = r1.w * r0.y;
  r0.x = r0.w * cb0[9].x + -r0.x;
  r0.x = saturate(1 + r0.x);
  r4.xyz = r7.xyz * r3.yyy;
  r4.xyz = r8.xyz * r2.www + r4.xyz;
  r6.xyz = r0.yyy * r7.xyz;
  r0.y = 1 + -r3.x;
  r0.w = r0.y * r0.y;
  r0.w = r0.w * r0.w;
  r0.y = r0.w * r0.y;
  r3.xyz = float3(1,1,1) + -r1.xyz;
  r3.xyz = r3.xyz * r0.yyy + r1.xyz;
  r3.xyz = r6.xyz * r3.xyz;
  r2.xyz = r2.xyz * r4.xyz + r3.xyz;
  r0.yzw = r0.zzz * r5.xyz;
  r3.xyz = r0.xxx + -r1.xyz;
  r1.xyz = r3.www * r3.xyz + r1.xyz;
  r0.xyz = r0.yzw * r1.xyz + r2.xyz;
  r1.xyzw = t5.Sample(s6_s, v1.xy).xyzw;
  r0.xyz = r1.xyz * cb0[10].xyz + r0.xyz;
  r0.w = v2.w / 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 * cb5[1].z + cb5[1].w);
  r0.xyz = -cb5[0].xyz + r0.xyz;
  o0.xyz = r0.www * r0.xyz + cb5[0].xyz;
  o0.w = 1;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Sat Jan 17 16:06:53 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 0   xyzw        1     NONE   float   xy
// 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   xyz
// TEXCOORD                 7   xyzw        7     NONE   float   xy w
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer CB0[11], immediateIndexed
dcl_constantbuffer CB1[6], immediateIndexed
dcl_constantbuffer CB2[47], immediateIndexed
dcl_constantbuffer CB3[26], immediateIndexed
dcl_constantbuffer CB4[12], immediateIndexed
dcl_constantbuffer CB5[2], immediateIndexed
dcl_constantbuffer CB6[8], immediateIndexed
dcl_constantbuffer CB7[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_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_texturecube (float,float,float,float) t6
dcl_resource_texturecube (float,float,float,float) t7
dcl_resource_texture3d (float,float,float,float) t8
dcl_input_ps linear v1.xy
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_input_ps linear v7.xyw
dcl_output o0.xyzw
dcl_temps 15
sample r0.xyzw, v1.xyxx, t1.xyzw, s4
sample r1.xyzw, v1.xyxx, t0.xyzw, s2
mul r2.xyz, r1.xyzx, cb0[4].xyzx
mad r1.xyz, cb0[4].xyzx, r1.xyzx, l(-0.220916301, -0.220916301, -0.220916301, 0.000000)
mad r1.xyz, r0.xxxx, r1.xyzx, l(0.220916301, 0.220916301, 0.220916301, 0.000000)
mad r0.x, -r0.x, l(0.779083729), l(0.779083729)
mul r2.xyz, r0.xxxx, r2.xyzx
sample r3.xyzw, v1.xyxx, t2.xyzw, s3
mul r3.x, r3.w, r3.x
mad r0.yz, r3.xxyx, l(0.000000, 2.000000, 2.000000, 0.000000), l(0.000000, -1.000000, -1.000000, 0.000000)
mul r0.yz, r0.yyzy, cb0[8].xxxx
dp2 r1.w, r0.yzyy, r0.yzyy
min r1.w, r1.w, l(1.000000)
add r1.w, -r1.w, l(1.000000)
sqrt r1.w, r1.w
mul r3.xyz, r0.zzzz, v4.xyzx
mad r3.xyz, v3.xyzx, r0.yyyy, r3.xyzx
mad r3.xyz, v5.xyzx, r1.wwww, r3.xyzx
dp3 r0.y, r3.xyzx, r3.xyzx
rsq r0.y, r0.y
mul r3.xyz, r0.yyyy, r3.xyzx
dp3 r0.y, v2.xyzx, v2.xyzx
rsq r0.y, r0.y
mul r4.xyz, r0.yyyy, v2.xyzx
mov r5.x, v3.w
mov r5.y, v4.w
mov r5.z, v5.w
add r6.xyz, -r5.xyzx, cb1[4].xyzx
mov r7.x, cb4[9].z
mov r7.y, cb4[10].z
mov r7.z, cb4[11].z
dp3 r0.z, r6.xyzx, r7.xyzx
add r6.xyz, r5.xyzx, -cb3[25].xyzx
dp3 r1.w, r6.xyzx, r6.xyzx
sqrt r1.w, r1.w
add r1.w, -r0.z, r1.w
mad r0.z, cb3[25].w, r1.w, r0.z
mad_sat r0.z, r0.z, cb3[24].z, cb3[24].w
eq r1.w, cb7[0].x, l(1.000000)
if_nz r1.w
  eq r2.w, cb7[0].y, l(1.000000)
  mul r6.xyz, v4.wwww, cb7[2].xyzx
  mad r6.xyz, cb7[1].xyzx, v3.wwww, r6.xyzx
  mad r6.xyz, cb7[3].xyzx, v5.wwww, r6.xyzx
  add r6.xyz, r6.xyzx, cb7[4].xyzx
  movc r6.xyz, r2.wwww, r6.xyzx, r5.xyzx
  add r6.xyz, r6.xyzx, -cb7[6].xyzx
  mul r6.yzw, r6.xxyz, cb7[5].xxyz
  mad r2.w, r6.y, l(0.250000), l(0.750000)
  mad r4.w, cb7[0].z, l(0.500000), l(0.750000)
  max r6.x, r2.w, r4.w
  sample r6.xyzw, r6.xzwx, t8.xyzw, s1
else
  mov r6.xyzw, l(1.000000,1.000000,1.000000,1.000000)
endif
dp4_sat r2.w, r6.xyzw, cb2[46].xyzw
div r6.xy, v7.xyxx, v7.wwww
sample r6.xyzw, r6.xyxx, t3.xyzw, s7
add r2.w, r2.w, -r6.x
mad r0.z, r0.z, r2.w, r6.x
sample r6.xyzw, v1.xyxx, t4.xyzw, s5
add r2.w, -cb0[9].y, l(1.000000)
mad r2.w, r6.y, cb0[9].y, r2.w
mad r4.w, -r0.w, cb0[9].x, l(1.000000)
dp3 r5.w, r4.xyzx, r3.xyzx
add r5.w, r5.w, r5.w
mad r6.xyz, r3.xyzx, -r5.wwww, r4.xyzx
mul r7.xyz, r0.zzzz, cb0[2].xyzx
if_nz r1.w
  eq r0.z, cb7[0].y, l(1.000000)
  mul r8.xyz, v4.wwww, cb7[2].xyzx
  mad r8.xyz, cb7[1].xyzx, v3.wwww, r8.xyzx
  mad r8.xyz, cb7[3].xyzx, v5.wwww, r8.xyzx
  add r8.xyz, r8.xyzx, cb7[4].xyzx
  movc r8.xyz, r0.zzzz, r8.xyzx, r5.xyzx
  add r8.xyz, r8.xyzx, -cb7[6].xyzx
  mul r8.yzw, r8.xxyz, cb7[5].xxyz
  mul r0.z, r8.y, l(0.250000)
  mul r1.w, cb7[0].z, l(0.500000)
  mad r5.w, -cb7[0].z, l(0.500000), l(0.250000)
  max r0.z, r0.z, r1.w
  min r8.x, r5.w, r0.z
  sample r9.xyzw, r8.xzwx, t8.xyzw, s1
  add r10.xyz, r8.xzwx, l(0.250000, 0.000000, 0.000000, 0.000000)
  sample r10.xyzw, r10.xyzx, t8.xyzw, s1
  add r8.xyz, r8.xzwx, l(0.500000, 0.000000, 0.000000, 0.000000)
  sample r8.xyzw, r8.xyzx, t8.xyzw, s1
  mov r3.w, l(1.000000)
  dp4 r9.x, r9.xyzw, r3.xyzw
  dp4 r9.y, r10.xyzw, r3.xyzw
  dp4 r9.z, r8.xyzw, r3.xyzw
else
  mov r3.w, l(1.000000)
  dp4 r9.x, cb2[39].xyzw, r3.xyzw
  dp4 r9.y, cb2[40].xyzw, r3.xyzw
  dp4 r9.z, cb2[41].xyzw, r3.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 r0.z, l(0.000000), cb6[2].w
if_nz r0.z
  dp3 r0.z, r6.xyzx, r6.xyzx
  rsq r0.z, r0.z
  mul r9.xyz, r0.zzzz, r6.xyzx
  add r10.xyz, -r5.xyzx, cb6[0].xyzx
  div r10.xyz, r10.xyzx, r9.xyzx
  add r11.xyz, -r5.xyzx, cb6[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 r0.z, r10.y, r10.x
  min r0.z, r10.z, r0.z
  add r10.xyz, r5.xyzx, -cb6[2].xyzx
  mad r9.xyz, r9.xyzx, r0.zzzz, r10.xyzx
else
  mov r9.xyz, r6.xyzx
endif
mad r0.z, -r4.w, l(0.700000), l(1.700000)
mul r0.z, r0.z, r4.w
mul r0.z, r0.z, l(6.000000)
sample_l r9.xyzw, r9.xyzx, t6.xyzw, s0, r0.z
add r1.w, r9.w, l(-1.000000)
mad r1.w, cb6[3].w, r1.w, l(1.000000)
mul r1.w, r1.w, cb6[3].x
mul r10.xyz, r9.xyzx, r1.wwww
lt r3.w, cb6[1].w, l(0.999990)
if_nz r3.w
  lt r3.w, l(0.000000), cb6[6].w
  if_nz r3.w
    dp3 r3.w, r6.xyzx, r6.xyzx
    rsq r3.w, r3.w
    mul r11.xyz, r3.wwww, r6.xyzx
    add r12.xyz, -r5.xyzx, cb6[4].xyzx
    div r12.xyz, r12.xyzx, r11.xyzx
    add r13.xyz, -r5.xyzx, cb6[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 r3.w, r12.y, r12.x
    min r3.w, r12.z, r3.w
    add r5.xyz, r5.xyzx, -cb6[6].xyzx
    mad r6.xyz, r11.xyzx, r3.wwww, r5.xyzx
  endif
  sample_l r5.xyzw, r6.xyzx, t7.xyzw, s0, r0.z
  add r0.z, r5.w, l(-1.000000)
  mad r0.z, cb6[7].w, r0.z, l(1.000000)
  mul r0.z, r0.z, cb6[7].x
  mul r5.xyz, r5.xyzx, r0.zzzz
  mad r6.xyz, r1.wwww, r9.xyzx, -r5.xyzx
  mad r10.xyz, cb6[1].wwww, r6.xyzx, r5.xyzx
endif
mul r5.xyz, r2.wwww, r10.xyzx
mad r6.xyz, -v2.xyzx, r0.yyyy, cb2[0].xyzx
dp3 r0.y, r6.xyzx, r6.xyzx
max r0.y, r0.y, l(0.001000)
rsq r0.y, r0.y
mul r6.xyz, r0.yyyy, r6.xyzx
dp3 r0.y, r3.xyzx, -r4.xyzx
dp3_sat r0.z, r3.xyzx, cb2[0].xyzx
dp3_sat r1.w, r3.xyzx, r6.xyzx
dp3_sat r3.x, cb2[0].xyzx, r6.xyzx
mul r3.y, r3.x, r3.x
dp2 r3.y, r3.yyyy, r4.wwww
add r3.y, r3.y, l(-0.500000)
add r3.z, -r0.z, l(1.000000)
mul r3.w, r3.z, r3.z
mul r3.w, r3.w, r3.w
mul r3.z, r3.z, r3.w
mad r3.z, r3.y, r3.z, l(1.000000)
add r3.w, -|r0.y|, l(1.000000)
mul r4.x, r3.w, r3.w
mul r4.x, r4.x, r4.x
mul r3.w, r3.w, r4.x
mad r3.y, r3.y, r3.w, l(1.000000)
mul r3.y, r3.y, r3.z
mul r3.y, r0.z, r3.y
mul r3.z, r4.w, r4.w
max r3.z, r3.z, l(0.002000)
add r4.x, -r3.z, l(1.000000)
mad r4.y, |r0.y|, r4.x, r3.z
mad r4.x, r0.z, r4.x, r3.z
mul r0.y, |r0.y|, r4.x
mad r0.y, r0.z, r4.y, r0.y
add r0.y, r0.y, l(0.000010)
div r0.y, l(0.500000), r0.y
mul r4.x, r3.z, r3.z
mad r4.y, r1.w, r4.x, -r1.w
mad r1.w, r4.y, r1.w, l(1.000000)
mul r4.x, r4.x, l(0.318309873)
mad r1.w, r1.w, r1.w, l(1.000000012E-07)
div r1.w, r4.x, r1.w
mul r0.y, r0.y, r1.w
mul r0.y, r0.y, l(3.14159274)
max r0.y, r0.y, l(0.000100)
sqrt r0.y, r0.y
mul r0.y, r0.z, r0.y
mul r0.z, r3.z, l(0.280000)
mad r0.z, -r0.z, r4.w, l(1.000000)
dp3 r1.w, r1.xyzx, r1.xyzx
ne r1.w, r1.w, l(0.000000)
and r1.w, r1.w, l(0x3f800000)
mul r0.y, r0.y, r1.w
mad r0.x, r0.w, cb0[9].x, -r0.x
add_sat r0.x, r0.x, l(1.000000)
mul r4.xyz, r3.yyyy, r7.xyzx
mad r4.xyz, r8.xyzx, r2.wwww, r4.xyzx
mul r6.xyz, r7.xyzx, r0.yyyy
add r0.y, -r3.x, l(1.000000)
mul r0.w, r0.y, r0.y
mul r0.w, r0.w, r0.w
mul r0.y, r0.y, r0.w
add r3.xyz, -r1.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r3.xyz, r3.xyzx, r0.yyyy, r1.xyzx
mul r3.xyz, r3.xyzx, r6.xyzx
mad r2.xyz, r2.xyzx, r4.xyzx, r3.xyzx
mul r0.yzw, r5.xxyz, r0.zzzz
add r3.xyz, -r1.xyzx, r0.xxxx
mad r1.xyz, r3.wwww, r3.xyzx, r1.xyzx
mad r0.xyz, r0.yzwy, r1.xyzx, r2.xyzx
sample r1.xyzw, v1.xyxx, t5.xyzw, s6
mad r0.xyz, r1.xyzx, cb0[10].xyzx, r0.xyzx
div r0.w, v2.w, cb1[5].y
add r0.w, -r0.w, l(1.000000)
mul r0.w, r0.w, cb1[5].z
max r0.w, r0.w, l(0.000000)
mad_sat r0.w, r0.w, cb5[1].z, cb5[1].w
add r0.xyz, r0.xyzx, -cb5[0].xyzx
mad o0.xyz, r0.wwww, r0.xyzx, cb5[0].xyzx
mov o0.w, l(1.000000)
ret
// Approximately 0 instruction slots used

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