	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetHubRadius                 ## -- Begin function StGetHubRadius
	.p2align	4, 0x90
_StGetHubRadius:                        ## @StGetHubRadius
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rsi, %r15
	movq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_LockHubList
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_GetHub
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_UnlockHubList
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_Zero
	movl	4(%r15), %r8d
	movl	12(%r15), %esi
	movq	%r15, (%rsp)
	addq	$8, %r15
	movq	%r14, %rdi
	movl	$4, %edx
	movq	%r15, %rcx
	movl	$4, %r9d
	callq	_GetRadiusServerEx
	movq	%r14, %rdi
	callq	_ReleaseHub
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_SUPPORTED,4,2          ## @ERR_NOT_SUPPORTED
	.comm	_ERR_HUB_NOT_FOUND,4,2          ## @ERR_HUB_NOT_FOUND
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetHubRadius                 ; -- Begin function StGetHubRadius
	.p2align	2
_StGetHubRadius:                        ; @StGetHubRadius
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	ldr	x21, [x8, #8]
	mov	x0, x21
	bl	_LockHubList
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_GetHub
	mov	x20, x0
	mov	x0, x21
	bl	_UnlockHubList
	cbz	x20, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #20
	bl	_Zero
	ldr	w1, [x19, #12]
	add	x3, x19, #8
	ldr	w4, [x19, #4]
	mov	x0, x20
	mov	w2, #4
	mov	w5, #4
	mov	x6, x19
	bl	_GetRadiusServerEx
	mov	x0, x20
	bl	_ReleaseHub
Lloh5:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_SUPPORTED,4,2          ; @ERR_NOT_SUPPORTED
	.comm	_ERR_HUB_NOT_FOUND,4,2          ; @ERR_HUB_NOT_FOUND
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
.subsections_via_symbols
