	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipv6cp_LayerDown
_ipv6cp_LayerDown:                      ## @ipv6cp_LayerDown
	.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), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	_ipv6cp_LayerDown.recursing(%rip), %ecx
	leal	1(%rcx), %eax
	movl	%eax, _ipv6cp_LayerDown.recursing(%rip)
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.1:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_ncpaddr_ntoa
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_LogIPV6CP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rcx
	callq	_log_Printf
	movq	(%r12), %rdi
	callq	_radius_Flush
	movq	(%r12), %rdi
	leaq	20(%rdi), %rsi
	movl	16(%rdi), %edx
	movq	_RAD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %r8
	callq	_radius_Account
	movq	(%r12), %rdi
	movq	_OPT_IPCP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_Enabled
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movq	(%r12), %rdi
	movq	_LINKDOWNFILE@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	(%r12), %rdi
	callq	_bundle_GetLabel
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rdi
	movl	(%r13), %esi
	callq	_Enabled
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
LBB0_10:
	movq	%r14, %rdi
	callq	_ipv6cp_Setup
	movl	_ipv6cp_LayerDown.recursing(%rip), %eax
LBB0_11:
	decl	%eax
	movl	%eax, _ipv6cp_LayerDown.recursing(%rip)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%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	_LINKDOWNFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	jmp	LBB0_5
LBB0_8:
	movq	(%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
.zerofill __DATA,__bss,_ipv6cp_LayerDown.recursing,4,2 ## @ipv6cp_LayerDown.recursing
	.comm	_NCP_ASCIIBUFFERSIZE,4,2        ## @NCP_ASCIIBUFFERSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_LogIPV6CP,4,2                  ## @LogIPV6CP
L_.str.1:                               ## @.str.1
	.asciz	"%s: LayerDown: %s\n"

	.comm	_RAD_STOP,4,2                   ## @RAD_STOP
	.comm	_OPT_IPCP,4,2                   ## @OPT_IPCP
	.comm	_LINKDOWNFILE,4,2               ## @LINKDOWNFILE
L_.str.2:                               ## @.str.2
	.asciz	"MYADDR6"

	.no_dead_strip	_ipv6cp_LayerDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipv6cp_LayerDown
_ipv6cp_LayerDown:                      ; @ipv6cp_LayerDown
	.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	x20, 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	x19, 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
	adrp	x23, _ipv6cp_LayerDown.recursing@PAGE
	ldr	w9, [x23, _ipv6cp_LayerDown.recursing@PAGEOFF]
	add	w8, w9, #1
	str	w8, [x23, _ipv6cp_LayerDown.recursing@PAGEOFF]
	cbnz	w9, LBB0_7
; %bb.1:
	add	x0, x19, #4
	bl	_ncpaddr_ntoa
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
Lloh10:
	adrp	x8, _LogIPV6CP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LogIPV6CP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_log_Printf
	ldr	x0, [x20]
	bl	_radius_Flush
	ldr	x0, [x20]
	add	x1, x0, #20
	ldr	w2, [x0, #16]
Lloh15:
	adrp	x8, _RAD_STOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RAD_STOP@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_radius_Account
	ldr	x0, [x20]
Lloh18:
	adrp	x24, _OPT_IPCP@GOTPAGE
Lloh19:
	ldr	x24, [x24, _OPT_IPCP@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_Enabled
Lloh20:
	adrp	x22, _LINKDOWNFILE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _LINKDOWNFILE@GOTPAGEOFF]
	cbz	w0, LBB0_9
LBB0_2:
	ldr	x0, [x20]
	ldr	w2, [x22]
	mov	x1, x21
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	tbz	x0, #63, LBB0_6
; %bb.3:
	ldr	x0, [x20]
	bl	_bundle_GetLabel
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x20]
	ldr	w1, [x24]
	bl	_Enabled
	cbz	w0, LBB0_12
LBB0_5:
	ldr	x0, [x20]
	ldr	w2, [x22]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
LBB0_6:
	mov	x0, x19
	bl	_ipv6cp_Setup
	ldr	w8, [x23, _ipv6cp_LayerDown.recursing@PAGEOFF]
LBB0_7:
	sub	w8, w8, #1
	str	w8, [x23, _ipv6cp_LayerDown.recursing@PAGEOFF]
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	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, [x20]
	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, [x20]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ipv6cp_LayerDown.recursing,4,2 ; @ipv6cp_LayerDown.recursing
	.comm	_NCP_ASCIIBUFFERSIZE,4,2        ; @NCP_ASCIIBUFFERSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_LogIPV6CP,4,2                  ; @LogIPV6CP
l_.str.1:                               ; @.str.1
	.asciz	"%s: LayerDown: %s\n"

	.comm	_RAD_STOP,4,2                   ; @RAD_STOP
	.comm	_OPT_IPCP,4,2                   ; @OPT_IPCP
	.comm	_LINKDOWNFILE,4,2               ; @LINKDOWNFILE
l_.str.2:                               ; @.str.2
	.asciz	"MYADDR6"

	.no_dead_strip	_ipv6cp_LayerDown
.subsections_via_symbols
