	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_fbcon_accel_init
_nouveau_fbcon_accel_init:              ## @nouveau_fbcon_accel_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_nouveau_drm
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movq	_NV_DEVICE_INFO_V0_TESLA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_nv04_fbcon_accel_init
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_2:
	movq	_NV_DEVICE_INFO_V0_FERMI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_nv50_fbcon_accel_init
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_nvc0_fbcon_accel_init
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	_nouveau_fbcon_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ## @NV_DEVICE_INFO_V0_TESLA
	.comm	_NV_DEVICE_INFO_V0_FERMI,8,3    ## @NV_DEVICE_INFO_V0_FERMI
	.comm	_nouveau_fbcon_ops,4,2          ## @nouveau_fbcon_ops
	.no_dead_strip	_nouveau_fbcon_accel_init
.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_init
_nouveau_fbcon_accel_init:              ; @nouveau_fbcon_accel_init
	.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
	ldp	x8, x9, [x0]
	ldr	x19, [x9]
Lloh0:
	adrp	x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_nv04_fbcon_accel_init
	cbnz	w0, LBB0_6
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x9, _NV_DEVICE_INFO_V0_FERMI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_FERMI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.3:
	bl	_nv50_fbcon_accel_init
	cbnz	w0, LBB0_6
	b	LBB0_5
LBB0_4:
	bl	_nvc0_fbcon_accel_init
	cbnz	w0, LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _nouveau_fbcon_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nouveau_fbcon_ops@GOTPAGEOFF]
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ; @NV_DEVICE_INFO_V0_TESLA
	.comm	_NV_DEVICE_INFO_V0_FERMI,8,3    ; @NV_DEVICE_INFO_V0_FERMI
	.comm	_nouveau_fbcon_ops,4,2          ; @nouveau_fbcon_ops
	.no_dead_strip	_nouveau_fbcon_accel_init
.subsections_via_symbols
