	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LinkServerSessionThread        ## -- Begin function LinkServerSessionThread
	.p2align	4, 0x90
_LinkServerSessionThread:               ## @LinkServerSessionThread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movl	20(%r13), %edi
	xorl	%esi, %esi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	callq	_NewServerConnection
	movq	%rax, %r14
	movq	_CONNECTION_HUB_LINK_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movl	24(%r13), %esi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_Copy
	movl	16(%r13), %edx
	movl	20(%r13), %edi
	movq	_LINK_USER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%rbx, %r8
	callq	_NewServerSession
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%r13, 24(%rax)
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_ReleaseConnection
	movq	_LINK_USER_NAME_PRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CopyStr
	movl	%eax, 16(%rbx)
	movq	%rbx, 8(%r13)
	movl	12(%rbx), %edi
	callq	_AddRef
	movq	%r12, %rdi
	callq	_NoticeThreadInit
	shll	$2, %r15d
	movq	(%r13), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_UniStrCpy
	movl	4(%rbx), %edi
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_HLog
	movq	%rbx, %rdi
	callq	_SessionMain
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_HLog
	movq	%rbx, %rdi
	callq	_ReleaseSession
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_CONNECTION_HUB_LINK_SERVER,4,2 ## @CONNECTION_HUB_LINK_SERVER
	.comm	_LINK_USER_NAME,4,2             ## @LINK_USER_NAME
	.comm	_LINK_USER_NAME_PRINT,4,2       ## @LINK_USER_NAME_PRINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LH_LINK_START"

L_.str.1:                               ## @.str.1
	.asciz	"LH_LINK_STOP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LinkServerSessionThread        ; -- Begin function LinkServerSessionThread
	.p2align	2
_LinkServerSessionThread:               ; @LinkServerSessionThread
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w0, [x20, #20]
	mov	x1, #0
	mov	x2, x21
	bl	_NewServerConnection
	mov	x23, x0
Lloh8:
	adrp	x8, _CONNECTION_HUB_LINK_SERVER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONNECTION_HUB_LINK_SERVER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	w0, #4
	bl	_ZeroMalloc
	mov	x22, x0
	ldr	w1, [x20, #24]
	mov	w2, #4
	bl	_Copy
	ldp	w2, w0, [x20, #16]
Lloh11:
	adrp	x8, _LINK_USER_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LINK_USER_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x23
	mov	x4, x22
	bl	_NewServerSession
	mov	x22, x0
	mov	w8, #1
	str	w8, [x0]
	str	x20, [x0, #24]
	str	x0, [x23]
	mov	x0, x23
	bl	_ReleaseConnection
Lloh14:
	adrp	x8, _LINK_USER_NAME_PRINT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LINK_USER_NAME_PRINT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_CopyStr
	str	w0, [x22, #16]
	str	x22, [x20, #8]
	ldr	w0, [x22, #12]
	bl	_AddRef
	mov	x0, x21
	bl	_NoticeThreadInit
	lsl	w1, w24, #2
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_UniStrCpy
	ldp	w0, w8, [x22, #4]
	str	x8, [sp, #-16]!
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_HLog
	add	sp, sp, #16
	mov	x0, x22
	bl	_SessionMain
	ldr	w0, [x22, #4]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_HLog
	mov	x0, x22
	bl	_ReleaseSession
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_CONNECTION_HUB_LINK_SERVER,4,2 ; @CONNECTION_HUB_LINK_SERVER
	.comm	_LINK_USER_NAME,4,2             ; @LINK_USER_NAME
	.comm	_LINK_USER_NAME_PRINT,4,2       ; @LINK_USER_NAME_PRINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LH_LINK_START"

l_.str.1:                               ; @.str.1
	.asciz	"LH_LINK_STOP"

.subsections_via_symbols
