	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opal_handle_messages
_opal_handle_messages:                  ## @opal_handle_messages
	.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
	movq	_OPAL_GET_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	_opal_handle_messages.msg(%rip), %rdi
	callq	_vtophys
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_opal_call
	movq	_OPAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.1:
	movl	_opal_handle_messages.msg(%rip), %edi
	callq	_be32toh
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_10
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	_OPAL_SHUTDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_9:
	movq	_OPAL_OCC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_OPAL_HMI_EVT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_OPAL_EPOW@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_OPAL_DPO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_OPAL_ASYNC_COMP@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	leaq	_opal_handle_messages.msg(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_EVENTHANDLER_DIRECT_INVOKE     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_opal_handle_messages.msg,4,2 ## @opal_handle_messages.msg
	.comm	_OPAL_GET_MSG,4,2               ## @OPAL_GET_MSG
	.comm	_OPAL_SUCCESS,8,3               ## @OPAL_SUCCESS
	.comm	_OPAL_ASYNC_COMP,4,2            ## @OPAL_ASYNC_COMP
	.comm	_OPAL_EPOW,4,2                  ## @OPAL_EPOW
	.comm	_OPAL_SHUTDOWN,4,2              ## @OPAL_SHUTDOWN
	.comm	_OPAL_HMI_EVT,4,2               ## @OPAL_HMI_EVT
	.comm	_OPAL_DPO,4,2                   ## @OPAL_DPO
	.comm	_OPAL_OCC,4,2                   ## @OPAL_OCC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown OPAL message type %d\n"

	.no_dead_strip	_opal_handle_messages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opal_handle_messages
_opal_handle_messages:                  ; @opal_handle_messages
	.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
Lloh0:
	adrp	x8, _OPAL_GET_MSG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPAL_GET_MSG@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, _opal_handle_messages.msg@PAGE
Lloh4:
	add	x0, x0, _opal_handle_messages.msg@PAGEOFF
	bl	_vtophys
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_opal_call
Lloh5:
	adrp	x8, _OPAL_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPAL_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _opal_handle_messages.msg@PAGE
Lloh9:
	ldr	w0, [x8, _opal_handle_messages.msg@PAGEOFF]
	bl	_be32toh
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.2:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh12:
	adrp	x8, _OPAL_SHUTDOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OPAL_SHUTDOWN@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_printf
LBB0_6:
Lloh16:
	adrp	x8, _OPAL_OCC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OPAL_OCC@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh18:
	adrp	x8, _OPAL_HMI_EVT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OPAL_HMI_EVT@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh20:
	adrp	x8, _OPAL_EPOW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OPAL_EPOW@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x8, _OPAL_DPO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OPAL_DPO@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh24:
	adrp	x8, _OPAL_ASYNC_COMP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OPAL_ASYNC_COMP@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, _opal_handle_messages.msg@PAGE
Lloh27:
	add	x1, x1, _opal_handle_messages.msg@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_EVENTHANDLER_DIRECT_INVOKE
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_opal_handle_messages.msg,4,2 ; @opal_handle_messages.msg
	.comm	_OPAL_GET_MSG,4,2               ; @OPAL_GET_MSG
	.comm	_OPAL_SUCCESS,8,3               ; @OPAL_SUCCESS
	.comm	_OPAL_ASYNC_COMP,4,2            ; @OPAL_ASYNC_COMP
	.comm	_OPAL_EPOW,4,2                  ; @OPAL_EPOW
	.comm	_OPAL_SHUTDOWN,4,2              ; @OPAL_SHUTDOWN
	.comm	_OPAL_HMI_EVT,4,2               ; @OPAL_HMI_EVT
	.comm	_OPAL_DPO,4,2                   ; @OPAL_DPO
	.comm	_OPAL_OCC,4,2                   ; @OPAL_OCC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown OPAL message type %d\n"

	.no_dead_strip	_opal_handle_messages
.subsections_via_symbols
