//
// Generated by Microsoft (R) D3DX9 Shader Compiler 
//
// Parameters:
//
//   float3 AbientNormal;
//   float4 fvLightPosition;
//   row_major float4x4 matViewProjection;
//   float4 secLiPos;
//   float4 spPos;
//   float2 spScale;
//   row_major float2x4 spriteRotate;
//
//
// Registers:
//
//   Name              Reg   Size
//   ----------------- ----- ----
//   matViewProjection c0       4
//   spriteRotate      c4       2
//   AbientNormal      c6       1
//   spPos             c7       1
//   fvLightPosition   c8       1
//   spScale           c9       1
//   secLiPos          c10      1
//

    vs_2_0
    def c11, 0, 2, -1, 0.00357142859
    def c12, 1, 0.5, 0, 0
    dcl_position v0
    dcl_texcoord v1
    mul r0.xy, v0, c9
    mul r0.yz, r0.y, c5.xxyw
    mad r0.xy, r0.x, c4, r0.yzzw
    add r0.xy, r0, c7
    mov r0.zw, v0
    add r1, -r0, c8
    add r2.xyz, -r0, c10
    mul r0.zw, r1.y, c5.xyxy
    mad r0.zw, -r1.x, c4.xyxy, r0
    mov oT1.zw, r1
    mov r1.x, c11.x
    slt r1.xy, r1.x, c9
    mad r1.xy, r1, c11.y, c11.z
    mul oT1.xy, r0.zwzw, r1
    dp3 r0.z, r2, r2
    rsq r0.z, r0.z
    rcp r0.z, r0.z
    add r0.z, -r0.z, c10.w
    mul r0.z, r0.z, c11.w
    max r0.z, r0.z, c11.x
    min oT3.w, r0.z, c12.x
    mul r0.zw, r2.y, c5.xyxy
    mad r0.zw, -r2.x, c4.xyxy, r0
    mov oT3.z, r2.z
    mul oT3.xy, r1, r0.zwzw
    mov r2.xy, c5
    mul r0.zw, r2.xyxy, c6.y
    mov r2.xy, c4
    mad r0.zw, c6.x, r2.xyxy, r0
    mul r1.xy, r1, r0.zwzw
    mov r1.z, c6.z
    dp3 r0.z, r1, r1
    rsq r0.z, r0.z
    mul oT2.xyz, r1, r0.z
    mul r1, r0.y, c1
    mad r0, r0.x, c0, r1
    mad r0, v0.z, c2, r0
    mad oPos, v0.w, c3, r0
    mul oT0.xy, v1, c12.yxzw

// approximately 39 instruction slots used
