	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3SwThread                     ## -- Begin function L3SwThread
	.p2align	4, 0x90
_L3SwThread:                            ## @L3SwThread
	.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
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_39
## %bb.2:
	movl	$1, (%r12)
	callq	_NoticeThreadInit
	movq	16(%r12), %rdi
	movl	12(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_SLog
                                        ## implicit-def: $r14d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r12), %edi
	callq	_Unlock
	xorl	%r14d, %r14d
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$50, %edi
	callq	_SleepThread
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
	cmpl	$0, 4(%r12)
	movl	8(%r12), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r12), %edi
	callq	_Lock
	movq	32(%r12), %rdi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r12), %rdi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	(%rax), %rdx
	movl	$1, %ecx
	cmpq	$0, (%rdx)
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rbx
	movq	32(%r12), %rdi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r13d, %r13d
	movl	%ecx, %r14d
	movl	$1, %eax
	cmovnel	%eax, %r14d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %r15d
	movq	16(%r12), %rdi
	movl	12(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_SLog
	xorl	%edi, %edi
	callq	_NewListFast
	movq	%rax, %r13
	movq	32(%r12), %rdi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r12), %rdi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_Insert
	incq	%rbx
	movq	32(%r12), %rdi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jl	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, 8(%r12)
	movl	24(%r12), %edi
	callq	_Unlock
	testq	%r13, %r13
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %rdi
	callq	_StopSession
	incq	%rbx
	movq	%r13, %rdi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jl	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_L3FreeAllInterfaces
	movq	%r13, %rdi
	callq	_ReleaseList
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %r13d
	jmp	LBB0_4
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_LockList
	movl	24(%r12), %edi
	callq	_Lock
	movq	32(%r12), %rdi
	callq	_LIST_NUM
	movq	%rax, %rbx
	movq	32(%r12), %rdi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_38
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	setne	%r13b
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=2
	xorl	%r13d, %r13d
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=2
	incq	%rbx
	movq	32(%r12), %rdi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jge	LBB0_35
LBB0_30:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r12), %rdi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	16(%r12), %rdi
	movl	16(%rax), %esi
	callq	_GetHub
	testq	%rax, %rax
	je	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rax)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=2
	movl	%ecx, %r13d
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	(%rax), %rcx
	xorl	%edx, %edx
	movq	_HUB_TYPE_FARM_DYNAMIC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	setne	%dl
	movl	$0, %ecx
	cmovel	%ecx, %r13d
	addq	%rdx, %r15
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	%rax, %rdi
	callq	_ReleaseHub
	jmp	LBB0_29
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r13d, %r13d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r15, %r15
	jle	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rdi
	movl	12(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_SLog
	movq	%r12, %rdi
	callq	_L3InitAllInterfaces
	movl	$1, 8(%r12)
LBB0_38:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r12), %edi
	callq	_Unlock
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_UnlockList
	jmp	LBB0_4
LBB0_39:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	movq	16(%r12), %rdi
	movl	12(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SLog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L3_SWITCH_START"

	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ## @HUB_TYPE_FARM_DYNAMIC
L_.str.1:                               ## @.str.1
	.asciz	"L3_SWITCH_ONLINE"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3SwThread                     ; -- Begin function L3SwThread
	.p2align	2
_L3SwThread:                            ; @L3SwThread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_38
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_38
; %bb.2:
	mov	w24, #1
	str	w24, [x19]
	bl	_NoticeThreadInit
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SLog
	mov	w25, #0
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh4:
	adrp	x26, _HUB_TYPE_FARM_DYNAMIC@GOTPAGE
Lloh5:
	ldr	x26, [x26, _HUB_TYPE_FARM_DYNAMIC@GOTPAGEOFF]
                                        ; implicit-def: $w27
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #24]
	bl	_Unlock
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #50
	bl	_SleepThread
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
	ldp	w9, w8, [x19, #4]
	cbz	w9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_39
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w25, #1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #24]
	bl	_Lock
	ldr	x0, [x19, #32]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #32]
	mov	x1, x22
	bl	_LIST_DATA
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbnz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x22, x22, #1
	ldr	x0, [x19, #32]
	bl	_LIST_NUM
	cmp	x22, x0
	b.lt	LBB0_12
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #1
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, #0
	csinc	w27, w27, wzr, eq
	cbz	w27, LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #12]
	mov	x1, x21
	bl	_SLog
	mov	x0, #0
	bl	_NewListFast
	mov	x22, x0
	ldr	x0, [x19, #32]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
LBB0_19:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #32]
	mov	x1, x23
	bl	_LIST_DATA
	ldr	x1, [x0]
	mov	x0, x22
	bl	_Insert
	add	x23, x23, #1
	ldr	x0, [x19, #32]
	bl	_LIST_NUM
	cmp	x23, x0
	b.lt	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_Unlock
	cbz	x22, LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
LBB0_23:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x23
	bl	_LIST_DATA
	bl	_StopSession
	add	x23, x23, #1
	mov	x0, x22
	bl	_LIST_NUM
	cmp	x23, x0
	b.lt	LBB0_23
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_L3FreeAllInterfaces
	mov	x0, x22
	bl	_ReleaseList
	b	LBB0_4
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_LockList
	ldr	w0, [x19, #24]
	bl	_Lock
	ldr	x0, [x19, #32]
	bl	_LIST_NUM
	mov	x23, x0
	ldr	x0, [x19, #32]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_37
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
	mov	x28, #0
	cmp	x23, #0
	cset	w23, ne
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	w23, #0
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x22, x22, #1
	ldr	x0, [x19, #32]
	bl	_LIST_NUM
	cmp	x22, x0
	b.ge	LBB0_34
LBB0_29:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #32]
	mov	x1, x22
	bl	_LIST_DATA
	ldr	x8, [x19, #16]
	ldr	w1, [x0, #16]
	mov	x0, x8
	bl	_GetHub
	cbz	x0, LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	w23, #0
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [x0]
	ldr	x9, [x26]
	cmp	x8, x9
	csel	w23, wzr, w23, eq
	cinc	x28, x28, ne
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=2
	bl	_ReleaseHub
	b	LBB0_28
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x28, #1
	b.lt	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #12]
	mov	x1, x20
	bl	_SLog
	mov	x0, x19
	bl	_L3InitAllInterfaces
	str	w24, [x19, #8]
LBB0_37:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #24]
	bl	_Unlock
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_UnlockList
	b	LBB0_4
LBB0_38:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_39:
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #12]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_SLog
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L3_SWITCH_START"

	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ; @HUB_TYPE_FARM_DYNAMIC
l_.str.1:                               ; @.str.1
	.asciz	"L3_SWITCH_ONLINE"

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

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

.subsections_via_symbols
