	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_gem_cpu_fini           ## -- Begin function etnaviv_gem_cpu_fini
	.p2align	4, 0x90
_etnaviv_gem_cpu_fini:                  ## @etnaviv_gem_cpu_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	callq	_to_etnaviv_bo
	movq	%rax, %rbx
	movq	_ETNA_BO_CACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_WARN_ON
	movl	(%r14), %r14d
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movl	(%rax), %r15d
	movl	4(%rax), %r12d
	callq	_etnaviv_op_to_dma_dir
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dma_sync_sg_for_device
	movq	$0, 8(%rbx)
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETNA_BO_CACHED,4,2             ## @ETNA_BO_CACHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_gem_cpu_fini           ; -- Begin function etnaviv_gem_cpu_fini
	.p2align	2
_etnaviv_gem_cpu_fini:                  ; @etnaviv_gem_cpu_fini
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x20, [x0]
	bl	_to_etnaviv_bo
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ETNA_BO_CACHED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETNA_BO_CACHED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w20, [x20]
	ldp	x0, x8, [x19, #8]
	ldp	w22, w21, [x8]
	bl	_etnaviv_op_to_dma_dir
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_dma_sync_sg_for_device
	str	xzr, [x19, #8]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETNA_BO_CACHED,4,2             ; @ETNA_BO_CACHED
.subsections_via_symbols
