	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hibmc_kms_init
_hibmc_kms_init:                        ## @hibmc_kms_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	8(%rdi), %rdi
	callq	_drm_mode_config_init
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rax)
	movabsq	$6184752908160, %rcx            ## imm = 0x5A000000780
	movq	%rcx, (%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 32(%rax)
	movl	$24, 8(%rax)
	movq	$0, 24(%rax)
	movq	_hibmc_mode_funcs@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movq	%rbx, %rdi
	callq	_hibmc_de_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_hibmc_vdac_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	movl	%r14d, %esi
	callq	_DRM_ERROR
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_hibmc_mode_funcs,4,2           ## @hibmc_mode_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to init de: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to init vdac: %d\n"

	.no_dead_strip	_hibmc_kms_init
.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 hibmc_kms_init
lCPI0_0:
	.long	1920                            ; 0x780
	.long	1440                            ; 0x5a0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hibmc_kms_init:                        ; @hibmc_kms_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, #8]
	bl	_drm_mode_config_init
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	stp	xzr, xzr, [x8, #40]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	ldr	w9, [x19, #16]
	str	w9, [x8, #32]
	mov	w9, #24
	str	w9, [x8, #8]
Lloh2:
	adrp	x9, _hibmc_mode_funcs@GOTPAGE
Lloh3:
	ldr	x9, [x9, _hibmc_mode_funcs@GOTPAGEOFF]
	stp	x9, xzr, [x8, #16]
	mov	x0, x19
	bl	_hibmc_de_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_hibmc_vdac_init
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	mov	x1, x20
	bl	_DRM_ERROR
LBB0_5:
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hibmc_mode_funcs,4,2           ; @hibmc_mode_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to init de: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to init vdac: %d\n"

	.no_dead_strip	_hibmc_kms_init
.subsections_via_symbols
