	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_drm_device_fini
_nouveau_drm_device_fini:               ## @nouveau_drm_device_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
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_nouveau_pmops_runtime
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_pm_runtime_get_sync
	movl	8(%rbx), %edi
	callq	_pm_runtime_forbid
LBB0_2:
	movq	%rbx, %rdi
	callq	_nouveau_led_fini
	movq	%rbx, %rdi
	callq	_nouveau_fbcon_fini
	movq	%r14, %rdi
	callq	_nouveau_dmem_fini
	movq	%r14, %rdi
	callq	_nouveau_svm_fini
	movq	%rbx, %rdi
	callq	_nouveau_hwmon_fini
	movq	%r14, %rdi
	callq	_nouveau_debugfs_fini
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_nouveau_display_fini
LBB0_4:
	movq	%rbx, %rdi
	callq	_nouveau_display_destroy
	movq	%r14, %rdi
	callq	_nouveau_accel_fini
	movq	%rbx, %rdi
	callq	_nouveau_bios_takedown
	movq	%r14, %rdi
	callq	_nouveau_ttm_fini
	movq	%r14, %rdi
	callq	_nouveau_vga_fini
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_nouveau_cli_fini
	movq	%r14, %rdi
	callq	_nouveau_cli_fini
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nouveau_drm_device_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_drm_device_fini
_nouveau_drm_device_fini:               ; @nouveau_drm_device_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	x20, x0
	bl	_nouveau_drm
	mov	x19, x0
	bl	_nouveau_pmops_runtime
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_pm_runtime_get_sync
	ldr	w0, [x20, #8]
	bl	_pm_runtime_forbid
LBB0_2:
	mov	x0, x20
	bl	_nouveau_led_fini
	mov	x0, x20
	bl	_nouveau_fbcon_fini
	mov	x0, x19
	bl	_nouveau_dmem_fini
	mov	x0, x19
	bl	_nouveau_svm_fini
	mov	x0, x20
	bl	_nouveau_hwmon_fini
	mov	x0, x19
	bl	_nouveau_debugfs_fini
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_nouveau_display_fini
LBB0_4:
	mov	x0, x20
	bl	_nouveau_display_destroy
	mov	x0, x19
	bl	_nouveau_accel_fini
	mov	x0, x20
	bl	_nouveau_bios_takedown
	mov	x0, x19
	bl	_nouveau_ttm_fini
	mov	x0, x19
	bl	_nouveau_vga_fini
	add	x0, x19, #4
	bl	_nouveau_cli_fini
	mov	x0, x19
	bl	_nouveau_cli_fini
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nouveau_drm_device_fini
.subsections_via_symbols
