//sonar
// ---- Created with 3Dmigoto v0.6.164 on Sun May  3 19:41:21 2026
Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

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

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

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

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




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


void main(
  float4 v0 : SV_POSITION0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3,r4,r5;
  uint4 bitmask, uiDest;
  float4 fDest;
  
float4 s = StereoParams.Load(0); 
float4 testeo = IniParams.Load(int2(90,0));  



  r0.xyzw = cb1[45].xyzw * v0.yyyy;
  r0.xyzw = v0.xxxx * cb1[44].xyzw + r0.xyzw;
  r1.xy = asuint(cb0[37].xy);
  r1.xy = v0.xy + -r1.xy;
  r1.xy = cb0[38].zw * r1.xy;
  r1.zw = r1.xy * cb1[130].xy + cb1[129].xy;
  r1.zw = cb1[132].zw * r1.zw;
  r1.z = t0.SampleLevel(s0_s, r1.zw, 0).x;
  r1.z = max(1.00000005e-18, r1.z);
  r0.xyzw = r1.zzzz * cb1[46].xyzw + r0.xyzw;
  r0.xyzw = cb1[47].xyzw + r0.xyzw;
  r0.xyz = r0.xyz / r0.www;
  r0.xyz = -cb1[70].xyz  + r0.xyz;
  r2.xyz = cb1[5].xyw * r0.yyy;
  r2.xyz = r0.xxx * cb1[4].xyw + r2.xyz;
  r2.xyz = r0.zzz * cb1[6].xyw + r2.xyz;
  r2.xyz = cb1[7].xyw + r2.xyz;
  r1.zw = r2.xy / r2.zz;
  r2.xy = float2(1,1) / cb1[130].xy;
  r3.xyzw = r2.xyxy * float4(1,0,-1,0) + r1.zwzw;
  r1.zw = r2.xy * float2(0,1) + r1.zw;
  r4.xyzw = r2.xyxy * float4(1,0,-1,0) + r1.xyxy;
  r2.xy = r2.xy * float2(0,1) + r1.xy;
  r1.xy = r1.xy * cb0[5].xy + cb0[4].xy;
  r5.xyz = t1.Sample(s1_s, r1.xy).xyz;
  r1.xy = r2.xy * cb1[130].xy + cb1[129].xy;
  r1.xy = cb1[132].zw * r1.xy;
  r1.xy = max(cb1[133].xy, r1.xy);
  r1.xy = min(cb1[133].zw, r1.xy);
  r0.w = t0.SampleLevel(s0_s, r1.xy, 0).x;
  r2.xyzw = r4.xyzw * cb1[130].xyxy + cb1[129].xyxy;
  r2.xyzw = cb1[132].zwzw * r2.xyzw;
  r2.xyzw = max(cb1[133].xyxy, r2.xyzw);
  r2.xyzw = min(cb1[133].zwzw, r2.xyzw);
  r1.x = t0.SampleLevel(s0_s, r2.xy, 0).x;
  r1.y = t0.SampleLevel(s0_s, r2.zw, 0).x;
  r2.x = r1.x * cb1[65].z + -cb1[65].w;
  r1.x = r1.x * cb1[65].x + cb1[65].y;
  r2.x = 1 / r2.x;
  r1.x = r2.x + r1.x;
  r2.xy = r3.xy * r1.xx;
 
//r2.x -= s.x * (r1.x - s.y);
 
  r4.xyzw = cb1[49].xyzw * r2.yyyy;
  r2.xyzw = r2.xxxx * cb1[48].xyzw + r4.xyzw;
  r2.xyzw = r1.xxxx * cb1[50].xyzw + r2.xyzw;
  r2.xyzw = cb1[51].xyzw + r2.xyzw;
  r2.xyz = r2.xyz / r2.www;
  r2.xyz = -cb2[1].xyz + r2.xyz;
  r1.x = dot(-r2.xyz, -r2.xyz);
  r1.x = sqrt(r1.x);
  r1.x = r1.x / cb3[8].z;
  //r1.x = floor(r1.x);////
  r2.xyz = -cb2[1].xyz + r0.xyz;
  r2.x = dot(-r2.xyz, -r2.xyz);
  r2.x = sqrt(r2.x);
  r2.x = r2.x / cb3[8].z;
  //r2.x = floor(r2.x);
  r2.y = r1.y * cb1[65].z + -cb1[65].w;
  r1.y = r1.y * cb1[65].x + cb1[65].y;
  r2.y = 1 / r2.y;
  r1.y = r2.y + r1.y;
  r2.yz = r3.zw * r1.yy;
  
//r2.y -= s.x * (r1.y - s.y);
  
  r3.xyzw = cb1[49].xyzw * r2.zzzz;
  r3.xyzw = r2.yyyy * cb1[48].xyzw + r3.xyzw;
  r3.xyzw = r1.yyyy * cb1[50].xyzw + r3.xyzw;
  r3.xyzw = cb1[51].xyzw + r3.xyzw;
  r2.yzw = r3.xyz / r3.www;
  r2.yzw = -cb2[1].xyz + r2.yzw;
  r1.y = dot(-r2.yzw, -r2.yzw);
  r1.y = sqrt(r1.y);
  r1.y = r1.y / cb3[8].z;
  //r1.y = floor(r1.y);
  r1.xy = r2.xx + -r1.xy;
  r1.x = r1.x + r1.y;
  r1.y = r0.w * cb1[65].z + -cb1[65].w;
  r0.w = r0.w * cb1[65].x + cb1[65].y;
  r1.y = 1 / r1.y;
  r0.w = r1.y + r0.w;
  r1.yz = r1.zw * r0.ww;
  
//r1.y -= s.x * (r0.w - s.y);
  
  r3.xyzw = cb1[49].xyzw * r1.zzzz;
  r3.xyzw = r1.yyyy * cb1[48].xyzw + r3.xyzw;
  r3.xyzw = r0.wwww * cb1[50].xyzw + r3.xyzw;
  r3.xyzw = cb1[51].xyzw + r3.xyzw;
  r1.yzw = r3.xyz / r3.www;
  r1.yzw = -cb2[1].xyz + r1.yzw;
  r0.w = dot(-r1.yzw, -r1.yzw);
  r0.w = sqrt(r0.w);
  r0.w = r0.w / cb3[8].z;
  //r0.w = floor(r0.w);
  r0.w = r2.x + -r0.w;
  r0.w = saturate(r1.x + r0.w);
  
//r0.w = 1.0;  // o 0.0, prueba ambos  
    
  r1.xyz = -cb1[67].xyz + r0.xyz;
  r0.x = 1 + -r0.z;
  r0.x = saturate(r0.x * 4.99999987e-06 + -cb3[8].y);
  r0.y = dot(r1.xyz, r1.xyz);
  r0.y = sqrt(r0.y);
  r0.z = -cb3[7].x + cb2[0].x;
  r0.z = max(9.99999975e-06, r0.z);
  r0.z = 1 / r0.z;
  r0.z = -r0.y * r0.z + 1;
  r0.z = saturate(cb3[8].x * r0.z);
  r1.x = max(9.99999975e-06, cb2[0].x);
  r1.x = 1 / r1.x;
  r0.y = -r0.y * r1.x + 1;
  r0.y = saturate(cb3[6].w * r0.y);
  r0.z = r0.y + -r0.z;
  r0.z = max(0, r0.z);
  r0.y = r0.w * r0.y + r0.z;
  r1.xyz = r0.zzz * cb3[3].xyz + cb3[4].xyz;
  r1.xyz = -cb1[135].zzz * r5.xyz + r1.xyz;
  r2.xyz = cb1[135].zzz * r5.xyz;
  r0.x = r0.x * r0.y;
  r0.x = cb2[0].y * r0.x;
  r0.xyz = r0.xxx * r1.xyz + r2.xyz;
  r1.xyz = cb3[5].xyz + -r0.xyz;
  r0.xyz = cb3[8].www * r1.xyz + r0.xyz;
  r0.xyz = max(float3(0,0,0), r0.xyz);
  o0.xyz = cb1[135].yyy * r0.xyz;
  o0.w = 1;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Sun May  3 19:41:21 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[39], immediateIndexed
dcl_constantbuffer CB1[136], immediateIndexed
dcl_constantbuffer CB2[2], immediateIndexed
dcl_constantbuffer CB3[9], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_output o0.xyzw
dcl_temps 6
mul r0.xyzw, v0.yyyy, cb1[45].xyzw
mad r0.xyzw, v0.xxxx, cb1[44].xyzw, r0.xyzw
utof r1.xy, cb0[37].xyxx
add r1.xy, -r1.xyxx, v0.xyxx
mul r1.xy, r1.xyxx, cb0[38].zwzz
mad r1.zw, r1.xxxy, cb1[130].xxxy, cb1[129].xxxy
mul r1.zw, r1.zzzw, cb1[132].zzzw
sample_l_indexable(texture2d)(float,float,float,float) r1.z, r1.zwzz, t0.yzxw, s0, l(0.000000)
max r1.z, r1.z, l(1.000000046E-18)
mad r0.xyzw, r1.zzzz, cb1[46].xyzw, r0.xyzw
add r0.xyzw, r0.xyzw, cb1[47].xyzw
div r0.xyz, r0.xyzx, r0.wwww
add r0.xyz, r0.xyzx, -cb1[70].xyzx
mul r2.xyz, r0.yyyy, cb1[5].xywx
mad r2.xyz, r0.xxxx, cb1[4].xywx, r2.xyzx
mad r2.xyz, r0.zzzz, cb1[6].xywx, r2.xyzx
add r2.xyz, r2.xyzx, cb1[7].xywx
div r1.zw, r2.xxxy, r2.zzzz
div r2.xy, l(1.000000, 1.000000, 1.000000, 1.000000), cb1[130].xyxx
mad r3.xyzw, r2.xyxy, l(1.000000, 0.000000, -1.000000, 0.000000), r1.zwzw
mad r1.zw, r2.xxxy, l(0.000000, 0.000000, 0.000000, 1.000000), r1.zzzw
mad r4.xyzw, r2.xyxy, l(1.000000, 0.000000, -1.000000, 0.000000), r1.xyxy
mad r2.xy, r2.xyxx, l(0.000000, 1.000000, 0.000000, 0.000000), r1.xyxx
mad r1.xy, r1.xyxx, cb0[5].xyxx, cb0[4].xyxx
sample_indexable(texture2d)(float,float,float,float) r5.xyz, r1.xyxx, t1.xyzw, s1
mad r1.xy, r2.xyxx, cb1[130].xyxx, cb1[129].xyxx
mul r1.xy, r1.xyxx, cb1[132].zwzz
max r1.xy, r1.xyxx, cb1[133].xyxx
min r1.xy, r1.xyxx, cb1[133].zwzz
sample_l_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t0.yzwx, s0, l(0.000000)
mad r2.xyzw, r4.xyzw, cb1[130].xyxy, cb1[129].xyxy
mul r2.xyzw, r2.xyzw, cb1[132].zwzw
max r2.xyzw, r2.xyzw, cb1[133].xyxy
min r2.xyzw, r2.xyzw, cb1[133].zwzw
sample_l_indexable(texture2d)(float,float,float,float) r1.x, r2.xyxx, t0.xyzw, s0, l(0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r1.y, r2.zwzz, t0.yxzw, s0, l(0.000000)
mad r2.x, r1.x, cb1[65].z, -cb1[65].w
mad r1.x, r1.x, cb1[65].x, cb1[65].y
div r2.x, l(1.000000, 1.000000, 1.000000, 1.000000), r2.x
add r1.x, r1.x, r2.x
mul r2.xy, r1.xxxx, r3.xyxx
mul r4.xyzw, r2.yyyy, cb1[49].xyzw
mad r2.xyzw, r2.xxxx, cb1[48].xyzw, r4.xyzw
mad r2.xyzw, r1.xxxx, cb1[50].xyzw, r2.xyzw
add r2.xyzw, r2.xyzw, cb1[51].xyzw
div r2.xyz, r2.xyzx, r2.wwww
add r2.xyz, r2.xyzx, -cb2[1].xyzx
dp3 r1.x, -r2.xyzx, -r2.xyzx
sqrt r1.x, r1.x
div r1.x, r1.x, cb3[8].z
round_ni r1.x, r1.x
add r2.xyz, r0.xyzx, -cb2[1].xyzx
dp3 r2.x, -r2.xyzx, -r2.xyzx
sqrt r2.x, r2.x
div r2.x, r2.x, cb3[8].z
round_ni r2.x, r2.x
mad r2.y, r1.y, cb1[65].z, -cb1[65].w
mad r1.y, r1.y, cb1[65].x, cb1[65].y
div r2.y, l(1.000000, 1.000000, 1.000000, 1.000000), r2.y
add r1.y, r1.y, r2.y
mul r2.yz, r1.yyyy, r3.zzwz
mul r3.xyzw, r2.zzzz, cb1[49].xyzw
mad r3.xyzw, r2.yyyy, cb1[48].xyzw, r3.xyzw
mad r3.xyzw, r1.yyyy, cb1[50].xyzw, r3.xyzw
add r3.xyzw, r3.xyzw, cb1[51].xyzw
div r2.yzw, r3.xxyz, r3.wwww
add r2.yzw, r2.yyzw, -cb2[1].xxyz
dp3 r1.y, -r2.yzwy, -r2.yzwy
sqrt r1.y, r1.y
div r1.y, r1.y, cb3[8].z
round_ni r1.y, r1.y
add r1.xy, -r1.xyxx, r2.xxxx
add r1.x, r1.y, r1.x
mad r1.y, r0.w, cb1[65].z, -cb1[65].w
mad r0.w, r0.w, cb1[65].x, cb1[65].y
div r1.y, l(1.000000, 1.000000, 1.000000, 1.000000), r1.y
add r0.w, r0.w, r1.y
mul r1.yz, r0.wwww, r1.zzwz
mul r3.xyzw, r1.zzzz, cb1[49].xyzw
mad r3.xyzw, r1.yyyy, cb1[48].xyzw, r3.xyzw
mad r3.xyzw, r0.wwww, cb1[50].xyzw, r3.xyzw
add r3.xyzw, r3.xyzw, cb1[51].xyzw
div r1.yzw, r3.xxyz, r3.wwww
add r1.yzw, r1.yyzw, -cb2[1].xxyz
dp3 r0.w, -r1.yzwy, -r1.yzwy
sqrt r0.w, r0.w
div r0.w, r0.w, cb3[8].z
round_ni r0.w, r0.w
add r0.w, -r0.w, r2.x
add_sat r0.w, r0.w, r1.x
add r1.xyz, r0.xyzx, -cb1[67].xyzx
add r0.x, -r0.z, l(1.000000)
mad_sat r0.x, r0.x, l(0.000005), -cb3[8].y
dp3 r0.y, r1.xyzx, r1.xyzx
sqrt r0.y, r0.y
add r0.z, cb2[0].x, -cb3[7].x
max r0.z, r0.z, l(0.000010)
div r0.z, l(1.000000, 1.000000, 1.000000, 1.000000), r0.z
mad r0.z, -r0.y, r0.z, l(1.000000)
mul_sat r0.z, r0.z, cb3[8].x
max r1.x, cb2[0].x, l(0.000010)
div r1.x, l(1.000000, 1.000000, 1.000000, 1.000000), r1.x
mad r0.y, -r0.y, r1.x, l(1.000000)
mul_sat r0.y, r0.y, cb3[6].w
add r0.z, -r0.z, r0.y
max r0.z, r0.z, l(0.000000)
mad r0.y, r0.w, r0.y, r0.z
mad r1.xyz, r0.zzzz, cb3[3].xyzx, cb3[4].xyzx
mad r1.xyz, -cb1[135].zzzz, r5.xyzx, r1.xyzx
mul r2.xyz, r5.xyzx, cb1[135].zzzz
mul r0.x, r0.y, r0.x
mul r0.x, r0.x, cb2[0].y
mad r0.xyz, r0.xxxx, r1.xyzx, r2.xyzx
add r1.xyz, -r0.xyzx, cb3[5].xyzx
mad r0.xyz, cb3[8].wwww, r1.xyzx, r0.xyzx
max r0.xyz, r0.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mul o0.xyz, r0.xyzx, cb1[135].yyyy
mov o0.w, l(1.000000)
ret
// Approximately 0 instruction slots used

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