	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_gem_object_del         ## -- Begin function nouveau_gem_object_del
	.p2align	4, 0x90
_nouveau_gem_object_del:                ## @nouveau_gem_object_del
	.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, %r15
	callq	_nouveau_gem_object
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_nouveau_bdev
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	sets	%cl
	movq	_EACCES@GOTPCREL(%rip), %rdx
	addl	(%rdx), %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_drm_prime_gem_destroy
LBB0_3:
	movq	%r14, %rdi
	callq	_ttm_bo_put
	movq	%rbx, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_put_autosuspend     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EACCES,4,2                     ## @EACCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_gem_object_del         ; -- Begin function nouveau_gem_object_del
	.p2align	2
_nouveau_gem_object_del:                ; @nouveau_gem_object_del
	.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	x21, x0
	bl	_nouveau_gem_object
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_nouveau_bdev
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_pm_runtime_get_sync
Lloh0:
	adrp	x8, _EACCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	ccmp	w0, #0, #0, ne
	cset	w0, lt
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_drm_prime_gem_destroy
LBB0_4:
	mov	x0, x19
	bl	_ttm_bo_put
	mov	x0, x20
	bl	_pm_runtime_mark_last_busy
	mov	x0, 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
	b	_pm_runtime_put_autosuspend
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EACCES,4,2                     ; @EACCES
.subsections_via_symbols
