// MANUALLY DUMPED [ShaderRegex\ShaderFixes\UE5_masterotaku.ini\VignettePS1] ToM chromatic aberration and vignette.
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.198 on Sun Jul  5 18:33:46 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// TEXCOORD                 3     zw        0     NONE   float     zw
// TEXCOORD                 1   xyz         1     NONE   float   xyz
// TEXCOORD                 2   xyzw        2     NONE   float     zw
// TEXCOORD                 4   xy          3     NONE   float
// SV_POSITION              0   xyzw        4      POS   float   xy
//
//
// 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 CB0[48], immediateIndexed
dcl_constantbuffer CB1[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texture3d (float,float,float,float) t3
dcl_input_ps linear noperspective v0.xy
dcl_input_ps linear noperspective v0.zw
dcl_input_ps linear noperspective v1.xyz
dcl_input_ps linear noperspective v2.zw
dcl_input_ps_siv linear noperspective v4.xy, position
dcl_output o0.xyzw
dcl_temps 16
dcl_resource_texture2d (float,float,float,float) t125
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(texture2d)(float,float,float,float) r4.xyzw, l(0, 0, 0, 0), t125.xyzw

mov r10.xyzw, v0.xyzw
mad r10.z, r4.x, l(-1.0), r10.z

utof r0.xy, cb0[23].xyxx
add r0.xy, -r0.xyxx, v4.xyxx
mul r0.xy, r0.xyxx, cb0[22].zwzz
sample_indexable(texture2d)(float,float,float,float) r0.xyz, r0.xyxx, t0.xyzw, s0
mad r0.xyz, r0.xyzx, cb1[0].xyzx, cb0[39].xyzx
max r1.xy, v0.xyxx, cb0[44].xyxx
min r1.xy, r1.xyxx, cb0[44].zwzz
sample_indexable(texture2d)(float,float,float,float) r1.xyz, r1.xyxx, t2.xyzw, s2
mul r0.xyz, r0.xyzx, r1.xyzx
lt r1.xyzw, l(0.000000, 0.000000, 0.000000, 0.000000), r10.zwzw
lt r2.xyzw, r10.zwzw, l(0.000000, 0.000000, 0.000000, 0.000000)
iadd r1.xyzw, -r1.xyzw, r2.xyzw
itof r1.xyzw, r1.xyzw
add_sat r2.xyzw, |r10.zwzw|, -cb0[47].zzzz
mul r1.xyzw, r1.xyzw, r2.xyzw
mad r1.xyzw, -r1.xyzw, cb0[47].xxyy, v0.zwzw
mad r1.xyzw, r1.xyzw, cb0[45].xyxy, cb0[45].zwzw
mul r1.xyzw, r1.xyzw, cb0[0].zwzw
sample_indexable(texture2d)(float,float,float,float) r2.x, r1.xyxx, t1.xyzw, s1
sample_indexable(texture2d)(float,float,float,float) r2.y, r1.zwzz, t1.xyzw, s1
sample_indexable(texture2d)(float,float,float,float) r2.z, v0.xyxx, t1.xyzw, s1
mad r0.xyz, r2.xyzx, cb0[38].xyzx, r0.xyzx
mul r0.xyz, r0.xyzx, v1.xxxx
mul r1.xy, v1.yzyy, cb0[40].xxxx


ld_indexable(texture1d)(float,float,float,float) r3.xyzw, l(10, 0, 0, 0), t120.xyzw
mad r1.x, r4.x, l(-0.5), r1.x
dp2 r0.w, r1.xyxx, r1.xyxx
add r0.w, r0.w, l(1.000000)
rcp r0.w, r0.w
mul r0.w, r0.w, r0.w

ieq r5.x, r3.z, l(0.0)
if_nz r5.x
mov r0.w, l(1.0)
endif
mad r0.xyz, r0.xyzx, r0.wwww, l(0.00266771927, 0.00266771927, 0.00266771927, 0.000000)
log r0.xyz, r0.xyzx
mad_sat r0.xyz, r0.xyzx, l(0.0714285746, 0.0714285746, 0.0714285746, 0.000000), l(0.610726953, 0.610726953, 0.610726953, 0.000000)
mad r0.xyz, r0.xyzx, l(0.968750, 0.968750, 0.968750, 0.000000), l(0.015625, 0.015625, 0.015625, 0.000000)
sample_indexable(texture3d)(float,float,float,float) r0.xyz, r0.xyzx, t3.xyzw, s3
mad r0.w, v2.w, l(543.309998), v2.z
sincos r0.w, null, r0.w
mul r0.w, r0.w, l(493013.000000)
frc r0.w, r0.w
mad r0.w, r0.w, l(0.00390625000), l(-0.00195312500)
mad o0.xyz, r0.xyzx, l(1.050000, 1.050000, 1.050000, 0.000000), r0.wwww
mul r0.xyz, r0.xyzx, l(1.050000, 1.050000, 1.050000, 0.000000)
dp3_sat o0.w, r0.xyzx, l(0.299000, 0.587000, 0.114000, 0.000000)
ret
// Approximately 0 instruction slots used
