	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_fbcon_init             ## -- Begin function nouveau_fbcon_init
	.p2align	4, 0x90
_nouveau_fbcon_init:                    ## @nouveau_fbcon_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	%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, %r13
	callq	_nouveau_drm
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_nouveau_fb
	xorl	%r14d, %r14d
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%r13, 8(%rax)
	movq	%rax, (%rbx)
	movq	_nouveau_fbcon_helper_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movl	(%r13), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$4, %ecx
	callq	_drm_fb_helper_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_drm_fb_helper_single_add_all_connectors
	movl	(%r12), %eax
	xorl	%ecx, %ecx
	cmpl	$67108865, %eax                 ## imm = 0x4000001
	setge	%cl
	shll	$4, %ecx
	addl	$16, %ecx
	cmpl	$33554433, %eax                 ## imm = 0x2000001
	movl	$8, %ebx
	cmovgel	%ecx, %ebx
	movq	%r13, %rdi
	callq	_drm_helper_disable_unused_functions
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_drm_fb_helper_initial_config
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nouveau_fbcon_helper_funcs,4,2 ## @nouveau_fbcon_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_fbcon_init             ; -- Begin function nouveau_fbcon_init
	.p2align	2
_nouveau_fbcon_init:                    ; @nouveau_fbcon_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_nouveau_drm
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_nouveau_fb
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	str	x0, [x22]
Lloh3:
	adrp	x8, _nouveau_fbcon_helper_funcs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nouveau_fbcon_helper_funcs@GOTPAGEOFF]
	stp	x8, x19, [x0]
	ldr	w2, [x19]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	bl	_drm_fb_helper_init
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
LBB0_4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_drm_fb_helper_single_add_all_connectors
	ldr	w8, [x21]
	mov	w9, #1
	movk	w9, #1024, lsl #16
	mov	w10, #32
	mov	w11, #16
	cmp	w8, w9
	csel	w9, w11, w10, lt
	mov	w10, #1
	movk	w10, #512, lsl #16
	mov	w11, #8
	cmp	w8, w10
	csel	w21, w11, w9, lt
	mov	x0, x19
	bl	_drm_helper_disable_unused_functions
	mov	x0, x20
	mov	x1, x21
	bl	_drm_fb_helper_initial_config
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nouveau_fbcon_helper_funcs,4,2 ; @nouveau_fbcon_helper_funcs
.subsections_via_symbols
