	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_fbcon_accel_fini
_nouveau_fbcon_accel_fini:              ## @nouveau_fbcon_accel_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
	callq	_nouveau_drm
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_console_lock
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_FBINFO_HWACCEL_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_4:
	xorl	%eax, %eax
	callq	_console_unlock
	movq	(%r14), %rdi
	callq	_nouveau_channel_idle
	leaq	24(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	20(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	16(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	12(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	8(%rbx), %rdi
	callq	_nvif_object_fini
	leaq	4(%rbx), %rdi
	callq	_nvif_object_fini
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nvif_object_fini               ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FBINFO_HWACCEL_DISABLED,4,2    ## @FBINFO_HWACCEL_DISABLED
	.no_dead_strip	_nouveau_fbcon_accel_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_fbcon_accel_fini
_nouveau_fbcon_accel_fini:              ; @nouveau_fbcon_accel_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
	bl	_nouveau_drm
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	bl	_console_lock
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _FBINFO_HWACCEL_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FBINFO_HWACCEL_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_4:
	bl	_console_unlock
	ldr	x0, [x20]
	bl	_nouveau_channel_idle
	add	x0, x19, #24
	bl	_nvif_object_fini
	add	x0, x19, #20
	bl	_nvif_object_fini
	add	x0, x19, #16
	bl	_nvif_object_fini
	add	x0, x19, #12
	bl	_nvif_object_fini
	add	x0, x19, #8
	bl	_nvif_object_fini
	add	x0, x19, #4
	bl	_nvif_object_fini
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nvif_object_fini
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FBINFO_HWACCEL_DISABLED,4,2    ; @FBINFO_HWACCEL_DISABLED
	.no_dead_strip	_nouveau_fbcon_accel_fini
.subsections_via_symbols
