//
// Generated by Microsoft (R) D3DX9 Shader Compiler 9.12.589.0000
//
// Parameters:
//
//   sampler2D g_depth_map;
//   row_major float4x4 g_screen_to_light;
//   sampler2D g_shadow_map;
//   float4 g_split_distance;
//
//
// Registers:
//
//   Name              Reg   Size
//   ----------------- ----- ----
//   g_screen_to_light c0       4
//   g_split_distance  c4       1
//   g_shadow_map      s0       1
//   g_depth_map       s1       1
//
//
// Default values:
//
//   g_screen_to_light
//     c0   = { 0, 0, 0, 0 };
//     c1   = { 0, 0, 0, 0 };
//     c2   = { 0, 0, 0, 0 };
//     c3   = { 0, 0, 0, 0 };
//
//   g_split_distance
//     c4   = { 0, 0, 0, 0 };
//

    ps_2_x
    def c5, 1, 0, 0, 0
	def c20, 0.0625, 0.0625, 0.0625, 0.0625
    dcl t0.xy
    dcl t1.xy
    dcl_2d s0
    dcl_2d s1
	dcl_2d s13
    texld r0, t1, s1
    mul r2.xy, r0.x, t0
	
	mov r11, c20
	texld r11, r11, s13	
	add r11.y, r0.x, -r11.y
	mul r11.x, r11.x, r11.y
	add r2.x, r2.x, -r11.x
	
    mul r1.xyz, r2.y, c1
    mad r1.xyz, r2.x, c0, r1
    mad r1.xyz, r0.x, c2, r1
    mad_sat_pp r2.x, r0.x, c4.x, c4.z
    mad_sat_pp r2.y, r0.x, c4.y, c4.w
    add r0.xyz, r1, c3
    mov r0.w, c5.x
    texldp_pp r0, r0, s0
    mov_pp r0.yz, r0.x
    min_pp r0.w, r2.y, r2.x
    mov_pp oC0, r0

// approximately 13 instruction slots used (2 texture, 11 arithmetic)
 