	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetCa                        ## -- Begin function StGetCa
	.p2align	4, 0x90
_StGetCa:                               ## @StGetCa
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	_MAX_HUBNAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	(%r15), %rax
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERR_NOT_FARM_CONTROLLER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %r13
	movq	(%r14), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_StrCpy
	movl	12(%r14), %r15d
	movq	%r14, %rdi
	callq	_FreeRpcHubGetCa
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_Zero
	movl	%r15d, 12(%r14)
	movq	(%r14), %rdi
	movl	$8, %esi
	movq	%r12, %rdx
	callq	_StrCpy
	movq	%r13, %rdi
	callq	_LockHubList
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_GetHub
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_UnlockHubList
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_LockList
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_IsInListKey
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ListKeyToPointer
	movq	%rax, %rdi
	callq	_CloneX
	movl	%eax, 8(%r14)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_3:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_ERR_OBJECT_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_UnlockList
	movq	%r12, %rdi
	callq	_ReleaseHub
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
	.comm	_MAX_HUBNAME_LEN,4,2            ## @MAX_HUBNAME_LEN
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ## @ERR_NOT_FARM_CONTROLLER
	.comm	_NO_SUPPORT_FOR_BRIDGE,4,2      ## @NO_SUPPORT_FOR_BRIDGE
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ## @ERR_HUB_NOT_FOUND
	.comm	_ERR_OBJECT_NOT_FOUND,4,2       ## @ERR_OBJECT_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetCa                        ; -- Begin function StGetCa
	.p2align	2
_StGetCa:                               ; @StGetCa
	.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
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	x9, _ERR_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x8, [x0]
Lloh5:
	ldr	w19, [x9]
Lloh6:
	adrp	x9, _MAX_HUBNAME_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_HUBNAME_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w1, w9, #1
	mov	x9, x1
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x1, #15
	and	x10, x10, #0x1fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	ldr	x9, [x8]
Lloh11:
	adrp	x10, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _ERR_NOT_FARM_CONTROLLER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_NOT_FARM_CONTROLLER@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	b	LBB0_8
LBB0_2:
	ldr	x23, [x8, #8]
	ldr	x2, [x20]
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_StrCpy
	ldr	w21, [x20, #12]
	mov	x0, x20
	bl	_FreeRpcHubGetCa
	mov	x0, x20
	mov	w1, #16
	bl	_Zero
	str	w21, [x20, #12]
	ldr	x0, [x20]
	mov	w1, #8
	mov	x2, x22
	bl	_StrCpy
	mov	x0, x23
	bl	_LockHubList
	ldr	x1, [x20]
	mov	x0, x23
	bl	_GetHub
	mov	x22, x0
	mov	x0, x23
	bl	_UnlockHubList
	cbz	x22, LBB0_5
; %bb.3:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_LockList
	ldr	x8, [x22]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_IsInListKey
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x22]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ListKeyToPointer
	bl	_CloneX
	str	w0, [x20, #8]
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _ERR_OBJECT_NOT_FOUND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_OBJECT_NOT_FOUND@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
LBB0_7:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_UnlockList
	mov	x0, x22
	bl	_ReleaseHub
LBB0_8:
	ldur	x8, [x29, #-56]
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_10
; %bb.9:
	mov	x0, x19
	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_10:
	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,4,2               ; @ERR_NO_ERROR
	.comm	_MAX_HUBNAME_LEN,4,2            ; @MAX_HUBNAME_LEN
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ; @ERR_NOT_FARM_CONTROLLER
	.comm	_NO_SUPPORT_FOR_BRIDGE,4,2      ; @NO_SUPPORT_FOR_BRIDGE
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ; @ERR_HUB_NOT_FOUND
	.comm	_ERR_OBJECT_NOT_FOUND,4,2       ; @ERR_OBJECT_NOT_FOUND
.subsections_via_symbols
