	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3d_free_object                ## -- Begin function v3d_free_object
	.p2align	4, 0x90
_v3d_free_object:                       ## @v3d_free_object
	.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
	movl	4(%rdi), %edi
	callq	_to_v3d_dev
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_to_v3d_bo
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_v3d_mmu_remove_ptes
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	decl	12(%rbx)
	movl	(%r14), %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	subl	%eax, 8(%rbx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	4(%r15), %rdi
	callq	_drm_mm_remove_node
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	$1, (%r15)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_gem_shmem_free_object      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3d_free_object                ; -- Begin function v3d_free_object
	.p2align	2
_v3d_free_object:                       ; @v3d_free_object
	.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
	ldr	w0, [x0, #4]
	bl	_to_v3d_dev
	mov	x20, x0
	mov	x0, x19
	bl	_to_v3d_bo
	mov	x21, x0
	bl	_v3d_mmu_remove_ptes
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w8, w8, w9
	ldr	d0, [x20, #8]
	movi.2d	v1, #0xffffffffffffffff
	mov.s	v1[0], w8
	movi.2d	v2, #0xffffffffffffffff
	sub.2s	v1, v0, v1
	add.2s	v0, v0, v2
	mov.s	v1[1], v0[1]
	str	d1, [x20, #8]
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x20
	bl	_spin_lock
	add	x0, x21, #4
	bl	_drm_mm_remove_node
	mov	x0, x20
	bl	_spin_unlock
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x19
	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
	b	_drm_gem_shmem_free_object
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
.subsections_via_symbols
