	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_texture_use_pbo
_wined3d_texture_use_pbo:               ## @wined3d_texture_use_pbo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WINED3D_RESOURCE_ACCESS_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, 8(%rdi)
	je	LBB0_1
LBB0_5:
	popq	%rbp
	retq
LBB0_1:
	movq	_WINED3DUSAGE_DYNAMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rdi)
	je	LBB0_5
## %bb.2:
	movq	(%rsi), %rcx
	movq	_ARB_PIXEL_BUFFER_OBJECT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_5
## %bb.3:
	movq	16(%rdi), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	_WINED3D_TEXTURE_PIN_SYSMEM@GOTPCREL(%rip), %rax
	movq	_WINED3D_TEXTURE_COND_NP2_EMULATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	sete	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_RESOURCE_ACCESS_CPU,4,2 ## @WINED3D_RESOURCE_ACCESS_CPU
	.comm	_WINED3DUSAGE_DYNAMIC,4,2       ## @WINED3DUSAGE_DYNAMIC
	.comm	_ARB_PIXEL_BUFFER_OBJECT,8,3    ## @ARB_PIXEL_BUFFER_OBJECT
	.comm	_WINED3D_TEXTURE_PIN_SYSMEM,4,2 ## @WINED3D_TEXTURE_PIN_SYSMEM
	.comm	_WINED3D_TEXTURE_COND_NP2_EMULATED,4,2 ## @WINED3D_TEXTURE_COND_NP2_EMULATED
	.no_dead_strip	_wined3d_texture_use_pbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_texture_use_pbo
_wined3d_texture_use_pbo:               ; @wined3d_texture_use_pbo
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _WINED3D_RESOURCE_ACCESS_CPU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_RESOURCE_ACCESS_CPU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	w8, [x0, #12]
Lloh3:
	adrp	x9, _WINED3DUSAGE_DYNAMIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DUSAGE_DYNAMIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	ldr	x8, [x1]
Lloh6:
	adrp	x9, _ARB_PIXEL_BUFFER_OBJECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARB_PIXEL_BUFFER_OBJECT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_1
; %bb.5:
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _WINED3D_TEXTURE_PIN_SYSMEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINED3D_TEXTURE_PIN_SYSMEM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _WINED3D_TEXTURE_COND_NP2_EMULATED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WINED3D_TEXTURE_COND_NP2_EMULATED@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w0, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_RESOURCE_ACCESS_CPU,4,2 ; @WINED3D_RESOURCE_ACCESS_CPU
	.comm	_WINED3DUSAGE_DYNAMIC,4,2       ; @WINED3DUSAGE_DYNAMIC
	.comm	_ARB_PIXEL_BUFFER_OBJECT,8,3    ; @ARB_PIXEL_BUFFER_OBJECT
	.comm	_WINED3D_TEXTURE_PIN_SYSMEM,4,2 ; @WINED3D_TEXTURE_PIN_SYSMEM
	.comm	_WINED3D_TEXTURE_COND_NP2_EMULATED,4,2 ; @WINED3D_TEXTURE_COND_NP2_EMULATED
	.no_dead_strip	_wined3d_texture_use_pbo
.subsections_via_symbols
