// MANUALLY DUMPED [ShaderRegexDecals2][ShaderRegexShadowsSSR1] Specular manual.
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Fri May 28 00:10:14 2021
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                10   xyzw        0     NONE   float   xyz
// TEXCOORD                11   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float   xy
// TEXCOORD                 0   xyzw        3     NONE   float   xy
// TEXCOORD                 1   xyzw        4     NONE   float
// TEXCOORD                 2   xyzw        5     NONE   float   xyz
// TEXCOORD                 7   xyzw        6     NONE   float   xyzw
// TEXCOORD                 8   x           7     NONE   float   x
// TEXCOORD                 9    yzw        7     NONE   float    yzw
// TEXCOORD                12   xyzw        8     NONE   float   xyzw
// SV_POSITION              0   xyzw        9      POS   float   xyz
// SV_IsFrontFace           0   x          10    FFACE    uint
//
//
// 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[1], immediateIndexed
dcl_constantbuffer cb1[81], immediateIndexed
dcl_constantbuffer cb2[86], dynamicIndexed
dcl_constantbuffer cb3[40], immediateIndexed
dcl_constantbuffer cb4[15], immediateIndexed
dcl_constantbuffer cb5[246], dynamicIndexed
dcl_constantbuffer cb6[11], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_default
dcl_sampler s6, mode_comparison
dcl_sampler s7, mode_default
dcl_sampler s8, mode_default
dcl_sampler s9, mode_default
dcl_resource_texture2d (uint,uint,uint,uint) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texturecube (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2darray (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t6
dcl_resource_texture3d (float,float,float,float) t7
dcl_resource_texture3d (float,float,float,float) t8
dcl_resource_texture3d (float,float,float,float) t9
dcl_resource_texture3d (float,float,float,float) t10
dcl_resource_texture3d (float,float,float,float) t11
dcl_resource_texture2d (float,float,float,float) t12
dcl_resource_texture2d (float,float,float,float) t13
dcl_resource_texture2d (float,float,float,float) t14
dcl_resource_texture2darray (float,float,float,float) t15
dcl_resource_texture2d (float,float,float,float) t16
dcl_resource_texture2d (float,float,float,float) t17
dcl_resource_texture2d (float,float,float,float) t18
dcl_resource_texture2d (float,float,float,float) t19
dcl_resource_texture2d (float,float,float,float) t20
dcl_resource_texture2d (float,float,float,float) t21
dcl_input_ps linear centroid v0.xyz
dcl_input_ps linear centroid v1.xyzw
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xy
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyzw
dcl_input_ps linear v7.x
dcl_input_ps linear v7.yzw
dcl_input_ps linear v8.xyzw
dcl_input_ps_siv linear noperspective v9.xyz, position
dcl_output o0.xyzw
dcl_temps 33
dcl_resource_texture2d (float,float,float,float) t125
dcl_resource_texture1d (float,float,float,float) t120
mul r0.xy, v9.xyxx, cb0[0].xyxx
mul r1.xyz, v0.yzxy, v1.zxyz
mad r1.xyz, v1.yzxy, v0.zxyz, -r1.xyzx
mul r1.xyz, r1.xyzx, v1.wwww
ld_indexable(texture2d)(float,float,float,float) r19.xyzw, l(0, 0, 0, 0), t125.xyzw
ld_indexable(texture2d)(float,float,float,float) r18.xyzw, l(2, 0, 0, 0), t125.xyzw
ld_indexable(texture1d)(float,float,float,float) r17.xyzw, l(10, 0, 0, 0), t120.xyzw
mov r20.x, r0.x
mul r21.xyzw, r0.yyyy, cb1[37].xyzw
mad r21.xyzw, r20.xxxx, cb1[36].xyzw, r21.xyzw
mad r21.xyzw, v9.zzzz, cb1[38].xyzw, r21.xyzw
add r21.xyzw, r21.xyzw, cb1[39].xyzw
mul r19.w, r18.x, l(0.5)
mul r19.w, r19.w, r17.x
mad r20.x, -r19.x, r19.w, r20.x

mul r23.xyzw, r0.yyyy, cb1[37].xyzw
mad r23.xyzw, r20.xxxx, cb1[36].xyzw, r23.xyzw
mad r23.xyzw, v9.zzzz, cb1[38].xyzw, r23.xyzw
add r23.xyzw, r23.xyzw, cb1[39].xyzw
div r23.xyz, r23.xyzx, r23.wwww

mul r19.w, r18.x, l(0.5)
mul r19.w, r19.w, r17.x
mul r19.w, r19.w, r19.y
mul r19.w, r19.w, r21.w
mad r20.x, r19.x, r19.w, r20.x
mul r2.xyzw, r0.yyyy, cb1[37].xyzw
mad r2.xyzw, r20.xxxx, cb1[36].xyzw, r2.xyzw
mad r2.xyzw, v9.zzzz, cb1[38].xyzw, r2.xyzw
add r2.xyzw, r2.xyzw, cb1[39].xyzw
div r2.xyz, r2.xyzx, r2.wwww
add r3.xyz, v7.yzwy, -cb1[56].xyzx
dp3 r0.z, -r2.xyzx, -r2.xyzx
rsq r0.z, r0.z
mul r4.xyz, r0.zzzz, -r2.xyzx
add r0.w, -v5.z, l(1.000000)
mad r0.w, v5.z, r0.w, v5.z
mul r5.xy, v3.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r5.xyz, r5.xyxx, t16.xyzw, s3
add r1.w, -r5.z, l(1.000000)
mad r1.w, r5.z, r1.w, r5.z
add r0.w, r0.w, r1.w
add r0.w, r0.w, l(-1.000000)
mul_sat r0.w, r0.w, l(4.000000)
mad r1.w, r0.w, l(8.000000), l(-8.000000)
exp r1.w, r1.w
add r5.xy, r5.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
mul r5.xy, r1.wwww, r5.xyxx
mad r5.zw, v3.xxxy, l(0.000000, 0.000000, 0.300000, 0.300000), l(0.000000, 0.000000, 0.330000, 0.660000)
sample_indexable(texture2d)(float,float,float,float) r6.xyz, r5.zwzz, t16.xyzw, s3
add r6.xyz, r6.zxyz, l(-1.000000, -0.500000, -0.500000, 0.000000)
mad r1.w, r6.x, l(1.650000), v5.y
mul_sat r1.w, r1.w, l(3.000000)
mad r3.w, r1.w, l(8.000000), l(-8.000000)
exp r3.w, r3.w
mul r5.zw, r3.wwww, r6.yyyz
sample_indexable(texture2d)(float,float,float,float) r6.xyz, v3.xyxx, t17.xyzw, s3
add r6.xyz, r6.xyzx, l(-0.500000, -0.500000, -1.000000, 0.000000)
add r6.xy, r6.xyxx, r6.xyxx
mad r3.w, v1.z, v1.z, l(0.500000)
mul r7.xyz, r3.yyyy, cb4[5].xyzx
mad r7.xyz, r3.xxxx, cb4[4].xyzx, r7.xyzx
mad r3.xyz, r3.zzzz, cb4[6].xyzx, r7.xyzx
add r3.xyz, r3.xyzx, cb4[7].xyzx
add r3.xyz, r3.xyzx, -cb4[13].xyzx
add r7.xyz, -cb4[13].xyzx, cb4[14].xyzx
div r3.xyz, r3.xyzx, r7.xyzx
mul r7.xyzw, r3.yyyy, cb4[5].yzxz
mad r7.xyzw, r3.xxxx, cb4[4].yzxz, r7.xyzw
mad r7.xyzw, r3.zzzz, cb4[6].yzxz, r7.xyzw
add r7.xyzw, r7.xyzw, cb4[7].yzxz
mul r7.xyzw, r7.xyzw, l(0.330000, 0.330000, 0.330000, 0.330000)
mad r7.xyzw, cb3[11].zzzz, l(0.000000, 0.036000, 0.000000, 0.036000), r7.xyzw
sample_indexable(texture2d)(float,float,float,float) r3.x, r7.xyxx, t17.zxyw, s2
sample_indexable(texture2d)(float,float,float,float) r3.y, r7.zwzz, t17.xzyw, s2
sqrt r3.z, |v1.y|
add r3.y, -r3.x, r3.y
mad r3.x, r3.z, r3.y, r3.x
add r3.x, r3.x, l(-0.500000)
mul r3.x, r3.x, v5.x
mul r3.x, r3.x, l(0.500000)
mad r3.x, v5.x, r3.w, r3.x
mad r3.x, r6.z, l(2.000000), r3.x
mul_sat r3.xy, r3.xxxx, l(3.000000, 99.000000, 0.000000, 0.000000)
add r3.x, -r3.x, l(1.000000)
mul r3.x, r3.x, r3.x
mul r6.xy, r3.xxxx, r6.xyxx
mov r6.z, l(0)
mad r3.xzw, r6.xxyz, r3.yyyy, l(0.000000, 0.000000, 0.000000, 1.000000)
dp3 r3.w, r3.xzwx, r3.xzwx
sqrt r3.w, r3.w
div r3.xz, r3.xxzx, r3.wwww
mad r3.xz, r5.zzwz, l(2.000000, 0.000000, 2.000000, 0.000000), r3.xxzx
mad r5.xy, r5.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), r3.xzxx
dp2 r3.x, r5.xyxx, r5.xyxx
add r3.x, -r3.x, l(1.000000)
max r3.x, r3.x, l(0.000000)
sqrt r5.z, r3.x
mad r3.xzw, r5.xxyz, cb3[7].wwww, cb3[7].xxyz
dp3 r4.w, r3.xzwx, r3.xzwx
rsq r4.w, r4.w
mul r3.xzw, r3.xxzw, r4.wwww
mul r1.xyz, r1.xyzx, r3.zzzz
mad r1.xyz, r3.xxxx, v0.xyzx, r1.xyzx
mad r1.xyz, r3.wwww, v1.xyzx, r1.xyzx
dp3 r3.x, r1.xyzx, r1.xyzx
rsq r3.x, r3.x
mul r1.xyz, r1.xyzx, r3.xxxx
mad r3.xz, v3.xxyx, cb6[2].xxyx, -cb6[2].zzwz
mul r3.xz, r3.xxzx, l(3.600000, 0.000000, 3.600000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r5.xyzw, r3.xzxx, t18.xyzw, s7
mul r3.x, v2.y, cb6[9].x
dp2 r3.x, r5.wwww, r3.xxxx
min r3.x, r3.x, l(1.000000)
max r3.x, |r3.x|, l(0.000001)
mul r3.x, r3.x, r3.x
mul r6.xyzw, v3.xyxy, l(6.330000, 6.330000, 1.330000, 1.330000)
sample_indexable(texture2d)(float,float,float,float) r3.zw, r6.xyxx, t19.ywxz, s8
add r4.w, v2.x, l(-0.500000)
add r4.w, r4.w, r4.w
add r4.w, -|r4.w|, l(1.000000)
sqrt r4.w, r4.w
mad r6.xy, v3.xyxx, cb6[7].xyxx, cb6[8].xyxx
sample_indexable(texture2d)(float,float,float,float) r5.w, r6.xyxx, t20.yzwx, s3
add r5.w, r5.w, l(-0.500000)
mul r4.w, r4.w, r5.w
mad_sat r4.w, r4.w, l(0.350000), v2.x
sample_indexable(texture2d)(float,float,float,float) r5.w, r6.zwzz, t21.xyzw, s9
add r3.w, r3.w, -r5.w
mad r3.w, r3.w, l(0.100000), r5.w
add r3.w, r3.w, l(-0.500000)
mad_sat r3.w, r3.w, l(0.350000), r4.w
add r3.w, r3.w, l(-0.750000)
mul r4.w, r3.w, l(999.000000)
mad_sat r3.w, r3.w, l(-9.990000), l(0.500000)
mad r3.z, r3.w, r3.w, r3.z
mov_sat r3.w, cb6[10].y
add r3.w, r3.w, cb5[0].x
add r6.xy, r3.wwww, l(51.000000, 151.000000, 0.000000, 0.000000)
ftoi r6.xy, r6.xyxx
add r7.xyz, r3.zzzz, cb5[r6.x + 0].xyzx
add r5.xyz, r5.xyzx, -r7.xyzx
mad r5.xyz, r3.xxxx, r5.xyzx, r7.xyzx
add r3.z, l(1.000000), -cb5[r6.x + 0].w
mad r7.xyzw, v3.xyxy, l(13.953000, 13.953000, 3.000000, 3.000000), l(0.376147, 0.091743, 0.430000, 0.760000)
sample_indexable(texture2d)(float,float,float,float) r3.w, r7.xyxx, t21.yzwx, s9
add r3.w, r3.w, l(-0.500000)
mad r8.xyzw, v3.xyxy, l(7.70999956, 7.70999956, 1.500000, 1.500000), l(0.130000, 0.350000, 0.530000, 0.760000)
sample_indexable(texture2d)(float,float,float,float) r5.w, r8.xyxx, t21.xzwy, s9
add r5.w, r5.w, l(-0.500000)
mad r3.w, r3.w, l(-0.500000), -r5.w
sample_indexable(texture2d)(float,float,float,float) r5.w, r8.zwzz, t21.xywz, s9
add r5.w, r5.w, l(-0.500000)
sample_indexable(texture2d)(float,float,float,float) r6.z, r7.zwzz, t21.xywz, s9
mad r5.w, r5.w, l(-0.500000), r6.z
add r3.w, r3.w, r5.w
add r3.w, r3.w, l(-0.500000)
mul r3.z, r3.z, r3.w
mad r3.z, r3.z, l(0.250000), cb5[r6.x + 0].w
add r3.w, -r3.z, l(0.990000)
mad r3.z, r3.x, r3.w, r3.z
mad r3.w, r3.x, -cb5[r6.y + 0].z, cb5[r6.y + 0].z
add r5.w, -r3.w, l(1.000000)
mov_sat r6.x, v5.x
mul r5.w, r5.w, r6.x
mul r5.w, r3.z, r5.w
mul r7.xyz, r5.wwww, r5.xyzx
mad r5.xyz, r7.xyzx, l(-0.500000, -0.500000, -0.500000, 0.000000), r5.xyzx
dp3_sat r4.x, r4.xyzx, r1.xyzx
mul r4.x, r4.x, r4.x
mad r4.xyz, r4.xxxx, l(0.500000, 1.000000, 0.875000, 0.000000), l(1.000000, 1.000000, 1.000000, 0.000000)
mul r1.w, r1.w, r1.w
add r4.xyz, -r5.xyzx, r4.xyzx
mad r4.xyz, r1.wwww, r4.xyzx, r5.xyzx
mul r0.w, r0.w, r0.w
add r5.xyz, -r4.xyzx, l(0.100000, 0.076667, 0.050000, 0.000000)
mad r4.xyz, r0.wwww, r5.xyzx, r4.xyzx
mul r4.xyz, r4.xyzx, cb6[4].xyzx
mad r3.w, r1.w, -r3.w, r3.w
mad_sat r3.w, r0.w, -r3.w, r3.w
add r5.x, l(0.100000), -cb5[r6.y + 0].x
mad r3.x, r3.x, r5.x, cb5[r6.y + 0].x
add r5.xy, -r3.xzxx, l(1.000000, 0.010000, 0.000000, 0.000000)
mad r3.x, r1.w, r5.x, r3.x
add r5.x, -r3.x, l(0.200000)
mad r3.x, r0.w, r5.x, r3.x
mul r5.x, r3.z, r6.x
mad r3.z, r5.x, r5.y, r3.z
add r5.x, -r3.z, l(0.010000)
mad r3.y, r3.y, r5.x, r3.z
add r3.z, -r3.y, l(0.850000)
mad r1.w, r1.w, r3.z, r3.y
add r3.y, -r1.w, l(0.500000)
mad_sat r0.w, r0.w, r3.y, r1.w
mov_sat r4.w, r4.w
mul_sat r1.w, r4.w, cb5[r6.y + 0].w
mad r0.w, r0.w, cb3[8].y, cb3[8].x
dp3_sat r5.x, l(0.627403915, 0.329283029, 0.0433130674, 0.000000), r4.xyzx
dp3_sat r5.y, l(0.0690972880, 0.919540405, 0.0113623161, 0.000000), r4.xyzx
dp3_sat r5.z, l(0.0163914394, 0.0880133063, 0.895595253, 0.000000), r4.xyzx
add r3.y, -r3.w, l(1.000000)
mul r4.xyz, r3.yyyy, r5.xyzx
mad r4.xyz, r4.xyzx, cb3[5].wwww, cb3[5].xyzx
mul r3.y, r3.x, l(0.080000)
mad r5.xyz, -r3.xxxx, l(0.080000, 0.080000, 0.080000, 0.000000), r5.xyzx
mad r3.xyz, r3.wwww, r5.xyzx, r3.yyyy
mad r3.xyz, r3.xyzx, cb3[6].wwww, cb3[6].xyzx
max r5.y, r0.w, l(0.100000)
mul r6.xyzw, r2.yyyy, cb1[1].xyzw
mad r6.xyzw, r2.xxxx, cb1[0].xyzw, r6.xyzw
mad r6.xyzw, r2.zzzz, cb1[2].xyzw, r6.xyzw
add r6.xyzw, r6.xyzw, cb1[3].xyzw
div r6.xyz, r6.xyzx, r6.wwww
mad r5.zw, r6.xxxy, l(0.000000, 0.000000, 0.500000, -0.500000), l(0.000000, 0.000000, 0.500000, 0.500000)
mul r6.xyw, r1.xyxz, cb2[6].xyxz
mad r6.xyw, r6.xyxw, l(1.500000, 1.500000, 0.000000, 1.500000), r2.xyxz
mad r7.xy, r6.xyxx, cb2[7].xyxx, cb2[7].zwzz
mov_sat r6.xy, r7.xyxx
eq r6.xy, r6.xyxx, r7.xyxx
and r0.w, r6.y, r6.x
if_nz r0.w
  mad r7.z, r6.w, cb2[8].x, cb2[8].y
  sample_l_indexable(texture3d)(float,float,float,float) r0.w, r7.xyzx, t9.yzwx, s5, l(0.000000)
  mul r3.w, r0.w, cb2[6].w
  ge r4.w, l(1.000000), r3.w
  mad r0.w, r0.w, cb2[6].w, l(0.750000)
  movc r0.w, r4.w, r0.w, r3.w
  round_ni r0.w, r0.w
  sample_l_indexable(texture3d)(float,float,float,float) r8.xyzw, r7.xyzx, t7.xyzw, s1, r0.w
  sample_l_indexable(texture3d)(float,float,float,float) r7.xyzw, r7.xyzx, t8.xyzw, s1, r0.w
  mul r9.xyzw, r8.xyzw, r8.xyzw
  mad r10.xyzw, r8.xyzw, l(0.335721463, 0.335721463, 0.335721463, 0.335721463), l(-0.00358909299, -0.00358909299, -0.00358909299, -0.00358909299)
  mad r10.xyzw, r9.xyzw, l(2.67030215, 2.67030215, 2.67030215, 2.67030215), r10.xyzw
  mul r8.xyzw, r8.xyzw, r9.xyzw
  mad r8.xyzw, r8.xyzw, l(-2.01957369, -2.01957369, -2.01957369, -2.01957369), r10.xyzw
  mul r9.xyzw, r7.xyzw, r7.xyzw
  mad r10.xyzw, r7.xyzw, l(0.335721463, 0.335721463, 0.335721463, 0.335721463), l(-0.00358909299, -0.00358909299, -0.00358909299, -0.00358909299)
  mad r10.xyzw, r9.xyzw, l(2.67030215, 2.67030215, 2.67030215, 2.67030215), r10.xyzw
  mul r7.xyzw, r7.xyzw, r9.xyzw
  mad r7.xyzw, r7.xyzw, l(-2.01957369, -2.01957369, -2.01957369, -2.01957369), r10.xyzw
else
  mov r8.xyzw, l(0,0,0,0)
  mov r7.xyzw, l(0,0,0,0)
endif
add r8.xyzw, -r8.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
add r7.xyzw, -r7.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
mul r5.zw, r5.zzzw, l(0.000000, 0.000000, 128.000000, 64.000000)
ftou r9.xy, r5.zwzz
mov r9.zw, l(0,0,0,0)
ld_indexable(texture2d)(uint,uint,uint,uint) r0.w, r9.xyzw, t0.yzwx
dp3 r9.w, r1.zyxz, l(1.000000, -1.000000, -1.000000, 0.000000)
dp3 r9.z, r1.xzyx, l(1.000000, 1.000000, -1.000000, 0.000000)
dp3 r9.y, r1.yzxy, l(1.000000, 1.000000, -1.000000, 0.000000)
dp3 r9.x, r1.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r3.w, -cb2[5].w, l(1.000000)
mad r8.xyzw, r8.xyzw, cb2[5].wwww, r3.wwww
mad r7.xyzw, r7.xyzw, cb2[5].wwww, r3.wwww
mad r10.xyzw, r1.xyxy, l(64.000000, 64.000000, 256.000000, 256.000000), r2.xyxy
mad r5.zw, r10.xxxy, cb2[0].xxxy, -cb2[1].xxxy
mad r11.xy, r5.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(-0.500000, -0.500000, 0.000000, 0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r12.xyzw, r11.xyxx, t1.xyzw, s1, l(0.000000)
mad r3.w, r12.w, cb2[0].z, cb2[1].z
add r3.w, -r2.z, r3.w
mad r3.w, |r3.w|, l(0.000156249997), r12.x
add r5.zw, r12.yyyz, l(0.000000, 0.000000, -0.500000, -0.500000)
add r12.z, r3.w, -r5.z
add r12.w, r3.w, r5.z
add_sat r13.xy, -r5.wwww, r12.zwzz
add_sat r13.zw, r5.wwww, r12.zzzw
mad r5.zw, r2.xxxy, cb2[9].xxxy, cb2[9].zzzw
mad r12.zw, r2.zzzz, cb2[8].xxxz, cb2[8].yyyw
max r3.w, |r5.w|, |r5.z|
max r3.w, |r12.w|, r3.w
mad_sat r3.w, -cb2[5].x, r3.w, cb2[5].x
if_nz r0.w
  ushr r0.w, r0.w, l(8)
  mov r2.w, l(1.000000)
  mov r6.xyw, l(0,0,0,0)
  mov r5.zw, l(0,0,1.000000,1.000000)
  mov r4.w, r0.w
  loop
    breakc_z r4.w
    firstbit_lo r10.x, r4.w
    ishl r10.y, l(1), r10.x
    xor r4.w, r4.w, r10.y
    ishl r10.y, r10.x, l(1)
    bfi r12.w, l(31), l(1), r10.x, l(1)
    imul null, r14.x, r10.x, l(3)
    imad r14.yz, r10.xxxx, l(0, 3, 3, 0), l(0, 1, 2, 0)
    dp4 r15.x, cb2[r14.x + 46].xyzw, r2.xyzw
    dp4 r15.y, cb2[r14.y + 46].xyzw, r2.xyzw
    dp4 r15.z, cb2[r14.z + 46].xyzw, r2.xyzw
    add r14.xyz, -|r15.xyzx|, l(1.000000, 1.000000, 1.000000, 0.000000)
    mul_sat r14.xyz, r14.xyzx, cb2[r10.y + 70].xyzx
    min r10.x, r14.z, r14.y
    min r10.x, r10.x, r14.x
    add r10.x, -r10.x, l(1.000000)
    mul r14.x, r10.x, r10.x
    add r14.yz, l(0.000000, 1.000000, 1.000000, 0.000000), -cb2[r12.w + 70].xxyx
    mad r14.xy, r14.xxxx, r14.yzyy, cb2[r12.w + 70].xyxx
    min r5.zw, r5.zzzw, r14.xxxy
    mad r10.x, -r10.x, r10.x, l(1.000000)
    mul r14.xy, r10.xxxx, cb2[r12.w + 70].zwzz
    max r6.xy, r6.xyxx, r14.xyxx
    mul r10.x, r10.x, cb2[r10.y + 70].w
    max r6.w, r6.w, r10.x
  endloop
else
  mov r6.xyw, l(0,0,0,0)
  mov r5.zw, l(0,0,1.000000,1.000000)
endif
mul r0.w, r3.w, r5.w
add r2.w, -r3.w, l(1.000000)
mul r2.w, r2.w, r5.z
mad r5.zw, r10.zzzw, cb2[2].xxxy, -cb2[2].zzzw
sample_l_indexable(texture2d)(float,float,float,float) r4.w, r5.zwzz, t2.yzwx, s5, l(0.000000)
mad r4.w, r4.w, cb2[3].x, cb2[4].x
add r4.w, -r2.z, r4.w
mad_sat r4.w, r4.w, l(-0.00195312500), l(1.000000)
add r4.w, r4.w, l(0.500000)
min r4.w, r4.w, l(1.000000)
mul r2.w, r2.w, r4.w
mad r8.xyzw, r8.xyzw, r0.wwww, r2.wwww
mad r7.xyzw, r7.xyzw, r0.wwww, r2.wwww
mul r10.xyzw, r9.wzyx, l(0.577350259, 0.577350259, 0.577350259, 0.577350259)
mul r14.xyzw, r10.wzyx, r10.wzyx
mul r15.xyzw, r10.xyzw, r14.wzyx
mul r16.xyzw, r14.xyzw, l(0.089800, 0.089800, 0.089800, 0.089800)
mad r15.xyzw, r15.xyzw, l(-0.015700, -0.015700, -0.015700, -0.015700), r16.wzyx
mad r15.xyzw, r9.wzyx, l(0.118991889, 0.118991889, 0.118991889, 0.118991889), r15.xyzw
add r15.xyzw, r15.xyzw, l(0.102900, 0.102900, 0.102900, 0.102900)
mul r10.xyzw, -r10.wzyx, r14.xyzw
mad r10.xyzw, r10.xyzw, l(-0.015700, -0.015700, -0.015700, -0.015700), r16.xyzw
mad r9.xyzw, r9.xyzw, l(-0.118991889, -0.118991889, -0.118991889, -0.118991889), r10.xyzw
add r9.xyzw, r9.xyzw, l(0.102900, 0.102900, 0.102900, 0.102900)
mov r11.zw, l(0,0,3.000000,2.000000)
sample_l_indexable(texture2darray)(float,float,float,float) r10.xyz, r11.xyzx, t5.xyzw, s1, l(0.000000)
sample_l_indexable(texture2darray)(float,float,float,float) r14.xyz, r11.xywx, t5.xyzw, s1, l(0.000000)
mov r11.zw, l(0,0,1.000000,0)
sample_l_indexable(texture2darray)(float,float,float,float) r16.xyz, r11.xyzx, t5.xyzw, s1, l(0.000000)
sample_l_indexable(texture2darray)(float,float,float,float) r11.xyz, r11.xywx, t5.xyzw, s1, l(0.000000)
mul r15.xyzw, r8.xyzw, r15.xyzw
mul r7.xyzw, r7.xyzw, r9.xyzw
mul r9.xyzw, r13.xyzw, r8.xyzw
mad r8.xyzw, -r8.xyzw, r13.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
mul r8.xyzw, r8.xyzw, r15.xyzw
mad r7.xyzw, r7.xyzw, r13.xyzw, r8.xyzw
mul r8.xyzw, r13.xyzw, r9.xyzw
mul r0.w, r6.x, l(0.050000)
mul r9.xyzw, r0.wwww, r7.xyzw
mad r8.xyzw, r15.xyzw, r8.xyzw, r9.xyzw
add r0.w, -r6.x, l(1.000000)
mul r9.xyzw, r0.wwww, r7.xyzw
mul r13.xyz, r8.yyyy, cb3[32].xyzx
mad r13.xyz, cb3[31].xyzx, r8.xxxx, r13.xyzx
mad r13.xyz, cb3[33].xyzx, r8.zzzz, r13.xyzx
mad r13.xyz, cb3[34].xyzx, r8.wwww, r13.xyzx
mad r10.xyz, r10.xyzx, r9.xxxx, r13.xyzx
mad r10.xyz, r14.xyzx, r9.yyyy, r10.xyzx
mad r9.xyz, r16.xyzx, r9.zzzz, r10.xyzx
mad r9.yzw, r11.xxyz, r9.wwww, r9.xxyz
add r9.x, r6.w, r9.y
dp3 r2.w, r23.xyzx, r1.xyzx
add r2.w, r2.w, r2.w
mad r10.xyz, r1.xyzx, -r2.wwww, r23.xyzx
dp3 r2.w, r10.xyzx, r10.xyzx
rsq r2.w, r2.w
mul r11.xyz, r2.wwww, r10.xyzx
add r2.w, r8.y, r8.x
add r2.w, r8.z, r2.w
add r2.w, r8.w, r2.w
mad r2.w, r7.x, r0.w, r2.w
mad r2.w, r7.y, r0.w, r2.w
mad r2.w, r7.z, r0.w, r2.w
mad r0.w, r7.w, r0.w, r2.w
mad r12.xy, r2.xyxx, cb2[7].xyxx, cb2[7].zwzz
sample_l_indexable(texture3d)(float,float,float,float) r7.xyz, r12.xyzx, t11.xyzw, s1, l(0.000000)
mad r7.xyz, r7.xyzx, l(4.000000, 4.000000, 4.000000, 0.000000), l(-2.000000, -2.000000, -2.000000, 0.000000)
mad r7.xyz, r1.xyzx, l(3.000000, 3.000000, 3.000000, 0.000000), r7.xyzx
mad r7.xyz, r7.xyzx, cb2[6].xyzx, r2.xyzx
mad r8.xy, r7.xyxx, cb2[7].xyxx, cb2[7].zwzz
mad r8.z, r7.z, cb2[8].x, cb2[8].y
sample_l_indexable(texture3d)(float,float,float,float) r7.xyz, r8.xyzx, t10.xyzw, s1, l(0.000000)
mul r2.w, r3.w, cb2[43].z
mad r7.xyz, r7.xyzx, r2.wwww, r9.xzwx
log r2.w, r5.y
mad r2.w, r2.w, l(1.200000), l(5.000000)
sample_l_indexable(texturecube)(float,float,float,float) r8.xyz, r10.xyzx, t3.xyzw, s0, r2.w
frc r3.w, r10.y
mad r3.w, r3.w, l(347834.531250), r10.x
frc r3.w, r3.w
dp3 r4.w, r11.xyzx, cb1[48].xyzx
add_sat r4.w, r4.w, r4.w
mad r0.w, r0.w, l(4096.000000), l(64.000000)
mad r9.xyz, r11.xyzx, r0.wwww, r2.xyzx
add r9.xyz, r9.xyzx, cb3[10].xyzx
mul r10.xyz, r9.yyyy, cb1[78].xywx
mad r9.xyw, r9.xxxx, cb1[77].xyxw, r10.xyxz
mad r9.xyz, r9.zzzz, cb1[79].xywx, r9.xywx
add r9.xyz, r9.xyzx, cb1[80].xywx

ld_indexable(texture2d)(float,float,float,float) r22.xyzw, l(0, 0, 0, 0), t125.xyzw
add r22.w, r9.z, -r22.y
mad r9.x, r22.x, r22.w, r9.x
div r5.zw, r9.xxxy, r9.zzzz
mad_sat r9.yz, r5.zzwz, cb3[39].xxyx, cb3[39].zzwz
mad r10.xyz, r3.wwww, l(-0.166500, -0.016500, -0.015500, 0.000000), l(0.200000, 0.035000, 0.020000, 0.000000)
lt r6.xzw, r6.zzzz, r10.xxyz
and r6.xzw, r6.xxzw, l(0x3e800000, 0, 0x3e800000, 0x3e800000)
add r0.w, r6.z, r6.x
add r0.w, r6.w, r0.w
mad r9.x, r9.y, l(0.250000), r0.w
add r0.w, r2.w, r3.w
add r0.w, r0.w, l(-0.500000)
sample_l_indexable(texture2d)(float,float,float,float) r9.xyzw, r9.xzxx, t4.xyzw, s5, r0.w
mul r6.xzw, r9.xxyz, r9.xxyz
dp3 r0.w, r6.xwzx, l(-0.250000, -0.250000, -0.500000, 0.000000)
add r0.w, r0.w, l(1.000000)
rcp r0.w, r0.w
mul r0.w, r4.w, r0.w
mul r0.w, r0.w, cb2[42].z
mul r0.w, r0.w, l(4.000000)
mul r6.xzw, r0.wwww, r6.xxzw
mad r0.w, -r4.w, r9.w, l(1.000000)
mul r8.xyz, r7.xyzx, r8.xyzx
mad r6.xzw, r8.xxyz, r0.wwww, r6.xxzw
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r8.xyz, r0.wwww, r2.xyzx
dp3_sat r5.x, r1.xyzx, -r8.xyzx
sample_l_indexable(texture2d)(float,float,float,float) r5.xz, r5.xyxx, t6.xzyw, s1, l(0.000000)
add r0.w, -r5.z, r5.x
mad r5.xzw, r3.xxyz, r0.wwww, r5.zzzz
mul r7.xyz, r4.xyzx, r7.xyzx
mad r5.xzw, r6.xxzw, r5.xxzw, r7.xxyz
mul r5.xzw, r5.xxzw, cb2[43].yyyy
mad r5.xzw, r4.xxyz, v8.xxyz, r5.xxzw
mul r6.xzw, r2.yyyy, cb2[29].xxyz
mad r6.xzw, r2.xxxx, cb2[28].xxyz, r6.xxzw
mad r6.xzw, r2.zzzz, cb2[30].xxyz, r6.xxzw
add r7.xyz, r6.xzwx, cb2[31].xyzx
mov_sat r6.xz, r7.xxyx
eq r6.xz, r6.xxzx, r7.xxyx
and r0.w, r6.z, r6.x
lt r2.w, r7.z, l(1.000000)
and r0.w, r0.w, r2.w
add r6.xz, r7.xxyx, -cb2[34].xxyx
add r8.xy, r7.xyxx, -cb2[35].xyxx
max r2.w, |r6.z|, |r6.x|
max r3.w, |r8.y|, |r8.x|
mad r9.yz, r6.xxzx, cb2[34].zzzz, l(0.000000, 1.500000, 0.500000, 0.000000)
mul r4.w, cb2[34].z, cb2[34].z
mad r8.yz, r8.xxyx, r4.wwww, l(0.000000, 2.500000, 0.500000, 0.000000)
lt r2.w, r2.w, cb2[34].w
movc r6.xz, r2.wwww, r9.yyzy, r7.xxyx
lt r3.w, r3.w, cb2[35].w
movc r10.yz, r3.wwww, r8.yyzy, r6.xxzx
mul r10.x, r10.y, cb2[35].z
sample_l_indexable(texture2d)(float,float,float,float) r6.xz, r10.xzxx, t13.xzyw, s4, l(0.000000)
lt r4.w, r6.z, r7.z
and r4.w, r0.w, r4.w
not r6.z, r4.w
if_z r4.w
  ftoi r0.xy, r0.xyxx
  ge r4.w, r7.z, r6.x
  and r0.w, r0.w, r4.w
  and r0.w, r6.z, r0.w
  dp3 r10.x, r2.xyzx, cb2[18].xyzx
  dp3 r10.y, r2.xyzx, cb2[19].xyzx
  dp3 r10.z, r2.xyzx, cb2[20].xyzx
  add r4.w, |r10.z|, l(0.100000)
  max r4.w, r4.w, |r10.y|
  max r4.w, r4.w, |r10.x|
  div r6.xzw, l(1.000000, 1.000000, 1.000000, 1.000000), cb2[19].wwww
  add r10.xyz, r10.xyzx, cb2[21].xyzx
  lt r8.x, cb2[18].w, r4.w
  mad r11.xyz, r10.xyzx, r6.wwww, cb2[22].xyzx
  mov r11.w, l(1.000000)
  mov r10.w, l(0)
  movc r10.xyzw, r8.xxxx, r11.xyzw, r10.xyzw
  movc r11.z, r8.x, cb2[19].w, l(1.000000)
  mul r8.x, cb2[18].w, cb2[19].w
  lt r8.x, r8.x, r4.w
  mov r9.x, l(1.000000)
  mad r6.xzw, r10.xxyz, r6.xxzw, cb2[23].xxyz
  mad r12.x, r10.w, r9.x, l(1.000000)
  max r9.x, |r6.z|, |r6.x|
  mad_sat r9.x, -r9.x, l(8.000000), l(7.000000)
  mad r11.w, r6.w, l(0.500000), l(0.500000)
  mul_sat r11.w, r11.w, l(32.000000)
  mul r12.y, r9.x, r11.w
  mul r12.z, r11.z, cb2[19].w
  movc r6.xzw, r8.xxxx, r6.xxzw, r10.xxyz
  mov r11.x, r10.w
  mov r11.y, l(1.000000)
  movc r10.xyz, r8.xxxx, r12.yzxy, r11.yzxy
  mad r6.xzw, r6.xxzw, l(0.500000, 0.000000, 0.500000, 0.500000), l(0.500000, 0.000000, 0.500000, 0.500000)
  mad r4.w, -r4.w, l(0.250000), l(1.000000)
  max r4.w, r4.w, l(0.000000)
  add r4.w, r4.w, l(0.250000)
  min r4.w, r4.w, l(1.000000)
  mul r8.x, r10.x, r10.y
  mul r4.w, r4.w, r8.x
  mul r11.xy, r4.wwww, l(64.000000, 4.000000, 0.000000, 0.000000)
  bfi r0.y, l(2), l(2), r0.y, l(0)
  bfi r0.x, l(2), l(0), r0.x, r0.y
  uge r0.y, r0.x, l(8)
  movc r0.y, r0.y, l(-1561935455715328.000000), l(183712671068922260000000000000000000000.000000)
  bfi r0.x, l(3), l(2), r0.x, l(0)
  ushr r0.x, r0.y, r0.x
  and r0.x, r0.x, l(15)
  and r0.y, cb3[12].y, l(15)
  xor r0.y, r0.y, l(10)
  imad r0.x, r0.y, l(3), r0.x
  and r0.x, r0.x, l(15)
  utof r0.x, r0.x
  add r0.x, r0.x, l(0.500000)
  mul r0.x, r0.x, l(0.392699093)
  sincos r0.x, r8.x, r0.x
  mov r0.y, r8.x
  mad r10.xy, r0.xyxx, cb2[20].wwww, r6.xzxx
  sample_l_indexable(texture2darray)(float,float,float,float) r10.xyzw, r10.xyzx, t15.xyzw, s1, l(0.000000)
  add r0.xy, -r6.wwww, r10.xyxx
  mul_sat r0.xy, r11.xyxx, r0.xyxx
  mad r0.x, -r0.x, r10.z, l(1.000000)
  add r4.w, -r10.w, l(1.000000)
  add r4.w, -r0.x, r4.w
  mad r0.x, r0.y, r4.w, r0.x
  if_nz r0.w
    mov r9.w, l(1.000000)
    mov r7.w, l(0)
    movc r6.xzw, r2.wwww, r9.yyzw, r7.xxyw
    mov r8.w, l(2.000000)
    movc r8.yzw, r3.wwww, r8.yyzw, r6.xxzw
    mul r8.x, r8.y, cb2[35].z
    mov_sat r0.yw, r8.xxxz
    ne r0.yw, r0.yyyw, r8.xxxz
    or r0.y, r0.w, r0.y
    lt r0.w, l(1.000000), r7.z
    or r0.y, r0.w, r0.y
    if_nz r0.y
      mov r0.w, l(0)
    endif
    if_z r0.y
      mad r6.xz, r8.xxzx, cb2[36].xxyx, l(0.500000, 0.000000, 0.500000, 0.000000)
      frc r9.xy, r6.xzxx
      round_ni r6.xz, r6.xxzx
      add r6.xz, r6.xxzx, l(-0.500000, 0.000000, -0.500000, 0.000000)
      mul r6.xz, r6.xxzx, cb2[36].zzwz
      mad r0.y, r7.z, l(2048.000000), l(-1.000000)
      add r7.xy, -r9.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
      gather4_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      add r2.w, r10.y, r10.x
      add r2.w, r10.z, r2.w
      add r2.w, r10.w, r2.w
      gather4_aoffimmi_indexable(-2,0,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      mad r2.w, r10.x, r7.x, r2.w
      add r2.w, r10.y, r2.w
      add r2.w, r10.z, r2.w
      mad r2.w, r10.w, r7.x, r2.w
      gather4_aoffimmi_indexable(2,0,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      add r2.w, r2.w, r10.x
      mad r2.w, r10.y, r9.x, r2.w
      mad r2.w, r10.z, r9.x, r2.w
      add r2.w, r10.w, r2.w
      gather4_aoffimmi_indexable(0,-2,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      add r2.w, r2.w, r10.x
      add r2.w, r10.y, r2.w
      mad r2.w, r10.z, r7.y, r2.w
      mad r2.w, r10.w, r7.y, r2.w
      gather4_aoffimmi_indexable(0,2,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      mad r2.w, r10.x, r9.y, r2.w
      mad r2.w, r10.y, r9.y, r2.w
      add r2.w, r10.z, r2.w
      add r2.w, r10.w, r2.w
      mov r7.z, l(1.000000)
      mul r8.xyz, r7.zzyz, r7.xyxx
      gather4_aoffimmi_indexable(-2,-2,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      mad r2.w, r10.x, r8.x, r2.w
      add r2.w, r10.y, r2.w
      mad r2.w, r10.z, r8.y, r2.w
      mad r2.w, r10.w, r8.z, r2.w
      add r9.z, -r9.y, l(1.000000)
      mul r8.xyz, r7.zyzz, r9.xxzx
      gather4_aoffimmi_indexable(2,-2,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      add r2.w, r2.w, r10.x
      mad r2.w, r10.y, r8.x, r2.w
      mad r2.w, r10.z, r8.y, r2.w
      mad r2.w, r10.w, r8.z, r2.w
      mov r9.w, l(1.000000)
      mul r7.xyz, r7.xzxx, r9.yywy
      gather4_aoffimmi_indexable(-2,2,0)(texture2d)(float,float,float,float) r10.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r10.xyzw, r10.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      mad r2.w, r10.x, r7.x, r2.w
      mad r2.w, r10.y, r7.y, r2.w
      add r2.w, r10.z, r2.w
      mad r2.w, r10.w, r7.z, r2.w
      mul r7.xyz, r9.yyxy, r9.wxww
      gather4_aoffimmi_indexable(2,2,0)(texture2d)(float,float,float,float) r9.xyzw, r6.xzxx, t12.xyzw, s1.x
      mad_sat r9.xyzw, r9.xyzw, l(2048.000000, 2048.000000, 2048.000000, 2048.000000), -r0.yyyy
      mad r0.y, r9.x, r7.x, r2.w
      mad r0.y, r9.y, r7.y, r0.y
      mad r0.y, r9.z, r7.z, r0.y
      add r0.y, r9.w, r0.y
      mad r2.w, -r8.w, l(0.500000), l(2.500000)
      mul r0.y, r0.y, r2.w
      mad r2.w, r2.w, l(0.500000), l(-0.500000)
      mad_sat r0.y, r0.y, l(0.0416666679), -r2.w
      mov r0.w, l(-1)
    else
      mov r0.y, l(1.000000)
    endif
  else
    mov r0.yw, l(0,1.000000,0,0)
  endif
  if_z r0.w
    mul r7.xyzw, r2.yyyy, cb2[25].xyzz
    mad r7.xyzw, r2.xxxx, cb2[24].xyzz, r7.xyzw
    mad r7.xyzw, r2.zzzz, cb2[26].xyzz, r7.xyzw
    add r7.xyzw, r7.xyzw, cb2[27].xyzz
    add r8.xyzw, r7.xyzw, l(-0.500000, -0.500000, -0.500000, -0.000244140625)
    max r0.w, |r8.z|, |r8.y|
    max r0.w, r0.w, |r8.x|
    mad_sat r0.w, -r0.w, l(16.000000), l(8.000000)
    sample_c_lz_indexable(texture2d)(float,float,float,float) r2.w, r7.xyxx, t14.xxxx, s6, r8.w
    add r2.w, r2.w, r2.w
    min r2.w, r2.w, l(1.000000)
    mad r2.w, r0.y, r2.w, -r0.y
    mad r0.y, r0.w, r2.w, r0.y
  endif
  mul r0.x, r0.y, r0.x
  add r0.y, -r6.y, l(1.000000)
  mul r0.x, r0.y, r0.x
else
  mov r0.x, l(0)
endif
mul r0.x, r0.x, v8.w
dp3_sat r0.y, r1.xyzx, -cb2[32].xyzx
mad r4.xyz, r4.xyzx, cb3[5].wwww, cb3[5].xyzx
mad r3.xyz, r3.xyzx, cb3[6].wwww, cb3[6].xyzx
mad r2.xyz, -r23.xyzx, r0.zzzz, -cb2[32].xyzx
dp3 r0.z, r1.xyzx, r2.xyzx
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul_sat r0.z, r0.w, r0.z
mul r0.w, r5.y, r5.y
mul r0.w, r0.w, r0.w
mad r1.x, r0.z, r0.w, -r0.z
mad r0.z, r1.x, r0.z, l(1.000000)
mul r0.z, r0.z, r0.z
mul r0.z, r0.z, l(3.14159274)
div r0.z, r0.w, r0.z
mul r0.z, r0.z, l(0.250000)
mul r1.xyz, r3.xyzx, r0.zzzz
mul r0.x, r0.x, r0.y
mad r0.yzw, r4.xxyz, l(0.000000, 0.318309873, 0.318309873, 0.318309873), r1.xxyz
mul r0.xyz, r0.yzwy, r0.xxxx
mul r0.xyz, r0.xyzx, cb2[33].xyzx
mad r0.xyz, cb2[43].yyyy, r0.xyzx, r5.xzwx
dp3 r1.x, l(0.627403915, 0.329283029, 0.0433130674, 0.000000), cb6[3].xyzx
dp3 r1.y, l(0.0690972880, 0.919540405, 0.0113623161, 0.000000), cb6[3].xyzx
dp3 r1.z, l(0.0163914394, 0.0880133063, 0.895595253, 0.000000), cb6[3].xyzx
mad r0.xyz, r1.xyzx, cb2[43].yyyy, r0.xyzx
max r0.w, r0.y, r0.x
max r0.w, r0.z, r0.w
mul r0.w, r0.w, v6.w
max r0.w, r0.w, v6.w
mul r0.w, r1.w, r0.w
ge r0.w, l(0.010000), r0.w
discard_nz r0.w
mad r0.xyz, r0.xyzx, v6.wwww, v6.xyzx
mad r2.xyzw, cb2[17].xyzw, v7.xxxx, cb2[16].xyzw
dp3 r0.w, r0.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
add r0.xyz, -r0.wwww, r0.xyzx
mad r0.xyz, r2.wwww, r0.xyzx, r0.wwww
mul o0.xyz, r2.xyzx, r0.xyzx
mov o0.w, r1.w
ret
// Approximately 0 instruction slots used
