//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.7 on Thu Nov 12 18:21:41 2015
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
// SV_Target                1   xyzw        1   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb12[31], immediateIndexed
dcl_constantbuffer cb2[28], 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_comparison
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_texture2d (float,float,float,float) t3
dcl_resource_texture2darray (float,float,float,float) t4
dcl_resource_texture2darray (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t125
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_output o0.xyzw
dcl_output o1.xyzw
//dcl_temps 16
dcl_temps 28

mul r0.xy, v0.xyxx, cb2[27].xyxx
mul r0.xy, r0.xyxx, cb2[0].xyxx
mul r1.x, v0.x, cb2[0].x
deriv_rtx_coarse r0.z, r0.x
deriv_rty_coarse r0.w, r0.y
sample_d_indexable(texture2d)(float,float,float,float) r0.z, r0.xyxx, t3.yzxw, s3, r0.zzzz, r0.wwww
ge r0.w, l(0.010000), r0.z
if_nz r0.w
  mul r2.z, r0.z, l(100.000000)
  mov r3.xyzw, cb12[24].xyzw
  mov r4.xyzw, cb12[25].xyzw
  mov r5.xyzw, cb12[26].xyzw
  mov r6.xyzw, cb12[27].xyzw
else 
  mad r2.z, r0.z, l(1.010000), l(-0.010000)
  mov r3.xyzw, cb12[20].xyzw
  mov r4.xyzw, cb12[21].xyzw
  mov r5.xyzw, cb12[22].xyzw
  mov r6.xyzw, cb12[23].xyzw
endif 
mad r1.z, -v0.y, cb2[0].y, l(1.000000)
mad r2.xy, r1.xzxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mov r2.w, l(1.000000)
dp4 r1.x, r3.xyzw, r2.xyzw
dp4 r1.y, r4.xyzw, r2.xyzw
dp4 r1.z, r5.xyzw, r2.xyzw
dp4 r0.z, r6.xyzw, r2.xyzw
div r1.xyz, r1.xyzx, r0.zzzz

ld_indexable(texture2d)(float,float,float,float) r28.xyzw, l(0, 0, 0, 0), t125.xyzw
add r28.w, r1.z, -r28.y
mul r28.w, r28.w, r28.x
mul r28.w, r28.w, cb12[20].x
add r1.x, r1.x, -r28.w

sample_indexable(texture2d)(float,float,float,float) r3.xyzw, r0.xyxx, t2.xyzw, s2
sample_indexable(texture2d)(float,float,float,float) r4.xyzw, r0.xyxx, t0.xyzw, s0
sample_indexable(texture2d)(float,float,float,float) r0.xy, r0.xyxx, t1.xyzw, s1
mad r0.xy, r0.xyxx, l(4.000000, 4.000000, 0.000000, 0.000000), l(-2.000000, -2.000000, 0.000000, 0.000000)
dp2 r0.z, r0.xyxx, r0.xyxx
mad r0.zw, -r0.zzzz, l(0.000000, 0.000000, 0.250000, 0.500000), l(0.000000, 0.000000, 1.000000, 1.000000)
sqrt r0.z, r0.z
mul r0.xy, r0.zzzz, r0.xyxx
mov r0.z, -r0.w
add r0.w, -r3.x, l(1.000000)
dp3 r2.x, -r1.xyzx, -r1.xyzx
rsq r2.x, r2.x
mul r5.xyz, -r1.xyzx, r2.xxxx
lt r6.xyzw, r2.zzzz, cb2[10].ywxz
mov r1.w, l(1.000000)
dp4 r7.x, cb2[11].xyzw, r1.xyzw
dp4 r7.y, cb2[12].xyzw, r1.xyzw
div r2.yw, l(1.000000, 1.000000, 1.000000, 1.000000), cb2[21].xxxy
mov r7.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r5.w, r7.xyzx, t4.yzwx, s4
mad r8.xy, r2.ywyy, l(-2.000000, -2.000000, 0.000000, 0.000000), r7.xyxx
mov r8.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r7.z, r8.xyzx, t4.zwxy, s4
mad r8.xy, r2.ywyy, l(-2.000000, -1.000000, 0.000000, 0.000000), r7.xyxx
mov r8.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r8.x, r8.xyzx, t4.xyzw, s4
mad r9.xy, r2.ywyy, l(-2.000000, 0.000000, 0.000000, 0.000000), r7.xyxx
mov r9.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r8.y, r9.xyzx, t4.yxzw, s4
mad r9.xy, r2.ywyy, l(-2.000000, 1.000000, 0.000000, 0.000000), r7.xyxx
mov r9.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r8.z, r9.xyzx, t4.yzxw, s4
mad r9.xy, r2.ywyy, l(-2.000000, 2.000000, 0.000000, 0.000000), r7.xyxx
mov r9.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r8.w, r9.xyzx, t4.yzwx, s4
mad r9.xy, r2.ywyy, l(-1.000000, -2.000000, 0.000000, 0.000000), r7.xyxx
mov r9.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r9.x, r9.xyzx, t4.xyzw, s4
add r10.xy, -r2.ywyy, r7.xyxx
mov r10.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r9.y, r10.xyzx, t4.yxzw, s4
mad r10.xy, r2.ywyy, l(-1.000000, 0.000000, 0.000000, 0.000000), r7.xyxx
mov r10.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r9.z, r10.xyzx, t4.yzxw, s4
mad r10.xy, r2.ywyy, l(-1.000000, 1.000000, 0.000000, 0.000000), r7.xyxx
mov r10.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r9.w, r10.xyzx, t4.yzwx, s4
mad r10.xy, r2.ywyy, l(-1.000000, 2.000000, 0.000000, 0.000000), r7.xyxx
mov r10.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r10.x, r10.xyzx, t4.xyzw, s4
mad r11.xy, r2.ywyy, l(0.000000, -2.000000, 0.000000, 0.000000), r7.xyxx
mov r11.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r10.y, r11.xyzx, t4.yxzw, s4
mad r11.xy, r2.ywyy, l(0.000000, -1.000000, 0.000000, 0.000000), r7.xyxx
mov r11.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r10.z, r11.xyzx, t4.yzxw, s4
mad r11.xy, r2.ywyy, l(0.000000, 1.000000, 0.000000, 0.000000), r7.xyxx
mov r11.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r10.w, r11.xyzx, t4.yzwx, s4
mad r11.xy, r2.ywyy, l(0.000000, 2.000000, 0.000000, 0.000000), r7.xyxx
mov r11.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r11.x, r11.xyzx, t4.xyzw, s4
mad r12.xy, r2.ywyy, l(1.000000, -2.000000, 0.000000, 0.000000), r7.xyxx
mov r12.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r11.y, r12.xyzx, t4.yxzw, s4
mad r12.xy, r2.ywyy, l(1.000000, -1.000000, 0.000000, 0.000000), r7.xyxx
mov r12.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r11.z, r12.xyzx, t4.yzxw, s4
mad r12.xy, r2.ywyy, l(1.000000, 0.000000, 0.000000, 0.000000), r7.xyxx
mov r12.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r11.w, r12.xyzx, t4.yzwx, s4
add r12.xy, r2.ywyy, r7.xyxx
mov r12.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r12.x, r12.xyzx, t4.xyzw, s4
mad r13.xy, r2.ywyy, l(1.000000, 2.000000, 0.000000, 0.000000), r7.xyxx
mov r13.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r12.y, r13.xyzx, t4.yxzw, s4
mad r13.xy, r2.ywyy, l(2.000000, -2.000000, 0.000000, 0.000000), r7.xyxx
mov r13.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r12.z, r13.xyzx, t4.yzxw, s4
mad r13.xy, r2.ywyy, l(2.000000, -1.000000, 0.000000, 0.000000), r7.xyxx
mov r13.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r12.w, r13.xyzx, t4.yzwx, s4
mad r13.xy, r2.ywyy, l(2.000000, 0.000000, 0.000000, 0.000000), r7.xyxx
mov r13.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r13.x, r13.xyzx, t4.xyzw, s4
mad r14.xy, r2.ywyy, l(2.000000, 1.000000, 0.000000, 0.000000), r7.xyxx
mov r14.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r13.y, r14.xyzx, t4.yxzw, s4
mad r14.xy, r2.ywyy, l(2.000000, 2.000000, 0.000000, 0.000000), r7.xyxx
mov r14.z, l(0)
sample_indexable(texture2darray)(float,float,float,float) r13.z, r14.xyzx, t4.yzxw, s4
if_nz r6.x
  dp4 r13.w, cb2[13].xyzw, r1.xyzw
  lt r14.x, r7.z, r13.w
  mov r7.w, l(1.000000)
  and r7.zw, r7.zzzw, r14.xxxx
  lt r14.y, r8.x, r13.w
  add r15.x, r8.x, r7.z
  movc r15.y, r14.x, l(2.000000), l(1.000000)
  movc r7.zw, r14.yyyy, r15.xxxy, r7.zzzw
  lt r8.x, r8.y, r13.w
  add r14.x, r8.y, r7.z
  add r14.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r14.xxxy, r7.zzzw
  lt r8.x, r8.z, r13.w
  add r14.x, r8.z, r7.z
  add r14.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r14.xxxy, r7.zzzw
  lt r8.x, r8.w, r13.w
  add r14.x, r8.w, r7.z
  add r14.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r14.xxxy, r7.zzzw
  lt r8.x, r9.x, r13.w
  add r14.x, r9.x, r7.z
  add r14.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r14.xxxy, r7.zzzw
  lt r8.x, r9.y, r13.w
  add r9.x, r9.y, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r9.z, r13.w
  add r9.x, r9.z, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r9.w, r13.w
  add r9.x, r9.w, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r10.x, r13.w
  add r9.x, r10.x, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r10.y, r13.w
  add r9.x, r10.y, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r10.z, r13.w
  add r9.x, r10.z, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r5.w, r13.w
  add r9.x, r5.w, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r10.w, r13.w
  add r9.x, r10.w, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r11.x, r13.w
  add r9.x, r11.x, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r11.y, r13.w
  add r9.x, r11.y, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r11.z, r13.w
  add r9.x, r11.z, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r11.w, r13.w
  add r9.x, r11.w, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r12.x, r13.w
  add r9.x, r12.x, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r12.y, r13.w
  add r9.x, r12.y, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r12.z, r13.w
  add r9.x, r12.z, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r12.w, r13.w
  add r9.x, r12.w, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r13.x, r13.w
  add r9.x, r13.x, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r13.y, r13.w
  add r9.x, r13.y, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  lt r8.x, r13.z, r13.w
  add r9.x, r13.z, r7.z
  add r9.y, r7.w, l(1.000000)
  movc r7.zw, r8.xxxx, r9.xxxy, r7.zzzw
  ne r8.x, r7.w, l(0.000000)
  if_nz r8.x
    ge r5.w, r5.w, r13.w
    and r5.w, r5.w, l(0x3f800000)
    div r7.z, r7.z, r7.w
    add r7.w, -cb2[21].z, cb2[21].w
    mad r8.x, r7.w, r13.w, cb2[21].z
    mad r7.z, r7.w, r7.z, cb2[21].z
    add r7.w, -r7.z, r8.x
    mul_sat r7.w, r7.w, l(0.00781250000)
    add r8.x, cb2[21].z, l(0.001000)
    lt r7.z, r7.z, r8.x
    mad r7.w, r7.w, l(1.800000), l(0.100000)
    movc r7.z, r7.z, l(1.900000), r7.w
    mov r8.z, l(0)
    mov r7.w, r5.w
    mov r8.w, l(0)
    loop 
      ige r9.x, r8.w, l(5)
      breakc_nz r9.x
      itof r9.x, r8.w
      add r9.x, r9.x, l(-2.000000)
      mul r9.x, r7.z, r9.x
      mov r9.z, r7.w
      mov r9.w, l(0)
      loop 
        ige r10.x, r9.w, l(5)
        breakc_nz r10.x
        itof r10.x, r9.w
        add r10.x, r10.x, l(-2.000000)
        mul r9.y, r7.z, r10.x
        mul r10.xy, r2.ywyy, r9.xyxx
        mad r8.xy, r10.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000), r7.xyxx
        sample_c_lz_indexable(texture2darray)(float,float,float,float) r8.x, r8.xyzx, t5.xxxx, s5, r13.w
        add r9.z, r8.x, r9.z
        iadd r9.w, r9.w, l(1)
      endloop 
      mov r7.w, r9.z
      iadd r8.w, r8.w, l(1)
    endloop 
    mul r2.y, r7.w, l(0.040000)
  else 
    mov r2.y, l(1.000000)
  endif 
else 
  mov r2.y, l(1.000000)
endif 
lt r7.xyz, cb2[10].xyzx, r2.zzzz
and r7.xyw, r6.ywyy, r7.xyxz
dp4 r8.x, cb2[14].xyzw, r1.xyzw
dp4 r8.y, cb2[15].xyzw, r1.xyzw
div r6.yw, l(1.000000, 1.000000, 1.000000, 1.000000), cb2[22].xxxy
mov r8.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r2.w, r8.xyzx, t4.yzwx, s4
mad r9.xy, r6.ywyy, l(-2.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r9.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r8.z, r9.xyzx, t4.zwxy, s4
mad r9.xy, r6.ywyy, l(-2.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r9.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r5.w, r9.xyzx, t4.yzwx, s4
mad r9.xy, r6.ywyy, l(-2.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r9.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.x, r9.xyzx, t4.xyzw, s4
mad r10.xy, r6.ywyy, l(-2.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r10.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.y, r10.xyzx, t4.yxzw, s4
mad r10.xy, r6.ywyy, l(-2.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r10.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.z, r10.xyzx, t4.yzxw, s4
mad r10.xy, r6.ywyy, l(-1.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r10.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.w, r10.xyzx, t4.yzwx, s4
add r10.xy, -r6.ywyy, r8.xyxx
mov r10.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.x, r10.xyzx, t4.xyzw, s4
mad r11.xy, r6.ywyy, l(-1.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.y, r11.xyzx, t4.yxzw, s4
mad r11.xy, r6.ywyy, l(-1.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.z, r11.xyzx, t4.yzxw, s4
mad r11.xy, r6.ywyy, l(-1.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.w, r11.xyzx, t4.yzwx, s4
mad r11.xy, r6.ywyy, l(0.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.x, r11.xyzx, t4.xyzw, s4
mad r12.xy, r6.ywyy, l(0.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.y, r12.xyzx, t4.yxzw, s4
mad r12.xy, r6.ywyy, l(0.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.z, r12.xyzx, t4.yzxw, s4
mad r12.xy, r6.ywyy, l(0.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.w, r12.xyzx, t4.yzwx, s4
mad r12.xy, r6.ywyy, l(1.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.x, r12.xyzx, t4.xyzw, s4
mad r13.xy, r6.ywyy, l(1.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r13.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.y, r13.xyzx, t4.yxzw, s4
mad r13.xy, r6.ywyy, l(1.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r13.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.z, r13.xyzx, t4.yzxw, s4
add r13.xy, r6.ywyy, r8.xyxx
mov r13.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.w, r13.xyzx, t4.yzwx, s4
mad r13.xy, r6.ywyy, l(1.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r13.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.x, r13.xyzx, t4.xyzw, s4
mad r14.xy, r6.ywyy, l(2.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.y, r14.xyzx, t4.yxzw, s4
mad r14.xy, r6.ywyy, l(2.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.z, r14.xyzx, t4.yzxw, s4
mad r14.xy, r6.ywyy, l(2.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.w, r14.xyzx, t4.yzwx, s4
mad r14.xy, r6.ywyy, l(2.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r14.x, r14.xyzx, t4.xyzw, s4
mad r15.xy, r6.ywyy, l(2.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r15.z, l(1.000000)
sample_indexable(texture2darray)(float,float,float,float) r14.y, r15.xyzx, t4.yxzw, s4
if_nz r7.x
  dp4 r7.x, cb2[16].xyzw, r1.xyzw
  lt r14.z, r8.z, r7.x
  mov r8.w, l(1.000000)
  and r8.zw, r8.zzzw, r14.zzzz
  lt r14.w, r5.w, r7.x
  add r15.x, r5.w, r8.z
  movc r15.y, r14.z, l(2.000000), l(1.000000)
  movc r8.zw, r14.wwww, r15.xxxy, r8.zzzw
  lt r5.w, r9.x, r7.x
  add r15.x, r9.x, r8.z
  add r15.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r15.xxxy, r8.zzzw
  lt r5.w, r9.y, r7.x
  add r9.x, r9.y, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r9.z, r7.x
  add r9.x, r9.z, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r9.w, r7.x
  add r9.x, r9.w, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r10.x, r7.x
  add r9.x, r10.x, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r10.y, r7.x
  add r9.x, r10.y, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r10.z, r7.x
  add r9.x, r10.z, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r10.w, r7.x
  add r9.x, r10.w, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r11.x, r7.x
  add r9.x, r11.x, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r11.y, r7.x
  add r9.x, r11.y, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r2.w, r7.x
  add r9.x, r2.w, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r11.z, r7.x
  add r9.x, r11.z, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r11.w, r7.x
  add r9.x, r11.w, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r12.x, r7.x
  add r9.x, r12.x, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r12.y, r7.x
  add r9.x, r12.y, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r12.z, r7.x
  add r9.x, r12.z, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r12.w, r7.x
  add r9.x, r12.w, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r13.x, r7.x
  add r9.x, r13.x, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r13.y, r7.x
  add r9.x, r13.y, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r13.z, r7.x
  add r9.x, r13.z, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r13.w, r7.x
  add r9.x, r13.w, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r14.x, r7.x
  add r9.x, r14.x, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  lt r5.w, r14.y, r7.x
  add r9.x, r14.y, r8.z
  add r9.y, r8.w, l(1.000000)
  movc r8.zw, r5.wwww, r9.xxxy, r8.zzzw
  ne r5.w, r8.w, l(0.000000)
  if_nz r5.w
    ge r2.w, r2.w, r7.x
    and r2.w, r2.w, l(0x3f800000)
    div r5.w, r8.z, r8.w
    add r8.z, -cb2[22].z, cb2[22].w
    mad r8.w, r8.z, r7.x, cb2[22].z
    mad r5.w, r8.z, r5.w, cb2[22].z
    add r8.z, -r5.w, r8.w
    mul_sat r8.z, r8.z, l(0.00781250000)
    add r8.w, cb2[22].z, l(0.001000)
    lt r5.w, r5.w, r8.w
    mad r8.z, r8.z, l(1.800000), l(0.100000)
    movc r5.w, r5.w, l(1.900000), r8.z
    mov r9.z, l(1.000000)
    mov r8.z, r2.w
    mov r8.w, l(0)
    loop 
      ige r9.w, r8.w, l(5)
      breakc_nz r9.w
      itof r9.w, r8.w
      add r9.w, r9.w, l(-2.000000)
      mul r10.x, r5.w, r9.w
      mov r9.w, r8.z
      mov r10.z, l(0)
      loop 
        ige r10.w, r10.z, l(5)
        breakc_nz r10.w
        itof r10.w, r10.z
        add r10.w, r10.w, l(-2.000000)
        mul r10.y, r5.w, r10.w
        mul r10.yw, r6.yyyw, r10.xxxy
        mad r9.xy, r10.ywyy, l(0.500000, 0.500000, 0.000000, 0.000000), r8.xyxx
        sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.x, r9.xyzx, t5.xxxx, s5, r7.x
        add r9.w, r9.x, r9.w
        iadd r10.z, r10.z, l(1)
      endloop 
      mov r8.z, r9.w
      iadd r8.w, r8.w, l(1)
    endloop 
    mul r2.w, r8.z, l(0.040000)
  else 
    mov r2.w, l(1.000000)
  endif 
else 
  mov r2.w, l(1.000000)
endif 
dp4 r8.x, cb2[17].xyzw, r1.xyzw
dp4 r8.y, cb2[18].xyzw, r1.xyzw
div r6.yw, l(1.000000, 1.000000, 1.000000, 1.000000), cb2[23].xxxy
mov r8.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r5.w, r8.xyzx, t4.yzwx, s4
mad r9.xy, r6.ywyy, l(-2.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r9.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r8.z, r9.xyzx, t4.zwxy, s4
mad r9.xy, r6.ywyy, l(-2.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r9.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r7.x, r9.xyzx, t4.xyzw, s4
mad r9.xy, r6.ywyy, l(-2.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r9.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.x, r9.xyzx, t4.xyzw, s4
mad r10.xy, r6.ywyy, l(-2.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r10.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.y, r10.xyzx, t4.yxzw, s4
mad r10.xy, r6.ywyy, l(-2.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r10.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.z, r10.xyzx, t4.yzxw, s4
mad r10.xy, r6.ywyy, l(-1.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r10.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r9.w, r10.xyzx, t4.yzwx, s4
add r10.xy, -r6.ywyy, r8.xyxx
mov r10.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.x, r10.xyzx, t4.xyzw, s4
mad r11.xy, r6.ywyy, l(-1.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.y, r11.xyzx, t4.yxzw, s4
mad r11.xy, r6.ywyy, l(-1.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.z, r11.xyzx, t4.yzxw, s4
mad r11.xy, r6.ywyy, l(-1.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r10.w, r11.xyzx, t4.yzwx, s4
mad r11.xy, r6.ywyy, l(0.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r11.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.x, r11.xyzx, t4.xyzw, s4
mad r12.xy, r6.ywyy, l(0.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.y, r12.xyzx, t4.yxzw, s4
mad r12.xy, r6.ywyy, l(0.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.z, r12.xyzx, t4.yzxw, s4
mad r12.xy, r6.ywyy, l(0.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r11.w, r12.xyzx, t4.yzwx, s4
mad r12.xy, r6.ywyy, l(1.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r12.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.x, r12.xyzx, t4.xyzw, s4
mad r13.xy, r6.ywyy, l(1.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r13.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.y, r13.xyzx, t4.yxzw, s4
mad r13.xy, r6.ywyy, l(1.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r13.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.z, r13.xyzx, t4.yzxw, s4
add r13.xy, r6.ywyy, r8.xyxx
mov r13.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r12.w, r13.xyzx, t4.yzwx, s4
mad r13.xy, r6.ywyy, l(1.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r13.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.x, r13.xyzx, t4.xyzw, s4
mad r14.xy, r6.ywyy, l(2.000000, -2.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.y, r14.xyzx, t4.yxzw, s4
mad r14.xy, r6.ywyy, l(2.000000, -1.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.z, r14.xyzx, t4.yzxw, s4
mad r14.xy, r6.ywyy, l(2.000000, 0.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r13.w, r14.xyzx, t4.yzwx, s4
mad r14.xy, r6.ywyy, l(2.000000, 1.000000, 0.000000, 0.000000), r8.xyxx
mov r14.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r14.x, r14.xyzx, t4.xyzw, s4
mad r15.xy, r6.ywyy, l(2.000000, 2.000000, 0.000000, 0.000000), r8.xyxx
mov r15.z, l(2.000000)
sample_indexable(texture2darray)(float,float,float,float) r14.y, r15.xyzx, t4.yxzw, s4
if_nz r7.z
  dp4 r1.w, cb2[19].xyzw, r1.xyzw
  lt r7.z, r8.z, r1.w
  mov r8.w, l(1.000000)
  and r8.zw, r7.zzzz, r8.zzzw
  lt r14.z, r7.x, r1.w
  add r15.x, r7.x, r8.z
  movc r15.y, r7.z, l(2.000000), l(1.000000)
  movc r7.xz, r14.zzzz, r15.xxyx, r8.zzwz
  lt r8.z, r9.x, r1.w
  add r15.x, r9.x, r7.x
  add r15.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r15.xxyx, r7.xxzx
  lt r8.z, r9.y, r1.w
  add r9.x, r9.y, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r9.z, r1.w
  add r9.x, r9.z, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r9.w, r1.w
  add r9.x, r9.w, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r10.x, r1.w
  add r9.x, r10.x, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r10.y, r1.w
  add r9.x, r10.y, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r10.z, r1.w
  add r9.x, r10.z, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r10.w, r1.w
  add r9.x, r10.w, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r11.x, r1.w
  add r9.x, r11.x, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r11.y, r1.w
  add r9.x, r11.y, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r5.w, r1.w
  add r9.x, r5.w, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r11.z, r1.w
  add r9.x, r11.z, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r11.w, r1.w
  add r9.x, r11.w, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r12.x, r1.w
  add r9.x, r12.x, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r12.y, r1.w
  add r9.x, r12.y, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r12.z, r1.w
  add r9.x, r12.z, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r12.w, r1.w
  add r9.x, r12.w, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r13.x, r1.w
  add r9.x, r13.x, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r13.y, r1.w
  add r9.x, r13.y, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r13.z, r1.w
  add r9.x, r13.z, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r13.w, r1.w
  add r9.x, r13.w, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r14.x, r1.w
  add r9.x, r14.x, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  lt r8.z, r14.y, r1.w
  add r9.x, r14.y, r7.x
  add r9.y, r7.z, l(1.000000)
  movc r7.xz, r8.zzzz, r9.xxyx, r7.xxzx
  ne r8.z, r7.z, l(0.000000)
  if_nz r8.z
    ge r5.w, r5.w, r1.w
    and r5.w, r5.w, l(0x3f800000)
    div r7.x, r7.x, r7.z
    add r7.z, -cb2[23].z, cb2[23].w
    mad r8.z, r7.z, r1.w, cb2[23].z
    mad r7.x, r7.z, r7.x, cb2[23].z
    add r7.z, -r7.x, r8.z
    mul_sat r7.z, r7.z, l(0.00781250000)
    add r8.z, cb2[23].z, l(0.001000)
    lt r7.x, r7.x, r8.z
    mad r7.z, r7.z, l(1.800000), l(0.100000)
    movc r7.x, r7.x, l(1.900000), r7.z
    mov r9.z, l(2.000000)
    mov r7.z, r5.w
    mov r8.z, l(0)
    loop 
      ige r8.w, r8.z, l(5)
      breakc_nz r8.w
      itof r8.w, r8.z
      add r8.w, r8.w, l(-2.000000)
      mul r10.x, r7.x, r8.w
      mov r8.w, r7.z
      mov r9.w, l(0)
      loop 
        ige r10.z, r9.w, l(5)
        breakc_nz r10.z
        itof r10.z, r9.w
        add r10.z, r10.z, l(-2.000000)
        mul r10.y, r7.x, r10.z
        mul r10.yz, r6.yywy, r10.xxyx
        mad r9.xy, r10.yzyy, l(0.500000, 0.500000, 0.000000, 0.000000), r8.xyxx
        sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.x, r9.xyzx, t5.xxxx, s5, r1.w
        add r8.w, r8.w, r9.x
        iadd r9.w, r9.w, l(1)
      endloop 
      mov r7.z, r8.w
      iadd r8.z, r8.z, l(1)
    endloop 
    mul r1.w, r7.z, l(0.040000)
  else 
    mov r1.w, l(1.000000)
  endif 
else 
  mov r1.w, l(1.000000)
endif 
add r6.yw, -cb2[10].xxxz, cb2[10].yyyw
add r7.xz, r2.zzzz, -cb2[10].xxzx
div r6.yw, l(1.000000, 1.000000, 1.000000, 1.000000), r6.yyyw
mul_sat r6.yw, r6.yyyw, r7.xxxz
mad r7.xz, r6.yywy, l(-2.000000, 0.000000, -2.000000, 0.000000), l(3.000000, 0.000000, 3.000000, 0.000000)
mul r6.yw, r6.yyyw, r6.yyyw
mul r6.yw, r6.yyyw, r7.xxxz
min r6.yw, r6.yyyw, l(0.000000, 1.000000, 0.000000, 1.000000)
add r2.z, -r2.y, r2.w
mad r2.z, r6.y, r2.z, r2.y
add r5.w, -r2.w, r1.w
mad r5.w, r6.w, r5.w, r2.w
movc r1.w, r7.w, r5.w, r1.w
movc r1.w, r6.x, r2.z, r1.w
movc r1.w, r7.y, r2.w, r1.w
movc r1.w, r6.z, r2.y, r1.w
dp3 r2.y, r1.xyzx, r1.xyzx
div_sat r2.y, r2.y, cb2[24].x
mul r2.y, r2.y, r2.y
mul r2.y, r2.y, r2.y
mad r2.y, -r2.y, r2.y, l(1.000000)
add r1.w, r1.w, l(-1.000000)
mad r1.w, r2.y, r1.w, l(1.000000)
mul r2.yzw, r4.wwww, r4.xxyz
dp3 r5.w, r0.xyzx, cb2[1].xyzx
max r6.x, r5.w, l(0.000000)
min r6.y, r6.x, l(1.000000)
mov_sat r6.z, cb12[30].y
add r6.z, -r6.z, l(1.000000)
mul r6.w, r6.z, r6.z
mul r6.w, r6.w, r6.w
mad r6.z, -r6.z, r6.w, l(1.000000)
mad r3.w, r3.w, l(255.000000), l(-1.000000)
lt r3.w, |r3.w|, l(0.250000)
if_nz r3.w
  dp3 r3.w, r3.xyzx, cb2[1].xyzx
  dp3 r6.w, r3.xyzx, r5.xyzx
  mul r7.x, r3.w, r3.w
  min r7.x, r7.x, l(1.000000)
  add r7.x, -r7.x, l(1.000000)
  mul r7.y, r6.w, r6.w
  min r7.y, r7.y, l(1.000000)
  add r7.y, -r7.y, l(1.000000)
  sqrt r7.xy, r7.xyxx
  sincos r8.x, r9.x, cb12[29].y
  mul r7.z, r7.x, r8.x
  mad r7.z, -r3.w, r9.x, -r7.z
  mad r7.w, -r7.z, r7.z, l(1.000000)
  sqrt r7.w, r7.w
  mul r7.w, r7.y, r7.w
  mad r7.z, r7.z, r6.w, r7.w
  max r7.z, r7.z, l(0.000000)
  log r7.z, r7.z
  mul r7.z, r7.z, cb12[28].w
  exp r7.z, r7.z
  mad_sat r7.z, cb12[28].z, r7.z, r6.x
  min r4.w, r4.w, r7.z
  sincos r8.x, r9.x, cb12[29].x
  mul r7.x, r7.x, r8.x
  mad r3.w, -r3.w, r9.x, -r7.x
  mad r7.x, -r3.w, r3.w, l(1.000000)
  sqrt r7.x, r7.x
  mul r7.x, r7.y, r7.x
  mad r3.w, r3.w, r6.w, r7.x
  max r3.w, r3.w, l(0.000000)
  log r3.w, r3.w
  mul r3.w, r3.w, cb12[28].y
  exp r3.w, r3.w
  mul r3.w, r3.w, cb12[28].x
  mul r7.xyz, r3.wwww, cb2[2].xyzx
  mul r7.xyz, r6.yyyy, r7.xyzx
  mov r3.w, l(0)
else 
  mul r3.w, r3.z, l(100.000000)
  mad r3.x, r3.x, l(10.000000), l(1.000000)
  exp r3.x, r3.x
  mad r3.z, r6.z, l(-0.980000), l(1.000000)
  mul r6.w, r3.z, r3.x
  dp3 r7.w, r5.xyzx, r0.xyzx
  mad r8.xyz, -r0.xyzx, r7.wwww, r5.xyzx
  mad r9.xyz, -r0.xyzx, r5.wwww, cb2[1].xyzx
  dp3 r8.x, r8.xyzx, r9.xyzx
  mul r8.y, r0.w, r0.w
  mad r8.zw, r0.wwww, r0.wwww, l(0.000000, 0.000000, 0.570000, 0.090000)
  div r8.yz, r8.yyyy, r8.zzwz
  mul r8.z, r8.z, l(0.450000)
  mad r8.y, -r8.y, l(0.500000), l(1.000000)
  mad r8.w, -r7.w, r7.w, l(1.000000)
  mad r9.x, -r5.w, r5.w, l(1.000000)
  mul_sat r8.w, r8.w, r9.x
  sqrt r8.w, r8.w
  max r9.x, r5.w, r7.w
  div r8.w, r8.w, r9.x
  max r8.x, r8.x, l(0.000000)
  mul r8.x, r8.x, r8.z
  mad r8.x, r8.x, r8.w, r8.y
  mul r4.w, r6.x, r8.x
  mad r1.xyz, -r1.xyzx, r2.xxxx, cb2[1].xyzx
  dp3 r2.x, r1.xyzx, r1.xyzx
  rsq r2.x, r2.x
  mul r1.xyz, r1.xyzx, r2.xxxx
  mov_sat r7.w, r7.w
  dp3_sat r2.x, r5.xyzx, r1.xyzx
  dp3_sat r1.x, r1.xyzx, r0.xyzx
  mad r1.y, r3.x, r3.z, l(2.000000)
  mul r1.y, r1.y, l(0.159154937)
  log r1.z, r1.x
  mul r1.z, r1.z, r6.w
  exp r1.z, r1.z
  mul r1.y, r1.z, r1.y
  max r1.z, r2.x, l(1.192092896E-007)
  min r3.x, r6.y, r7.w
  add r1.x, r1.x, r1.x
  mul r3.z, r1.x, r3.x
  ge r3.z, r1.z, r3.z
  eq r3.x, r7.w, r3.x
  div r6.x, r6.y, r7.w
  movc r3.x, r3.x, l(1.000000), r6.x
  mul r1.x, r1.x, r3.x
  div r1.x, r1.x, r1.z
  div r1.z, l(1.000000, 1.000000, 1.000000, 1.000000), r7.w
  movc r1.x, r3.z, r1.x, r1.z
  add r1.z, -r2.x, l(1.000000)
  mul r2.x, r1.z, r1.z
  mul r2.x, r2.x, r2.x
  mul r3.x, r1.z, r2.x
  mad r1.z, -r1.z, r2.x, l(1.000000)
  mad r1.z, r1.z, l(0.200000), r3.x
  min r1.z, r1.z, l(1.000000)
  mul r1.x, r1.x, r1.z
  mul r1.x, r1.y, r1.x
  mul r1.x, r1.x, l(0.250000)
  min r1.x, r1.x, l(15.000000)
  mul r1.x, r3.y, r1.x
  mul r1.x, r1.x, l(3.14159274)
  mul r1.xyz, r1.xxxx, cb2[2].xyzx
  mul r7.xyz, r6.yyyy, r1.xyzx
endif 
dp3_sat r0.x, r0.xyzx, r5.xyzx
add r0.x, -r0.x, l(1.000000)
log r0.x, r0.x
mul r0.x, r0.x, l(0.010000)
exp r0.x, r0.x
dp3_sat r0.y, r5.xyzx, -cb2[1].xyzx
mul r0.x, r0.y, r0.x
mul r0.x, r6.y, r0.x
mul r0.x, r0.w, r0.x
mul r0.xyz, r0.xxxx, cb2[2].xyzx
mad r0.xyz, cb2[2].xyzx, r4.wwww, r0.xyzx
mov_sat r0.w, -r5.w
mul r1.xyz, r2.yzwy, r0.wwww
mad r0.xyz, cb2[2].xyzx, r1.xyzx, r0.xyzx
add r0.w, r3.w, r5.w
add r1.x, r3.w, l(1.000000)
div_sat r0.w, r0.w, r1.x
add r0.w, -r6.y, r0.w
max r0.w, r0.w, l(0.000000)
mul r1.xyz, r0.wwww, cb2[2].xyzx
mad r0.xyz, r1.xyzx, r4.xyzx, r0.xyzx
mad r0.w, r6.z, l(-0.500000), l(1.000000)
mul r1.xyz, r0.wwww, r7.xyzx
mul o1.xyz, r1.wwww, r1.xyzx
mul r0.xyz, r1.wwww, r0.xyzx
mov r0.w, l(0)
div o0.xyzw, r0.xyzw, l(3.000000, 3.000000, 3.000000, 3.000000)
mov o1.w, l(1.000000)
ret 
// Approximately 0 instruction slots used
