	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_init
_malidp_init:                           ## @malidp_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	40(%rdi), %rax
	movq	(%rax), %r14
	callq	_drm_mode_config_init
	movq	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 24(%rbx)
	movq	_malidp_mode_config_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_malidp_mode_config_helpers@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_malidp_crtc_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_malidp_mw_connector_init
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_drm_mode_config_cleanup
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_malidp_mode_config_funcs,4,2   ## @malidp_mode_config_funcs
	.comm	_malidp_mode_config_helpers,4,2 ## @malidp_mode_config_helpers
	.no_dead_strip	_malidp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_init
_malidp_init:                           ; @malidp_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	x8, [x0, #40]
	ldr	x20, [x8]
	bl	_drm_mode_config_init
	add	x8, x19, #24
	ldr	d0, [x20]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x8]
Lloh0:
	adrp	x8, _malidp_mode_config_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _malidp_mode_config_funcs@GOTPAGEOFF]
Lloh2:
	adrp	x9, _malidp_mode_config_helpers@GOTPAGE
Lloh3:
	ldr	x9, [x9, _malidp_mode_config_helpers@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_malidp_crtc_init
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_malidp_mw_connector_init
	mov	x20, x0
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_drm_mode_config_cleanup
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_malidp_mode_config_funcs,4,2   ; @malidp_mode_config_funcs
	.comm	_malidp_mode_config_helpers,4,2 ; @malidp_mode_config_helpers
	.no_dead_strip	_malidp_init
.subsections_via_symbols
