	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_NewPhase                ## -- Begin function bundle_NewPhase
	.p2align	4, 0x90
_bundle_NewPhase:                       ## @bundle_NewPhase
	.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
	cmpq	%rsi, (%rdi)
	jne	LBB0_1
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$128, %rsi
	ja	LBB0_3
## %bb.2:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PhaseNames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_3:
	addq	$-128, %rbx
	cmpq	$4, %rbx
	ja	LBB0_13
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	$128, (%r14)
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mp_Down
	jmp	LBB0_7
LBB0_8:
	leaq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_ncp_fsmStart
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	$129, (%r14)
	jmp	LBB0_7
LBB0_12:
	movq	$130, (%r14)
	jmp	LBB0_13
LBB0_5:
	movq	$131, (%r14)
	movq	_MPPE_MasterKeyValid@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_7
LBB0_6:
	movq	$132, (%r14)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_log_DisplayPrompts             ## TAILCALL
LBB0_10:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_CLOSE_STAYDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bundle_Close                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_LogPHASE,4,2                   ## @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bundle: %s\n"

	.comm	_PhaseNames,8,3                 ## @PhaseNames
	.comm	_MPPE_MasterKeyValid,4,2        ## @MPPE_MasterKeyValid
L_.str.1:                               ## @.str.1
	.asciz	"bundle: All NCPs are disabled\n"

	.comm	_CLOSE_STAYDOWN,4,2             ## @CLOSE_STAYDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_NewPhase                ; -- Begin function bundle_NewPhase
	.p2align	2
_bundle_NewPhase:                       ; @bundle_NewPhase
	.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
	ldr	x8, [x0]
	cmp	x8, x1
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	mov	x19, x0
	subs	x20, x1, #128
	b.hi	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PhaseNames@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PhaseNames@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, x1, lsl #2]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
LBB0_4:
	cmp	x20, #4
	b.hi	LBB0_1
; %bb.5:
Lloh8:
	adrp	x8, lJTI0_0@PAGE
Lloh9:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_6
	ldrb	w10, [x8, x20]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:
	mov	w8, #128
	str	x8, [x19], #8
	mov	x0, x19
	bl	_mp_Down
	b	LBB0_13
LBB0_7:
	add	x0, x19, #8
	mov	x1, x19
	bl	_ncp_fsmStart
	cbz	w0, LBB0_14
; %bb.8:
	mov	w8, #129
	b	LBB0_12
LBB0_9:
	mov	w8, #130
	str	x8, [x19]
	b	LBB0_1
LBB0_10:
	mov	w8, #131
	str	x8, [x19]
Lloh10:
	adrp	x8, _MPPE_MasterKeyValid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MPPE_MasterKeyValid@GOTPAGEOFF]
Lloh12:
	str	wzr, [x8]
	b	LBB0_13
LBB0_11:
	mov	w8, #132
LBB0_12:
	str	x8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_log_DisplayPrompts
LBB0_14:
Lloh13:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
Lloh18:
	adrp	x8, _CLOSE_STAYDOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CLOSE_STAYDOWN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_bundle_Close
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_LogPHASE,4,2                   ; @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bundle: %s\n"

	.comm	_PhaseNames,8,3                 ; @PhaseNames
	.comm	_MPPE_MasterKeyValid,4,2        ; @MPPE_MasterKeyValid
l_.str.1:                               ; @.str.1
	.asciz	"bundle: All NCPs are disabled\n"

	.comm	_CLOSE_STAYDOWN,4,2             ; @CLOSE_STAYDOWN
.subsections_via_symbols
