	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_fbdev_init                ## -- Begin function omap_fbdev_init
	.p2align	4, 0x90
_omap_fbdev_init:                       ## @omap_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	8(%rdi), %r15
	cmpl	$0, 8(%r15)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_pan_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_omap_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
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_drm_fb_helper_single_add_all_connectors
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_drm_fb_helper_initial_config
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	callq	_drm_fb_helper_fini
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_5:
	movq	%rbx, (%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_pan_worker,4,2                 ## @pan_worker
	.comm	_omap_fb_helper_funcs,4,2       ## @omap_fb_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"omap_fbdev_init failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_fbdev_init                ; -- Begin function omap_fbdev_init
	.p2align	2
_omap_fbdev_init:                       ; @omap_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	x21, [x0, #8]
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
	add	x0, x20, #4
Lloh3:
	adrp	x8, _pan_worker@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pan_worker@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh6:
	adrp	x2, _omap_fb_helper_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _omap_fb_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_drm_fb_helper_prepare
	ldr	w2, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_drm_fb_helper_init
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_drm_fb_helper_single_add_all_connectors
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #32
	bl	_drm_fb_helper_initial_config
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_drm_fb_helper_fini
LBB0_6:
	mov	x0, x20
	bl	_kfree
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_warn
LBB0_7:
	str	x20, [x21]
LBB0_8:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_pan_worker,4,2                 ; @pan_worker
	.comm	_omap_fb_helper_funcs,4,2       ; @omap_fb_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"omap_fbdev_init failed\n"

.subsections_via_symbols
