	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_fbdev_init                 ## -- Begin function msm_fbdev_init
	.p2align	4, 0x90
_msm_fbdev_init:                        ## @msm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_msm_fb_helper_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_fb_helper_prepare
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_fb_helper_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_drm_fb_helper_single_add_all_connectors
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_drm_fb_helper_remove_conflicting_framebuffers
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_drm_fb_helper_initial_config
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_drm_fb_helper_fini
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, (%r15)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_msm_fb_helper_funcs,4,2        ## @msm_fb_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not init fbdev: ret=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"msm"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_fbdev_init                 ; -- Begin function msm_fbdev_init
	.p2align	2
_msm_fbdev_init:                        ; @msm_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]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x2, _msm_fb_helper_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _msm_fb_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_fb_helper_prepare
	ldr	w2, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_fb_helper_init
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_drm_fb_helper_single_add_all_connectors
	cbnz	w0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	w2, #0
	bl	_drm_fb_helper_remove_conflicting_framebuffers
	mov	x0, x19
	mov	w1, #32
	bl	_drm_fb_helper_initial_config
	cbz	w0, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_drm_fb_helper_fini
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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_8:
	str	x19, [x21]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_msm_fb_helper_funcs,4,2        ; @msm_fb_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not init fbdev: ret=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"msm"

.subsections_via_symbols
