	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_fifo_chan_dtor
_nvkm_fifo_chan_dtor:                   ## @nvkm_fifo_chan_dtor
	.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
	callq	_nvkm_fifo_chan
	movq	%rax, %rbx
	movq	40(%rax), %rax
	movq	48(%rbx), %r15
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	36(%rbx), %edi
	movl	4(%r15), %esi
	callq	___clear_bit
	movq	%r12, %rdi
	callq	_list_del
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_iounmap
LBB0_4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %r15
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_nvkm_vmm_part
	movq	%r15, %rdi
	callq	_nvkm_vmm_unref
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_nvkm_gpuobj_del
	movq	%rbx, %rdi
	callq	_nvkm_gpuobj_del
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_fifo_chan_dtor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_fifo_chan_dtor
_nvkm_fifo_chan_dtor:                   ; @nvkm_fifo_chan_dtor
	.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
	bl	_nvkm_fifo_chan
	mov	x19, x0
	ldp	x8, x21, [x0, #40]
	ldr	x8, [x8]
	blr	x8
	mov	x20, x0
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x22, x19, #32
	mov	x0, x22
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #36]
	ldr	w1, [x21, #4]
	bl	___clear_bit
	mov	x0, x22
	bl	_list_del
LBB0_2:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_iounmap
LBB0_4:
	mov	x21, x19
	ldr	x0, [x21, #16]!
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_nvkm_vmm_part
	mov	x0, x21
	bl	_nvkm_vmm_unref
LBB0_6:
	add	x0, x19, #8
	bl	_nvkm_gpuobj_del
	mov	x0, x19
	bl	_nvkm_gpuobj_del
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvkm_fifo_chan_dtor
.subsections_via_symbols
