	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opal_hmi_handler2
_opal_hmi_handler2:                     ## @opal_hmi_handler2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$0, -12(%rbp)
	movq	_OPAL_HANDLE_HMI2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-12(%rbp), %rdi
	callq	_vtophys
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_opal_call
	movl	%eax, %ebx
	movq	_OPAL_HMI_FLAGS_TOD_TB_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -12(%rbp)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	_OPAL_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %ebx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
	movl	$-1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPAL_HANDLE_HMI2,4,2           ## @OPAL_HANDLE_HMI2
	.comm	_OPAL_HMI_FLAGS_TOD_TB_FAIL,4,2 ## @OPAL_HMI_FLAGS_TOD_TB_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TOD/TB recovery failure"

	.comm	_OPAL_SUCCESS,4,2               ## @OPAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"HMI handler failed!  OPAL error code: %d\n"

	.no_dead_strip	_opal_hmi_handler2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opal_hmi_handler2
_opal_hmi_handler2:                     ; @opal_hmi_handler2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _OPAL_HANDLE_HMI2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPAL_HANDLE_HMI2@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	add	x0, sp, #12
	bl	_vtophys
	mov	x1, x0
	mov	x0, x19
	bl	_opal_call
	mov	x19, x0
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _OPAL_HMI_FLAGS_TOD_TB_FAIL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPAL_HMI_FLAGS_TOD_TB_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
Lloh8:
	adrp	x8, _OPAL_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPAL_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OPAL_HANDLE_HMI2,4,2           ; @OPAL_HANDLE_HMI2
	.comm	_OPAL_HMI_FLAGS_TOD_TB_FAIL,4,2 ; @OPAL_HMI_FLAGS_TOD_TB_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TOD/TB recovery failure"

	.comm	_OPAL_SUCCESS,4,2               ; @OPAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"HMI handler failed!  OPAL error code: %d\n"

	.no_dead_strip	_opal_hmi_handler2
.subsections_via_symbols
