	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_fbdev_init          ## -- Begin function exynos_drm_fbdev_init
	.p2align	4, 0x90
_exynos_drm_fbdev_init:                 ## @exynos_drm_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
	xorl	%r14d, %r14d
	cmpl	$0, 4(%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%rax, (%r13)
	movq	_exynos_drm_fb_helper_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_drm_fb_helper_prepare
	movq	_MAX_CONNECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_fb_helper_init
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_drm_fb_helper_single_add_all_connectors
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_PREFERRED_BPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_drm_fb_helper_initial_config
	testl	%eax, %eax
	jns	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
	movl	%r12d, %r14d
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_DRM_DEV_ERROR
	movq	%r15, %rdi
	callq	_drm_fb_helper_fini
LBB0_10:
	movq	$0, (%r13)
	movq	%r15, %rdi
	callq	_kfree
LBB0_11:
	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	_exynos_drm_fb_helper_funcs,4,2 ## @exynos_drm_fb_helper_funcs
	.comm	_MAX_CONNECTOR,4,2              ## @MAX_CONNECTOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize drm fb helper.\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register drm_fb_helper_connector.\n"

	.comm	_PREFERRED_BPP,4,2              ## @PREFERRED_BPP
L_.str.2:                               ## @.str.2
	.asciz	"failed to set up hw configuration.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_fbdev_init          ; -- Begin function exynos_drm_fbdev_init
	.p2align	2
_exynos_drm_fbdev_init:                 ; @exynos_drm_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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	str	x0, [x22]
Lloh3:
	adrp	x2, _exynos_drm_fb_helper_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _exynos_drm_fb_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_fb_helper_prepare
Lloh5:
	adrp	x8, _MAX_CONNECTOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_CONNECTOR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_fb_helper_init
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_drm_fb_helper_single_add_all_connectors
	tbnz	w0, #31, LBB0_8
; %bb.4:
Lloh8:
	adrp	x8, _PREFERRED_BPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PREFERRED_BPP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_fb_helper_initial_config
	tbnz	w0, #31, LBB0_9
LBB0_5:
	mov	w21, #0
	b	LBB0_12
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_7:
	mov	x21, x0
	ldr	w0, [x20]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_11
LBB0_8:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	ldr	w0, [x20]
	bl	_DRM_DEV_ERROR
	mov	x0, x19
	bl	_drm_fb_helper_fini
LBB0_11:
	str	xzr, [x22]
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_exynos_drm_fb_helper_funcs,4,2 ; @exynos_drm_fb_helper_funcs
	.comm	_MAX_CONNECTOR,4,2              ; @MAX_CONNECTOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize drm fb helper.\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register drm_fb_helper_connector.\n"

	.comm	_PREFERRED_BPP,4,2              ; @PREFERRED_BPP
l_.str.2:                               ; @.str.2
	.asciz	"failed to set up hw configuration.\n"

.subsections_via_symbols
