	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IpcpLayerDown
_IpcpLayerDown:                         ## @IpcpLayerDown
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_fsm2ipcp
	movq	%rax, %r14
	movl	_IpcpLayerDown.recursing(%rip), %ecx
	leal	1(%rcx), %eax
	movl	%eax, _IpcpLayerDown.recursing(%rip)
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.1:
	movl	4(%r14), %edi
	callq	_inet_ntoa
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_LogIPCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rcx
	callq	_log_Printf
	movq	(%rbx), %rdi
	callq	_radius_Flush
	movq	(%rbx), %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	(%rbx), %rdi
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	_LINKDOWNFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	movq	(%rbx), %rdi
LBB0_4:
	callq	_radius_StopTimer
	movq	(%rbx), %rdi
	movq	_LINKDOWNFILE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-64(%rbp), %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	testq	%rax, %rax
	jns	LBB0_9
## %bb.5:
	movq	(%rbx), %rdi
	callq	_bundle_GetLabel
	movq	(%rbx), %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_bundle_GetLabel
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	movq	(%rbx), %r15
LBB0_8:
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_system_Select
LBB0_9:
	movq	_INADDR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ipcp_Setup
	movl	_IpcpLayerDown.recursing(%rip), %eax
LBB0_10:
	decl	%eax
	movl	%eax, _IpcpLayerDown.recursing(%rip)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_IpcpLayerDown.recursing,4,2 ## @IpcpLayerDown.recursing
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

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

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

	.comm	_INADDR_NONE,4,2                ## @INADDR_NONE
	.no_dead_strip	_IpcpLayerDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IpcpLayerDown
_IpcpLayerDown:                         ; @IpcpLayerDown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, 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
	adrp	x22, _IpcpLayerDown.recursing@PAGE
	ldr	w9, [x22, _IpcpLayerDown.recursing@PAGEOFF]
	add	w8, w9, #1
	str	w8, [x22, _IpcpLayerDown.recursing@PAGEOFF]
	cbnz	w9, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_inet_ntoa
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_snprintf
Lloh5:
	adrp	x8, _LogIPCP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogIPCP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #8
	bl	_log_Printf
	ldr	x0, [x20]
	bl	_radius_Flush
	ldr	x0, [x20]
	add	x1, x0, #20
	ldr	w2, [x0, #16]
Lloh10:
	adrp	x8, _RAD_STOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RAD_STOP@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_radius_Account
	ldr	x0, [x20]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh13:
	adrp	x23, _LINKDOWNFILE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _LINKDOWNFILE@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x1, [x0]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w2, [x23]
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	ldr	x0, [x20]
LBB0_4:
	bl	_radius_StopTimer
	ldr	x0, [x20]
	ldr	w2, [x23]
	add	x1, sp, #8
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	tbz	x0, #63, LBB0_9
; %bb.5:
	ldr	x0, [x20]
	bl	_bundle_GetLabel
	ldr	x21, [x20]
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_bundle_GetLabel
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
	tbz	x0, #63, LBB0_9
; %bb.7:
	ldr	x21, [x20]
LBB0_8:
	ldr	w2, [x23]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x3, #0
	mov	x4, #0
	bl	_system_Select
LBB0_9:
Lloh17:
	adrp	x8, _INADDR_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INADDR_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipcp_Setup
	ldr	w8, [x22, _IpcpLayerDown.recursing@PAGEOFF]
LBB0_10:
	sub	w8, w8, #1
	str	w8, [x22, _IpcpLayerDown.recursing@PAGEOFF]
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_IpcpLayerDown.recursing,4,2 ; @IpcpLayerDown.recursing
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

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

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

	.comm	_INADDR_NONE,4,2                ; @INADDR_NONE
	.no_dead_strip	_IpcpLayerDown
.subsections_via_symbols
