	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3daccess_from_d3dpool
_wined3daccess_from_d3dpool:            ## @wined3daccess_from_d3dpool
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	leal	-128(%rdi), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.1:
	cmpl	$130, %edi
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	cmpl	$131, %edi
	jne	LBB0_9
## %bb.3:
	movq	_D3DUSAGE_DYNAMIC@GOTPCREL(%rip), %rcx
	movq	_WINED3D_RESOURCE_ACCESS_GPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, (%rcx)
	jne	LBB0_7
LBB0_9:
	popq	%rbp
	retq
LBB0_5:
	movq	_WINED3D_RESOURCE_ACCESS_CPU@GOTPCREL(%rip), %rcx
	movq	_WINED3D_RESOURCE_ACCESS_MAP_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_6:
	movq	_WINED3D_RESOURCE_ACCESS_GPU@GOTPCREL(%rip), %rcx
	movq	_WINED3D_RESOURCE_ACCESS_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_7:
	movq	_WINED3D_RESOURCE_ACCESS_MAP_R@GOTPCREL(%rip), %rcx
LBB0_8:
	orl	(%rcx), %eax
	movq	_WINED3D_RESOURCE_ACCESS_MAP_W@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DUSAGE_DYNAMIC,4,2           ## @D3DUSAGE_DYNAMIC
	.comm	_WINED3D_RESOURCE_ACCESS_GPU,4,2 ## @WINED3D_RESOURCE_ACCESS_GPU
	.comm	_WINED3D_RESOURCE_ACCESS_MAP_R,4,2 ## @WINED3D_RESOURCE_ACCESS_MAP_R
	.comm	_WINED3D_RESOURCE_ACCESS_MAP_W,4,2 ## @WINED3D_RESOURCE_ACCESS_MAP_W
	.comm	_WINED3D_RESOURCE_ACCESS_CPU,4,2 ## @WINED3D_RESOURCE_ACCESS_CPU
	.no_dead_strip	_wined3daccess_from_d3dpool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3daccess_from_d3dpool
_wined3daccess_from_d3dpool:            ; @wined3daccess_from_d3dpool
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	w0, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #131
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _D3DUSAGE_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DUSAGE_DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	tst	w8, w1
	b.eq	LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _WINED3D_RESOURCE_ACCESS_MAP_R@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINED3D_RESOURCE_ACCESS_MAP_R@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _WINED3D_RESOURCE_ACCESS_CPU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WINED3D_RESOURCE_ACCESS_CPU@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _WINED3D_RESOURCE_ACCESS_MAP_R@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WINED3D_RESOURCE_ACCESS_MAP_R@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _WINED3D_RESOURCE_ACCESS_CPU@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WINED3D_RESOURCE_ACCESS_CPU@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _WINED3D_RESOURCE_ACCESS_MAP_R@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WINED3D_RESOURCE_ACCESS_MAP_R@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_7:
Lloh24:
	adrp	x9, _WINED3D_RESOURCE_ACCESS_MAP_W@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WINED3D_RESOURCE_ACCESS_MAP_W@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_8:
	ret
LBB0_9:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DUSAGE_DYNAMIC,4,2           ; @D3DUSAGE_DYNAMIC
	.comm	_WINED3D_RESOURCE_ACCESS_GPU,4,2 ; @WINED3D_RESOURCE_ACCESS_GPU
	.comm	_WINED3D_RESOURCE_ACCESS_MAP_R,4,2 ; @WINED3D_RESOURCE_ACCESS_MAP_R
	.comm	_WINED3D_RESOURCE_ACCESS_MAP_W,4,2 ; @WINED3D_RESOURCE_ACCESS_MAP_W
	.comm	_WINED3D_RESOURCE_ACCESS_CPU,4,2 ; @WINED3D_RESOURCE_ACCESS_CPU
	.no_dead_strip	_wined3daccess_from_d3dpool
.subsections_via_symbols
