	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opal_shutdown
_opal_shutdown:                         ## @opal_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RB_HALT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_OPAL_CEC_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_opal_call
	jmp	LBB0_3
LBB0_2:
	movq	_OPAL_CEC_REBOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_opal_call
LBB0_3:
	movq	_OPAL_RETURN_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_opal_call                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_HALT,4,2                    ## @RB_HALT
	.comm	_OPAL_CEC_POWER_DOWN,4,2        ## @OPAL_CEC_POWER_DOWN
	.comm	_OPAL_CEC_REBOOT,4,2            ## @OPAL_CEC_REBOOT
	.comm	_OPAL_RETURN_CPU,4,2            ## @OPAL_RETURN_CPU
	.no_dead_strip	_opal_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opal_shutdown
_opal_shutdown:                         ; @opal_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _RB_HALT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RB_HALT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OPAL_CEC_POWER_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPAL_CEC_POWER_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	xzr, [sp]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _OPAL_CEC_REBOOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPAL_CEC_REBOOT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	bl	_opal_call
Lloh9:
	adrp	x8, _OPAL_RETURN_CPU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPAL_RETURN_CPU@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_opal_call
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_HALT,4,2                    ; @RB_HALT
	.comm	_OPAL_CEC_POWER_DOWN,4,2        ; @OPAL_CEC_POWER_DOWN
	.comm	_OPAL_CEC_REBOOT,4,2            ; @OPAL_CEC_REBOOT
	.comm	_OPAL_RETURN_CPU,4,2            ; @OPAL_RETURN_CPU
	.no_dead_strip	_opal_shutdown
.subsections_via_symbols
