	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efibc_reboot_notifier_call
_efibc_reboot_notifier_call:            ## @efibc_reboot_notifier_call
	.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	%rdx, %rbx
	movq	_SYS_RESTART@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_efibc_set_variable
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_efibc_set_variable
LBB0_3:
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shutdown"

	.comm	_SYS_RESTART,8,3                ## @SYS_RESTART
L_.str.1:                               ## @.str.1
	.asciz	"reboot"

L_.str.2:                               ## @.str.2
	.asciz	"LoaderEntryRebootReason"

	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
L_.str.3:                               ## @.str.3
	.asciz	"LoaderEntryOneShot"

	.no_dead_strip	_efibc_reboot_notifier_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efibc_reboot_notifier_call
_efibc_reboot_notifier_call:            ; @efibc_reboot_notifier_call
	.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, x2
Lloh0:
	adrp	x8, _SYS_RESTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_RESTART@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, x1
	csel	x1, x10, x9, eq
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_efibc_set_variable
	cbz	x19, LBB0_3
; %bb.1:
	cbnz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_efibc_set_variable
LBB0_3:
Lloh11:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shutdown"

	.comm	_SYS_RESTART,8,3                ; @SYS_RESTART
l_.str.1:                               ; @.str.1
	.asciz	"reboot"

l_.str.2:                               ; @.str.2
	.asciz	"LoaderEntryRebootReason"

	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
l_.str.3:                               ; @.str.3
	.asciz	"LoaderEntryOneShot"

	.no_dead_strip	_efibc_reboot_notifier_call
.subsections_via_symbols
