	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_crtc_destroy
_nv50_crtc_destroy:                     ## @nv50_crtc_destroy
	.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
	movl	(%rdi), %edi
	callq	_nouveau_dev
	movl	%eax, %edi
	callq	_nouveau_disp
	movq	(%rax), %r15
	movq	%r14, %rdi
	callq	_nouveau_crtc
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_nv50_disp
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_nv50_head
	movq	%rax, %rbx
	movl	(%r13), %edi
	leaq	12(%rax), %rsi
	callq	_nv50_dmac_destroy
	movl	(%r13), %edi
	leaq	8(%rbx), %rsi
	callq	_nv50_pioc_destroy
	movl	(%r13), %edi
	leaq	4(%rbx), %rsi
	callq	_nv50_dmac_destroy
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_nv50_pioc_destroy
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	16(%r12), %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	leaq	8(%r12), %r15
	movq	8(%r12), %rdi
	callq	_nouveau_bo_unmap
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_nouveau_bo_unpin
LBB0_2:
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_nouveau_bo_ref
	movq	(%r12), %rdi
	callq	_nouveau_bo_unmap
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_nouveau_bo_unpin
LBB0_4:
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_nouveau_bo_ref
	movq	%r14, %rdi
	callq	_drm_crtc_cleanup
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_crtc_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_crtc_destroy
_nv50_crtc_destroy:                     ; @nv50_crtc_destroy
	.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	w0, [x0]
	bl	_nouveau_dev
	bl	_nouveau_disp
	ldr	x21, [x0]
	mov	x0, x19
	bl	_nouveau_crtc
	mov	x20, x0
	ldr	w0, [x19]
	bl	_nv50_disp
	mov	x22, x0
	mov	x0, x19
	bl	_nv50_head
	mov	x23, x0
	ldr	w0, [x22]
	add	x1, x23, #12
	bl	_nv50_dmac_destroy
	ldr	w0, [x22]
	add	x1, x23, #8
	bl	_nv50_pioc_destroy
	ldr	w0, [x22]
	add	x1, x23, #4
	bl	_nv50_dmac_destroy
	ldr	w0, [x22]
	mov	x1, x23
	bl	_nv50_pioc_destroy
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x20, #16
	bl	_list_del
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x21, x20
	ldr	x0, [x21, #8]!
	bl	_nouveau_bo_unmap
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_nouveau_bo_unpin
LBB0_2:
	mov	x0, #0
	mov	x1, x21
	bl	_nouveau_bo_ref
	ldr	x0, [x20]
	bl	_nouveau_bo_unmap
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_nouveau_bo_unpin
LBB0_4:
	mov	x0, #0
	mov	x1, x20
	bl	_nouveau_bo_ref
	mov	x0, x19
	bl	_drm_crtc_cleanup
	mov	x0, 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
	b	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_crtc_destroy
.subsections_via_symbols
