	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_NCPUp                 ## -- Begin function datalink_NCPUp
	.p2align	4, 0x90
_datalink_NCPUp:                        ## @datalink_NCPUp
	.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
	movq	(%rdi), %rdi
	addq	$24, %rdi
	callq	_ccp_SetOpenMode
	movl	%eax, %r14d
	movq	(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.2:
	movq	16(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_mp_Up
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	16(%rbx), %rdi
	movl	24(%rbx), %esi
	callq	_auth_Select
	movq	16(%rbx), %rdi
	callq	_bundle_CalculateBandwidth
LBB0_5:
	movq	_OPEN_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 24(%rcx)
	movq	16(%rbx), %rdi
	callq	_bundle_CalculateBandwidth
	jmp	LBB0_10
LBB0_7:
	movq	16(%rbx), %rdi
	callq	_bundle_Phase
	movq	_PHASE_NETWORK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movq	_DATALINK_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_datalink_NewState
	movq	16(%rbx), %rdi
	callq	_bundle_CalculateBandwidth
	jmp	LBB0_13
LBB0_9:
	movq	16(%rbx), %rdi
	movl	24(%rbx), %eax
	movl	%eax, (%rdi)
	movq	(%rbx), %rsi
	callq	_ncp_SetLink
	movq	16(%rbx), %rdi
	movl	24(%rbx), %esi
	callq	_auth_Select
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movq	(%rbx), %rdi
	addq	$24, %rdi
	callq	_fsm_Up
	movq	(%rbx), %rdi
	addq	$24, %rdi
	callq	_fsm_Open
LBB0_12:
	movq	_DATALINK_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_datalink_NewState
	movq	16(%rbx), %rdi
	movq	_PHASE_NETWORK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_bundle_NewPhase
LBB0_13:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_datalink_AuthNotOk             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_OPEN_PASSIVE,4,2               ## @OPEN_PASSIVE
	.comm	_PHASE_NETWORK,8,3              ## @PHASE_NETWORK
	.comm	_LogPHASE,4,2                   ## @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Already in NETWORK phase\n"

	.comm	_DATALINK_OPEN,4,2              ## @DATALINK_OPEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_NCPUp                 ; -- Begin function datalink_NCPUp
	.p2align	2
_datalink_NCPUp:                        ; @datalink_NCPUp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0]
	add	x0, x8, #24
	bl	_ccp_SetOpenMode
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
Lloh0:
	adrp	x21, _PHASE_NETWORK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHASE_NETWORK@GOTPAGEOFF]
	cbz	x9, LBB0_6
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_mp_Up
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #24]
	bl	_auth_Select
	ldr	x0, [x19, #16]
	bl	_bundle_CalculateBandwidth
LBB0_5:
Lloh4:
	adrp	x8, _OPEN_PASSIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OPEN_PASSIVE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #24]
	ldr	x0, [x19, #16]
	bl	_bundle_CalculateBandwidth
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #16]
	bl	_bundle_Phase
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w2, [x19, #28]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
Lloh12:
	adrp	x8, _DATALINK_OPEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DATALINK_OPEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_datalink_NewState
	ldr	x0, [x19, #16]
	bl	_bundle_CalculateBandwidth
	b	LBB0_12
LBB0_8:
	ldr	x0, [x19, #16]
	ldr	w8, [x19, #24]
	str	w8, [x0]
	ldr	x1, [x19]
	bl	_ncp_SetLink
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #24]
	bl	_auth_Select
LBB0_9:
	cbz	w20, LBB0_11
; %bb.10:
	ldr	x8, [x19]
	add	x0, x8, #24
	bl	_fsm_Up
	ldr	x8, [x19]
	add	x0, x8, #24
	bl	_fsm_Open
LBB0_11:
Lloh15:
	adrp	x8, _DATALINK_OPEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DATALINK_OPEN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_datalink_NewState
	ldr	x0, [x19, #16]
	ldr	x1, [x21]
	bl	_bundle_NewPhase
LBB0_12:
	ldp	x1, x8, [x19]
	ldr	x2, [x8, #8]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_datalink_AuthNotOk
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
                                        ; -- End function
	.comm	_OPEN_PASSIVE,4,2               ; @OPEN_PASSIVE
	.comm	_PHASE_NETWORK,8,3              ; @PHASE_NETWORK
	.comm	_LogPHASE,4,2                   ; @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Already in NETWORK phase\n"

	.comm	_DATALINK_OPEN,4,2              ; @DATALINK_OPEN
.subsections_via_symbols
