	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipv6cp_LayerUp
_ipv6cp_LayerUp:                        ## @ipv6cp_LayerUp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_fsm2ipv6cp
	movq	%rax, %r14
	movq	_NCP_ASCIIBUFFERSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_LogIPV6CP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rax
	movslq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	%r14, %rdi
	callq	_ipv6cp_InterfaceUp
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	leaq	16(%r14), %rdi
	callq	_ncpaddr_ntoa
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_LogIPV6CP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	12(%r14), %rdi
	callq	_ncpaddr_ntoa
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	16(%r12), %rdi
	addq	$20, %rdi
	movl	8(%r14), %esi
	callq	_radius_Account_Set_Ipv6
	movq	16(%r12), %rdi
	leaq	20(%rdi), %rsi
	movl	16(%rdi), %edx
	movq	_RAD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %r8
	addq	$4, %r8
	callq	_radius_Account
	movq	16(%r12), %rdi
	movq	_OPT_IPCP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_Enabled
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movq	16(%r12), %rdi
	movq	_LINKUPFILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	testq	%rax, %rax
	jns	LBB0_10
## %bb.6:
	movq	16(%r12), %rdi
	callq	_bundle_GetLabel
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	16(%r12), %rdi
	movl	(%r13), %esi
	callq	_Enabled
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	16(%r12), %rdi
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
LBB0_10:
	movl	(%r14), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 8(%r12)
	movl	%eax, 4(%r12)
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_log_DisplayPrompts
	movl	$1, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	16(%r12), %rdi
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	_LINKUPFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	jmp	LBB0_5
LBB0_8:
	movq	16(%r12), %r15
	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_10
	jmp	LBB0_9
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NCP_ASCIIBUFFERSIZE,4,2        ## @NCP_ASCIIBUFFERSIZE
	.comm	_LogIPV6CP,4,2                  ## @LogIPV6CP
	.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	_RAD_START,4,2                  ## @RAD_START
	.comm	_OPT_IPCP,4,2                   ## @OPT_IPCP
	.comm	_LINKUPFILE,4,2                 ## @LINKUPFILE
L_.str.3:                               ## @.str.3
	.asciz	"MYADDR6"

	.no_dead_strip	_ipv6cp_LayerUp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipv6cp_LayerUp
_ipv6cp_LayerUp:                        ; @ipv6cp_LayerUp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_fsm2ipv6cp
	mov	x20, x0
Lloh3:
	adrp	x8, _NCP_ASCIIBUFFERSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NCP_ASCIIBUFFERSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x23, _LogIPV6CP@GOTPAGE
Lloh9:
	ldr	x23, [x23, _LogIPV6CP@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x19, #24]
	ldrsw	x2, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	mov	x0, x20
	bl	_ipv6cp_InterfaceUp
	cbz	w0, LBB0_7
; %bb.1:
	add	x0, x20, #16
	bl	_ncpaddr_ntoa
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	ldr	w22, [x23]
	add	x0, x20, #12
	bl	_ncpaddr_ntoa
	str	x0, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_log_Printf
	add	sp, sp, #16
	ldr	x8, [x19, #16]
	add	x0, x8, #20
	ldr	w1, [x20, #8]
	bl	_radius_Account_Set_Ipv6
	ldr	x0, [x19, #16]
	add	x1, x0, #20
	ldr	w2, [x0, #16]
Lloh16:
	adrp	x8, _RAD_START@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RAD_START@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x4, x20, #4
	bl	_radius_Account
	ldr	x0, [x19, #16]
Lloh19:
	adrp	x23, _OPT_IPCP@GOTPAGE
Lloh20:
	ldr	x23, [x23, _OPT_IPCP@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_Enabled
Lloh21:
	adrp	x22, _LINKUPFILE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _LINKUPFILE@GOTPAGEOFF]
	cbz	w0, LBB0_9
LBB0_2:
	ldr	x0, [x19, #16]
	ldr	w2, [x22]
	mov	x1, x21
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	tbz	x0, #63, LBB0_6
; %bb.3:
	ldr	x0, [x19, #16]
	bl	_bundle_GetLabel
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	ldr	w1, [x23]
	bl	_Enabled
	cbz	w0, LBB0_12
LBB0_5:
	ldr	x0, [x19, #16]
	ldr	w2, [x22]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
LBB0_6:
	ldr	w8, [x20]
	add	w8, w8, w8, lsl #1
	stp	w8, w8, [x19, #4]
	str	w8, [x19]
	bl	_log_DisplayPrompts
	mov	w0, #1
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.8:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19, #16]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.10:
	ldr	x1, [x0]
	cbz	x1, LBB0_2
; %bb.11:
	ldr	w2, [x22]
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	b	LBB0_2
LBB0_12:
	ldr	x21, [x19, #16]
	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_6
	b	LBB0_5
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_NCP_ASCIIBUFFERSIZE,4,2        ; @NCP_ASCIIBUFFERSIZE
	.comm	_LogIPV6CP,4,2                  ; @LogIPV6CP
	.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	_RAD_START,4,2                  ; @RAD_START
	.comm	_OPT_IPCP,4,2                   ; @OPT_IPCP
	.comm	_LINKUPFILE,4,2                 ; @LINKUPFILE
l_.str.3:                               ; @.str.3
	.asciz	"MYADDR6"

	.no_dead_strip	_ipv6cp_LayerUp
.subsections_via_symbols
