	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IpcpLayerUp
_IpcpLayerUp:                           ## @IpcpLayerUp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_fsm2ipcp
	movq	%rax, %r13
	movq	_LogIPCP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	24(%r14), %rax
	movslq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_log_Printf
	movl	24(%r13), %edi
	callq	_inet_ntoa
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	(%rbx), %ebx
	movl	16(%r13), %edi
	callq	_inet_ntoa
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
	movl	(%r13), %eax
	movl	%eax, %ecx
	sarl	$16, %ecx
	movq	_PROTO_VJCOMP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_2
## %bb.1:
	leaq	20(%r13), %rdi
	movzbl	%ah, %esi
	callq	_sl_compress_init
LBB0_2:
	movq	%r13, %rdi
	callq	_ipcp_InterfaceUp
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	leaq	16(%r13), %rsi
	movq	16(%r14), %rdi
	addq	$20, %rdi
	leaq	12(%r13), %rdx
	callq	_radius_Account_Set_Ip
	movq	16(%r14), %rdi
	leaq	20(%rdi), %rsi
	movl	16(%rdi), %edx
	movq	_RAD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %r8
	addq	$8, %r8
	callq	_radius_Account
	movq	16(%r14), %rdi
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	_LINKUPFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	movq	16(%r14), %rdi
LBB0_6:
	callq	_radius_StartTimer
	movq	16(%r14), %rdi
	movq	_LINKUPFILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-64(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	testq	%rax, %rax
	jns	LBB0_11
## %bb.7:
	movq	16(%r14), %rdi
	callq	_bundle_GetLabel
	movq	16(%r14), %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_bundle_GetLabel
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	testq	%rax, %rax
	jns	LBB0_11
## %bb.9:
	movq	16(%r14), %r15
LBB0_10:
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
LBB0_11:
	movl	4(%r13), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 8(%r14)
	movl	%eax, 4(%r14)
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_log_DisplayPrompts
	movl	$1, %r15d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LogIPCP,4,2                    ## @LogIPCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: LayerUp.\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"myaddr %s hisaddr = %s\n"

	.comm	_PROTO_VJCOMP,4,2               ## @PROTO_VJCOMP
	.comm	_RAD_START,4,2                  ## @RAD_START
	.comm	_LINKUPFILE,4,2                 ## @LINKUPFILE
L_.str.3:                               ## @.str.3
	.asciz	"MYADDR"

	.no_dead_strip	_IpcpLayerUp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IpcpLayerUp
_IpcpLayerUp:                           ; @IpcpLayerUp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_fsm2ipcp
	mov	x20, x0
Lloh3:
	adrp	x21, _LogIPCP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LogIPCP@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19, #24]
	ldrsw	x2, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	ldr	w0, [x20, #24]
	bl	_inet_ntoa
	mov	x3, x0
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_snprintf
	ldr	w22, [x21]
	mov	x21, x20
	ldr	w0, [x21, #16]!
	bl	_inet_ntoa
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_log_Printf
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _PROTO_VJCOMP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PROTO_VJCOMP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, w8, asr #16
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #20
	ubfx	w1, w8, #8, #8
	bl	_sl_compress_init
LBB0_2:
	mov	x0, x20
	bl	_ipcp_InterfaceUp
	cbz	w0, LBB0_12
; %bb.3:
	ldr	x8, [x19, #16]
	add	x0, x8, #20
	add	x2, x20, #12
	mov	x1, x21
	bl	_radius_Account_Set_Ip
	ldr	x0, [x19, #16]
	add	x1, x0, #20
	ldr	w2, [x0, #16]
Lloh14:
	adrp	x8, _RAD_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RAD_START@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x4, x20, #8
	bl	_radius_Account
	ldr	x0, [x19, #16]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh17:
	adrp	x22, _LINKUPFILE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _LINKUPFILE@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x1, [x0]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w2, [x22]
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	ldr	x0, [x19, #16]
LBB0_6:
	bl	_radius_StartTimer
	ldr	x0, [x19, #16]
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	tbz	x0, #63, LBB0_11
; %bb.7:
	ldr	x0, [x19, #16]
	bl	_bundle_GetLabel
	ldr	x21, [x19, #16]
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_bundle_GetLabel
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x21
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	tbz	x0, #63, LBB0_11
; %bb.9:
	ldr	x21, [x19, #16]
LBB0_10:
	ldr	w2, [x22]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
LBB0_11:
	ldr	w8, [x20, #4]
	add	w8, w8, w8, lsl #1
	stp	w8, w8, [x19, #4]
	str	w8, [x19]
	bl	_log_DisplayPrompts
	mov	w0, #1
LBB0_12:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LogIPCP,4,2                    ; @LogIPCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: LayerUp.\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"myaddr %s hisaddr = %s\n"

	.comm	_PROTO_VJCOMP,4,2               ; @PROTO_VJCOMP
	.comm	_RAD_START,4,2                  ; @RAD_START
	.comm	_LINKUPFILE,4,2                 ; @LINKUPFILE
l_.str.3:                               ; @.str.3
	.asciz	"MYADDR"

	.no_dead_strip	_IpcpLayerUp
.subsections_via_symbols
