	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsl_dcu_drm_modeset_init       ## -- Begin function fsl_dcu_drm_modeset_init
	.p2align	4, 0x90
_fsl_dcu_drm_modeset_init:              ## @fsl_dcu_drm_modeset_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_drm_mode_config_init
	movq	(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movabsq	$8791798056943, %rcx            ## imm = 0x7FF000007EF
	movq	%rcx, (%rax)
	movq	_fsl_dcu_drm_mode_config_funcs@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	%rbx, %rdi
	callq	_fsl_dcu_drm_crtc_create
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_fsl_dcu_drm_encoder_create
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_fsl_dcu_create_outputs
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	(%rbx), %rdi
	callq	_drm_mode_config_cleanup
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rdi
	callq	_drm_mode_config_reset
	movq	(%rbx), %rdi
	callq	_drm_kms_helper_poll_init
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_fsl_dcu_drm_mode_config_funcs,4,2 ## @fsl_dcu_drm_mode_config_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fsl_dcu_drm_modeset_init
lCPI0_0:
	.long	2031                            ; 0x7ef
	.long	2047                            ; 0x7ff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_fsl_dcu_drm_modeset_init
	.p2align	2
_fsl_dcu_drm_modeset_init:              ; @fsl_dcu_drm_modeset_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	bl	_drm_mode_config_init
	ldr	x8, [x19]
	str	xzr, [x8, #24]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
Lloh2:
	adrp	x9, _fsl_dcu_drm_mode_config_funcs@GOTPAGE
Lloh3:
	ldr	x9, [x9, _fsl_dcu_drm_mode_config_funcs@GOTPAGEOFF]
	stp	x9, xzr, [x8, #8]
	mov	x0, x19
	bl	_fsl_dcu_drm_crtc_create
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	add	x1, x19, #8
	mov	x0, x19
	bl	_fsl_dcu_drm_encoder_create
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_fsl_dcu_create_outputs
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	x0, [x19]
	bl	_drm_mode_config_cleanup
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x0, [x19]
	bl	_drm_mode_config_reset
	ldr	x0, [x19]
	bl	_drm_kms_helper_poll_init
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_fsl_dcu_drm_mode_config_funcs,4,2 ; @fsl_dcu_drm_mode_config_funcs
.subsections_via_symbols
