//
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
//
//   float gAmbientAmount;
//   float4 gColorTint;
//   float4 gColorTintPhase2;
//   float4 gDirectionalColour;
//   float4 gDirectionalLight;
//   float4 gLightAmbient0;
//   float4 gLightAmbient1;
//   float4 gLightColB;
//   float4 gLightColG;
//   float4 gLightColR;
//   float4 gLightConeOffset;
//   float4 gLightConeOffset2;
//   float4 gLightConeScale;
//   float4 gLightConeScale2;
//   float4 gLightDir2X;
//   float4 gLightDir2Y;
//   float4 gLightDir2Z;
//   float4 gLightDirX;
//   float4 gLightDirY;
//   float4 gLightDirZ;
//   float4 gLightFallOff;
//   float4 gLightPointFallOff;
//   float4 gLightPointPosX;
//   float4 gLightPointPosY;
//   float4 gLightPointPosZ;
//   float4 gLightPosX;
//   float4 gLightPosY;
//   float4 gLightPosZ;
//   float gMotionBlur;
//   float4 gRadius;
//   float4 gTextureAnimation;
//   row_major float4x4 gViewInverse;
//   row_major float4x4 gWorldView;
//   row_major float4x4 gWorldViewProj;
//   float gWrapBias;
//   float gWrapScale;
//
//
// Registers:
//
//   Name               Reg   Size
//   ------------------ ----- ----
//   gWorldView         c4       3
//   gWorldViewProj     c8       4
//   gViewInverse       c12      4
//   gDirectionalLight  c17      1
//   gDirectionalColour c18      1
//   gLightPosX         c19      1
//   gLightPosY         c20      1
//   gLightPosZ         c21      1
//   gLightDirX         c22      1
//   gLightDirY         c23      1
//   gLightDirZ         c24      1
//   gLightFallOff      c25      1
//   gLightConeScale    c26      1
//   gLightConeOffset   c27      1
//   gLightColR         c29      1
//   gLightColG         c30      1
//   gLightColB         c31      1
//   gLightAmbient0     c37      1
//   gLightAmbient1     c38      1
//   gLightPointPosX    c64      1
//   gLightPointPosY    c65      1
//   gLightPointPosZ    c66      1
//   gLightPointFallOff c67      1
//   gLightDir2X        c68      1
//   gLightDir2Y        c69      1
//   gLightDir2Z        c70      1
//   gLightConeScale2   c71      1
//   gLightConeOffset2  c72      1
//   gMotionBlur        c73      1
//   gRadius            c74      1
//   gTextureAnimation  c75      1
//   gColorTint         c76      1
//   gColorTintPhase2   c77      1
//   gWrapScale         c78      1
//   gWrapBias          c79      1
//   gAmbientAmount     c80      1
//

    vs_3_0
    def c230, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.5522916071e-42 // 2535
    def c0, 0, 0.5, -0.5, 0.699999988
    def c1, -10, 9.99999975e-006, 1, -0.100000001
    def c2, 1.11111116, 0.200000003, 0, 0
    dcl_texcoord v0
    dcl_texcoord1 v1
    dcl_texcoord2 v2
    dcl_position o0
    dcl_texcoord9 o10
    dcl_color o1
    dcl_texcoord o2.xy
    dcl_texcoord1 o3.xyz
    if_ge -v1_abs.w, v1_abs.w
      mov r0.xy, c0
      mad r0.xyz, c74.x, r0.xxyw, v0
      add r0.w, c0.z, v2.x
      nrm r1.xyz, v1
      add r2.xyz, -r0.yzxw, c15.yzxw
      dp3 r1.w, r2, r2
      rsq r1.w, r1.w
      mul r2.xyz, r2, r1.w
      mul r3.xyz, r1.zxyw, r2
      mad r2.xyz, r1.yzxw, r2.yzxw, -r3
      nrm r3.xyz, r2
      mul r2.xyz, c73.x, v1
      mad r1.xyz, c74.x, r1, r2
      mul r2.xyz, r3, c74.x
      add r1.w, c0.w, -v2.y
      mul r1.xyz, -r1, r1.w
      mad r1.xyz, r0.w, r2, r1
      nrm r2.xyz, r1
      add r0.xyz, r0, r1
      mul r1, r0.y, c9
      mad r1, r0.x, c8, r1
      mad r1, r0.z, c10, r1
      add o0, r1, c11
      add o10.zw, r1, c11
      mov r1.xyz, c76
      mov o3.xyz, r0
      mov r0.w, c76.w
      mov r3.x, v2.x
    else
      mov r4.xy, c0
      mad r4, c74.z, r4.xxyx, v0
      add r3.zw, c0.z, v2.xyxy
      nrm r5.xyz, c12
      mul r5.xyz, r5, c74.z
      nrm r6.xyz, -c13
      mul r6.xyz, r6, c74.z
      mul r6.xyz, r3.w, r6
      mad r5.xyz, r3.z, r5, r6
      nrm r2.xyz, r5
      add r0.xyz, r4, r5
      mul r5, r0.y, c9
      mad r5, r0.x, c8, r5
      mad r5, r0.z, c10, r5
      add o0, r5, c11
      add o10.zw, r5, c11
      mad r1.w, r4.w, c75.x, -c75.y
      frc r2.w, r1.w
      add r3.z, r1.w, -r2.w
      slt r1.w, r1.w, -r1.w
      slt r2.w, -r2.w, r2.w
      mad r1.w, r1.w, r2.w, r3.z
      mul_sat r1.w, r1.w, c75.z
      mad r1.w, c75.z, v2.x, r1.w
      add r3.x, r1.w, c1.x
      mov r1.xyz, c77
      mov o3.xyz, r0
      mov r0.w, c77.w
    endif
    add r4, -r0.x, c19
    add r5, -r0.y, c20
    add r6, -r0.z, c21
    mul r7, r4, r4
    mad r7, r5, r5, r7
    mad r7, r6, r6, r7
    add r8, r7, c1.y
    rsq r9.x, r8.x
    rsq r9.y, r8.y
    rsq r9.z, r8.z
    rsq r9.w, r8.w
    mov r3.z, c1.z
    mad r7, r7, -c25, r3.z
    max r7, r7, c0.x
    mul r7, r7, r7
    mad r7, r7, r7, c1.w
    max r7, r7, c0.x
    mul r7, r7, c2.x
    min r7, r7, c1.z
    mov r8.x, r4.x
    mov r8.y, r5.x
    mov r8.z, r6.x
    add r8.xyz, r8, c1.y
    nrm r10.xyz, r8
    mov r8.x, r4.y
    mov r8.y, r5.y
    mov r8.z, r6.y
    add r8.xyz, r8, c1.y
    nrm r11.xyz, r8
    mov r6.x, r4.z
    mov r6.y, r5.z
    add r4.xyz, r6, c1.y
    nrm r8.xyz, r4
    mov r6.x, r4.w
    mov r6.y, r5.w
    add r4.xyz, r6.xyww, c1.y
    nrm r5.xyz, r4
    mov r4.x, r10.x
    mov r4.y, r11.x
    mov r4.z, r8.x
    mov r4.w, r5.x
    mul r6, r4, -c22
    mov r12.x, r10.y
    mov r12.y, r11.y
    mov r12.z, r8.y
    mov r12.w, r5.y
    mad r6, r12, -c23, r6
    mov r8.x, r10.z
    mov r8.y, r11.z
    mov r8.w, r5.z
    mad r5, r8, -c24, r6
    mov r6, c26
    mad_sat r5, r5, r6, c27
    mul r5, r7, r5
    mul r5, r9, r5
    mul r4, r4, r5
    mul r6, r12, r5
    mul r5, r8, r5
    add r7, -r0.x, c64
    add r8, -r0.y, c65
    add r9, -r0.z, c66
    mul r10, r7, r7
    mad r10, r8, r8, r10
    mad r10, r9, r9, r10
    add r11, r10, c1.y
    rsq r12.x, r11.x
    rsq r12.y, r11.y
    rsq r12.z, r11.z
    rsq r12.w, r11.w
    mad r10, r10, -c67, r3.z
    max r10, r10, c0.x
    mul r10, r10, r10
    mad r10, r10, r10, c1.w
    max r10, r10, c0.x
    mul r10, r10, c2.x
    min r10, r10, c1.z
    mov r0.x, r7.x
    mov r0.y, r8.x
    mov r0.z, r9.x
    add r0.xyz, r0, c1.y
    nrm r11.xyz, r0
    mov r0.x, r7.y
    mov r0.y, r8.y
    mov r0.z, r9.y
    add r0.xyz, r0, c1.y
    nrm r13.xyz, r0
    mov r9.x, r7.z
    mov r9.y, r8.z
    add r0.xyz, r9, c1.y
    nrm r14.xyz, r0
    mov r9.x, r7.w
    mov r9.y, r8.w
    add r0.xyz, r9.xyww, c1.y
    nrm r7.xyz, r0
    mov r8.x, r11.x
    mov r8.y, r13.x
    mov r8.z, r14.x
    mov r8.w, r7.x
    mul r9, r8, -c68
    mov r15.x, r11.y
    mov r15.y, r13.y
    mov r15.z, r14.y
    mov r15.w, r7.y
    mad r9, r15, -c69, r9
    mov r14.x, r11.z
    mov r14.y, r13.z
    mov r14.w, r7.z
    mad r7, r14, -c70, r9
    mov r9, c71
    mad_sat r7, r7, r9, c72
    mul r7, r10, r7
    mul r7, r12, r7
    mul r8, r8, r7
    mul r9, r15, r7
    mul r10, r14, r7
    mul r0.x, r7.x, c79.x
    dp3 r0.y, r2, -c17
    mad_sat r0.x, r0.y, c78.x, r0.x
    mul r0.xyz, r0.x, c18
    mul r4, r2.x, r4
    mad r4, r2.y, r6, r4
    mad r4, r2.z, r5, r4
    mad_sat r4, c79.x, r7.x, r4
    dp4 r5.x, c29, r4
    dp4 r5.y, c30, r4
    dp4 r5.z, c31, r4
    mad r4.xyz, r0, c18.w, r5
    dp3 r1.w, r2, c6
    mad_sat r1.w, r1.w, c0.z, c0.y
    mov r5.xyz, c38
    mad r5.xyz, r5, r1.w, c37
    mad r4.xyz, r5, c80.x, r4
    mul r6, r2.x, r8
    mad r6, r2.y, r9, r6
    mad r2, r2.z, r10, r6
    mad_sat r2, c79.x, r7.x, r2
    dp4 r6.x, c29, r2
    dp4 r6.y, c30, r2
    dp4 r6.z, c31, r2
    mad r0.xyz, r0, c18.w, r6
    mad r0.xyz, r5, c80.x, r0
    add r0.xyz, r4, r0
    mul o1.xyz, r1, r0
    add r0.xyz, c15, -v0
    dp3 r0.x, r0, r0
    rsq r0.x, r0.x
    rcp r0.x, r0.x
    mul r0.x, r0.x, c2.y
    mul r0.y, r0.x, r0.x
    mul r0.x, r0.x, r0.y
    min r0.x, r0.x, c1.z
    mul o1.w, r0.w, r0.x
    mov r3.y, v2.y
    mov o2.xy, r3
    mov r20.x, c8.w
    add r20.x, r20.x, c9.w
    add r20.x, r20.x, c10.w
    add o10.y, r20.x, c11.w
    
// approximately 241 instruction slots used
