//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D $DepthBuffer;
//   float4 $FalloffFactors;
//   float4 $LightColor;
//   float4 $LightSpecularColor;
//   sampler2D $NormalBuffer;
//   float4 $ViewSpaceLightPosition;
//   float4 GlobalGBufferOffset;
//   float4 GlobalGBufferScale;
//   float4 GlobalPosDecodingParams;
//
//
// Registers:
//
//   Name                    Reg   Size
//   ----------------------- ----- ----
//   $LightColor             c10      1
//   $LightSpecularColor     c11      1
//   $ViewSpaceLightPosition c12      1
//   $FalloffFactors         c13      1
//   GlobalGBufferOffset     c218     1
//   GlobalPosDecodingParams c219     1
//   GlobalGBufferScale      c223     1
//   $NormalBuffer           s6       1
//   $DepthBuffer            s10      1
//

    ps_3_0
    def c0, 2, -1, 1, 0
    def c1, 1024, 0, 0, 0
def c216, 1.0, 0.475, 0.0625, 1
dcl_2d s13
    dcl vPos.xy
    dcl_2d s6
    dcl_2d s10
    mov r0, c223
    mad r0, vPos.xyxy, r0, c218
    texld_pp r1, r0, s10
    mad r1.x, r1.x, c219.z, c219.w
    rcp r1.x, r1.x
    mad r1.yzw, r0.xzwz, c0.xzzw, c0.xwwz
    texld_pp r0, r0, s6
    mad r2.xyz, r1.yzww, -r1.x, c12
    mul r1.xyz, r1.x, r1.yzww
mov r21.x, c172.x
mov r21.y, c173.x
mov r21.z, c174.x
mov r21.w, c175.x
dp4 r20.x, r21, c176
mov r15.w, c213.w
//if_eq r15.w, c0.w
	//rcp r20.x, r20.x
//else
	mov r20.x, c216.y 
//endif
texldl r24, c216.z, s13
add r24.y, r1.z, -r24.y
mul r24.x, r24.x, r24.y
mul r24.x, r24.x, r20.x
add r2.x, r2.x, r24.x
    dp3 r1.w, r2, r2
    rsq r2.w, r1.w
    mad_sat_pp r1.w, c13.x, r1.w, c13.y
    mul r2.xyz, r2.w, r2
    mad_pp r3.xyz, r0.yzww, c0.x, c0.y
    mul_pp r0.x, r0.x, c1.x
    dp2add_pp r0.y, r3, -r3, c0.z
    rsq_pp r0.y, r0.y
    rcp_pp r0.y, r0.y
    mul_pp r3.w, r3.z, r0.y
    dp3_sat_pp r0.y, r3.xyww, r2
    mul r4.xyz, r1.w, c10
    mul r0.z, r1.w, c11.w
    mul oC0.xyz, r0.y, r4
    dp3 r0.w, r1, r1
    rsq r0.w, r0.w
    mad r1.xyz, r1, -r0.w, r2
    nrm r2.xyz, r1
    dp3_sat r0.w, r2, r3.xyww
    pow r1.x, r0.w, r0.x
    mul_pp r0.x, r0.y, r1.x
    mul oC0.w, r0.x, r0.z

// approximately 36 instruction slots used (2 texture, 34 arithmetic)
 