	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetHubStatus                 ## -- Begin function StGetHubStatus
	.p2align	4, 0x90
_StGetHubStatus:                        ## @StGetHubStatus
	.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, %r12
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rbx
	movq	%rbx, %rdi
	callq	_LockHubList
	movl	56(%r12), %esi
	movq	%rbx, %rdi
	callq	_GetHub
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_UnlockHubList
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$104, %esi
	callq	_Zero
	movl	12(%r14), %edi
	callq	_Lock
	movl	56(%r12), %edi
	movl	80(%r14), %edx
	movl	$4, %esi
	callq	_StrCpy
	movq	(%r14), %rax
	movq	%rax, (%r12)
	xorl	%eax, %eax
	cmpq	$0, 72(%r14)
	sete	%al
	movl	%eax, 8(%r12)
	movl	68(%r14), %edi
	callq	_LIST_NUM
	movq	%rax, 48(%r12)
	movl	64(%r14), %edi
	callq	_Count
	movq	%rax, 40(%r12)
	movl	60(%r14), %edi
	callq	_Count
	movq	%rax, 32(%r12)
	movl	56(%r14), %edi
	callq	_LIST_NUM
	movq	%rax, 96(%r12)
	movq	48(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rax), %edi
	callq	_LIST_NUM
	movq	%rax, 88(%r12)
	movq	48(%r14), %rax
	movl	(%rax), %edi
	callq	_LIST_NUM
	movq	%rax, 80(%r12)
LBB0_4:
	movl	44(%r14), %edi
	callq	_HASH_LIST_NUM
	movl	%eax, 24(%r12)
	movl	40(%r14), %edi
	callq	_LIST_NUM
	movq	%rax, 16(%r12)
	movl	32(%r14), %edi
	callq	_Lock
	leaq	76(%r12), %rdi
	movl	36(%r14), %esi
	movl	$4, %edx
	callq	_Copy
	movl	32(%r14), %edi
	callq	_Unlock
	movups	16(%r14), %xmm0
	movups	%xmm0, 60(%r12)
	movl	12(%r14), %edi
	callq	_Unlock
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	_SERVER_TYPE_FARM_CONTROLLER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_LockList
	movl	8(%rbx), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_15
## %bb.6:
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r13), %edi
	callq	_UnlockList
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movl	8(%rbx), %edi
	callq	_LIST_NUM
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_LIST_DATA
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r13
	movl	4(%rax), %edi
	callq	_LockList
	movl	4(%r13), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%rbx
	movl	4(%r13), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r13), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %r14
	movl	40(%rax), %edi
	movl	56(%r12), %esi
	callq	_StrCmpi
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	32(%r14), %rax
	addq	%rax, 48(%r12)
	movq	24(%r14), %rax
	addq	%rax, 40(%r12)
	movq	16(%r14), %rax
	addq	%rax, 32(%r12)
	movl	8(%r14), %eax
	addl	%eax, 24(%r12)
	movq	(%r14), %rax
	addq	%rax, 16(%r12)
	jmp	LBB0_12
LBB0_1:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	movl	8(%rbx), %edi
	callq	_UnlockList
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_16:
	movq	(%r14), %rax
	movq	_HUB_TYPE_FARM_STATIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movl	8(%r14), %eax
	movl	%eax, 12(%r12)
LBB0_18:
	movq	%r14, %rdi
	callq	_ReleaseHub
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,8,3          ## @ERR_HUB_NOT_FOUND
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ## @SERVER_TYPE_FARM_CONTROLLER
	.comm	_HUB_TYPE_FARM_STATIC,8,3       ## @HUB_TYPE_FARM_STATIC
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetHubStatus                 ; -- Begin function StGetHubStatus
	.p2align	2
_StGetHubStatus:                        ; @StGetHubStatus
	.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
	mov	x19, x1
	ldr	x25, [x0]
	ldr	x21, [x25, #16]
	mov	x0, x21
	bl	_LockHubList
	ldr	w1, [x19, #56]
	mov	x0, x21
	bl	_GetHub
	mov	x20, x0
	mov	x0, x21
	bl	_UnlockHubList
	cbz	x20, LBB0_14
; %bb.1:
	mov	x0, x19
	mov	w1, #104
	bl	_Zero
	ldr	w0, [x20, #12]
	bl	_Lock
	ldr	w0, [x19, #56]
	ldr	w2, [x20, #80]
	mov	w1, #4
	bl	_StrCpy
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	x8, [x20, #72]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x19, #8]
	ldr	w0, [x20, #68]
	bl	_LIST_NUM
	str	x0, [x19, #48]
	ldr	w0, [x20, #64]
	bl	_Count
	str	x0, [x19, #40]
	ldr	w0, [x20, #60]
	bl	_Count
	str	x0, [x19, #32]
	ldr	w0, [x20, #56]
	bl	_LIST_NUM
	str	x0, [x19, #96]
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x8, #4]
	bl	_LIST_NUM
	str	x0, [x19, #88]
	ldr	x8, [x20, #48]
	ldr	w0, [x8]
	bl	_LIST_NUM
	str	x0, [x19, #80]
LBB0_3:
	ldr	w0, [x20, #44]
	bl	_HASH_LIST_NUM
	str	w0, [x19, #24]
	ldr	w0, [x20, #40]
	bl	_LIST_NUM
	str	x0, [x19, #16]
	ldr	w0, [x20, #32]
	bl	_Lock
	add	x0, x19, #76
	ldr	w1, [x20, #36]
	mov	w2, #4
	bl	_Copy
	ldr	w0, [x20, #32]
	bl	_Unlock
	ldr	q0, [x20, #16]
	stur	q0, [x19, #60]
	ldr	w0, [x20, #12]
	bl	_Unlock
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.4:
	ldr	w0, [x25, #8]
	bl	_LockList
	ldr	w0, [x25, #8]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.5:
	mov	x21, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x22, #4]
	bl	_UnlockList
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldr	w0, [x25, #8]
	bl	_LIST_NUM
	cmp	x21, x0
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w0, [x25, #8]
	mov	x1, x21
	bl	_LIST_DATA
	ldr	w8, [x0]
	cbnz	w8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_LockList
	ldr	w0, [x22, #4]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x23, x23, #1
	ldr	w0, [x22, #4]
	bl	_LIST_NUM
	cmp	x23, x0
	b.ge	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22, #4]
	mov	x1, x23
	bl	_LIST_DATA
	mov	x24, x0
	ldr	w0, [x0, #40]
	ldr	w1, [x19, #56]
	bl	_StrCmpi
	cbnz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x24, #32]
	ldp	x10, x9, [x19, #40]
	add	x8, x9, x8
	str	x8, [x19, #48]
	ldp	x9, x8, [x24, #16]
	ldr	x11, [x19, #32]
	add	x8, x10, x8
	add	x9, x11, x9
	stp	x9, x8, [x19, #32]
	ldr	w8, [x24, #8]
	ldr	w9, [x19, #24]
	add	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x24]
	ldr	x9, [x19, #16]
	add	x8, x9, x8
	str	x8, [x19, #16]
	b	LBB0_11
LBB0_14:
Lloh3:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	ldr	w0, [x25, #8]
	bl	_UnlockList
LBB0_16:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _HUB_TYPE_FARM_STATIC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HUB_TYPE_FARM_STATIC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.17:
	ldr	w8, [x20, #8]
	str	w8, [x19, #12]
LBB0_18:
	mov	x0, x20
	bl	_ReleaseHub
Lloh8:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
LBB0_19:
	ldr	x0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,8,3          ; @ERR_HUB_NOT_FOUND
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ; @SERVER_TYPE_FARM_CONTROLLER
	.comm	_HUB_TYPE_FARM_STATIC,8,3       ; @HUB_TYPE_FARM_STATIC
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
.subsections_via_symbols
