	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StRenameLink                   ## -- Begin function StRenameLink
	.p2align	4, 0x90
_StRenameLink:                          ## @StRenameLink
	.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	$40, %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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	8(%r13), %r14
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r12
	movl	4(%rsi), %edi
	callq	_UniIsEmptyStr
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	callq	_UniIsEmptyStr
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r13), %rax
	movq	_SERVER_TYPE_STANDALONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.6:
	movl	(%r15), %edi
	movl	4(%r15), %esi
	callq	_UniStrCmpi
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_GetHub
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_17
LBB0_9:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_LockList
	movl	(%r14), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%r14, %r12
	movq	%rax, %r14
	movl	8(%rax), %edi
	callq	_Lock
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_UniStrCmpi
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%r14), %edi
	callq	_Unlock
	incq	%rbx
	movl	(%r12), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	movq	%r12, %r14
	jl	LBB0_11
LBB0_13:
	movl	(%r14), %edi
	callq	_UnlockList
	movq	%r14, %rdi
	callq	_ReleaseHub
	movq	_ERR_OBJECT_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_15:
	movq	(%rbx), %rbx
	jmp	LBB0_4
LBB0_16:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_17:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_9
## %bb.18:
	movq	%r14, %rdi
	callq	_ReleaseHub
	movq	_ERR_NOT_ENOUGH_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_19:
	movl	12(%r14), %edi
	callq	_AddRef
	movl	8(%r14), %edi
	callq	_Unlock
	movl	(%r12), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_24
## %bb.20:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_LIST_DATA
	movq	%rax, %r12
	movl	8(%rax), %edi
	callq	_Lock
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_UniStrCmpi
	testq	%rax, %rax
	movl	$1, %eax
	cmovel	%eax, %r14d
	movl	8(%r12), %edi
	callq	_Unlock
	incq	%r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_LIST_NUM
	cmpq	%rax, %r13
	jl	LBB0_21
## %bb.22:
	testl	%r14d, %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_24
## %bb.23:
	movq	_ERR_LINK_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_25
LBB0_24:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	$4, %esi
	callq	_UniStrCpy
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ALog
	movq	%r13, %rdi
	callq	_IncrementServerConfigRevision
LBB0_25:
	movl	(%r12), %edi
	callq	_UnlockList
	movq	%r14, %rdi
	callq	_ReleaseLink
	movq	%r12, %rdi
	callq	_ReleaseHub
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
	.comm	_ERR_INVALID_PARAMETER,8,3      ## @ERR_INVALID_PARAMETER
	.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_HUB_NOT_FOUND,8,3          ## @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no_cascade"

	.comm	_ERR_NOT_ENOUGH_RIGHT,8,3       ## @ERR_NOT_ENOUGH_RIGHT
	.comm	_ERR_LINK_ALREADY_EXISTS,8,3    ## @ERR_LINK_ALREADY_EXISTS
L_.str.1:                               ## @.str.1
	.asciz	"LA_RENAME_LINK"

	.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	_StRenameLink                   ; -- Begin function StRenameLink
	.p2align	2
_StRenameLink:                          ; @StRenameLink
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	x23, [x20, #8]
Lloh0:
	adrp	x24, _ERR_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x19, [x24]
	ldr	w0, [x1, #4]
	bl	_UniIsEmptyStr
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	bl	_UniIsEmptyStr
	cbz	x0, LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_3:
	ldr	x19, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _SERVER_TYPE_STANDALONE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SERVER_TYPE_STANDALONE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.6:
	ldp	w0, w1, [x22]
	bl	_UniStrCmpi
	cbz	x0, LBB0_15
; %bb.7:
	ldr	w1, [x22, #8]
	mov	x0, x23
	bl	_GetHub
	cbz	x0, LBB0_16
; %bb.8:
	mov	x23, x0
	ldr	w8, [x21]
	cbz	w8, LBB0_17
LBB0_9:
	ldr	w0, [x23]
	bl	_LockList
	ldr	w0, [x23]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x25, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x25
	bl	_LIST_DATA
	mov	x24, x0
	ldr	w0, [x0, #8]
	bl	_Lock
	ldr	x8, [x24]
	ldr	w0, [x8]
	ldr	w1, [x22, #4]
	bl	_UniStrCmpi
	cbz	x0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x24, #8]
	bl	_Unlock
	add	x25, x25, #1
	ldr	w0, [x23]
	bl	_LIST_NUM
	cmp	x25, x0
	b.lt	LBB0_11
LBB0_13:
	ldr	w0, [x23]
	bl	_UnlockList
	mov	x0, x23
	bl	_ReleaseHub
Lloh7:
	adrp	x8, _ERR_OBJECT_NOT_FOUND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_OBJECT_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_3
LBB0_14:
Lloh9:
	adrp	x8, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_3
LBB0_15:
	ldr	x19, [x24]
	b	LBB0_4
LBB0_16:
Lloh11:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_3
LBB0_17:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_GetHubAdminOption
	cbz	x0, LBB0_9
; %bb.18:
	mov	x0, x23
	bl	_ReleaseHub
Lloh15:
	adrp	x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGEOFF]
	b	LBB0_3
LBB0_19:
	ldr	w0, [x24, #12]
	bl	_AddRef
	ldr	w0, [x24, #8]
	bl	_Unlock
	ldr	w0, [x23]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_24
; %bb.20:
	mov	x25, #0
	mov	w27, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x25
	bl	_LIST_DATA
	mov	x26, x0
	ldr	w0, [x0, #8]
	bl	_Lock
	ldr	x8, [x26]
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_UniStrCmpi
	cmp	x0, #0
	csinc	w27, w27, wzr, ne
	ldr	w0, [x26, #8]
	bl	_Unlock
	add	x25, x25, #1
	ldr	w0, [x23]
	bl	_LIST_NUM
	cmp	x25, x0
	b.lt	LBB0_21
; %bb.22:
	cbz	w27, LBB0_24
; %bb.23:
Lloh17:
	adrp	x8, _ERR_LINK_ALREADY_EXISTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_LINK_ALREADY_EXISTS@GOTPAGEOFF]
Lloh19:
	ldr	x19, [x8]
	b	LBB0_25
LBB0_24:
	ldr	x8, [x24]
	ldr	w0, [x8]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_UniStrCpy
	ldp	w4, w3, [x22]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_ALog
	mov	x0, x20
	bl	_IncrementServerConfigRevision
LBB0_25:
	ldr	w0, [x23]
	bl	_UnlockList
	mov	x0, x24
	bl	_ReleaseLink
	mov	x0, x23
	bl	_ReleaseHub
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
	.comm	_ERR_INVALID_PARAMETER,8,3      ; @ERR_INVALID_PARAMETER
	.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_HUB_NOT_FOUND,8,3          ; @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no_cascade"

	.comm	_ERR_NOT_ENOUGH_RIGHT,8,3       ; @ERR_NOT_ENOUGH_RIGHT
	.comm	_ERR_LINK_ALREADY_EXISTS,8,3    ; @ERR_LINK_ALREADY_EXISTS
l_.str.1:                               ; @.str.1
	.asciz	"LA_RENAME_LINK"

	.comm	_ERR_OBJECT_NOT_FOUND,8,3       ; @ERR_OBJECT_NOT_FOUND
.subsections_via_symbols
