	.file	"extr_d3d9_private.h_wined3daccess_from_d3dpool.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wined3daccess_from_d3dpool, @function
wined3daccess_from_d3dpool:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edi, 130
	je	.L2
	jg	.L3
	add	edi, -128
	xor	eax, eax
	cmp	edi, 1
	ja	.L15
	mov	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_CPU[rip]
.L12:
	or	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_MAP_R[rip]
	or	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_MAP_W[rip]
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	cmp	edi, 131
	jne	.L1
	mov	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_GPU[rip]
	test	DWORD PTR D3DUSAGE_DYNAMIC[rip], esi
	jne	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_GPU[rip]
	or	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_CPU[rip]
	or	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_MAP_R[rip]
	or	eax, DWORD PTR WINED3D_RESOURCE_ACCESS_MAP_W[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	wined3daccess_from_d3dpool, .-wined3daccess_from_d3dpool
	.comm	WINED3D_RESOURCE_ACCESS_MAP_W,4,4
	.comm	WINED3D_RESOURCE_ACCESS_MAP_R,4,4
	.comm	WINED3D_RESOURCE_ACCESS_GPU,4,4
	.comm	WINED3D_RESOURCE_ACCESS_CPU,4,4
	.comm	D3DUSAGE_DYNAMIC,4,4
	.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_d3d9_private.h_wined3daccess_from_d3dpool.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wined3daccess_from_d3dpool, %function
wined3daccess_from_d3dpool:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r0, #130
	beq	.L2
	bgt	.L3
	sub	r0, r0, #128
	cmp	r0, #1
	bhi	.L7
	ldr	r1, .L13
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r2
	orr	r0, r0, r3
	bx	lr
.L3:
	cmp	r0, #131
	bne	.L7
	ldr	r3, .L13+12
	ldr	r2, .L13+16
	ldr	r3, [r3]
	ldr	r0, [r2]
	tst	r1, r3
	bxeq	lr
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r2
	orr	r0, r0, r3
	bx	lr
.L7:
	mov	r0, #0
	bx	lr
.L2:
	ldr	r1, .L13+16
	ldr	r3, .L13
	ldr	r2, .L13+4
	ldr	r0, [r1]
	ldr	r1, [r3]
	ldr	r3, .L13+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r1
	orr	r0, r0, r2
	orr	r0, r0, r3
	bx	lr
.L14:
	.align	2
.L13:
	.word	WINED3D_RESOURCE_ACCESS_CPU
	.word	WINED3D_RESOURCE_ACCESS_MAP_R
	.word	WINED3D_RESOURCE_ACCESS_MAP_W
	.word	D3DUSAGE_DYNAMIC
	.word	WINED3D_RESOURCE_ACCESS_GPU
	.size	wined3daccess_from_d3dpool, .-wined3daccess_from_d3dpool
	.comm	WINED3D_RESOURCE_ACCESS_MAP_W,4,4
	.comm	WINED3D_RESOURCE_ACCESS_MAP_R,4,4
	.comm	WINED3D_RESOURCE_ACCESS_GPU,4,4
	.comm	WINED3D_RESOURCE_ACCESS_CPU,4,4
	.comm	D3DUSAGE_DYNAMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
