	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_shutdown
_smu_shutdown:                          ## @smu_shutdown
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_SMU_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_RB_HALT@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	callq	_strcpy
	callq	_strlen
	movl	%eax, -20(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_smu_run_cmd
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_POWER,4,2                  ## @SMU_POWER
	.comm	_RB_HALT,4,2                    ## @RB_HALT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHUTDOWN"

L_.str.1:                               ## @.str.1
	.asciz	"RESTART"

	.no_dead_strip	_smu_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_shutdown
_smu_shutdown:                          ; @smu_shutdown
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SMU_POWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_POWER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _RB_HALT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RB_HALT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w1
	csel	x1, x10, x9, eq
	bl	_strcpy
	bl	_strlen
	str	w0, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #1
	bl	_smu_run_cmd
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_POWER,4,2                  ; @SMU_POWER
	.comm	_RB_HALT,4,2                    ; @RB_HALT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHUTDOWN"

l_.str.1:                               ; @.str.1
	.asciz	"RESTART"

	.no_dead_strip	_smu_shutdown
.subsections_via_symbols
