// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.164 on Mon May 11 18:41:12 2026
//
//
// Buffer Definitions:
//
// cbuffer cb4
// {
//
//   float4 cb4[276];                   // Index:    0-275            Components:  1104
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// StereoParams                      texture  float4          2d  125        1
// cb4                               cbuffer      NA          NA    4        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xy
// COLOR                    0   xyzw        2     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 8   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float   xyzw
// COLOR                    1   xyzw        3     NONE   float   xyzw
// TEXCOORD                 9   xyzw        4     NONE   float   xyzw
// TEXCOORD                 0   xyzw        5     NONE   float   xyzw
// TEXCOORD                 1   xyzw        6     NONE   float   xyzw
// TEXCOORD                 2   xyzw        7     NONE   float   xyzw
// TEXCOORD                 3   xyzw        8     NONE   float   xyzw
// TEXCOORD                 4   xyzw        9     NONE   float   xyzw
// TEXCOORD                 5   xyzw       10     NONE   float   xyzw
// TEXCOORD                 6   xyzw       11     NONE   float   xyzw
// TEXCOORD                 7   xyzw       12     NONE   float   xyzw
// P                        0   x          13  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o13.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB4[31], immediateIndexed
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xyzw
dcl_input v1.xy
dcl_input v2.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_output o7.xyzw
dcl_output o8.xyzw
dcl_output o9.xyzw
dcl_output o10.xyzw
dcl_output o11.xyzw
dcl_output o12.xyzw
dcl_temps 5
ld_indexable(buffer)(float,float,float,float) r4.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o13.x, r4.z
ld_indexable(buffer)(float,float,float,float) r0.xy, l(0, 0, 0, 0), t125.xyzw
mul r0.x, r0.y, r0.x
dp4 r1.x, cb4[20].xyzw, v0.xyzw
mad r1.y, r0.x, l(0.999500), r1.x
dp4 r1.z, cb4[21].xyzw, v0.xyzw
dp4 r1.w, cb4[23].xyzw, v0.xyzw
mov r2.xyzw, r1.yzww
mov o1.xyzw, r1.xzww
mul r0.xyz, v2.yyyy, cb4[25].xyzx
mad r0.xyz, cb4[24].xyzx, v2.xxxx, r0.xyzx
mad o2.xyz, cb4[26].xyzx, v2.zzzz, r0.xyzx
mul o2.w, v2.w, cb4[24].w
mov o3.xyzw, l(0,0,0,1.000000)
mov o4.xyzw, l(1.000000,0,0,0)
mov o5.xy, v1.xyxx
mov o5.zw, l(0,0,0,1.000000)
mov o6.xyzw, l(0,0,0,1.000000)
dp4 r0.x, cb4[30].xyzw, v0.xyzw
add r0.x, r0.x, -cb4[27].z
mul_sat o7.x, r0.x, l(0.0588235296)
mov o7.yzw, l(0,0,0,1.000000)
mov o8.xyzw, l(0,0,0,1.000000)
mov o9.xyzw, l(0,0,0,1.000000)
mov o10.xyzw, l(0,0,0,1.000000)
mov o11.xyzw, l(0,0,0,1.000000)
mov o12.xyzw, l(0,0,0,1.000000)
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 o0.xyzw, r2.xyzw
ret
// Approximately 27 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.164 on Mon May 11 18:41:12 2026
//
// cbuffer cb4 : register(b4)
// {
//   float4 cb4[276] : packoffset(c0);
// }
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : POSITION0,
//   float4 v1 : TEXCOORD0,
//   float4 v2 : COLOR0,
//   out float4 o0 : SV_POSITION0,
//   out float4 o1 : TEXCOORD8,
//   out float4 o2 : COLOR0,
//   out float4 o3 : COLOR1,
//   out float4 o4 : TEXCOORD9,
//   out float4 o5 : TEXCOORD0,
//   out float4 o6 : TEXCOORD1,
//   out float4 o7 : TEXCOORD2,
//   out float4 o8 : TEXCOORD3,
//   out float4 o9 : TEXCOORD4,
//   out float4 o10 : TEXCOORD5,
//   out float4 o11 : TEXCOORD6,
//   out float4 o12 : TEXCOORD7,
//   out uint o13 : P0)
// {
//   float4 r0,r1,r2,r3,r4;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r4.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   o13.x = r4.z;
//   r0.xy = StereoParams.Load(float4(0,0,0,0)).xy;
//   r0.x = r0.x * r0.y;
//   r1.x = dot(cb4[20].xyzw, v0.xyzw);
//   r1.y = r0.x * 0.999499977 + r1.x;
//   r1.z = dot(cb4[21].xyzw, v0.xyzw);
//   r1.w = dot(cb4[23].xyzw, v0.xyzw);
//   r2.xyzw = r1.yzww;
//   o1.xyzw = r1.xzww;
//   r0.xyz = cb4[25].xyz * v2.yyy;
//   r0.xyz = cb4[24].xyz * v2.xxx + r0.xyz;
//   o2.xyz = cb4[26].xyz * v2.zzz + r0.xyz;
//   o2.w = cb4[24].w * v2.w;
//   o3.xyzw = float4(0,0,0,1);
//   o4.xyzw = float4(1,0,0,0);
//   o5.xy = v1.xy;
//   o5.zw = float2(0,1);
//   o6.xyzw = float4(0,0,0,1);
//   r0.x = dot(cb4[30].xyzw, v0.xyzw);
//   r0.x = -cb4[27].z + r0.x;
//   o7.x = saturate(0.0588235296 * r0.x);
//   o7.yzw = float3(0,0,1);
//   o8.xyzw = float4(0,0,0,1);
//   o9.xyzw = float4(0,0,0,1);
//   o10.xyzw = float4(0,0,0,1);
//   o11.xyzw = float4(0,0,0,1);
//   o12.xyzw = float4(0,0,0,1);
//   r3.x = r2.w + -r4.y;
//   r3.y = r4.w * r4.x;
//   r3.x = r3.x * r3.y + r2.x;
//   r3.y = cmp(1.000000 != r2.w);
//   r2.x = r3.y ? r3.x : r2.x;
//   o0.xyzw = r2.xyzw;
//   return;
// }
/////////////////////////////////////////////////////////////////////////////
