	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtas_shutdown
_rtas_shutdown:                         ## @rtas_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_RB_HALT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_rtas_token_lookup
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	leaq	-4(%rbp), %r9
	movl	%eax, %edi
	movl	$2, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_rtas_call_method
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_rtas_token_lookup
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	leaq	-4(%rbp), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_rtas_call_method
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_HALT,4,2                    ## @RB_HALT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power-off"

L_.str.1:                               ## @.str.1
	.asciz	"system-reboot"

	.no_dead_strip	_rtas_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtas_shutdown
_rtas_shutdown:                         ; @rtas_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, _RB_HALT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RB_HALT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rtas_token_lookup
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	sub	x8, x29, #4
	stp	xzr, x8, [sp]
	mov	w1, #2
	mov	w2, #1
	mov	x3, #0
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rtas_token_lookup
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	sub	x3, x29, #4
	mov	w1, #0
	mov	w2, #1
LBB0_5:
	bl	_rtas_call_method
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_HALT,4,2                    ; @RB_HALT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power-off"

l_.str.1:                               ; @.str.1
	.asciz	"system-reboot"

	.no_dead_strip	_rtas_shutdown
.subsections_via_symbols
