	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetHubOffline                  ## -- Begin function SetHubOffline
	.p2align	4, 0x90
_SetHubOffline:                         ## @SetHubOffline
	.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_10
## %bb.1:
	movq	%rdi, %r14
	movl	$1, 8(%rdi)
	movl	24(%rdi), %edi
	callq	_Lock
	cmpl	$0, 12(%r14)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 40(%r14)
	je	LBB0_4
LBB0_3:
	movl	24(%r14), %edi
	callq	_Unlock
	movl	$0, 8(%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_HLog
	movq	%r14, %rdi
	callq	_StopAllLink
	movq	32(%r14), %rdi
	callq	_SnFreeSecureNAT
	movq	$0, 32(%r14)
	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_9
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %r15
	movl	8(%rax), %edi
	movl	28(%r14), %esi
	callq	_StrCmpi
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdi
	callq	_BrFreeBridge
	movq	$0, (%r15)
	jmp	LBB0_8
LBB0_9:
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_UnlockList
	movl	$1, 12(%r14)
	movq	%r14, %rdi
	callq	_StopAllSession
	movl	24(%r14), %edi
	callq	_Unlock
	movl	$0, 8(%r14)
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SiHubOfflineProc               ## TAILCALL
	.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_OFFLINE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetHubOffline                  ; -- Begin function SetHubOffline
	.p2align	2
_SetHubOffline:                         ; @SetHubOffline
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0, #8]
	ldr	w0, [x0, #24]
	bl	_Lock
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
LBB0_3:
	ldr	w0, [x19, #24]
	bl	_Unlock
	str	wzr, [x19, #8]
LBB0_4:
	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
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_HLog
	mov	x0, x19
	bl	_StopAllLink
	ldr	x0, [x19, #32]
	bl	_SnFreeSecureNAT
	str	xzr, [x19, #32]
	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_10
; %bb.6:
	mov	x20, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_LIST_NUM
	cmp	x20, x0
	b.ge	LBB0_10
LBB0_8:                                 ; =>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, #8]
	ldr	w1, [x19, #28]
	bl	_StrCmpi
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x21]
	bl	_BrFreeBridge
	str	xzr, [x21]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_UnlockList
	mov	w8, #1
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_StopAllSession
	ldr	w0, [x19, #24]
	bl	_Unlock
	str	wzr, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.11:
	mov	x0, x19
	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
	b	_SiHubOfflineProc
	.loh AdrpAdd	Lloh0, Lloh1
	.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_OFFLINE"

.subsections_via_symbols
