	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tboot_shutdown                 ## -- Begin function tboot_shutdown
	.p2align	4, 0x90
_tboot_shutdown:                        ## @tboot_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_tboot_enabled
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_tboot_pg_dir@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_TB_SHUTDOWN_S3@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_tboot_setup_sleep
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_tboot@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rbx, 8(%rax)
	xorl	%eax, %eax
	callq	_switch_to_tboot_pt
	movq	(%r14), %rax
	callq	*(%rax)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_halt
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_tboot_pg_dir,4,2               ## @tboot_pg_dir
	.comm	_TB_SHUTDOWN_S3,8,3             ## @TB_SHUTDOWN_S3
	.comm	_tboot,8,3                      ## @tboot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tboot_shutdown                 ; -- Begin function tboot_shutdown
	.p2align	2
_tboot_shutdown:                        ; @tboot_shutdown
	.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
	mov	x19, x0
	bl	_tboot_enabled
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _tboot_pg_dir@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tboot_pg_dir@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _TB_SHUTDOWN_S3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TB_SHUTDOWN_S3@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.3:
	bl	_tboot_setup_sleep
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x20, _tboot@GOTPAGE
Lloh7:
	ldr	x20, [x20, _tboot@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x19, [x8, #8]
	bl	_switch_to_tboot_pt
	ldr	x8, [x20]
	ldr	x8, [x8]
	blr	x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_halt
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tboot_pg_dir,4,2               ; @tboot_pg_dir
	.comm	_TB_SHUTDOWN_S3,8,3             ; @TB_SHUTDOWN_S3
	.comm	_tboot,8,3                      ; @tboot
.subsections_via_symbols
