	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetHubOnline                   ## -- Begin function SetHubOnline
	.p2align	4, 0x90
_SetHubOnline:                          ## @SetHubOnline
	.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
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movb	$1, %bl
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rax
	movq	_SERVER_TYPE_FARM_CONTROLLER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movq	_HUB_TYPE_FARM_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%bl
LBB0_4:
	movl	24(%r14), %edi
	callq	_Lock
	cmpl	$0, 8(%r14)
	je	LBB0_18
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_HLog
	movq	%r14, %rdi
	callq	_StartAllLink
	cmpq	$0, 48(%r14)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 40(%r14)
	setne	%al
	xorb	$1, %bl
	orb	%al, %bl
	jne	LBB0_8
## %bb.7:
	movl	32(%r14), %esi
	movq	%r14, %rdi
	callq	_SnNewSecureNAT
	movq	%rax, 40(%r14)
LBB0_8:
	movq	(%r14), %rax
	movq	_HUB_TYPE_FARM_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.9:
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_LockList
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_15
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %r15
	movl	32(%rax), %edi
	movl	28(%r14), %esi
	callq	_StrCmpi
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 24(%r15)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	20(%r15), %esi
	movl	16(%r15), %ecx
	movl	12(%r15), %r8d
	movl	8(%r15), %r9d
	movl	(%r15), %eax
	movl	4(%r15), %r10d
	subq	$8, %rsp
	movq	%r14, %rdi
	xorl	%edx, %edx
	pushq	%r15
	pushq	%rax
	pushq	%r10
	callq	_BrNewBridge
	addq	$32, %rsp
	movq	%rax, 24(%r15)
	jmp	LBB0_14
LBB0_18:
	movl	24(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Unlock                         ## TAILCALL
LBB0_15:
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_UnlockList
LBB0_16:
	movl	$0, 8(%r14)
	movl	24(%r14), %edi
	callq	_Unlock
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.19:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SiHubOnlineProc                ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ## @SERVER_TYPE_FARM_CONTROLLER
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ## @HUB_TYPE_FARM_DYNAMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LH_ONLINE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetHubOnline                   ; -- Begin function SetHubOnline
	.p2align	2
_SetHubOnline:                          ; @SetHubOnline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
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_4
; %bb.3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w20, ne
	b	LBB0_5
LBB0_4:
	mov	w20, #1
LBB0_5:
	ldr	w0, [x19, #24]
	bl	_Lock
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_16
; %bb.6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_HLog
	mov	x0, x19
	bl	_StartAllLink
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w8, ne
	eor	w9, w20, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_9
; %bb.8:
	ldr	w1, [x19, #32]
	mov	x0, x19
	bl	_SnNewSecureNAT
	str	x0, [x19, #40]
LBB0_9:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HUB_TYPE_FARM_DYNAMIC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.10:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_LockList
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x20, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_LIST_NUM
	cmp	x20, x0
	b.ge	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	mov	x1, x20
	bl	_LIST_DATA
	mov	x21, x0
	ldr	w0, [x0, #32]
	ldr	w1, [x19, #28]
	bl	_StrCmpi
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	w3, w1, [x21, #16]
	ldp	w5, w4, [x21, #8]
	ldp	w7, w6, [x21]
	str	x21, [sp]
	mov	x0, x19
	mov	x2, #0
	bl	_BrNewBridge
	str	x0, [x21, #24]
	b	LBB0_12
LBB0_16:
	ldr	w0, [x19, #24]
	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
	add	sp, sp, #64
	b	_Unlock
LBB0_17:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_UnlockList
LBB0_18:
	str	wzr, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_Unlock
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:
	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
	add	sp, sp, #64
	b	_SiHubOnlineProc
LBB0_20:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ; @SERVER_TYPE_FARM_CONTROLLER
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ; @HUB_TYPE_FARM_DYNAMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LH_ONLINE"

.subsections_via_symbols
