	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mcde_modeset_init
LCPI0_0:
	.long	1                               ## 0x1
	.long	1920                            ## 0x780
	.long	1                               ## 0x1
	.long	1080                            ## 0x438
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mcde_modeset_init:                     ## @mcde_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r15
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	_mcde_mode_config_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_mcde_mode_config_helpers@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1920,1,1080]
	movups	%xmm0, 8(%rbx)
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_drm_vblank_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	callq	_mcde_display_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	movl	(%r15), %esi
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_drm_simple_display_pipe_attach_bridge
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movl	(%rbx), %edi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_drm_mode_config_cleanup
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_drm_mode_config_reset
	movq	%rbx, %rdi
	callq	_drm_kms_helper_poll_init
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_drm_fbdev_generic_setup
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no display output bridge yet\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_mcde_mode_config_funcs,4,2     ## @mcde_mode_config_funcs
	.comm	_mcde_mode_config_helpers,4,2   ## @mcde_mode_config_helpers
L_.str.1:                               ## @.str.1
	.asciz	"failed to init vblank\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to init display\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to attach display output bridge\n"

	.no_dead_strip	_mcde_modeset_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mcde_modeset_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	1920                            ; 0x780
	.long	1                               ; 0x1
	.long	1080                            ; 0x438
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mcde_modeset_init:                     ; @mcde_modeset_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	x19, x0
	ldr	x21, [x0, #40]
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _mcde_mode_config_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mcde_mode_config_funcs@GOTPAGEOFF]
Lloh2:
	adrp	x9, _mcde_mode_config_helpers@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mcde_mode_config_helpers@GOTPAGEOFF]
	stp	x9, x8, [x19, #24]
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_drm_vblank_init
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_mcde_display_init
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w1, [x21], #4
	mov	x0, x21
	bl	_drm_simple_display_pipe_attach_bridge
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.8:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	ldr	w0, [x19]
	bl	_dev_err
	mov	x0, x19
	bl	_drm_mode_config_cleanup
LBB0_10:
	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_11:
	mov	x0, x19
	bl	_drm_mode_config_reset
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	mov	x0, x19
	mov	w1, #32
	bl	_drm_fbdev_generic_setup
	b	LBB0_10
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no display output bridge yet\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_mcde_mode_config_funcs,4,2     ; @mcde_mode_config_funcs
	.comm	_mcde_mode_config_helpers,4,2   ; @mcde_mode_config_helpers
l_.str.1:                               ; @.str.1
	.asciz	"failed to init vblank\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to init display\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to attach display output bridge\n"

	.no_dead_strip	_mcde_modeset_init
.subsections_via_symbols
