	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3d_gem_destroy                ## -- Begin function v3d_gem_destroy
	.p2align	4, 0x90
_v3d_gem_destroy:                       ## @v3d_gem_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_to_v3d_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_v3d_sched_fini
	movl	28(%rbx), %edi
	callq	_WARN_ON
	movl	24(%rbx), %edi
	callq	_WARN_ON
	leaq	20(%rbx), %rdi
	callq	_drm_mm_takedown
	movl	16(%rbx), %edi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movl	$4194304, %esi                  ## imm = 0x400000
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3d_gem_destroy                ; -- Begin function v3d_gem_destroy
	.p2align	2
_v3d_gem_destroy:                       ; @v3d_gem_destroy
	.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
	bl	_to_v3d_dev
	mov	x19, x0
	bl	_v3d_sched_fini
	ldr	w0, [x19, #28]
	bl	_WARN_ON
	ldr	w0, [x19, #24]
	bl	_WARN_ON
	add	x0, x19, #20
	bl	_drm_mm_takedown
	ldr	w0, [x19, #16]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	mov	w1, #4194304
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dma_free_coherent
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
