// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.89 on Wed Dec 21 12:57:04 2022
//
//
// Buffer Definitions:
//
// cbuffer Constants
// {
//
//   float4 cxadd;                      // Index:    0.xyzw           Components:     4
//   float4 cxmul;                      // Index:    1.xyzw           Components:     4
//   float4 mvp[4];                     // Index:    2 3 4 5          Components:    16
//   float4 texgen[2];                  // Index:    6 7              Components:     8
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// IniParams                         texture  float4          1d  120        1
// StereoParams                      texture  float4          2d  125        1
// Constants                         cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// COLOR                    0   xyzw        0     NONE   float   xyzw
// SV_Position              0   xyzw        1     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// COLOR                    0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xy          3     NONE   float   xy
// SV_Position              0   xyzw        4      POS   float   xyzw
// P                        0   x           5  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o5.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[8], immediateIndexed
dcl_resource_texture1d (float,float,float,float) t120
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xy
dcl_output_siv o4.xyzw, position
dcl_temps 5
ld_indexable(buffer)(float,float,float,float) r4.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o5.x, r4.z
mov o0.xyzw, v0.xyzw
mov o1.xyzw, cb0[0].xyzw
mov o2.xyzw, cb0[1].xyzw
dp4 o3.x, v1.xyzw, cb0[6].xyzw
dp4 o3.y, v1.xyzw, cb0[7].xyzw
ld_indexable(buffer)(float,float,float,float) r0.xy, l(0, 0, 0, 0), t125.xyzw
dp4 r0.z, v1.xyzw, cb0[2].xyzw
dp4 r0.w, v1.xyzw, cb0[5].xyzw
add r0.y, -r0.y, r0.w
mad r0.y, -r0.x, r0.y, r0.z
ne r1.x, r0.w, l(1.000000)
movc r0.y, r1.x, r0.y, r0.z
ld_indexable(texture1d)(float,float,float,float) r1.x, l(10, 0, 0, 0), t120.xyzw
mul r0.x, r0.x, r1.x
mad r0.x, r0.x, r0.w, r0.y
mov r2.w, r0.w
ld_indexable(texture1d)(float,float,float,float) r0.y, l(3, 0, 0, 0), t120.xwyz
ne r0.y, r0.y, l(10.000000)
movc r2.x, r0.y, r0.x, r0.z
dp4 r2.y, v1.xyzw, cb0[3].xyzw
dp4 r2.z, v1.xyzw, cb0[4].xyzw
add r3.x, -r4.y, r2.w
mul r3.y, r4.x, r4.w
mad r3.x, r3.x, r3.y, r2.x
ne r3.y, l(1.000000), r2.w
movc r2.x, r3.y, r3.x, r2.x
mov o4.xyzw, r2.xyzw
ret
// Approximately 22 instruction slots used
