	.file	"extr_utils.c_wined3d_ffp_get_vs_settings.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unsupported vertex blending: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Unhandled light type %#x.\n"
	.text
	.p2align 4
	.globl	wined3d_ffp_get_vs_settings
	.type	wined3d_ffp_get_vs_settings, @function
wined3d_ffp_get_vs_settings:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	mov	edx, 112
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 16[rdi]
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, rbx
	call	memset@PLT
	cmp	QWORD PTR 32[r14], 0
	jne	.L82
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR WINED3D_RS_VERTEXBLEND[rip]
	mov	esi, DWORD PTR [rax+rdx*4]
	lea	eax, -128[rsi]
	cmp	eax, 3
	ja	.L15
	mov	DWORD PTR 28[rbx], esi
.L16:
	lea	rsi, 24[r14]
	mov	rdi, r13
	call	use_indexed_vertex_blending@PLT
	test	rax, rax
	jne	.L83
.L17:
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR WINED3D_RS_CLIPPING[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	test	edx, edx
	je	.L19
	mov	rdx, QWORD PTR WINED3D_RS_CLIPPLANEENABLE[rip]
	mov	r11d, DWORD PTR [rax+rdx*4]
	xor	edx, edx
	test	r11d, r11d
	setne	dl
.L19:
	mov	esi, DWORD PTR 24[r14]
	mov	ecx, DWORD PTR WINED3D_FFP_NORMAL[rip]
	mov	DWORD PTR 40[rbx], edx
	mov	edx, esi
	shr	edx, cl
	mov	ecx, 0
	and	edx, 1
	mov	DWORD PTR 44[rbx], edx
	je	.L20
	mov	rdx, QWORD PTR WINED3D_RS_NORMALIZENORMALS[rip]
	xor	ecx, ecx
	mov	r10d, DWORD PTR [rax+rdx*4]
	test	r10d, r10d
	setne	cl
.L20:
	mov	rdx, QWORD PTR WINED3D_RS_LIGHTING[rip]
	mov	DWORD PTR 48[rbx], ecx
	mov	rcx, QWORD PTR GL_POINTS[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	xor	edx, edx
	test	edi, edi
	setne	dl
	mov	DWORD PTR 52[rbx], edx
	mov	rdx, QWORD PTR WINED3D_RS_LOCALVIEWER[rip]
	mov	r8d, DWORD PTR [rax+rdx*4]
	xor	edx, edx
	test	r8d, r8d
	setne	dl
	mov	DWORD PTR 56[rbx], edx
	xor	edx, edx
	cmp	QWORD PTR 0[r13], rcx
	sete	dl
	mov	ecx, DWORD PTR WINED3D_FFP_PSIZE[rip]
	mov	DWORD PTR 4[rbx], edx
	mov	edx, esi
	shr	edx, cl
	and	edx, 1
	mov	DWORD PTR 8[rbx], edx
	mov	rdx, QWORD PTR WINED3D_RS_COLORVERTEX[rip]
	mov	r9d, DWORD PTR [rax+rdx*4]
	test	r9d, r9d
	je	.L21
	mov	edx, DWORD PTR WINED3D_FFP_DIFFUSE[rip]
	bt	esi, edx
	jc	.L84
.L21:
	mov	rax, QWORD PTR WINED3D_MCS_MATERIAL[rip]
	mov	DWORD PTR 60[rbx], eax
	mov	DWORD PTR 64[rbx], eax
	mov	DWORD PTR 68[rbx], eax
	mov	DWORD PTR 72[rbx], eax
.L25:
	mov	edx, DWORD PTR MAX_TEXTURES[rip]
	test	edx, edx
	je	.L28
	mov	r10, QWORD PTR 16[r13]
	mov	r9, QWORD PTR 16[rbx]
	xor	ecx, ecx
	mov	r11d, 1
	mov	rax, QWORD PTR WINED3D_TSS_TEXCOORD_INDEX[rip]
	lea	r8, 0[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, ecx
	mov	rdi, QWORD PTR [r10+rsi*8]
	add	rdi, r8
	mov	eax, DWORD PTR [rdi]
	cmp	eax, edx
	jnb	.L26
	mov	edx, DWORD PTR WINED3D_FFP_TEXCOORD0[rip]
	mov	r15d, DWORD PTR 24[r14]
	add	edx, eax
	bt	r15d, edx
	jnc	.L26
	mov	eax, r11d
	sal	eax, cl
	or	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR [rdi]
.L26:
	mov	DWORD PTR [r9+rsi*4], eax
	mov	edx, DWORD PTR MAX_TEXTURES[rip]
	add	ecx, 1
	cmp	edx, ecx
	ja	.L27
.L28:
	mov	r15, QWORD PTR 8[r12]
	mov	rdi, rbp
	call	wined3d_max_compat_varyings@PLT
	cmp	r15, rax
	jl	.L24
	mov	ecx, DWORD PTR MAX_TEXTURES[rip]
	mov	eax, 1
	sal	eax, cl
	sub	eax, 1
	mov	DWORD PTR 12[rbx], eax
.L24:
	mov	esi, DWORD PTR MAX_ACTIVE_LIGHTS[rip]
	xor	ebp, ebp
	lea	r15, .LC1[rip]
	test	esi, esi
	jne	.L29
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L85:
	cmp	esi, 133
	jne	.L37
	add	DWORD PTR 108[rbx], 1
	.p2align 4,,10
	.p2align 3
.L32:
	add	ebp, 1
	cmp	DWORD PTR MAX_ACTIVE_LIGHTS[rip], ebp
	jbe	.L39
.L29:
	mov	rdx, QWORD PTR 32[r13]
	mov	eax, ebp
	mov	rax, QWORD PTR [rdx+rax*8]
	test	rax, rax
	je	.L32
	mov	esi, DWORD PTR [rax]
	cmp	esi, 134
	je	.L33
	jg	.L34
	cmp	esi, 132
	jne	.L85
	add	DWORD PTR 104[rbx], 1
	add	ebp, 1
	cmp	DWORD PTR MAX_ACTIVE_LIGHTS[rip], ebp
	ja	.L29
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR WINED3D_RS_FOGENABLE[rip]
	mov	ecx, DWORD PTR [rax+rdx*4]
	test	ecx, ecx
	jne	.L86
	mov	rdx, QWORD PTR WINED3D_FFP_VS_FOG_OFF[rip]
	mov	QWORD PTR 88[rbx], rdx
.L40:
	cmp	QWORD PTR [r12], 0
	mov	edx, DWORD PTR FALSE[rip]
	je	.L49
	mov	rdx, QWORD PTR WINED3D_RS_SHADEMODE[rip]
	mov	ecx, DWORD PTR WINED3D_SHADE_FLAT[rip]
	cmp	DWORD PTR [rax+rdx*4], ecx
	sete	dl
	movzx	edx, dl
.L49:
	mov	eax, DWORD PTR 28[r14]
	mov	DWORD PTR 24[rbx], edx
	mov	DWORD PTR 80[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	FIXME@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L34:
	cmp	esi, 135
	jne	.L37
	add	DWORD PTR 100[rbx], 1
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, r15
	call	FIXME@PLT
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	add	DWORD PTR 96[rbx], 1
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L82:
	mov	rax, QWORD PTR GL_POINTS[rip]
	cmp	QWORD PTR 0[r13], rax
	mov	DWORD PTR [rbx], 1
	sete	al
	mov	ecx, DWORD PTR WINED3D_FFP_PSIZE[rip]
	mov	rdx, QWORD PTR WINED3D_RS_FOGENABLE[rip]
	movzx	eax, al
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 24[r14]
	shr	eax, cl
	and	eax, 1
	mov	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR 8[r13]
	mov	r15d, DWORD PTR [rax+rdx*4]
	test	r15d, r15d
	je	.L87
	mov	rdx, QWORD PTR WINED3D_RS_FOGTABLEMODE[rip]
	mov	ecx, DWORD PTR WINED3D_FOG_NONE[rip]
	cmp	DWORD PTR [rax+rdx*4], ecx
	je	.L5
	mov	rax, QWORD PTR WINED3D_FFP_VS_FOG_DEPTH[rip]
	mov	QWORD PTR 88[rbx], rax
.L4:
	mov	edx, DWORD PTR MAX_TEXTURES[rip]
	test	edx, edx
	je	.L11
	mov	r10, QWORD PTR 16[r13]
	mov	r9, QWORD PTR 16[rbx]
	xor	ecx, ecx
	mov	r11d, 1
	mov	rax, QWORD PTR WINED3D_TSS_TEXCOORD_INDEX[rip]
	lea	r8, 0[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, ecx
	mov	rdi, QWORD PTR [r10+rsi*8]
	add	rdi, r8
	mov	eax, DWORD PTR [rdi]
	cmp	eax, edx
	jnb	.L9
	mov	edx, DWORD PTR WINED3D_FFP_TEXCOORD0[rip]
	mov	r15d, DWORD PTR 24[r14]
	add	edx, eax
	bt	r15d, edx
	jnc	.L9
	mov	eax, r11d
	sal	eax, cl
	or	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR [rdi]
.L9:
	mov	DWORD PTR [r9+rsi*4], eax
	mov	edx, DWORD PTR MAX_TEXTURES[rip]
	add	ecx, 1
	cmp	edx, ecx
	ja	.L10
.L11:
	mov	r15, QWORD PTR 8[r12]
	mov	rdi, rbp
	call	wined3d_max_compat_varyings@PLT
	cmp	r15, rax
	jl	.L8
	mov	ecx, DWORD PTR MAX_TEXTURES[rip]
	mov	eax, 1
	sal	eax, cl
	sub	eax, 1
	mov	DWORD PTR 12[rbx], eax
.L8:
	cmp	QWORD PTR [r12], 0
	mov	eax, DWORD PTR FALSE[rip]
	je	.L13
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR WINED3D_RS_SHADEMODE[rip]
	mov	ecx, DWORD PTR WINED3D_SHADE_FLAT[rip]
	cmp	DWORD PTR [rax+rdx*4], ecx
	sete	al
	movzx	eax, al
.L13:
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR 28[r14]
	mov	DWORD PTR 80[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L86:
	.cfi_restore_state
	mov	rcx, QWORD PTR WINED3D_RS_FOGTABLEMODE[rip]
	mov	edx, DWORD PTR WINED3D_FOG_NONE[rip]
	cmp	DWORD PTR [rax+rcx*4], edx
	je	.L41
	mov	rdx, QWORD PTR WINED3D_FFP_VS_FOG_DEPTH[rip]
	pxor	xmm0, xmm0
	mov	QWORD PTR 88[rbx], rdx
	mov	rdx, QWORD PTR WINED3D_TS_PROJECTION[rip]
	sal	rdx, 4
	add	rdx, QWORD PTR 24[r13]
	ucomiss	xmm0, DWORD PTR [rdx]
	jp	.L40
	jne	.L40
	ucomiss	xmm0, DWORD PTR 4[rdx]
	jp	.L40
	jne	.L40
	ucomiss	xmm0, DWORD PTR 8[rdx]
	jp	.L40
	jne	.L40
	movss	xmm0, DWORD PTR .LC3[rip]
	ucomiss	xmm0, DWORD PTR 12[rdx]
	jp	.L40
	jne	.L40
	mov	DWORD PTR 76[rbx], 1
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L83:
	mov	edi, DWORD PTR [r14]
	call	use_software_vertex_processing@PLT
	test	rax, rax
	je	.L18
	mov	DWORD PTR 32[rbx], 1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L87:
	mov	rax, QWORD PTR WINED3D_FFP_VS_FOG_OFF[rip]
	mov	QWORD PTR 88[rbx], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L84:
	mov	rdx, QWORD PTR WINED3D_RS_DIFFUSEMATERIALSOURCE[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 60[rbx], edx
	mov	rdx, QWORD PTR WINED3D_RS_EMISSIVEMATERIALSOURCE[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 64[rbx], edx
	mov	rdx, QWORD PTR WINED3D_RS_AMBIENTMATERIALSOURCE[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 68[rbx], edx
	mov	rdx, QWORD PTR WINED3D_RS_SPECULARMATERIALSOURCE[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 72[rbx], eax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L18:
	mov	DWORD PTR 36[rbx], 1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rcx, QWORD PTR WINED3D_RS_FOGVERTEXMODE[rip]
	cmp	edx, DWORD PTR [rax+rcx*4]
	je	.L88
	mov	rdx, QWORD PTR WINED3D_RS_RANGEFOGENABLE[rip]
	mov	edx, DWORD PTR [rax+rdx*4]
	test	edx, edx
	je	.L47
	mov	rdx, QWORD PTR WINED3D_FFP_VS_FOG_RANGE[rip]
	mov	QWORD PTR 88[rbx], rdx
	jmp	.L40
.L5:
	mov	rax, QWORD PTR WINED3D_FFP_VS_FOG_FOGCOORD[rip]
	mov	QWORD PTR 88[rbx], rax
	jmp	.L4
.L47:
	mov	rdx, QWORD PTR WINED3D_FFP_VS_FOG_DEPTH[rip]
	mov	QWORD PTR 88[rbx], rdx
	jmp	.L40
.L88:
	mov	rdx, QWORD PTR WINED3D_FFP_VS_FOG_FOGCOORD[rip]
	mov	QWORD PTR 88[rbx], rdx
	jmp	.L40
	.cfi_endproc
.LFE0:
	.size	wined3d_ffp_get_vs_settings, .-wined3d_ffp_get_vs_settings
	.comm	WINED3D_TS_PROJECTION,8,8
	.comm	WINED3D_TSS_TEXCOORD_INDEX,8,8
	.comm	WINED3D_SHADE_FLAT,4,4
	.comm	WINED3D_RS_VERTEXBLEND,8,8
	.comm	WINED3D_RS_SPECULARMATERIALSOURCE,8,8
	.comm	WINED3D_RS_SHADEMODE,8,8
	.comm	WINED3D_RS_RANGEFOGENABLE,8,8
	.comm	WINED3D_RS_NORMALIZENORMALS,8,8
	.comm	WINED3D_RS_LOCALVIEWER,8,8
	.comm	WINED3D_RS_LIGHTING,8,8
	.comm	WINED3D_RS_FOGVERTEXMODE,8,8
	.comm	WINED3D_RS_FOGTABLEMODE,8,8
	.comm	WINED3D_RS_FOGENABLE,8,8
	.comm	WINED3D_RS_EMISSIVEMATERIALSOURCE,8,8
	.comm	WINED3D_RS_DIFFUSEMATERIALSOURCE,8,8
	.comm	WINED3D_RS_COLORVERTEX,8,8
	.comm	WINED3D_RS_CLIPPLANEENABLE,8,8
	.comm	WINED3D_RS_CLIPPING,8,8
	.comm	WINED3D_RS_AMBIENTMATERIALSOURCE,8,8
	.comm	WINED3D_MCS_MATERIAL,8,8
	.comm	WINED3D_FOG_NONE,4,4
	.comm	WINED3D_FFP_VS_FOG_RANGE,8,8
	.comm	WINED3D_FFP_VS_FOG_OFF,8,8
	.comm	WINED3D_FFP_VS_FOG_FOGCOORD,8,8
	.comm	WINED3D_FFP_VS_FOG_DEPTH,8,8
	.comm	WINED3D_FFP_TEXCOORD0,4,4
	.comm	WINED3D_FFP_PSIZE,4,4
	.comm	WINED3D_FFP_NORMAL,4,4
	.comm	WINED3D_FFP_DIFFUSE,4,4
	.comm	MAX_TEXTURES,4,4
	.comm	MAX_ACTIVE_LIGHTS,4,4
	.comm	GL_POINTS,8,8
	.comm	FALSE,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1065353216
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_utils.c_wined3d_ffp_get_vs_settings.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unsupported vertex blending: %d\012\000"
	.align	2
.LC1:
	.ascii	"Unhandled light type %#x.\012\000"
	.global	__aeabi_fcmpeq
	.text
	.align	2
	.global	wined3d_ffp_get_vs_settings
	.syntax unified
	.arm
	.fpu softvfp
	.type	wined3d_ffp_get_vs_settings, %function
wined3d_ffp_get_vs_settings:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r4, r2
	mov	r0, r2
	mov	r5, r1
	mov	r2, #100
	mov	r1, #0
	sub	sp, sp, #12
	ldr	r7, [r6, #8]
	ldr	fp, [r6, #4]
	bl	memset
	ldr	r8, [r6, #20]
	cmp	r8, #0
	bne	.L85
	ldr	r2, .L92
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	ldr	r1, [r3, r2, lsl #2]
	sub	r3, r1, #128
	cmp	r3, #3
	strls	r1, [r4, #24]
	bhi	.L86
.L16:
	mov	r0, r5
	add	r1, r6, #12
	bl	use_indexed_vertex_blending
	cmp	r0, #0
	bne	.L87
.L17:
	ldr	r3, .L92+4
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	ldr	r0, [r2, r3, lsl #2]
	cmp	r0, #0
	beq	.L19
	ldr	r3, .L92+8
	ldr	r3, [r3]
	ldr	r0, [r2, r3, lsl #2]
	subs	r0, r0, #0
	movne	r0, #1
.L19:
	ldr	r3, .L92+12
	ldr	r1, [r6, #12]
	ldr	r3, [r3]
	str	r0, [r4, #36]
	lsr	r3, r1, r3
	and	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4, #40]
	beq	.L20
	ldr	r3, .L92+16
	ldr	r3, [r3]
	ldr	r8, [r2, r3, lsl #2]
	subs	r8, r8, #0
	movne	r8, #1
.L20:
	ldr	r3, .L92+20
	str	r8, [r4, #44]
	ldr	r3, [r3]
	ldr	r0, .L92+24
	ldr	r3, [r2, r3, lsl #2]
	ldr	ip, [r0]
	subs	r3, r3, #0
	movne	r3, #1
	str	r3, [r4, #48]
	ldr	r3, [r2, ip, lsl #2]
	ldr	r0, .L92+28
	subs	r3, r3, #0
	ldr	ip, [r5]
	movne	r3, #1
	ldr	r0, [r0]
	str	r3, [r4, #52]
	sub	r0, ip, r0
	clz	r0, r0
	ldr	ip, .L92+32
	lsr	r0, r0, #5
	ldr	r3, [ip]
	ldr	ip, .L92+36
	lsr	r3, r1, r3
	and	r3, r3, #1
	stmib	r4, {r0, r3}
	ldr	ip, [ip]
	ldr	r3, [r2, ip, lsl #2]
	cmp	r3, #0
	bne	.L88
.L21:
	ldr	r3, .L92+40
	ldr	r3, [r3]
	str	r3, [r4, #56]
	str	r3, [r4, #60]
	str	r3, [r4, #64]
	str	r3, [r4, #68]
.L25:
	ldr	r8, .L92+44
	ldr	ip, [r8]
	cmp	ip, #0
	beq	.L28
	mov	r2, #0
	ldr	r3, .L92+48
	ldr	r0, [r5, #8]
	ldr	r9, [r3]
	ldr	r1, [r4, #16]
	ldr	r10, .L92+52
	lsl	r9, r9, #2
	sub	r0, r0, #4
	sub	r1, r1, #4
	str	r5, [sp, #4]
.L27:
	ldr	lr, [r0, #4]!
	ldr	r3, [lr, r9]
	cmp	r3, ip
	bcs	.L26
	ldr	ip, [r10]
	ldr	r5, [r6, #12]
	add	ip, r3, ip
	lsr	ip, r5, ip
	tst	ip, #1
	movne	ip, #1
	ldrne	r3, [r4, #12]
	orrne	r3, r3, ip, lsl r2
	strne	r3, [r4, #12]
	ldrne	r3, [lr, r9]
.L26:
	str	r3, [r1, #4]!
	ldr	ip, [r8]
	add	r2, r2, #1
	cmp	ip, r2
	bhi	.L27
	ldr	r5, [sp, #4]
.L28:
	mov	r0, r7
	ldr	r7, [fp, #4]
	bl	wined3d_max_compat_varyings
	cmp	r7, r0
	mvnge	r3, #0
	ldrge	r2, [r8]
	mvnge	r3, r3, lsl r2
	strge	r3, [r4, #12]
.L24:
	ldr	r8, .L92+56
	ldr	r3, [r8]
	cmp	r3, #0
	movne	r7, #0
	ldrne	r9, .L92+60
	beq	.L39
.L29:
	ldr	r3, [r5, #16]
	ldr	r3, [r3, r7, lsl #2]
	cmp	r3, #0
	beq	.L32
	ldr	r1, [r3]
	sub	r3, r1, #132
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L33
.L35:
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L34
.L34:
	ldr	r3, [r4, #88]
	add	r3, r3, #1
	str	r3, [r4, #88]
.L32:
	ldr	r3, [r8]
	add	r7, r7, #1
	cmp	r3, r7
	bhi	.L29
.L39:
	ldr	r3, .L92+64
	ldr	r7, [r5, #4]
	ldr	r3, [r3]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, #0
	bne	.L89
	ldr	r3, .L92+68
	ldr	r3, [r3]
	str	r3, [r4, #80]
.L40:
	ldr	r3, [fp]
	cmp	r3, #0
	beq	.L48
	ldr	r3, .L92+72
	ldr	r2, .L92+76
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r7, r3, lsl #2]
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
.L49:
	ldr	r2, [r6, #16]
	str	r3, [r4, #20]
	str	r2, [r4, #76]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	ldr	r3, [r4, #96]
	add	r3, r3, #1
	str	r3, [r4, #96]
	b	.L32
.L38:
	ldr	r3, [r4, #92]
	add	r3, r3, #1
	str	r3, [r4, #92]
	b	.L32
.L36:
	ldr	r3, [r4, #84]
	add	r3, r3, #1
	str	r3, [r4, #84]
	b	.L32
.L88:
	ldr	r3, .L92+80
	ldr	r3, [r3]
	lsr	r1, r1, r3
	tst	r1, #1
	beq	.L21
	ldr	r1, .L92+84
	ldr	r3, .L92+88
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2, r1, lsl #2]
	str	r1, [r4, #56]
	ldr	r1, .L92+92
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [r1]
	str	r3, [r4, #60]
	ldr	r3, .L92+96
	ldr	r1, [r2, r1, lsl #2]
	ldr	r3, [r3]
	str	r1, [r4, #64]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [r4, #68]
	b	.L25
.L87:
	ldr	r0, [r6]
	bl	use_software_vertex_processing
	mov	r3, #1
	cmp	r0, #0
	strne	r3, [r4, #28]
	streq	r3, [r4, #32]
	b	.L17
.L86:
	ldr	r0, .L92+100
	bl	FIXME
	b	.L16
.L48:
	ldr	r3, .L92+104
	ldr	r3, [r3]
	b	.L49
.L85:
	ldr	r3, .L92+28
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r1, .L92+32
	sub	r2, r2, r3
	clz	r2, r2
	ldr	r0, [r1]
	mov	r1, #1
	ldr	r3, [r6, #12]
	lsr	r2, r2, #5
	str	r2, [r4, #4]
	lsr	r3, r3, r0
	ldr	r2, .L92+64
	and	r3, r3, r1
	ldr	r2, [r2]
	str	r3, [r4, #8]
	ldr	r3, [r5, #4]
	str	r1, [r4]
	ldr	r2, [r3, r2, lsl #2]
	cmp	r2, #0
	beq	.L90
	ldr	r1, .L92+108
	ldr	r2, .L92+112
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r3, r2
	beq	.L5
	ldr	r3, .L92+116
	ldr	r3, [r3]
	str	r3, [r4, #80]
.L4:
	ldr	r8, .L92+44
	ldr	r1, [r8]
	cmp	r1, #0
	beq	.L11
	mov	r3, #0
	ldr	r2, .L92+48
	ldr	r0, [r5, #8]
	ldr	r9, [r2]
	ldr	r10, .L92+52
	lsl	r9, r9, #2
	sub	r0, r0, #4
	str	r5, [sp, #4]
.L10:
	ldr	ip, [r0, #4]!
	lsl	lr, r3, #2
	ldr	r2, [ip, r9]
	cmp	r2, r1
	bcs	.L9
	ldr	r1, [r10]
	ldr	r5, [r6, #12]
	add	r1, r2, r1
	lsr	r1, r5, r1
	tst	r1, #1
	movne	r1, #1
	ldrne	r2, [r4, #12]
	orrne	r2, r2, r1, lsl r3
	strne	r2, [r4, #12]
	ldrne	r2, [ip, r9]
.L9:
	str	r2, [lr]
	ldr	r1, [r8]
	add	r3, r3, #1
	cmp	r1, r3
	bhi	.L10
	ldr	r5, [sp, #4]
.L11:
	mov	r0, r7
	ldr	r7, [fp, #4]
	bl	wined3d_max_compat_varyings
	cmp	r7, r0
	mvnge	r3, #0
	ldrge	r2, [r8]
	mvnge	r3, r3, lsl r2
	strge	r3, [r4, #12]
.L8:
	ldr	r3, [fp]
	cmp	r3, #0
	beq	.L48
	ldr	r2, .L92+72
	ldr	r3, [r5, #4]
	ldr	r1, [r2]
	ldr	r2, .L92+76
	ldr	r3, [r3, r1, lsl #2]
	ldr	r2, [r2]
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
	b	.L49
.L89:
	ldr	r3, .L92+108
	ldr	r2, .L92+112
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, r2
	beq	.L41
	ldr	r1, .L92+120
	ldr	r2, .L92+116
	ldr	r3, [r5, #12]
	ldr	r2, [r2]
	ldr	r5, [r1]
	str	r2, [r4, #80]
	ldr	r0, [r3, r5, lsl #4]	@ float
	mov	r1, #0
	add	r5, r3, r5, lsl #4
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	beq	.L40
	mov	r1, #0
	ldr	r0, [r5, #4]	@ float
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	beq	.L40
	mov	r1, #0
	ldr	r0, [r5, #8]	@ float
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	beq	.L40
	ldr	r0, [r5, #12]	@ float
	mov	r1, #1065353216
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	movne	r3, #1
	strne	r3, [r4, #72]
	b	.L40
.L90:
	ldr	r3, .L92+68
	ldr	r3, [r3]
	str	r3, [r4, #80]
	b	.L4
.L41:
	ldr	r2, .L92+124
	ldr	r2, [r2]
	ldr	r2, [r7, r2, lsl #2]
	cmp	r3, r2
	beq	.L91
	ldr	r3, .L92+128
	ldr	r3, [r3]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, #0
	ldrne	r3, .L92+132
	ldreq	r3, .L92+116
	ldr	r3, [r3]
	str	r3, [r4, #80]
	b	.L40
.L5:
	ldr	r3, .L92+136
	ldr	r3, [r3]
	str	r3, [r4, #80]
	b	.L4
.L91:
	ldr	r3, .L92+136
	ldr	r3, [r3]
	str	r3, [r4, #80]
	b	.L40
.L33:
	mov	r0, r9
	bl	FIXME
	b	.L32
.L93:
	.align	2
.L92:
	.word	WINED3D_RS_VERTEXBLEND
	.word	WINED3D_RS_CLIPPING
	.word	WINED3D_RS_CLIPPLANEENABLE
	.word	WINED3D_FFP_NORMAL
	.word	WINED3D_RS_NORMALIZENORMALS
	.word	WINED3D_RS_LIGHTING
	.word	WINED3D_RS_LOCALVIEWER
	.word	GL_POINTS
	.word	WINED3D_FFP_PSIZE
	.word	WINED3D_RS_COLORVERTEX
	.word	WINED3D_MCS_MATERIAL
	.word	MAX_TEXTURES
	.word	WINED3D_TSS_TEXCOORD_INDEX
	.word	WINED3D_FFP_TEXCOORD0
	.word	MAX_ACTIVE_LIGHTS
	.word	.LC1
	.word	WINED3D_RS_FOGENABLE
	.word	WINED3D_FFP_VS_FOG_OFF
	.word	WINED3D_RS_SHADEMODE
	.word	WINED3D_SHADE_FLAT
	.word	WINED3D_FFP_DIFFUSE
	.word	WINED3D_RS_DIFFUSEMATERIALSOURCE
	.word	WINED3D_RS_EMISSIVEMATERIALSOURCE
	.word	WINED3D_RS_AMBIENTMATERIALSOURCE
	.word	WINED3D_RS_SPECULARMATERIALSOURCE
	.word	.LC0
	.word	FALSE
	.word	WINED3D_RS_FOGTABLEMODE
	.word	WINED3D_FOG_NONE
	.word	WINED3D_FFP_VS_FOG_DEPTH
	.word	WINED3D_TS_PROJECTION
	.word	WINED3D_RS_FOGVERTEXMODE
	.word	WINED3D_RS_RANGEFOGENABLE
	.word	WINED3D_FFP_VS_FOG_RANGE
	.word	WINED3D_FFP_VS_FOG_FOGCOORD
	.size	wined3d_ffp_get_vs_settings, .-wined3d_ffp_get_vs_settings
	.comm	WINED3D_TS_PROJECTION,4,4
	.comm	WINED3D_TSS_TEXCOORD_INDEX,4,4
	.comm	WINED3D_SHADE_FLAT,4,4
	.comm	WINED3D_RS_VERTEXBLEND,4,4
	.comm	WINED3D_RS_SPECULARMATERIALSOURCE,4,4
	.comm	WINED3D_RS_SHADEMODE,4,4
	.comm	WINED3D_RS_RANGEFOGENABLE,4,4
	.comm	WINED3D_RS_NORMALIZENORMALS,4,4
	.comm	WINED3D_RS_LOCALVIEWER,4,4
	.comm	WINED3D_RS_LIGHTING,4,4
	.comm	WINED3D_RS_FOGVERTEXMODE,4,4
	.comm	WINED3D_RS_FOGTABLEMODE,4,4
	.comm	WINED3D_RS_FOGENABLE,4,4
	.comm	WINED3D_RS_EMISSIVEMATERIALSOURCE,4,4
	.comm	WINED3D_RS_DIFFUSEMATERIALSOURCE,4,4
	.comm	WINED3D_RS_COLORVERTEX,4,4
	.comm	WINED3D_RS_CLIPPLANEENABLE,4,4
	.comm	WINED3D_RS_CLIPPING,4,4
	.comm	WINED3D_RS_AMBIENTMATERIALSOURCE,4,4
	.comm	WINED3D_MCS_MATERIAL,4,4
	.comm	WINED3D_FOG_NONE,4,4
	.comm	WINED3D_FFP_VS_FOG_RANGE,4,4
	.comm	WINED3D_FFP_VS_FOG_OFF,4,4
	.comm	WINED3D_FFP_VS_FOG_FOGCOORD,4,4
	.comm	WINED3D_FFP_VS_FOG_DEPTH,4,4
	.comm	WINED3D_FFP_TEXCOORD0,4,4
	.comm	WINED3D_FFP_PSIZE,4,4
	.comm	WINED3D_FFP_NORMAL,4,4
	.comm	WINED3D_FFP_DIFFUSE,4,4
	.comm	MAX_TEXTURES,4,4
	.comm	MAX_ACTIVE_LIGHTS,4,4
	.comm	GL_POINTS,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
