// ---- Created with 3Dmigoto v0.6.109 on Fri Feb 13 01:32:26 2026
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 s4_s : register(s4);

SamplerState s3_s : register(s3);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerComparisonState s0_s : register(s0);

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

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

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

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




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main(
  float4 v0 : SV_POSITION0,
  float2 v1 : TEXCOORD0,
  float2 w1 : TEXCOORD1,
  float4 v2 : TEXCOORD2,
  float4 v3 : TEXCOORD3,
  float4 v4 : TEXCOORD4,
  float4 v5 : TEXCOORD5,
  float4 v6 : TEXCOORD6,
  float4 v7 : TEXCOORD7,
  float4 v8 : TEXCOORD8,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3,r4,r5;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyz = v8.xyz / v8.www;
  r1.xy = r0.xy * cb0[6].zw + float2(0.5,0.5);
  r1.xy = floor(r1.xy);
  r0.xy = r0.xy * cb0[6].zw + -r1.xy;
  r1.zw = float2(1,1) + -r0.xy;
  r2.xy = min(float2(0,0), r0.xy);
  r2.xy = -r2.xy * r2.xy + r1.zw;
  r3.y = r2.x;
  r1.zw = max(float2(0,0), r0.xy);
  r4.xyzw = float4(0.5,1,0.5,1) + r0.xxyy;
  r2.xz = -r1.zw * r1.zw + r4.yw;
  r1.zw = r4.xz * r4.xz;
  r3.z = r2.x;
  r0.xy = r1.zw * float2(0.5,0.5) + -r0.xy;
  r3.x = r0.x;
  r2.x = r0.y;
  r3.w = r1.z;
  r2.w = r1.w;
  r2.xyzw = float4(0.444440007,0.444440007,0.444440007,0.222220004) * r2.xyzw;
  r3.xyzw = float4(0.444440007,0.444440007,0.444440007,0.222220004) * r3.xyzw;
  r4.xyzw = r3.xzxz + r3.ywyw;
  r0.xy = r3.yw / r4.zw;
  r0.xy = float2(-1.5,0.5) + r0.xy;
  r3.xy = cb0[6].xx * r0.xy;
  r5.xyzw = r2.xxzz + r2.yyww;
  r0.xy = r2.yw / r5.yw;
  r2.xyzw = r5.xyzw * r4.xyzw;
  r0.xy = float2(-1.5,0.5) + r0.xy;
  r3.zw = cb0[6].yy * r0.xy;
  r4.xyzw = r1.xyxy * cb0[6].xyxy + r3.xzyz;
  r1.xyzw = r1.xyxy * cb0[6].xyxy + r3.xwyw;
  r0.x = t4.SampleCmpLevelZero(s0_s, r4.xy, r0.z).x;
  r0.y = t4.SampleCmpLevelZero(s0_s, r4.zw, r0.z).x;
  r0.y = r2.y * r0.y;
  r0.x = r2.x * r0.x + r0.y;
  r0.y = t4.SampleCmpLevelZero(s0_s, r1.xy, r0.z).x;
  r0.z = t4.SampleCmpLevelZero(s0_s, r1.zw, r0.z).x;
  r0.x = r2.z * r0.y + r0.x;
  r0.x = r2.w * r0.z + r0.x;
  r0.y = 1 + -cb3[24].x;
  r0.x = r0.x * r0.y + cb3[24].x;
  
float4 s = StereoParams.Load(0);
float4 testeo = IniParams.Load(int2(90,0));
v7.x += s.x * (v7.w - s.y) * 0.5;    
  
  r0.yz = v7.xy / v7.ww;
  r0.yz = float2(0.5,0.5) + r0.yz;
  r1.xyzw = t1.Sample(s1_s, r0.yz).xyzw;
  r0.y = cmp(0 < v7.z);
  r0.y = r0.y ? 1.000000 : 0;
  r0.y = r0.y * r1.w;
  r0.z = dot(v7.xyz, v7.xyz);
  r1.xyzw = t2.Sample(s2_s, r0.zz).xyzw;
  r0.y = r1.x * r0.y;
  r0.x = r0.y * r0.x;
  r0.xyz = cb0[11].xyz * r0.xxx;
  r1.xy = float2(-0.5,-0.5) + v1.xy;
  sincos(cb0[16].y, r2.x, r3.x);
  r3.y = r2.x;
  r0.w = dot(r1.xy, r3.xy);
  r0.w = 0.5 + r0.w;
  r0.w = cb1[0].y * 0.200000003 + r0.w;
  r0.w = frac(r0.w);
  r0.w = -0.5 + r0.w;
  r0.w = 3 * abs(r0.w);
  r0.w = log2(r0.w);
  r0.w = cb0[16].x * r0.w;
  r0.w = exp2(r0.w);
  r1.xy = v1.xy * cb0[15].xy + cb0[15].zw;
  r1.xyzw = t0.Sample(s4_s, r1.xy).xyzw;
  r1.x = r1.x * r1.w;
  r1.xy = r1.xy * float2(2,2) + float2(-1,-1);
  r1.w = dot(r1.xy, r1.xy);
  r1.w = min(1, r1.w);
  r1.w = 1 + -r1.w;
  r1.z = sqrt(r1.w);
  r2.xyz = float3(0,0,1) + -r1.xyz;
  r1.xyz = r0.www * r2.xyz + r1.xyz;
  r0.w = dot(r1.xyz, r1.xyz);
  r0.w = rsqrt(r0.w);
  r1.xyz = r1.xyz * r0.www;
  r2.xyz = v6.xyz * r1.yyy;
  r1.xyw = r1.xxx * v5.xyz + r2.xyz;
  r0.w = dot(v4.xyz, v4.xyz);
  r0.w = rsqrt(r0.w);
  r2.xyz = v4.xyz * r0.www;
  r1.xyz = r1.zzz * r2.xyz + r1.xyw;
  r0.w = dot(r1.xyz, r1.xyz);
  r0.w = rsqrt(r0.w);
  r1.xyz = r1.xyz * r0.www;
  r2.xyz = cb2[0].www * -v3.xyz + cb2[0].xyz;
  r0.w = dot(r2.xyz, r2.xyz);
  r0.w = rsqrt(r0.w);
  r2.xyz = r2.xyz * r0.www;
  r0.w = dot(r1.xyz, r2.xyz);
  r0.w = max(0, r0.w);
  r3.xyz = r0.www * r0.xyz;
  r4.xyz = cb1[4].xyz + -v3.xyz;
  r0.w = dot(r4.xyz, r4.xyz);
  r0.w = rsqrt(r0.w);
  r2.xyz = r4.xyz * r0.www + r2.xyz;
  r0.w = dot(r2.xyz, r2.xyz);
  r0.w = rsqrt(r0.w);
  r2.xyz = r2.xyz * r0.www;
  r0.w = dot(r2.xyz, r1.xyz);
  r0.w = max(0, r0.w);
  r0.w = log2(r0.w);
  r1.xy = v1.xy * cb0[14].xy + cb0[14].zw;
  r1.xyzw = t3.Sample(s3_s, r1.xy).xyzw;
  r1.w = r1.w * 10 + 1;
  r1.w = exp2(r1.w);
  r0.w = r1.w * r0.w;
  r0.w = exp2(r0.w);
  r0.xyz = r0.xyz * r0.www;
  o0.xyz = r3.xyz * r1.xyz + r0.xyz;
  o0.w = 0;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.109 on Fri Feb 13 01:32:26 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                 1     zw        1     NONE   float
// TEXCOORD                 2   xy          2     NONE   float
// TEXCOORD                 3   xyzw        3     NONE   float   xyz
// TEXCOORD                 4   xyz         4     NONE   float   xyz
// TEXCOORD                 5   xyz         5     NONE   float   xyz
// TEXCOORD                 6   xyz         6     NONE   float   xyz
// TEXCOORD                 7   xyzw        7     NONE   float   xyzw
// TEXCOORD                 8   xyzw        8     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer CB0[17], immediateIndexed
dcl_constantbuffer CB1[5], immediateIndexed
dcl_constantbuffer CB2[1], immediateIndexed
dcl_constantbuffer CB3[25], immediateIndexed
dcl_sampler s0, mode_comparison
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_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_input_ps linear v1.xy
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyz
dcl_input_ps linear v7.xyzw
dcl_input_ps linear v8.xyzw
dcl_output o0.xyzw
dcl_temps 6
div r0.xyz, v8.xyzx, v8.wwww
mad r1.xy, r0.xyxx, cb0[6].zwzz, l(0.500000, 0.500000, 0.000000, 0.000000)
round_ni r1.xy, r1.xyxx
mad r0.xy, r0.xyxx, cb0[6].zwzz, -r1.xyxx
add r1.zw, -r0.xxxy, l(0.000000, 0.000000, 1.000000, 1.000000)
min r2.xy, r0.xyxx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r2.xy, -r2.xyxx, r2.xyxx, r1.zwzz
mov r3.y, r2.x
max r1.zw, r0.xxxy, l(0.000000, 0.000000, 0.000000, 0.000000)
add r4.xyzw, r0.xxyy, l(0.500000, 1.000000, 0.500000, 1.000000)
mad r2.xz, -r1.zzwz, r1.zzwz, r4.yywy
mul r1.zw, r4.xxxz, r4.xxxz
mov r3.z, r2.x
mad r0.xy, r1.zwzz, l(0.500000, 0.500000, 0.000000, 0.000000), -r0.xyxx
mov r3.x, r0.x
mov r2.x, r0.y
mov r3.w, r1.z
mov r2.w, r1.w
mul r2.xyzw, r2.xyzw, l(0.444440, 0.444440, 0.444440, 0.222220)
mul r3.xyzw, r3.xyzw, l(0.444440, 0.444440, 0.444440, 0.222220)
add r4.xyzw, r3.ywyw, r3.xzxz
div r0.xy, r3.ywyy, r4.zwzz
add r0.xy, r0.xyxx, l(-1.500000, 0.500000, 0.000000, 0.000000)
mul r3.xy, r0.xyxx, cb0[6].xxxx
add r5.xyzw, r2.yyww, r2.xxzz
div r0.xy, r2.ywyy, r5.ywyy
mul r2.xyzw, r4.xyzw, r5.xyzw
add r0.xy, r0.xyxx, l(-1.500000, 0.500000, 0.000000, 0.000000)
mul r3.zw, r0.xxxy, cb0[6].yyyy
mad r4.xyzw, r1.xyxy, cb0[6].xyxy, r3.xzyz
mad r1.xyzw, r1.xyxy, cb0[6].xyxy, r3.xwyw
sample_c_lz r0.x, r4.xyxx, t4.xxxx, s0, r0.z
sample_c_lz r0.y, r4.zwzz, t4.xxxx, s0, r0.z
mul r0.y, r0.y, r2.y
mad r0.x, r2.x, r0.x, r0.y
sample_c_lz r0.y, r1.xyxx, t4.xxxx, s0, r0.z
sample_c_lz r0.z, r1.zwzz, t4.xxxx, s0, r0.z
mad r0.x, r2.z, r0.y, r0.x
mad r0.x, r2.w, r0.z, r0.x
add r0.y, -cb3[24].x, l(1.000000)
mad r0.x, r0.x, r0.y, cb3[24].x
div r0.yz, v7.xxyx, v7.wwww
add r0.yz, r0.yyzy, l(0.000000, 0.500000, 0.500000, 0.000000)
sample r1.xyzw, r0.yzyy, t1.xyzw, s1
lt r0.y, l(0.000000), v7.z
and r0.y, r0.y, l(0x3f800000)
mul r0.y, r1.w, r0.y
dp3 r0.z, v7.xyzx, v7.xyzx
sample r1.xyzw, r0.zzzz, t2.xyzw, s2
mul r0.y, r0.y, r1.x
mul r0.x, r0.x, r0.y
mul r0.xyz, r0.xxxx, cb0[11].xyzx
add r1.xy, v1.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
sincos r2.x, r3.x, cb0[16].y
mov r3.y, r2.x
dp2 r0.w, r1.xyxx, r3.xyxx
add r0.w, r0.w, l(0.500000)
mad r0.w, cb1[0].y, l(0.200000), r0.w
frc r0.w, r0.w
add r0.w, r0.w, l(-0.500000)
mul r0.w, |r0.w|, l(3.000000)
log r0.w, r0.w
mul r0.w, r0.w, cb0[16].x
exp r0.w, r0.w
mad r1.xy, v1.xyxx, cb0[15].xyxx, cb0[15].zwzz
sample r1.xyzw, r1.xyxx, t0.xyzw, s4
mul r1.x, r1.w, r1.x
mad r1.xy, r1.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r1.w, r1.xyxx, r1.xyxx
min r1.w, r1.w, l(1.000000)
add r1.w, -r1.w, l(1.000000)
sqrt r1.z, r1.w
add r2.xyz, -r1.xyzx, l(0.000000, 0.000000, 1.000000, 0.000000)
mad r1.xyz, r0.wwww, r2.xyzx, r1.xyzx
dp3 r0.w, r1.xyzx, r1.xyzx
rsq r0.w, r0.w
mul r1.xyz, r0.wwww, r1.xyzx
mul r2.xyz, r1.yyyy, v6.xyzx
mad r1.xyw, r1.xxxx, v5.xyxz, r2.xyxz
dp3 r0.w, v4.xyzx, v4.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, v4.xyzx
mad r1.xyz, r1.zzzz, r2.xyzx, r1.xywx
dp3 r0.w, r1.xyzx, r1.xyzx
rsq r0.w, r0.w
mul r1.xyz, r0.wwww, r1.xyzx
mad r2.xyz, cb2[0].wwww, -v3.xyzx, cb2[0].xyzx
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r2.xyzx
dp3 r0.w, r1.xyzx, r2.xyzx
max r0.w, r0.w, l(0.000000)
mul r3.xyz, r0.xyzx, r0.wwww
add r4.xyz, -v3.xyzx, cb1[4].xyzx
dp3 r0.w, r4.xyzx, r4.xyzx
rsq r0.w, r0.w
mad r2.xyz, r4.xyzx, r0.wwww, r2.xyzx
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r2.xyzx
dp3 r0.w, r2.xyzx, r1.xyzx
max r0.w, r0.w, l(0.000000)
log r0.w, r0.w
mad r1.xy, v1.xyxx, cb0[14].xyxx, cb0[14].zwzz
sample r1.xyzw, r1.xyxx, t3.xyzw, s3
mad r1.w, r1.w, l(10.000000), l(1.000000)
exp r1.w, r1.w
mul r0.w, r0.w, r1.w
exp r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
mad o0.xyz, r3.xyzx, r1.xyzx, r0.xyzx
mov o0.w, l(0)
ret
// Approximately 0 instruction slots used

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