//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4x4 Projection;
//   float4x4 View;
//   float4x4 g_StencilSpotInvMatrix;
//   float4x4 invview;
//
//
// Registers:
//
//   Name                   Reg   Size
//   ---------------------- ----- ----
//   View                   c0       4
//   Projection             c4       4
//   g_StencilSpotInvMatrix c8       4
//   invview                c12      3
//

    vs_3_0
def c220, 1, 0, 0.0625, 0.5
dcl_2d s0
    dcl_position v0  // IN<0,1,2,3>
    dcl_position o0
    dcl_texcoord o1
    dcl_texcoord1 o2.xyz

#line 1062 "s:\data\datasource\shaders\memory"
    mul r0, c9, v0.y
    mad r0, c8, v0.x, r0
    mad r0, c10, v0.z, r0
    mad r0, c11, v0.w, r0  // ::localPosition<0,1,2,3>
    rcp r0.w, r0.w
    mul r0.xyz, r0.w, r0  // ::localPosition<0,1,2>

#line 1068
    mul r1, r0.y, c1
    mad r1, c0, r0.x, r1
    mad r0, c2, r0.z, r1
    add r0, r0, c3  // ::cameraSpace<0,1,2,3>
    mul r1, r0.y, c5
    mad r1, c4, r0.x, r1
    mad r1, c6, r0.z, r1
    mad r0, c7, r0.w, r1  // ::OUT<0,1,2,3>

mov r10, r0
texldl r24, c220.z, s0
add r24.y, r0.w, -r24.y
mul r24.x, r24.x, r24.y
add r0.x, r0.x, r24.x

#line 1075
    mad r1.xy, c6, r0.w, r0

#line 1072
    rcp r2.x, c4.x  // ::invProjMul<0>
    rcp r2.y, c5.y  // ::invProjMul<1>

#line 1075
    mul r1.xy, r1, r2  // ::viewDirCamSpace<0,1>

#line 1078
    mul r1.yzw, -r1.y, c13.xxyz
    mad r1.xyz, c12, -r1.x, r1.yzww
    mad o2.xyz, c14, r0.w, r1  // ::mainVPStencilSpotLight<8,9,10>

#line 1069
    mov o0, r10 //r0  // ::mainVPStencilSpotLight<0,1,2,3>
    mov o1, r0  // ::mainVPStencilSpotLight<4,5,6,7>

// approximately 23 instruction slots used
 