// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.198 on Mon Sep 29 00:41:29 2025
//
//
// Buffer Definitions:
//
// cbuffer cb2
// {
//
//   float4 cb2[4];                     // Index:    0 1 2 3          Components:    16
//
// }
//
// cbuffer cb1
// {
//
//   float4 cb1[151];                   // Index:    0-150            Components:   604
//
// }
//
// cbuffer cb0
// {
//
//   float4 cb0;                        // Index:    0.xyzw           Components:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// s0_s                              sampler      NA          NA    0        1
// t0                                texture  float4          2d    0        1
// StereoParams                      texture  float4          2d  125        1
// cb0                               cbuffer      NA          NA    0        1
// cb1                               cbuffer      NA          NA    1        1
// cb2                               cbuffer      NA          NA    2        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy
// TEXCOORD                 0   xyzw        1     NONE   float
// TEXCOORD                 1   xyzw        2     NONE   float
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB2[4], immediateIndexed
dcl_constantbuffer CB1[151], immediateIndexed
dcl_constantbuffer CB0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_buffer (float,float,float,float) t125
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_output o0.xyzw
dcl_temps 3
div r0.x, cb1[150].y, cb2[2].x
ge r0.y, r0.x, -r0.x
frc r0.x, |r0.x|
movc r0.x, r0.y, r0.x, -r0.x
ld_indexable(buffer)(float,float,float,float) r0.y, l(0, 0, 0, 0), t125.yxzw
utof r0.zw, cb0[0].xxxy
add r0.zw, -r0.zzzw, v0.xxxy
mul r1.yz, r0.zzwz, cb0[0].zzwz
mad r0.z, -r0.w, cb0[0].w, l(1.000000)
mad r1.x, -r0.y, l(0.500000), r1.y
mad r2.xyzw, r1.xzxz, l(1.200000, 0.300000, 1.000000, 0.200000), l(-0.500000, -1.000000, -0.500000, -1.000000)
mad r0.yw, r1.xxxz, l(0.000000, 3.000000, 0.000000, 2.000000), l(0.000000, -0.500000, 0.000000, -1.000000)
dp2 r1.x, r2.xyxx, cb2[1].zwzz
mad r1.x, cb1[150].y, l(-3.000000), r1.x
mad r1.y, cb2[2].x, r0.x, r1.x
mul r0.x, r0.x, cb2[2].x
dp2 r1.x, r2.xyxx, cb2[1].xyxx
add r1.xy, r1.xyxx, l(0.500000, 1.000000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r1.xy, r1.xyxx, t0.xyzw, s0
add r1.y, -r1.x, r1.y
mad r1.x, r0.x, r1.y, r1.x
log r1.y, r1.x
ge r1.x, l(2.980232949E-08), r1.x
mul r1.y, r1.y, cb2[2].y
exp r1.y, r1.y
mul r1.y, r1.y, l(1.200000)
movc r1.x, r1.x, l(0), r1.y
dp2 r1.y, r2.zwzz, cb2[1].zwzz
dp2 r2.x, r2.zwzz, cb2[1].xyxx
mad r2.y, cb1[150].y, l(-2.200000), r1.y
add r1.yz, r2.xxyx, cb2[2].zzwz
add r1.yz, r1.yyzy, l(0.000000, 0.500000, 1.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r1.yz, r1.yzyy, t0.xyzw, s0
add r1.z, -r1.y, r1.z
mad r1.y, r0.x, r1.z, r1.y
ge r1.z, l(2.980232949E-08), r1.y
log r1.y, r1.y
mul r1.y, r1.y, l(1.200000)
exp r1.y, r1.y
movc r1.y, r1.z, l(0), r1.y
add r1.x, r1.y, r1.x
dp2 r1.y, r0.ywyy, cb2[1].zwzz
dp2 r2.x, r0.ywyy, cb2[1].xyxx
mad r2.y, cb1[150].y, l(-4.000000), r1.y
add r0.yw, r2.xxxy, cb2[3].xxxy
add r0.yw, r0.yyyw, l(0.000000, 0.500000, 0.000000, 1.000000)
sample_indexable(texture2d)(float,float,float,float) r0.yw, r0.ywyy, t0.xywz, s0
add r0.w, -r0.y, r0.w
mad r0.x, r0.x, r0.w, r0.y
mad r0.x, r0.x, l(0.700000), r1.x
log r0.y, r0.z
ge r0.z, l(2.980232949E-08), r0.z
mul r0.y, r0.y, l(0.900000)
exp r0.y, r0.y
movc r0.y, r0.z, l(0), r0.y
mul_sat o0.w, r0.y, r0.x
add r0.xyz, cb2[0].yzwy, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r0.xyz, cb2[0].xxxx, r0.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
max o0.xyz, r0.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
ret
// Approximately 60 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with geo-11 v0.6.198 on Mon Sep 29 00:41:29 2025
//
// cbuffer cb2 : register(b2)
// {
//   float4 cb2[4] : packoffset(c0);
// }
//
// cbuffer cb1 : register(b1)
// {
//   float4 cb1[151] : packoffset(c0);
// }
//
// cbuffer cb0 : register(b0)
// {
//   float4 cb0 : packoffset(c0);
// }
//
// SamplerState s0_s_s : register(s0);
// Texture2D<float4> t0 : register(t0);
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : SV_POSITION0,
//   float4 v1 : TEXCOORD0,
//   float4 v2 : TEXCOORD1,
//   out float4 o0 : SV_Target0)
// {
//   float4 r0,r1,r2;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r0.x = cb1[150].y / cb2[2].x;
//   r0.y = cmp(r0.x >= -r0.x);
//   r0.x = frac(abs(r0.x));
//   r0.x = r0.y ? r0.x : -r0.x;
//   r0.y = StereoParams.Load(float4(0,0,0,0)).x;
//   r0.zw = asuint(cb0.xy);
//   r0.zw = v0.xy + -r0.zw;
//   r1.yz = cb0.zw * r0.zw;
//   r0.z = -r0.w * cb0.w + 1;
//   r1.x = -r0.y * 0.5 + r1.y;
//   r2.xyzw = r1.xzxz * float4(1.20000005,0.300000012,1,0.200000003) + float4(-0.5,-1,-0.5,-1);
//   r0.yw = r1.xz * float2(3,2) + float2(-0.5,-1);
//   r1.x = dot(r2.xy, cb2[1].zw);
//   r1.x = cb1[150].y * -3 + r1.x;
//   r1.y = cb2[2].x * r0.x + r1.x;
//   r0.x = cb2[2].x * r0.x;
//   r1.x = dot(r2.xy, cb2[1].xy);
//   r1.xy = float2(0.5,1) + r1.xy;
//   r1.xy = t0.Sample(s0_s_s, r1.xy).xy;
//   r1.y = r1.y + -r1.x;
//   r1.x = r0.x * r1.y + r1.x;
//   r1.y = log2(r1.x);
//   r1.x = cmp(2.98023295e-08 >= r1.x);
//   r1.y = cb2[2].y * r1.y;
//   r1.y = exp2(r1.y);
//   r1.y = 1.20000005 * r1.y;
//   r1.x = r1.x ? 0 : r1.y;
//   r1.y = dot(r2.zw, cb2[1].zw);
//   r2.x = dot(r2.zw, cb2[1].xy);
//   r2.y = cb1[150].y * -2.20000005 + r1.y;
//   r1.yz = cb2[2].zw + r2.xy;
//   r1.yz = float2(0.5,1) + r1.yz;
//   r1.yz = t0.Sample(s0_s_s, r1.yz).yz;
//   r1.z = r1.z + -r1.y;
//   r1.y = r0.x * r1.z + r1.y;
//   r1.z = cmp(2.98023295e-08 >= r1.y);
//   r1.y = log2(r1.y);
//   r1.y = 1.20000005 * r1.y;
//   r1.y = exp2(r1.y);
//   r1.y = r1.z ? 0 : r1.y;
//   r1.x = r1.x + r1.y;
//   r1.y = dot(r0.yw, cb2[1].zw);
//   r2.x = dot(r0.yw, cb2[1].xy);
//   r2.y = cb1[150].y * -4 + r1.y;
//   r0.yw = cb2[3].xy + r2.xy;
//   r0.yw = float2(0.5,1) + r0.yw;
//   r0.yw = t0.Sample(s0_s_s, r0.yw).yz;
//   r0.w = r0.w + -r0.y;
//   r0.x = r0.x * r0.w + r0.y;
//   r0.x = r0.x * 0.699999988 + r1.x;
//   r0.y = log2(r0.z);
//   r0.z = cmp(2.98023295e-08 >= r0.z);
//   r0.y = 0.899999976 * r0.y;
//   r0.y = exp2(r0.y);
//   r0.y = r0.z ? 0 : r0.y;
//   o0.w = saturate(r0.x * r0.y);
//   r0.xyz = float3(-1,-1,-1) + cb2[0].yzw;
//   r0.xyz = cb2[0].xxx * r0.xyz + float3(1,1,1);
//   o0.xyz = max(float3(0,0,0), r0.xyz);
//   return;
// }
/////////////////////////////////////////////////////////////////////////////
