	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armada_fbdev_init              ## -- Begin function armada_fbdev_init
	.p2align	4, 0x90
_armada_fbdev_init:                     ## @armada_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, (%r12)
	movq	_armada_fb_helper_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_drm_fb_helper_prepare
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_drm_fb_helper_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_4:
	movq	%r15, %rdi
	callq	_drm_fb_helper_single_add_all_connectors
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_drm_fb_helper_initial_config
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	callq	_DRM_ERROR
	movq	%r15, %rdi
	callq	_drm_fb_helper_fini
LBB0_9:
	movq	$0, (%r12)
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_armada_fb_helper_funcs,4,2     ## @armada_fb_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize drm fb helper\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to add fb connectors\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to set initial config\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armada_fbdev_init              ; -- Begin function armada_fbdev_init
	.p2align	2
_armada_fbdev_init:                     ; @armada_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	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x0, [x21]
Lloh3:
	adrp	x2, _armada_fb_helper_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _armada_fb_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_fb_helper_prepare
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_drm_fb_helper_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_drm_fb_helper_single_add_all_connectors
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #32
	bl	_drm_fb_helper_initial_config
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.7:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_drm_fb_helper_fini
LBB0_9:
	str	xzr, [x21]
LBB0_10:
	mov	x0, x20
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_armada_fb_helper_funcs,4,2     ; @armada_fb_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize drm fb helper\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to add fb connectors\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to set initial config\n"

.subsections_via_symbols
