	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_object_del             ## -- Begin function nouveau_object_del
	.p2align	4, 0x90
_nouveau_object_del:                    ## @nouveau_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	callq	_nouveau_handle_ref
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_NV_NAMEDB_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_nv_pclass
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rdi
	callq	_nv_namedb
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_nouveau_namedb_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_nouveau_namedb_put
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nouveau_handle_fini
	movq	%r14, %rdi
	callq	_nouveau_handle_destroy
	leaq	-24(%rbp), %rsi
	xorl	%edi, %edi
	callq	_nouveau_object_ref
	jmp	LBB0_7
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	leaq	-24(%rbp), %rsi
	xorl	%edi, %edi
	callq	_nouveau_object_ref
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_NV_NAMEDB_CLASS,4,2            ## @NV_NAMEDB_CLASS
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_object_del             ; -- Begin function nouveau_object_del
	.p2align	2
_nouveau_object_del:                    ; @nouveau_object_del
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	bl	_nouveau_handle_ref
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _NV_NAMEDB_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_NAMEDB_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nv_pclass
	cbz	x0, LBB0_5
; %bb.2:
	bl	_nv_namedb
	mov	x1, x19
	bl	_nouveau_namedb_get
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	bl	_nouveau_namedb_put
	mov	x0, x19
	mov	w1, #0
	bl	_nouveau_handle_fini
	mov	x0, x19
	bl	_nouveau_handle_destroy
	add	x1, sp, #8
	mov	x0, #0
	bl	_nouveau_object_ref
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	add	x1, sp, #8
	mov	x0, #0
	bl	_nouveau_object_ref
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_NV_NAMEDB_CLASS,4,2            ; @NV_NAMEDB_CLASS
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
