// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.90 on Wed Dec 21 13:38:17 2022
//
//
// Buffer Definitions:
//
// cbuffer cb2
// {
//
//   float4 cb2[3];                     // Index:    0 1 2            Components:    12
//
// }
//
// cbuffer cb1
// {
//
//   float4 cb1[40];                    // Index:    0-39             Components:   160
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// StereoParams                      texture  float4          2d  125        1
// cb1                               cbuffer      NA          NA    1        1
// cb2                               cbuffer      NA          NA    2        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xyz
// COLOR                    0   xyzw        1     NONE   float
// TEXCOORD                 0   xyzw        2     NONE   float   xy
// TEXCOORD                 1   xyzw        3     NONE   float   xy
// TEXCOORD                 2   xy          4     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// SV_Position              0   xyzw        1      POS   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 CB2[3], immediateIndexed
dcl_constantbuffer CB1[40], immediateIndexed
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xyz
dcl_input v2.xy
dcl_input v3.xy
dcl_input v4.xy
dcl_output o0.xy
dcl_output_siv o1.xyzw, position
dcl_temps 6
ld_indexable(buffer)(float,float,float,float) r5.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o2.x, r5.z
mov o0.xy, v4.xyxx
ld_indexable(buffer)(float,float,float,float) r0.x, l(0, 0, 0, 0), t125.xyzw
dp2 r0.y, v2.yxyy, v3.xyxx
mov r1.xyz, v0.xyzx
mov r1.w, l(1.000000)
dp4 r2.x, r1.xyzw, cb2[0].xyzw
dp4 r2.y, r1.xyzw, cb2[1].xyzw
dp4 r2.z, r1.xyzw, cb2[2].xyzw
mad r0.yzw, cb1[37].xxyz, r0.yyyy, r2.xxyz
mul r1.x, v2.y, v3.y
mad r1.x, v3.x, v2.x, -r1.x
mad r1.xyz, cb1[39].xyzx, r1.xxxx, r0.yzwy
mov r1.w, l(1.000000)
dp4 r0.y, r1.xyzw, cb1[0].xyzw
dp4 r0.z, r1.xyzw, cb1[3].xyzw
mad r3.x, r0.x, r0.z, r0.y
mov r3.w, r0.z
dp4 r3.y, r1.xyzw, cb1[1].xyzw
dp4 r3.z, r1.xyzw, cb1[2].xyzw
add r4.x, -r5.y, r3.w
mul r4.y, r5.x, r5.w
mad r4.x, r4.x, r4.y, r3.x
ne r4.y, l(1.000000), r3.w
movc r3.x, r4.y, r4.x, r3.x
mov o1.xyzw, r3.xyzw
ret
// Approximately 20 instruction slots used
