// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.163 on Thu Sep 10 19:46:07 2026
//
//
// Buffer Definitions:
//
// cbuffer cb0
// {
//
//   float4 cb0[9];                     // Offset:    0 Size:   144
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// StereoParams                      texture  float4          2d  125        1
// cb0                               cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// COLOR                    0   xyzw        0     NONE   float   xyzw
// POSITION                 0   xyzw        1     NONE     int   xy
// TEXCOORD                 0   xyzw        2     NONE     int   xy
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
// TEXCOORD                 2   xyzw        4     NONE   float   xyzw
// TEXCOORD                 4   xyzw        5     NONE   float   xyz
// TEXCOORD                 5   xyzw        6     NONE   float   xyz
// TEXCOORD                 7   xyzw        7     NONE   float   xyz
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xy
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
// TEXCOORD                 2   xyzw        4     NONE   float   xyzw
// TEXCOORD                 3   xyzw        5     NONE   float   xyzw
// TEXCOORD                 4   xyzw        6     NONE   float   xyzw
// P                        0   x           7  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o7.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[9], immediateIndexed
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xyzw
dcl_input v1.xy
dcl_input v2.xy
dcl_input v3.xyzw
dcl_input v4.xyzw
dcl_input v5.xyz
dcl_input v6.xyz
dcl_input v7.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_temps 4
ld_indexable(buffer)(float,float,float,float) r3.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o7.x, r3.z
itof r0.xy, v1.xyxx
mul r0.xy, r0.xyxx, v3.xyxx
mul r0.yzw, r0.yyyy, v6.xxyz
mad r0.xyz, r0.xxxx, v5.xyzx, r0.yzwy
add r0.xyz, r0.xyzx, v7.xyzx
ld_indexable(buffer)(float,float,float,float) r0.w, l(0, 0, 0, 0), t125.yzwx
add r1.x, r0.w, r0.x
mov r1.yz, r0.yyzy
mov r1.w, l(1.000000)
mul o1.xyzw, v0.wzyx, v4.xyzw
itof r0.xy, v2.xyxx
mul r0.xy, r0.xyxx, v3.zwzz
mad o2.xy, r0.xyxx, cb0[8].xyxx, cb0[8].zwzz
mov o3.x, cb0[2].x
mov o3.y, cb0[3].x
mov o3.z, cb0[4].x
mov o3.w, cb0[5].x
mov o4.x, cb0[2].y
mov o4.y, cb0[3].y
mov o4.z, cb0[4].y
mov o4.w, cb0[5].y
mov o5.x, cb0[2].z
mov o5.y, cb0[3].z
mov o5.z, cb0[4].z
mov o5.w, cb0[5].z
mov o6.x, cb0[2].w
mov o6.y, cb0[3].w
mov o6.z, cb0[4].w
mov o6.w, cb0[5].w
add r2.x, -r3.y, r1.w
mul r2.y, r3.x, r3.w
mad r2.x, r2.x, r2.y, r1.x
ne r2.y, l(1.000000), r1.w
movc r1.x, r2.y, r2.x, r1.x
mov o0.xyzw, r1.xyzw
ret
// Approximately 30 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.163 on Thu Sep 10 19:46:07 2026
//
// cbuffer cb0 : register(b0)
// {
//   float4 cb0[9] : packoffset(c0);
// }
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : COLOR0,
//   int4 v1 : POSITION0,
//   int4 v2 : TEXCOORD0,
//   float4 v3 : TEXCOORD1,
//   float4 v4 : TEXCOORD2,
//   float4 v5 : TEXCOORD4,
//   float4 v6 : TEXCOORD5,
//   float4 v7 : TEXCOORD7,
//   out float4 o0 : SV_POSITION0,
//   out float4 o1 : COLOR0,
//   out float4 o2 : TEXCOORD0,
//   out float4 o3 : TEXCOORD1,
//   out float4 o4 : TEXCOORD2,
//   out float4 o5 : TEXCOORD3,
//   out float4 o6 : TEXCOORD4,
//   out uint o7 : P0)
// {
//   float4 r0,r1,r2,r3;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r3.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   o7.x = r3.z;
//   r0.xy = (int2)v1.xy;
//   r0.xy = v3.xy * r0.xy;
//   r0.yzw = v6.xyz * r0.yyy;
//   r0.xyz = r0.xxx * v5.xyz + r0.yzw;
//   r0.xyz = v7.xyz + r0.xyz;
//   r0.w = StereoParams.Load(float4(0,0,0,0)).x;
//   r1.x = r0.x + r0.w;
//   r1.yz = r0.yz;
//   r1.w = 1;
//   o1.xyzw = v4.xyzw * v0.wzyx;
//   r0.xy = (int2)v2.xy;
//   r0.xy = v3.zw * r0.xy;
//   o2.xy = r0.xy * cb0[8].xy + cb0[8].zw;
//   o3.x = cb0[2].x;
//   o3.y = cb0[3].x;
//   o3.z = cb0[4].x;
//   o3.w = cb0[5].x;
//   o4.x = cb0[2].y;
//   o4.y = cb0[3].y;
//   o4.z = cb0[4].y;
//   o4.w = cb0[5].y;
//   o5.x = cb0[2].z;
//   o5.y = cb0[3].z;
//   o5.z = cb0[4].z;
//   o5.w = cb0[5].z;
//   o6.x = cb0[2].w;
//   o6.y = cb0[3].w;
//   o6.z = cb0[4].w;
//   o6.w = cb0[5].w;
//   r2.x = r1.w + -r3.y;
//   r2.y = r3.w * r3.x;
//   r2.x = r2.x * r2.y + r1.x;
//   r2.y = cmp(1.000000 != r1.w);
//   r1.x = r2.y ? r2.x : r1.x;
//   o0.xyzw = r1.xyzw;
//   return;
// }
/////////////////////////////////////////////////////////////////////////////
