	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opal_setup_hmi
_opal_setup_hmi:                        ## @opal_setup_hmi
	.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
	xorl	%eax, %eax
	callq	_opal_check
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_OPAL_CHECK_TOKEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_OPAL_HANDLE_HMI2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_opal_call
	movq	_OPAL_TOKEN_PRESENT@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_opal_hmi_handler2@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	(%r14), %edi
	movq	_OPAL_HANDLE_HMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_opal_call
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_opal_hmi_handler@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movq	_hmi_handler@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_OPAL_HMI_EVT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_opal_hmi_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EVENTHANDLER_PRI_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_EVENTHANDLER_REGISTER
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	leaq	L_str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_4:
	leaq	L_str(%rip), %rdi
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OPAL_CHECK_TOKEN,4,2           ## @OPAL_CHECK_TOKEN
	.comm	_OPAL_HANDLE_HMI2,4,2           ## @OPAL_HANDLE_HMI2
	.comm	_OPAL_TOKEN_PRESENT,8,3         ## @OPAL_TOKEN_PRESENT
	.comm	_opal_hmi_handler2,4,2          ## @opal_hmi_handler2
	.comm	_hmi_handler,4,2                ## @hmi_handler
	.comm	_OPAL_HANDLE_HMI,4,2            ## @OPAL_HANDLE_HMI
	.comm	_opal_hmi_handler,4,2           ## @opal_hmi_handler
	.comm	_OPAL_HMI_EVT,4,2               ## @OPAL_HMI_EVT
	.comm	_opal_hmi_event_handler,4,2     ## @opal_hmi_event_handler
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ## @EVENTHANDLER_PRI_ANY
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Warning: No OPAL HMI handler found."

L_str.2:                                ## @str.2
	.asciz	"Installed OPAL HMI handler."

	.no_dead_strip	_opal_setup_hmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opal_setup_hmi
_opal_setup_hmi:                        ; @opal_setup_hmi
	.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
	bl	_opal_check
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x19, _OPAL_CHECK_TOKEN@GOTPAGE
Lloh1:
	ldr	x19, [x19, _OPAL_CHECK_TOKEN@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _OPAL_HANDLE_HMI2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPAL_HANDLE_HMI2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_opal_call
Lloh5:
	adrp	x20, _OPAL_TOKEN_PRESENT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _OPAL_TOKEN_PRESENT@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _opal_hmi_handler2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _opal_hmi_handler2@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _OPAL_HANDLE_HMI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPAL_HANDLE_HMI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_opal_call
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _opal_hmi_handler@GOTPAGE
Lloh13:
	ldr	x8, [x8, _opal_hmi_handler@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _hmi_handler@GOTPAGE
Lloh15:
	ldr	x9, [x9, _hmi_handler@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
Lloh17:
	adrp	x8, _OPAL_HMI_EVT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OPAL_HMI_EVT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _opal_hmi_event_handler@GOTPAGE
Lloh21:
	ldr	x8, [x8, _opal_hmi_event_handler@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _EVENTHANDLER_PRI_ANY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EVENTHANDLER_PRI_ANY@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x2, #0
	bl	_EVENTHANDLER_REGISTER
Lloh26:
	adrp	x8, _bootverbose@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.7:
Lloh29:
	adrp	x0, l_str.2@PAGE
Lloh30:
	add	x0, x0, l_str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh31:
	adrp	x0, l_str@PAGE
Lloh32:
	add	x0, x0, l_str@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_puts
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_OPAL_CHECK_TOKEN,4,2           ; @OPAL_CHECK_TOKEN
	.comm	_OPAL_HANDLE_HMI2,4,2           ; @OPAL_HANDLE_HMI2
	.comm	_OPAL_TOKEN_PRESENT,8,3         ; @OPAL_TOKEN_PRESENT
	.comm	_opal_hmi_handler2,4,2          ; @opal_hmi_handler2
	.comm	_hmi_handler,4,2                ; @hmi_handler
	.comm	_OPAL_HANDLE_HMI,4,2            ; @OPAL_HANDLE_HMI
	.comm	_opal_hmi_handler,4,2           ; @opal_hmi_handler
	.comm	_OPAL_HMI_EVT,4,2               ; @OPAL_HMI_EVT
	.comm	_opal_hmi_event_handler,4,2     ; @opal_hmi_event_handler
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ; @EVENTHANDLER_PRI_ANY
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Warning: No OPAL HMI handler found."

l_str.2:                                ; @str.2
	.asciz	"Installed OPAL HMI handler."

	.no_dead_strip	_opal_setup_hmi
.subsections_via_symbols
