	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dcu_load
_fsl_dcu_load:                          ## @fsl_dcu_load
	.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, %rbx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_fsl_dcu_drm_modeset_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_drm_vblank_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_drm_irq_install
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_legacyfb_depth@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%r14d, %r14d
	cmpq	$32, %rax
	ja	LBB0_9
## %bb.8:
	movabsq	$4311810048, %rcx               ## imm = 0x101010000
	btq	%rax, %rcx
	jb	LBB0_10
LBB0_9:
	movl	8(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movl	$24, (%r15)
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movl	8(%rbx), %edi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_drm_kms_helper_poll_fini
	movq	%rbx, %rdi
	callq	_drm_mode_config_cleanup
	movq	%rbx, %rdi
	callq	_drm_irq_uninstall
	movq	$0, (%rbx)
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize mode setting\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize vblank\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to install IRQ handler\n"

	.comm	_legacyfb_depth,4,2             ## @legacyfb_depth
L_.str.3:                               ## @.str.3
	.asciz	"Invalid legacyfb_depth.  Defaulting to 24bpp\n"

	.no_dead_strip	_fsl_dcu_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dcu_load
_fsl_dcu_load:                          ; @fsl_dcu_load
	.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	x21, [x0]
	mov	x0, x21
	bl	_fsl_dcu_drm_modeset_init
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_drm_vblank_init
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_drm_irq_install
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh0:
	adrp	x21, _legacyfb_depth@GOTPAGE
Lloh1:
	ldr	x21, [x21, _legacyfb_depth@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #32
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #16842752
	movk	x9, #1, lsl #32
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_10
; %bb.4:
	mov	w20, #0
	b	LBB0_9
LBB0_5:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_6:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_dev_err
	mov	x0, x19
	bl	_drm_kms_helper_poll_fini
	mov	x0, x19
	bl	_drm_mode_config_cleanup
	mov	x0, x19
	bl	_drm_irq_uninstall
	str	xzr, [x19]
LBB0_9:
	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
LBB0_10:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	mov	w20, #0
	mov	w8, #24
	str	w8, [x21]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize mode setting\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize vblank\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to install IRQ handler\n"

	.comm	_legacyfb_depth,4,2             ; @legacyfb_depth
l_.str.3:                               ; @.str.3
	.asciz	"Invalid legacyfb_depth.  Defaulting to 24bpp\n"

	.no_dead_strip	_fsl_dcu_load
.subsections_via_symbols
