	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_fbdev_init              ## -- Begin function radeon_fbdev_init
	.p2align	4, 0x90
_radeon_fbdev_init:                     ## @radeon_fbdev_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, %rbx
	movq	(%rdi), %rdi
	callq	_list_empty
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movl	$8, %r15d
	cmpl	$8388609, 16(%rbx)              ## imm = 0x800001
	jl	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_ASIC_IS_RN50
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	$32, %r15d
	cmpl	$33554432, 16(%rbx)             ## imm = 0x2000000
	jg	LBB0_5
LBB0_4:
	movl	$16, %r15d
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%rbx, 8(%rax)
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rdi
	movq	_radeon_fb_helper_funcs@GOTPCREL(%rip), %rdx
	movq	%rax, %rsi
	callq	_drm_fb_helper_prepare
	movq	(%rbx), %rdi
	movq	_RADEONFB_CONN_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_drm_fb_helper_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	callq	_drm_fb_helper_single_add_all_connectors
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	callq	_drm_helper_disable_unused_functions
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_drm_fb_helper_initial_config
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:
	movq	%r12, %rdi
	callq	_drm_fb_helper_fini
LBB0_11:
	movq	%r12, %rdi
	callq	_kfree
	movl	%r13d, %r14d
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	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	_radeon_fb_helper_funcs,4,2     ## @radeon_fb_helper_funcs
	.comm	_RADEONFB_CONN_LIMIT,4,2        ## @RADEONFB_CONN_LIMIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_fbdev_init              ; -- Begin function radeon_fbdev_init
	.p2align	2
_radeon_fbdev_init:                     ; @radeon_fbdev_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
	ldr	x0, [x0]
	bl	_list_empty
	cbz	x0, LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_14
LBB0_2:
	ldr	w8, [x19, #16]
	cmp	w8, #2048, lsl #12              ; =8388608
	b.gt	LBB0_4
; %bb.3:
	mov	w20, #8
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_ASIC_IS_RN50
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x19, #16]
	mov	w9, #33554432
	cmp	w8, w9
	b.gt	LBB0_15
LBB0_6:
	mov	w20, #16
LBB0_7:
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_13
; %bb.8:
	mov	x21, x0
	str	x19, [x0, #8]
	str	x0, [x19, #8]
	ldr	x0, [x19]
Lloh3:
	adrp	x2, _radeon_fb_helper_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _radeon_fb_helper_funcs@GOTPAGEOFF]
	mov	x1, x21
	bl	_drm_fb_helper_prepare
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _RADEONFB_CONN_LIMIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RADEONFB_CONN_LIMIT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_drm_fb_helper_init
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.9:
	mov	x0, x21
	bl	_drm_fb_helper_single_add_all_connectors
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x0, [x19]
	bl	_drm_helper_disable_unused_functions
	mov	x0, x21
	mov	x1, x20
	bl	_drm_fb_helper_initial_config
	mov	x22, x0
	cbz	w0, LBB0_14
LBB0_11:
	mov	x0, x21
	bl	_drm_fb_helper_fini
LBB0_12:
	mov	x0, x21
	bl	_kfree
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	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
LBB0_15:
	mov	w20, #32
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_radeon_fb_helper_funcs,4,2     ; @radeon_fb_helper_funcs
	.comm	_RADEONFB_CONN_LIMIT,4,2        ; @RADEONFB_CONN_LIMIT
.subsections_via_symbols
