	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reroot_phase_two
_reroot_phase_two:                      ## @reroot_phase_two
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_RB_REROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_reboot
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_emergency
	jmp	LBB0_10
LBB0_3:
	movq	_KENV_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_kenv
	testl	%eax, %eax
	jle	LBB0_4
LBB0_6:
	movq	%r14, -40(%rbp)
	leaq	L_.str.4(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %r15
	leaq	-40(%rbp), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_execl
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strsep
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_emergency
LBB0_10:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_emergency
	movq	_single_user@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -48(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_RB_REROOT,4,2                  ## @RB_REROOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RB_REBOOT failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_KENV_GET,4,2                   ## @KENV_GET
L_.str.1:                               ## @.str.1
	.asciz	"init_path"

L_.str.2:                               ## @.str.2
	.asciz	"kern.init_path"

L_.str.3:                               ## @.str.3
	.asciz	"failed to retrieve kern.init_path: %s"

L_.str.4:                               ## @.str.4
	.asciz	":"

L_.str.5:                               ## @.str.5
	.asciz	"cannot exec init from %s: %s"

L_.str.6:                               ## @.str.6
	.asciz	"reroot failed; going to single user mode"

	.comm	_single_user,4,2                ## @single_user
	.no_dead_strip	_reroot_phase_two
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reroot_phase_two
_reroot_phase_two:                      ; @reroot_phase_two
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _RB_REROOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RB_REROOT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_reboot
	cbz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_2:
Lloh16:
	adrp	x8, _KENV_GET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KENV_GET@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_kenv
	cmp	w0, #0
	b.le	LBB0_7
LBB0_3:
	stur	x19, [x29, #-32]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x0, x29, #32
	bl	_strsep
	cbz	x0, LBB0_6
; %bb.4:
Lloh23:
	adrp	x20, l_.str.4@PAGE
Lloh24:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x0
	mov	x2, #0
	bl	_execl
	sub	x0, x29, #32
	mov	x1, x20
	bl	_strsep
	cbnz	x0, LBB0_5
LBB0_6:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp, #-16]!
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_7:
	stur	x20, [x29, #-40]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	sub	x2, x29, #40
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cbz	w0, LBB0_3
; %bb.8:
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_emergency
	add	sp, sp, #16
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_emergency
Lloh39:
	adrp	x8, _single_user@GOTPAGE
Lloh40:
	ldr	x8, [x8, _single_user@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_RB_REROOT,4,2                  ; @RB_REROOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RB_REBOOT failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_KENV_GET,4,2                   ; @KENV_GET
l_.str.1:                               ; @.str.1
	.asciz	"init_path"

l_.str.2:                               ; @.str.2
	.asciz	"kern.init_path"

l_.str.3:                               ; @.str.3
	.asciz	"failed to retrieve kern.init_path: %s"

l_.str.4:                               ; @.str.4
	.asciz	":"

l_.str.5:                               ; @.str.5
	.asciz	"cannot exec init from %s: %s"

l_.str.6:                               ; @.str.6
	.asciz	"reroot failed; going to single user mode"

	.comm	_single_user,4,2                ; @single_user
	.no_dead_strip	_reroot_phase_two
.subsections_via_symbols
