	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_falcon_fini
_nvkm_falcon_fini:                      ## @nvkm_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_nvkm_falcon
	movq	32(%rax), %r15
	movq	40(%rax), %r14
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$24, %rdi
	callq	_nvkm_memory_unref
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_vfree
	movq	(%rbx), %rdi
	callq	_vfree
	movq	$0, (%rbx)
LBB0_3:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_nvkm_mc_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	72(%r15), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	addq	$20, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$-1, %edx
	callq	_nvkm_wr32
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_falcon_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_falcon_fini
_nvkm_falcon_fini:                      ; @nvkm_falcon_fini
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_nvkm_falcon
	ldp	x23, x19, [x0, #32]
	cbnz	w22, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x0, x0, #24
	bl	_nvkm_memory_unref
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x21, #8]
	bl	_vfree
	ldr	x0, [x21]
	bl	_vfree
	str	xzr, [x21]
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_nvkm_mc_enabled
	cbz	x0, LBB0_5
; %bb.4:
	add	x1, x23, #72
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	bl	_nvkm_mask
	add	x1, x23, #20
	mov	x0, x19
	mov	w2, #-1
	bl	_nvkm_wr32
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvkm_falcon_fini
.subsections_via_symbols
