// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.163 on Thu Sep 10 22:01:12 2026
//
//
// Buffer Definitions:
//
// cbuffer cb0
// {
//
//   float4 cb0[7];                     // Offset:    0 Size:   112
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// IniParams                         texture  float4          1d  120        1
// 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   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xy
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
// TEXCOORD                 2   xyzw        4     NONE   float   xyzw
// TEXCOORD                 4   xyzw        5     NONE     int   xyzw
// TEXCOORD                 5   xyzw        6     NONE   float   xyz
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// COLOR                    2   x           1     NONE   float   x
// TEXCOORD                 0    yz         1     NONE   float    yz
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
// TEXCOORD                 4   xyzw        4     NONE     int   xyzw
// TEXCOORD                 5   xyzw        5     NONE   float   xyzw
// TEXCOORD                 7   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[7], 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_input v2.xy
dcl_input v3.xyzw
dcl_input v4.xyzw
dcl_input v5.xyzw
dcl_input v6.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.x
dcl_output o1.yz
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_temps 7
ld_indexable(buffer)(float,float,float,float) r6.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o7.x, r6.z
ld_indexable(texture1d)(float,float,float,float) r0.x, l(3, 0, 0, 0), t120.wxyz
eq r0.x, r0.x, l(22.000000)
ld_indexable(texture1d)(float,float,float,float) r0.y, l(10, 0, 0, 0), t120.xzyw
eq r0.y, r0.y, l(1.000000)
ld_indexable(buffer)(float,float,float,float) r0.zw, l(0, 0, 0, 0), t125.zwxy
dp4 r1.x, v1.xyzw, cb0[0].xyzw
mad r2.x, r0.z, r0.w, r1.x
dp4 r2.y, v1.xyzw, cb0[1].xyzw
dp4 r2.z, v1.xyzw, cb0[2].xyzw
dp4 r2.w, v1.xyzw, cb0[3].xyzw
movc r3.xyzw, r0.yyyy, l(0,0,0,0), r2.xyzw
mov r1.yzw, r2.yyzw
mad o1.x, r1.w, cb0[4].x, cb0[4].y
movc r4.xyzw, r0.xxxx, r3.xyzw, r1.xyzw
mov o5.w, r1.w
mad o1.yz, v2.xxyx, cb0[6].xxyx, cb0[6].zzwz
mov o2.xyzw, v3.xyzw
mov o3.xyzw, v4.xyzw
mov o4.xyzw, v5.xyzw
mov o5.xyz, v6.xyzx
mul o6.xyzw, v0.xyzw, cb0[5].xyzw
add r5.x, -r6.y, r4.w
mul r5.y, r6.x, r6.w
mad r5.x, r5.x, r5.y, r4.x
ne r5.y, l(1.000000), r4.w
movc r4.x, r5.y, r5.x, r4.x
mov o0.xyzw, r4.xyzw
ret
// Approximately 22 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.163 on Thu Sep 10 22:01:12 2026
//
// cbuffer cb0 : register(b0)
// {
//   float4 cb0[7] : packoffset(c0);
// }
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : COLOR0,
//   float4 v1 : POSITION0,
//   float4 v2 : TEXCOORD0,
//   float4 v3 : TEXCOORD1,
//   float4 v4 : TEXCOORD2,
//   int4 v5 : TEXCOORD4,
//   float4 v6 : TEXCOORD5,
//   out float4 o0 : SV_POSITION0,
//   out float o1 : COLOR2,
//   out float2 p1 : TEXCOORD0,
//   out float4 o2 : TEXCOORD1,
//   out float4 o3 : TEXCOORD2,
//   out int4 o4 : TEXCOORD4,
//   out float4 o5 : TEXCOORD5,
//   out float4 o6 : TEXCOORD7,
//   out uint o7 : P0)
// {
//   float4 r0,r1,r2,r3,r4,r5,r6;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r6.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   o7.x = r6.z;
//   r0.x = IniParams.Load(float4(3,0,0,0)).w;
//   r0.x = cmp(r0.x == 22.000000);
//   r0.y = IniParams.Load(float4(10,0,0,0)).z;
//   r0.y = cmp(r0.y == 1.000000);
//   r0.zw = StereoParams.Load(float4(0,0,0,0)).xy;
//   r1.x = dot(v1.xyzw, cb0[0].xyzw);
//   r2.x = r0.z * r0.w + r1.x;
//   r2.y = dot(v1.xyzw, cb0[1].xyzw);
//   r2.z = dot(v1.xyzw, cb0[2].xyzw);
//   r2.w = dot(v1.xyzw, cb0[3].xyzw);
//   r3.xyzw = r0.yyyy ? float4(0,0,0,0) : r2.xyzw;
//   r1.yzw = r2.yzw;
//   o1.x = r1.w * cb0[4].x + cb0[4].y;
//   r4.xyzw = r0.xxxx ? r3.xyzw : r1.xyzw;
//   o5.w = r1.w;
//   p1.xy = v2.xy * cb0[6].xy + cb0[6].zw;
//   o2.xyzw = v3.xyzw;
//   o3.xyzw = v4.xyzw;
//   o4.xyzw = v5.xyzw;
//   o5.xyz = v6.xyz;
//   o6.xyzw = cb0[5].xyzw * v0.xyzw;
//   r5.x = r4.w + -r6.y;
//   r5.y = r6.w * r6.x;
//   r5.x = r5.x * r5.y + r4.x;
//   r5.y = cmp(1.000000 != r4.w);
//   r4.x = r5.y ? r5.x : r4.x;
//   o0.xyzw = r4.xyzw;
//   return;
// }
/////////////////////////////////////////////////////////////////////////////
