//Specular VS 2.
//
// Generated by Microsoft (R) D3DX9 Shader Compiler 
//
// Parameters:
//
//   row_major float3x4 gBones[64];
//   float4 gCameraPos;
//   float gFogDensity;
//   float gFogEnd;
//   float gFogStart;
//   int gFogType;
//   row_major float4x4 gLocalToWorld;
//   row_major float4x4 gWorldToLocal;
//   row_major float4x4 gWorldToProjection;
//
//
// Registers:
//
//   Name               Reg   Size
//   ------------------ ----- ----
//   gBones             c0     192
//   gLocalToWorld      c192     4
//   gWorldToLocal      c200     3
//   gWorldToProjection c204     4
//   gCameraPos         c208     1
//   gFogStart          c209     1
//   gFogEnd            c210     1
//   gFogDensity        c211     1
//   gFogType           c223     1
//

    vs_3_0
   def c230, 0, 1, 0.0625, 0.5
dcl_2d s3
    def c196, 256, 3, 1, 0
    def c197, 1.44269502, -1, -2, -3
    dcl_position v0
    dcl_blendweight v1
    dcl_blendindices v2
    dcl_color v3
    dcl_normal v4
    dcl_texcoord v5
    dcl_texcoord1 v6
    dcl_texcoord2 v7
    dcl_texcoord3 v8
    dcl_tangent v9
    dcl_binormal v10
    dcl_position o0
    dcl_texcoord7 o1
    dcl_color1 o2
    dcl_fog o3.x
    dcl_texcoord o4
    dcl_texcoord1 o5
    dcl_texcoord2 o6
    dcl_texcoord3 o7
    dcl_texcoord4 o8
    dcl_texcoord5 o9
    dcl_texcoord6 o10
texldl r22, c230.z, s3
    mul r0.xyz, c196.x, v2
    frc r1.xyz, r0
    add r0.xyz, r0, -r1
    mul r0.xyz, r0, c196.y
    mova a0.xyz, r0
    mul r0, c0[a0.y], v1.y
    mad r0, c0[a0.x], v1.x, r0
    mad r0, c0[a0.z], v1.z, r0
    dp3 r1.x, r0, v10
    mov r1.z, -r1.x
    dp3 r1.w, r0, v4
    dp3 r1.y, r0, v9
    mul r2, c1[a0.y], v1.y
    mad r2, c1[a0.x], v1.x, r2
    mad r2, c1[a0.z], v1.z, r2
    mad r3, v0.xyzx, c196.zzzw, c196.wwwz
    dp4 r4.y, r2, r3
    mul r5, c2[a0.y], v1.y
    mad r5, c2[a0.x], v1.x, r5
    mad r5, c2[a0.z], v1.z, r5
    dp4 r4.z, r5, r3
    dp4 r4.x, r0, r3
    mov r4.w, c196.z
    dp4 r0.x, c192, r4
    dp4 r0.y, c193, r4
    dp4 r0.z, c194, r4
    dp4 r0.w, c195, r4
    add r3.xyz, -r0, c208
    dp3 r4.x, c200, r3
    dp3 r4.y, c201, r3
    dp3 r4.z, c202, r3
    dp3 o8.w, r1.yzww, r4
    dp3 r1.z, r2, v10
    mov r6.y, -r1.z
    mul r7.xyz, -r1.z, c201
    dp3 r6.z, r2, v4
    dp3 r6.x, r2, v9
    dp3 o9.w, r6, r4
    mul r2.xyz, r6.z, c201
    mul r6.xyz, r6.x, c201
    dp3 r1.z, r5, v10
    mov r8.y, -r1.z
    dp3 r8.z, r5, v4
    dp3 r8.x, r5, v9
    dp3 o10.w, r8, r4
    abs r2.w, c223.x
    sge r2.w, -r2.w, r2.w
    dp3 r3.w, r3, r3
mul r21.x, r22.y, c204.x
mul r21.y, r22.y, c204.y
mul r21.z, r22.y, c204.z
mov r21.w, c0.w
mul r20.x, c204.x, c204.x
mad r20.x, c204.y, c204.y, r20.x
mad r20.x, c204.z, c204.z, r20.x
rcp r20.x, r20.x
mul r21, r21, r20.x
mad r3.x, r22.x, r21.x, r3.x
mad r3.y, r22.x, r21.y, r3.y
mad r3.z, r22.x, r21.z, r3.z
    mov o7.xyz, r3
    rsq r3.x, r3.w
    rcp r3.x, r3.x
    mul r3.y, r3.x, c211.x
    add r3.x, -r3.x, c210.x
    mul r3.z, r3.y, c197.x
    mul r3.y, r3.y, r3.y
    exp r3.z, r3.z
    rcp r3.z, r3.z
    mov r4.yzw, c197
    add r4.xyz, r4.yzww, c223.x
    sge r4.xyz, -r4_abs, r4_abs
    mad r2.w, r3.z, r4.x, r2.w
    mul r3.y, r3.y, c197.x
    exp r3.y, r3.y
    rcp r3.y, r3.y
    mad r2.w, r3.y, r4.y, r2.w
    mov r4.x, c210.x
    add r3.y, r4.x, -c209.x
    rcp r3.y, r3.y
    mul r3.x, r3.x, r3.y
    mad r2.w, r3.x, r4.z, r2.w
    mad_sat o3.x, c209.x, r3.y, r2.w
    dp4 r3.x, c204, r0
    dp4 r3.y, c205, r0
    dp4 r3.z, c206, r0
    dp4 r3.w, c207, r0
    mov o6, r0
    mov o0, r3
    
    add r22.w, r3.w, -r22.y
    mad r3.x, r22.x, r22.w, r3.x
    mov o1, r3
    mov o2, v3
    mov o4.xy, v5
    mov o4.zw, v6.xyxy
    mov o5.xy, v7
    mov o5.zw, v8.xyxy
    mov o7.w, c196.w
    mad r0.xyz, c200, r1.y, r6
    mad r0.xyz, c202, r8.x, r0
    mov o8.x, r0.x
    mad r3.xyz, c200, -r1.x, r7
    mad r1.xyz, c202, -r1.z, r3
    mov o8.y, r1.x
    mad r2.xyz, c200, r1.w, r2
    mad r2.xyz, c202, r8.z, r2
    mov o8.z, r2.x
    mov o9.x, r0.y
    mov o10.x, r0.z
    mov o9.y, r1.y
    mov o10.y, r1.z
    mov o9.z, r2.y
    mov o10.z, r2.z

// approximately 99 instruction slots used
