	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffp_blitter_use_cpu_clear
_ffp_blitter_use_cpu_clear:             ## @ffp_blitter_use_cpu_clear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_WINED3D_RTYPE_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_WINED3D_RESOURCE_ACCESS_GPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
LBB0_9:
	sete	%al
	jmp	LBB0_10
LBB0_2:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_texture_from_resource
	movq	8(%rax), %rdx
	movq	(%r14), %rsi
	movq	_WINED3D_LOCATION_DISCARDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	12(%rbx), %edi
	movq	_WINED3D_RESOURCE_ACCESS_GPU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	testl	%edi, (%rdx,%rsi,4)
	je	LBB0_6
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	movq	_WINED3D_TEXTURE_PIN_SYSMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	setne	%al
	jmp	LBB0_10
LBB0_6:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movb	$1, %al
LBB0_10:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_WINED3D_TEXTURE_CONVERTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_RTYPE_BUFFER,8,3       ## @WINED3D_RTYPE_BUFFER
	.comm	_WINED3D_RESOURCE_ACCESS_GPU,4,2 ## @WINED3D_RESOURCE_ACCESS_GPU
	.comm	_WINED3D_LOCATION_DISCARDED,4,2 ## @WINED3D_LOCATION_DISCARDED
	.comm	_WINED3D_TEXTURE_PIN_SYSMEM,4,2 ## @WINED3D_TEXTURE_PIN_SYSMEM
	.comm	_WINED3D_TEXTURE_CONVERTED,4,2  ## @WINED3D_TEXTURE_CONVERTED
	.no_dead_strip	_ffp_blitter_use_cpu_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffp_blitter_use_cpu_clear
_ffp_blitter_use_cpu_clear:             ; @ffp_blitter_use_cpu_clear
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WINED3D_RTYPE_BUFFER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_RTYPE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGEOFF]
LBB0_2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	b	LBB0_9
LBB0_3:
	mov	x20, x0
	mov	x0, x19
	bl	_texture_from_resource
	ldr	x8, [x0, #8]
	ldr	x9, [x20]
	ldr	w9, [x8, x9, lsl #2]
Lloh5:
	adrp	x8, _WINED3D_LOCATION_DISCARDED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WINED3D_LOCATION_DISCARDED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w11, w10, [x19, #8]
	orr	w10, w8, w10
Lloh8:
	adrp	x8, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WINED3D_RESOURCE_ACCESS_GPU@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w11
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
	cbz	w8, LBB0_8
; %bb.5:
	ldr	w8, [x0]
Lloh11:
	adrp	x9, _WINED3D_TEXTURE_PIN_SYSMEM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WINED3D_TEXTURE_PIN_SYSMEM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	b	LBB0_9
LBB0_6:
	cbz	w8, LBB0_10
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x0]
Lloh14:
	adrp	x9, _WINED3D_TEXTURE_CONVERTED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WINED3D_TEXTURE_CONVERTED@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_RTYPE_BUFFER,8,3       ; @WINED3D_RTYPE_BUFFER
	.comm	_WINED3D_RESOURCE_ACCESS_GPU,4,2 ; @WINED3D_RESOURCE_ACCESS_GPU
	.comm	_WINED3D_LOCATION_DISCARDED,4,2 ; @WINED3D_LOCATION_DISCARDED
	.comm	_WINED3D_TEXTURE_PIN_SYSMEM,4,2 ; @WINED3D_TEXTURE_PIN_SYSMEM
	.comm	_WINED3D_TEXTURE_CONVERTED,4,2  ; @WINED3D_TEXTURE_CONVERTED
	.no_dead_strip	_ffp_blitter_use_cpu_clear
.subsections_via_symbols
