	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_channel_del            ## -- Begin function nouveau_channel_del
	.p2align	4, 0x90
_nouveau_channel_del:                   ## @nouveau_channel_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	%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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	movq	24(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movl	(%r12), %r13d
	movl	$1, (%r12)
	cmpq	$0, 88(%rbx)
	je	LBB0_6
LBB0_5:
	movl	80(%rbx), %edi
	callq	_nouveau_fence
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_6:
	leaq	24(%rbx), %r15
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	72(%rbx), %rax
	movl	(%rax), %edi
	movl	64(%rbx), %esi
	callq	_nouveau_svmm_part
LBB0_8:
	leaq	56(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	48(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	40(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	32(%rbx), %rdi
	callq	_nvif_notify_fini
	movq	%r15, %rdi
	callq	_nvif_object_fini
	leaq	16(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	8(%rbx), %rdi
	callq	_nouveau_vma_del
	movq	(%rbx), %rdi
	callq	_nouveau_bo_unmap
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	cmpq	$0, (%rdi)
	je	LBB0_11
## %bb.10:
	callq	_nouveau_bo_unpin
LBB0_11:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_nouveau_bo_ref
	movq	%rbx, %rdi
	callq	_kfree
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	movl	%r13d, (%r12)
LBB0_13:
	movq	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
                                        ## implicit-def: $r13d
	cmpq	$0, 88(%rbx)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_channel_del            ; -- Begin function nouveau_channel_del
	.p2align	2
_nouveau_channel_del:                   ; @nouveau_channel_del
	.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	x19, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_11
; %bb.1:
	mov	x21, x20
	ldr	x22, [x21, #24]!
	cbz	x22, LBB0_12
; %bb.2:
	ldr	w23, [x22]
	mov	w8, #1
	str	w8, [x22]
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_4
LBB0_3:
	ldr	w0, [x20, #80]
	bl	_nouveau_fence
	ldr	x8, [x0]
	mov	x0, x20
	blr	x8
LBB0_4:
	cbz	x22, LBB0_6
; %bb.5:
	ldr	x8, [x20, #72]
	ldr	w0, [x8]
	ldr	w1, [x20, #64]
	bl	_nouveau_svmm_part
LBB0_6:
	add	x0, x20, #56
	bl	_nvif_object_fini
	add	x0, x20, #48
	bl	_nvif_object_fini
	add	x0, x20, #40
	bl	_nvif_object_fini
	add	x0, x20, #32
	bl	_nvif_notify_fini
	mov	x0, x21
	bl	_nvif_object_fini
	add	x0, x20, #16
	bl	_nvif_object_fini
	add	x0, x20, #8
	bl	_nouveau_vma_del
	ldr	x0, [x20]
	bl	_nouveau_bo_unmap
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.8:
	bl	_nouveau_bo_unpin
LBB0_9:
	mov	x0, #0
	mov	x1, x20
	bl	_nouveau_bo_ref
	mov	x0, x20
	bl	_kfree
	cbz	x22, LBB0_11
; %bb.10:
	str	w23, [x22]
LBB0_11:
	str	xzr, [x19]
	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
LBB0_12:
                                        ; implicit-def: $w23
	ldr	x8, [x20, #88]
	cbnz	x8, LBB0_3
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
