	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetLink                      ## -- Begin function StGetLink
	.p2align	4, 0x90
_StGetLink:                             ## @StGetLink
	.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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	(%r13), %rax
	movq	_SERVER_TYPE_STANDALONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_LockHubList
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_GetHub
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_UnlockHubList
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	%r12, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_LockList
	movl	(%r13), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_8
## %bb.5:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_LIST_DATA
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_Lock
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movq	32(%r15), %rax
	movl	(%rax), %esi
	callq	_UniStrCmpi
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edi
	callq	_Unlock
	incq	%r14
	movl	(%r13), %edi
	callq	_LIST_NUM
	cmpq	%rax, %r14
	jl	LBB0_6
LBB0_8:
	movl	(%r13), %edi
	callq	_UnlockList
	movq	%r13, %rdi
	callq	_ReleaseHub
	movq	_ERR_OBJECT_NOT_FOUND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_9:
	movl	48(%r12), %edi
	callq	_AddRef
	movl	(%r12), %edi
	callq	_Unlock
	movl	(%r13), %edi
	callq	_UnlockList
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_StrCpy
	movq	%r15, %rdi
	callq	_FreeRpcCreateLink
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_Zero
	movq	(%r15), %rdi
	movl	$8, %esi
	movq	%rbx, %rdx
	callq	_StrCpy
	movl	(%r12), %edi
	callq	_Lock
	xorl	%eax, %eax
	cmpq	$0, 40(%r12)
	sete	%al
	movl	%eax, 8(%r15)
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, 32(%r15)
	movq	32(%r12), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_Copy
	movl	24(%r12), %edi
	callq	_CopyClientAuth
	movl	%eax, 24(%r15)
	leaq	20(%r15), %rdi
	movq	16(%r12), %rsi
	movl	$4, %edx
	callq	_Copy
	movl	8(%r12), %eax
	movl	%eax, 16(%r15)
	movl	4(%r12), %edi
	callq	_CloneX
	movl	%eax, 12(%r15)
	movl	(%r12), %edi
	callq	_Unlock
	movq	%r12, %rdi
	callq	_ReleaseLink
	movq	%r13, %rdi
	callq	_ReleaseHub
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_SERVER_TYPE_STANDALONE,8,3     ## @SERVER_TYPE_STANDALONE
	.comm	_ERR_NOT_SUPPORTED,8,3          ## @ERR_NOT_SUPPORTED
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_LINK_CANT_CREATE_ON_FARM,8,3 ## @ERR_LINK_CANT_CREATE_ON_FARM
	.comm	_ERR_HUB_NOT_FOUND,8,3          ## @ERR_HUB_NOT_FOUND
	.comm	_ERR_OBJECT_NOT_FOUND,8,3       ## @ERR_OBJECT_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetLink                      ; -- Begin function StGetLink
	.p2align	2
_StGetLink:                             ; @StGetLink
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _ERR_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x9]
Lloh6:
	adrp	x9, _MAX_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x9]
	mov	x9, x23
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x23, #15
	and	x10, x10, #0x1fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	ldr	x9, [x8]
Lloh11:
	adrp	x10, _SERVER_TYPE_STANDALONE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SERVER_TYPE_STANDALONE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.1:
	ldr	x24, [x8, #8]
	mov	x0, x24
	bl	_LockHubList
	ldr	x1, [x20]
	mov	x0, x24
	bl	_GetHub
	mov	x21, x0
	mov	x0, x24
	bl	_UnlockHubList
	cbz	x21, LBB0_8
; %bb.2:
	ldr	w0, [x21]
	bl	_LockList
	ldr	w0, [x21]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x25
	bl	_LIST_DATA
	mov	x24, x0
	ldr	w0, [x0]
	bl	_Lock
	ldr	x8, [x24, #32]
	ldr	w0, [x8]
	ldr	x8, [x20, #32]
	ldr	w1, [x8]
	bl	_UniStrCmpi
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_Unlock
	add	x25, x25, #1
	ldr	w0, [x21]
	bl	_LIST_NUM
	cmp	x25, x0
	b.lt	LBB0_4
LBB0_6:
	ldr	w0, [x21]
	bl	_UnlockList
	mov	x0, x21
	bl	_ReleaseHub
Lloh14:
	adrp	x8, _ERR_OBJECT_NOT_FOUND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_OBJECT_NOT_FOUND@GOTPAGEOFF]
Lloh16:
	ldr	x19, [x8]
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
Lloh19:
	ldr	x19, [x8]
	b	LBB0_10
LBB0_8:
Lloh20:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
Lloh22:
	ldr	x19, [x8]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x24, #48]
	bl	_AddRef
	ldr	w0, [x24]
	bl	_Unlock
	ldr	w0, [x21]
	bl	_UnlockList
	ldr	x2, [x20]
	mov	x0, x22
	mov	x1, x23
	bl	_StrCpy
	mov	x0, x20
	bl	_FreeRpcCreateLink
	mov	x0, x20
	mov	w1, #40
	bl	_Zero
	ldr	x0, [x20]
	mov	w1, #8
	mov	x2, x22
	bl	_StrCpy
	ldr	w0, [x24]
	bl	_Lock
	ldr	x8, [x24, #40]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x20, #8]
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [x20, #32]
	ldr	x1, [x24, #32]
	mov	w2, #4
	bl	_Copy
	ldr	w0, [x24, #24]
	bl	_CopyClientAuth
	str	w0, [x20, #24]
	add	x0, x20, #20
	ldr	x1, [x24, #16]
	mov	w2, #4
	bl	_Copy
	ldp	w0, w8, [x24, #4]
	str	w8, [x20, #16]
	bl	_CloneX
	str	w0, [x20, #12]
	ldr	w0, [x24]
	bl	_Unlock
	mov	x0, x24
	bl	_ReleaseLink
	mov	x0, x21
	bl	_ReleaseHub
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_SERVER_TYPE_STANDALONE,8,3     ; @SERVER_TYPE_STANDALONE
	.comm	_ERR_NOT_SUPPORTED,8,3          ; @ERR_NOT_SUPPORTED
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_LINK_CANT_CREATE_ON_FARM,8,3 ; @ERR_LINK_CANT_CREATE_ON_FARM
	.comm	_ERR_HUB_NOT_FOUND,8,3          ; @ERR_HUB_NOT_FOUND
	.comm	_ERR_OBJECT_NOT_FOUND,8,3       ; @ERR_OBJECT_NOT_FOUND
.subsections_via_symbols
