	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_bo_purge
_vc4_bo_purge:                          ## @vc4_bo_purge
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_vc4_bo
	movq	%rax, %rbx
	movq	8(%r14), %r15
	leaq	24(%rax), %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%rbx), %rax
	movq	_VC4_MADV_DONTNEED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	leaq	4(%r14), %rdi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	callq	_drm_vma_node_unmap
	movl	(%r15), %edi
	movl	(%r14), %esi
	movq	8(%rbx), %rdx
	movl	16(%rbx), %ecx
	callq	_dma_free_wc
	movq	$0, 8(%rbx)
	movq	___VC4_MADV_PURGED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC4_MADV_DONTNEED,8,3          ## @VC4_MADV_DONTNEED
	.comm	___VC4_MADV_PURGED,8,3          ## @__VC4_MADV_PURGED
	.no_dead_strip	_vc4_bo_purge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_bo_purge
_vc4_bo_purge:                          ; @vc4_bo_purge
	.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
	mov	x19, x0
	bl	_to_vc4_bo
	mov	x20, x0
	ldr	x21, [x19, #8]
	add	x0, x0, #24
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _VC4_MADV_DONTNEED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC4_MADV_DONTNEED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	add	x0, x19, #4
	ldr	x8, [x21, #8]
	ldr	w1, [x8]
	bl	_drm_vma_node_unmap
	ldr	w0, [x21]
	ldr	w1, [x19]
	ldr	x2, [x20, #8]
	ldr	w3, [x20, #16]
	bl	_dma_free_wc
Lloh3:
	adrp	x8, ___VC4_MADV_PURGED@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___VC4_MADV_PURGED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, xzr, [x20]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VC4_MADV_DONTNEED,8,3          ; @VC4_MADV_DONTNEED
	.comm	___VC4_MADV_PURGED,8,3          ; @__VC4_MADV_PURGED
	.no_dead_strip	_vc4_bo_purge
.subsections_via_symbols
