	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StSetHubOnline                 ## -- Begin function StSetHubOnline
	.p2align	4, 0x90
_StSetHubOnline:                        ## @StSetHubOnline
	.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	8(%rdi), %r15
	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), %rbx
	jmp	LBB0_13
LBB0_2:
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_LockHubList
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_GetHub
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_UnlockHubList
	testq	%r14, %r14
	je	LBB0_6
## %bb.3:
	cmpl	$0, (%r13)
	je	LBB0_7
LBB0_4:
	cmpl	$0, (%r12)
	je	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ALog
	movq	%r14, %rdi
	callq	_SetHubOnline
	jmp	LBB0_11
LBB0_6:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_7:
	cmpl	$0, (%r12)
	je	LBB0_16
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	jne	LBB0_9
## %bb.14:
	cmpl	$0, (%r13)
	jne	LBB0_4
## %bb.15:
	cmpl	$0, (%r12)
	jne	LBB0_4
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	movq	_ERR_NOT_ENOUGH_RIGHT@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ALog
	movq	%r14, %rdi
	callq	_SetHubOffline
LBB0_11:
	incl	(%r14)
	movq	%r14, %rdi
	callq	_SiHubUpdateProc
	movq	%r15, %rdi
	callq	_IncrementServerConfigRevision
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rbx
LBB0_12:
	movq	%r14, %rdi
	callq	_ReleaseHub
LBB0_13:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no_online"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ## @ERR_NOT_ENOUGH_RIGHT
L_.str.1:                               ## @.str.1
	.asciz	"no_offline"

L_.str.2:                               ## @.str.2
	.asciz	"LA_SET_HUB_ONLINE"

L_.str.3:                               ## @.str.3
	.asciz	"LA_SET_HUB_OFFLINE"

	.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	_StSetHubOnline                 ; -- Begin function StSetHubOnline
	.p2align	2
_StSetHubOnline:                        ; @StSetHubOnline
	.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	x19, [x0, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _ERR_NOT_FARM_CONTROLLER@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ERR_NOT_FARM_CONTROLLER@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	mov	x22, x1
	mov	x21, x0
	ldr	x23, [x19, #8]
	mov	x0, x23
	bl	_LockHubList
	ldr	w1, [x22, #4]
	mov	x0, x23
	bl	_GetHub
	mov	x20, x0
	mov	x0, x23
	bl	_UnlockHubList
	cbz	x20, LBB0_6
; %bb.3:
	ldr	w8, [x21]
	cbz	w8, LBB0_7
LBB0_4:
	ldr	w8, [x22]
	cbz	w8, LBB0_13
; %bb.5:
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_ALog
	mov	x0, x20
	bl	_SetHubOnline
	b	LBB0_14
LBB0_6:
Lloh7:
	adrp	x19, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh8:
	ldr	x19, [x19, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
	ldr	w8, [x22]
	cbz	w8, LBB0_11
; %bb.8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_GetHubAdminOption
	cbnz	x0, LBB0_12
; %bb.9:
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
; %bb.10:
	ldr	w8, [x22]
	cbnz	w8, LBB0_4
LBB0_11:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_GetHubAdminOption
	cbz	x0, LBB0_4
LBB0_12:
Lloh13:
	adrp	x19, _ERR_NOT_ENOUGH_RIGHT@GOTPAGE
Lloh14:
	ldr	x19, [x19, _ERR_NOT_ENOUGH_RIGHT@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_ALog
	mov	x0, x20
	bl	_SetHubOffline
LBB0_14:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x20
	bl	_SiHubUpdateProc
	mov	x0, x19
	bl	_IncrementServerConfigRevision
Lloh17:
	adrp	x19, _ERR_NO_ERROR@GOTPAGE
Lloh18:
	ldr	x19, [x19, _ERR_NO_ERROR@GOTPAGEOFF]
LBB0_15:
	mov	x0, x20
	bl	_ReleaseHub
LBB0_16:
	ldr	w0, [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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no_online"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ; @ERR_NOT_ENOUGH_RIGHT
l_.str.1:                               ; @.str.1
	.asciz	"no_offline"

l_.str.2:                               ; @.str.2
	.asciz	"LA_SET_HUB_ONLINE"

l_.str.3:                               ; @.str.3
	.asciz	"LA_SET_HUB_OFFLINE"

	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
.subsections_via_symbols
