	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartLink                      ## -- Begin function StartLink
	.p2align	4, 0x90
_StartLink:                             ## @StartLink
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	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	%rdi, %rbx
	callq	_LockLink
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_Inc
	movq	%rbx, %rdi
	callq	_UnlockLink
	xorl	%eax, %eax
	callq	_LinkGetPacketAdapter
	movq	%rax, %r14
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	callq	_LockLink
	movq	16(%rbx), %rdi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_NewClientSession
	movl	%eax, 24(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_UnlockLink                     ## TAILCALL
LBB0_5:
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartLink                      ; -- Begin function StartLink
	.p2align	2
_StartLink:                             ; @StartLink
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
	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	x19, x0
	bl	_LockLink
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_Inc
	mov	x0, x19
	bl	_UnlockLink
	bl	_LinkGetPacketAdapter
	mov	x20, x0
	str	x19, [x0]
	mov	x0, x19
	bl	_LockLink
	ldr	x0, [x19, #16]
	ldp	w2, w1, [x19, #4]
	mov	x3, x20
	mov	x4, #0
	bl	_NewClientSession
	str	w0, [x19, #24]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UnlockLink
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
