// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.89 on Mon Dec 26 15:08:31 2022
//
//
// Buffer Definitions:
//
// cbuffer cb1
// {
//
//   float4 cb1[136];                   // Index:    0-135            Components:   544
//
// }
//
// cbuffer cb0
// {
//
//   float4 cb0[71];                    // Index:    0-70             Components:   284
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// s0_s                              sampler      NA          NA    0        1
// s1_s                              sampler      NA          NA    1        1
// s2_s                              sampler      NA          NA    2        1
// s3_s                              sampler      NA          NA    3        1
// t0                                texture  float4          2d    0        1
// t1                                texture  float4          2d    1        1
// t2                                texture  float4          2d    2        1
// t3                                texture  float4          3d    3        1
// cb0                               cbuffer      NA          NA    0        1
// cb1                               cbuffer      NA          NA    1        1
//
//
//
// 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   xyzw        1     NONE   float   x
// TEXCOORD                 2   xyzw        2     NONE   float     zw
// TEXCOORD                 4   xy          3     NONE   float
// SV_POSITION              0   xyzw        4      POS   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 CB1[136], immediateIndexed
dcl_constantbuffer CB0[69], 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.x
dcl_input_ps linear noperspective v2.zw
dcl_output o0.xyzw
dcl_temps 3
mad r0.xy, cb0[58].zwzz, v0.xyxx, cb0[59].xyxx
max r0.xy, r0.xyxx, cb0[50].zwzz
min r0.xy, r0.xyxx, cb0[51].xyxx
sample_indexable(texture2d)(float,float,float,float) r0.xyz, r0.xyxx, t1.xyzw, s1
mul r0.xyz, r0.xyzx, cb1[135].zzzz
mad r1.xy, v0.zwzz, cb0[67].zwzz, cb0[67].xyxx
mad r1.zw, r1.xxxy, l(0.000000, 0.000000, 0.500000, -0.500000), l(0.000000, 0.000000, 0.500000, 0.500000)
mad r1.xy, r1.xyxx, cb0[68].zwzz, cb0[68].xyxx
mad r1.xy, r1.xyxx, cb0[38].zwzz, cb0[39].xyxx
mul r1.xy, r1.xyxx, cb0[38].xyxx
sample_indexable(texture2d)(float,float,float,float) r2.xy, r1.xyxx, t0.xyzw, s0
sample_indexable(texture2d)(float,float,float,float) r1.xyz, r1.zwzz, t2.xyzw, s2
mad r1.xyz, r1.xyzx, cb0[66].xyzx, cb0[61].xyzx
mul r0.xyz, r0.xyzx, r1.xyzx
sample_indexable(texture2d)(float,float,float,float) r2.z, v0.xyxx, t0.xyzw, s0
mul r1.xyz, r2.xyzx, cb1[135].zzzz
mad r0.xyz, r1.xyzx, cb0[60].xyzx, r0.xyzx
mad r0.xyz, r0.xyzx, v1.xxxx, 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 r1.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)
log r0.xyz, r1.xyzx
mul r0.xyz, r0.xyzx, l(0.0126833133, 0.0126833133, 0.0126833133, 0.000000)
exp r0.xyz, r0.xyzx
add r2.xyz, r0.xyzx, l(-0.835937500, -0.835937500, -0.835937500, 0.000000)
mad r0.xyz, r0.xyzx, l(-18.687500, -18.687500, -18.687500, 0.000000), l(18.851562, 18.851562, 18.851562, 0.000000)
max r2.xyz, r2.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
div r0.xyz, r2.xyzx, r0.xyzx
log r0.xyz, r0.xyzx
mul r0.xyz, r0.xyzx, l(6.277395, 6.277395, 6.277395, 0.000000)
exp r0.xyz, r0.xyzx
mul r0.xyz, r0.xyzx, l(10000.000000, 10000.000000, 10000.000000, 0.000000)
div r0.xyz, r0.xyzx, cb0[64].wwww
max r0.xyz, r0.xyzx, l(0.0000610351999, 0.0000610351999, 0.0000610351999, 0.000000)
max r2.xyz, r0.xyzx, l(0.00313066994, 0.00313066994, 0.00313066994, 0.000000)
mul r0.xyz, r0.xyzx, l(12.920000, 12.920000, 12.920000, 0.000000)
log r2.xyz, r2.xyzx
mul r2.xyz, r2.xyzx, l(0.416666657, 0.416666657, 0.416666657, 0.000000)
exp r2.xyz, r2.xyzx
mad r2.xyz, r2.xyzx, l(1.055000, 1.055000, 1.055000, 0.000000), l(-0.055000, -0.055000, -0.055000, 0.000000)
min r0.xyz, r0.xyzx, r2.xyzx
ne r0.w, cb0[65].x, l(0.000000)
movc o0.xyz, r0.wwww, r0.xyzx, r1.xyzx
ret
// Approximately 53 instruction slots used
