	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function datalink_LayerDown
_datalink_LayerDown:                    ## @datalink_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	_PROTO_LCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rsi, %r14
	leaq	32(%rbx), %rdi
	callq	_peerid_Init
	movq	24(%rbx), %rdi
	callq	_fsm2initial
	movq	_DATALINK_LCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_datalink_NewState
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	*8(%rax)
LBB0_5:
	cmpl	$0, 12(%rbx)
	jne	LBB0_7
## %bb.6:
	leaq	12(%rbx), %rdi
	callq	_cbcp_Down
LBB0_7:
	leaq	8(%rbx), %rdi
	callq	_timer_Stop
	leaq	4(%rbx), %rdi
	callq	_timer_Stop
LBB0_8:
	movq	_DATALINK_LCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_datalink_NewState
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_datalink_AuthReInit            ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_LCP,8,3                  ## @PROTO_LCP
	.comm	_DATALINK_LCP,4,2               ## @DATALINK_LCP
	.no_dead_strip	_datalink_LayerDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function datalink_LayerDown
_datalink_LayerDown:                    ; @datalink_LayerDown
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PROTO_LCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PROTO_LCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x21, _DATALINK_LCP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DATALINK_LCP@GOTPAGEOFF]
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
	mov	x20, x1
	add	x0, x19, #32
	bl	_peerid_Init
	ldr	x0, [x19, #24]
	bl	_fsm2initial
	ldr	w1, [x21]
	mov	x0, x19
	bl	_datalink_NewState
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	mov	x1, x20
	blr	x9
LBB0_5:
	mov	x0, x19
	ldr	w8, [x0, #12]!
	cbnz	w8, LBB0_7
; %bb.6:
	bl	_cbcp_Down
LBB0_7:
	add	x0, x19, #8
	bl	_timer_Stop
	add	x0, x19, #4
	bl	_timer_Stop
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_datalink_NewState
	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_AuthReInit
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_LCP,8,3                  ; @PROTO_LCP
	.comm	_DATALINK_LCP,4,2               ; @DATALINK_LCP
	.no_dead_strip	_datalink_LayerDown
.subsections_via_symbols
