	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetHub                       ## -- Begin function StGetHub
	.p2align	4, 0x90
_StGetHub:                              ## @StGetHub
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
LBB0_1:
	movq	_ERR_NOT_FARM_CONTROLLER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %r14
	movq	8(%rbx), %r12
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	16(%rsi), %edi
	callq	_IsEmptyStr
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	16(%r14), %edi
	callq	_IsSafeStr
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_1
## %bb.8:
	movq	%r12, %rdi
	callq	_LockHubList
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_GetHub
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_UnlockHubList
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_Zero
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	callq	_Lock
	movl	16(%r14), %edi
	movl	24(%r15), %edx
	movl	$4, %esi
	callq	_StrCpy
	xorl	%eax, %eax
	cmpq	$0, 16(%r15)
	sete	%al
	movl	%eax, (%r14)
	movq	8(%r15), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 12(%r14)
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movl	(%r15), %edi
	callq	_Unlock
	movq	%r15, %rdi
	callq	_ReleaseHub
	jmp	LBB0_5
LBB0_10:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ## @ERR_NOT_FARM_CONTROLLER
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetHub                       ; -- Begin function StGetHub
	.p2align	2
_StGetHub:                              ; @StGetHub
	.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
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x23, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _ERR_NOT_FARM_CONTROLLER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_NOT_FARM_CONTROLLER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	ldr	x22, [x21, #8]
Lloh4:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	ldr	w0, [x1, #16]
	bl	_IsEmptyStr
	cbz	x0, LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_4:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	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_6:
	ldr	w0, [x20, #16]
	bl	_IsSafeStr
	cbz	w0, LBB0_3
; %bb.7:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.8:
	mov	x0, x22
	bl	_LockHubList
	ldr	w1, [x20, #16]
	mov	x0, x22
	bl	_GetHub
	mov	x21, x0
	mov	x0, x22
	bl	_UnlockHubList
	mov	x0, x20
	mov	w1, #20
	bl	_Zero
	cbz	x21, LBB0_10
; %bb.9:
	ldr	w0, [x21]
	bl	_Lock
	ldr	w0, [x20, #16]
	ldr	w2, [x21, #24]
	mov	w1, #4
	bl	_StrCpy
	ldp	x9, x8, [x21, #8]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x20]
	ldr	d0, [x9]
	str	d0, [x20, #8]
	ldp	w0, w8, [x21]
	str	w8, [x20, #4]
	bl	_Unlock
	mov	x0, x21
	bl	_ReleaseHub
	b	LBB0_5
LBB0_10:
Lloh9:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ; @ERR_NOT_FARM_CONTROLLER
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.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
.subsections_via_symbols
