	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nouveau_falcon_fini           ## -- Begin function _nouveau_falcon_fini
	.p2align	4, 0x90
__nouveau_falcon_fini:                  ## @_nouveau_falcon_fini
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%esi, %esi
	jne	LBB0_3
## %bb.1:
	leaq	32(%rbx), %rsi
	xorl	%edi, %edi
	callq	_nouveau_gpuobj_ref
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
LBB0_3:
	movq	%rbx, %rdi
	movl	$72, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_nv_mo32
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$-1, %edx
	callq	_nv_wo32
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nouveau_engine_fini            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nouveau_falcon_fini           ; -- Begin function _nouveau_falcon_fini
	.p2align	2
__nouveau_falcon_fini:                  ; @_nouveau_falcon_fini
	.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
	mov	x19, x1
	mov	x20, x0
	cbnz	w1, LBB0_3
; %bb.1:
	add	x1, x20, #32
	mov	x0, #0
	bl	_nouveau_gpuobj_ref
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x20, #16]
	bl	_kfree
	ldr	x0, [x20, #8]
	bl	_kfree
	str	xzr, [x20, #8]
LBB0_3:
	mov	x0, x20
	mov	w1, #72
	mov	w2, #3
	mov	w3, #0
	bl	_nv_mo32
	mov	x0, x20
	mov	w1, #20
	mov	w2, #-1
	bl	_nv_wo32
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nouveau_engine_fini
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
