	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_Close                 ## -- Begin function datalink_Close
	.p2align	4, 0x90
_datalink_Close:                        ## @datalink_Close
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.2:
	leaq	16(%rbx), %rdi
	callq	_peerid_Init
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_fsm2initial
LBB0_3:
	movq	%rbx, %rdi
	callq	_datalink_AuthReInit
	movq	_CLOSE_LCP@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_datalink_DontHangup
	jmp	LBB0_7
LBB0_5:
	movq	_CLOSE_STAYDOWN@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_datalink_StayDown
LBB0_7:
	movq	8(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fsm_Close                      ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_datalink_ComeDown              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOSE_LCP,4,2                  ## @CLOSE_LCP
	.comm	_CLOSE_STAYDOWN,4,2             ## @CLOSE_STAYDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_Close                 ; -- Begin function datalink_Close
	.p2align	2
_datalink_Close:                        ; @datalink_Close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #3
	b.lo	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.2:
	add	x0, x19, #16
	bl	_peerid_Init
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_fsm2initial
LBB0_3:
	mov	x0, x19
	bl	_datalink_AuthReInit
Lloh0:
	adrp	x8, _CLOSE_LCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOSE_LCP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_datalink_DontHangup
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _CLOSE_STAYDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLOSE_STAYDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_datalink_StayDown
LBB0_7:
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fsm_Close
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_datalink_ComeDown
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOSE_LCP,4,2                  ; @CLOSE_LCP
	.comm	_CLOSE_STAYDOWN,4,2             ; @CLOSE_STAYDOWN
.subsections_via_symbols
