// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.193 on Thu May 30 20:46:01 2024
//
//
// Buffer Definitions:
//
// cbuffer _Globals
// {
//
//   float4 coord_xy;                   // Index:    5.xyzw           Components:     4
//   float4 constuv[3];                 // Index:    6 7 8            Components:    12
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// IniParams                         texture  float4          1d  120        1
// StereoParams                      texture  float4          2d  125        1
// _Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xy          0     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// P                        0   x           2  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o2.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[9], immediateIndexed
dcl_resource_texture1d (float,float,float,float) t120
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_temps 4
ld_indexable(buffer)(float,float,float,float) r3.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o2.x, r3.z
ld_indexable(texture1d)(float,float,float,float) r0.x, l(3, 0, 0, 0), t120.yxzw
ld_indexable(buffer)(float,float,float,float) r0.yz, l(0, 0, 0, 0), t125.zxyw
mul r0.x, r0.x, r0.z
mad r0.x, -r0.x, l(0.0000268571421), l(1.000000)
mad r0.zw, v0.xxxy, cb0[5].xxxy, cb0[5].zzzw
mad r1.x, r0.y, r0.x, r0.z
mov r1.y, r0.w
mov r1.zw, l(0,0,0,1.000000)
mul r0.xyzw, v0.yyyy, cb0[7].xyzw
mad r0.xyzw, v0.xxxx, cb0[6].xyzw, r0.xyzw
add o1.xyzw, r0.xyzw, cb0[8].xyzw
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 12 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with geo-11 v0.6.193 on Thu May 30 20:46:01 2024
//
// cbuffer _Globals : register(b0)
// {
//   float4 coord_xy : packoffset(c5);
//   float4 constuv[3] : packoffset(c6);
// }
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float2 v0 : POSITION0,
//   out float4 o0 : SV_Position0,
//   out float4 o1 : TEXCOORD0,
//   out uint o2 : P0)
// {
//   float4 r0,r1,r2,r3;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r3.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   o2.x = r3.z;
//   r0.x = IniParams.Load(float4(3,0,0,0)).y;
//   r0.yz = StereoParams.Load(float4(0,0,0,0)).xy;
//   r0.x = r0.z * r0.x;
//   r0.x = -r0.x * 2.68571421e-05 + 1;
//   r0.zw = v0.xy * coord_xy.xy + coord_xy.zw;
//   r1.x = r0.y * r0.x + r0.z;
//   r1.y = r0.w;
//   r1.zw = float2(0,1);
//   r0.xyzw = constuv[1].xyzw * v0.yyyy;
//   r0.xyzw = v0.xxxx * constuv[0].xyzw + r0.xyzw;
//   o1.xyzw = constuv[2].xyzw + r0.xyzw;
//   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;
// }
/////////////////////////////////////////////////////////////////////////////
