	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewHub                         ## -- Begin function NewHub
	.p2align	4, 0x90
_NewHub:                                ## @NewHub
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_MAX_HUBNAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	incl	%r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_SHA1_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	xorl	%ebx, %ebx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_18
## %bb.1:
	testq	%r14, %r14
	je	LBB0_18
## %bb.2:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_18
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$320, %edi                      ## imm = 0x140
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movl	316(%rax), %edi
	leaq	L_.str(%rip), %r13
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_Sha0
	movl	312(%rbx), %edi
	movq	_ADMINISTRATOR_USERNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_HashPassword
	xorl	%eax, %eax
	callq	_NewLock
	movq	%rax, 304(%rbx)
	xorl	%eax, %eax
	callq	_NewLock
	movq	%rax, 296(%rbx)
	xorl	%eax, %eax
	callq	_NewRef
	movl	%eax, 292(%rbx)
	movq	%r14, 16(%rbx)
	movl	16(%r14), %edi
	callq	_AddRef
	movq	_HUB_TYPE_STANDALONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 288(%rbx)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_ConvertSafeFileName
	movq	%r14, %rdi
	callq	_CopyStr
	movl	%eax, 12(%rbx)
	movq	_CompareAdminOption@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_NewList
	movq	%rax, 280(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_AddHubAdminOptionsDefaults
	xorl	%eax, %eax
	callq	_SystemTime64
	movq	%rax, 272(%rbx)
	xorl	%eax, %eax
	callq	_SystemTime64
	movq	%rax, 264(%rbx)
	movq	$0, 256(%rbx)
	xorl	%eax, %eax
	callq	_NewLock
	movq	%rax, 248(%rbx)
	xorl	%eax, %eax
	callq	_NewHubDb
	movl	%eax, 240(%rbx)
	xorl	%edi, %edi
	callq	_NewList
	movq	%rax, 232(%rbx)
	xorl	%eax, %eax
	callq	_NewCounter
	movq	%rax, 224(%rbx)
	xorl	%eax, %eax
	callq	_NewCounter
	movq	%rax, 216(%rbx)
	xorl	%eax, %eax
	callq	_NewCounter
	movq	%rax, 208(%rbx)
	xorl	%eax, %eax
	callq	_NewCounter
	movq	%rax, 200(%rbx)
	movq	_GetHashOfMacTable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CompareMacTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_NewHashList
	movl	%eax, 192(%rbx)
	movq	_CompareIpTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_NewList
	movq	%rax, 184(%rbx)
	xorl	%edi, %edi
	callq	_NewList
	movq	%rax, 176(%rbx)
	xorl	%edi, %edi
	callq	_NewList
	movq	%rax, 168(%rbx)
	xorl	%eax, %eax
	callq	_NewTraffic
	movq	%rax, 160(%rbx)
	xorl	%eax, %eax
	callq	_NewTraffic
	movq	%rax, 152(%rbx)
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_Copy
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_MAC_PROTO_TAGVLAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_5:
	movabsq	$4294967297, %r15               ## imm = 0x100000001
	movq	%r15, 8(%rax)
	movl	144(%rbx), %edi
	movl	$4, %esi
	callq	_Rand
	movl	$0, (%rbx)
	movq	$0, 136(%rbx)
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, 128(%rbx)
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_NiSetDefaultVhOption
	movq	16(%rbx), %rax
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.6:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rax), %rax
	movq	_SERVER_TYPE_FARM_CONTROLLER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	128(%rbx), %rdi
	movl	$1, %esi
	callq	_NiClearUnsupportedVhOptionForDynamicHub
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_GenerateMachineUniqueHash
	movl	12(%rbx), %esi
	movl	24(%rbx), %edi
	callq	_GenHubMacAddress
	leaq	124(%rbx), %rdi
	movl	12(%rbx), %esi
	callq	_GenHubIpAddress
	movl	24(%rbx), %esi
	leaq	-108(%rbp), %r14
	movq	%r14, %rdi
	callq	_GenerateEui64LocalAddress
	movq	%rbx, %rdi
	addq	$120, %rdi
	movq	%r14, %rsi
	callq	_IPToIPv6Addr
	xorl	%eax, %eax
	callq	_NewLock
	movq	%rax, 112(%rbx)
	movq	_RADIUS_DEFAULT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	xorl	%edi, %edi
	callq	_NewList
	movq	%rax, 96(%rbx)
	movq	%rbx, %rdi
	callq	_InitAccessList
	xorl	%eax, %eax
	callq	_NewUserList
	movl	%eax, 88(%rbx)
	movq	%r15, 40(%rbx)
	movq	_PACKET_LOG_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	64(%rbx), %rcx
	movq	_PACKET_LOG_DHCP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_PACKET_LOG_TCP_CONN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_LOG_SWITCH_DAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	%rax, 56(%rbx)
	movq	_HUB_SECURITY_LOG_DIR_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MakeDir
	movq	_HUB_PACKET_LOG_DIR_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MakeDir
	movq	_HUB_PACKET_LOG_FILE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%rbx), %ecx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_Format
	movq	_HUB_PACKET_LOG_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%rbx), %rdx
	movq	%r14, %rdi
	callq	_NewLog
	movq	%rax, 80(%rbx)
	movq	_HUB_SECURITY_LOG_FILE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%rbx), %ecx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_Format
	movq	_HUB_SECURITY_LOG_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%rbx), %rdx
	movq	%r14, %rdi
	callq	_NewLog
	movq	%rax, 72(%rbx)
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	(%rax), %rax
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	$1, 4(%rbx)
LBB0_12:
	movq	%rbx, %rdi
	callq	_SetHubOnline
	movq	16(%rbx), %rdi
	movq	32(%rbx), %rax
	cmpq	$0, (%rdi)
	je	LBB0_14
## %bb.13:
	movl	$1, 16(%rax)
	jmp	LBB0_17
LBB0_14:
	cmpl	$0, 16(%rax)
	jne	LBB0_17
## %bb.15:
	cmpl	$0, 20(%rax)
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_StartHubWatchDog
	movl	$1, 8(%rbx)
	movq	16(%rbx), %rdi
LBB0_17:
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_SLog
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_MacToStr
	movq	16(%rbx), %rdi
	movl	12(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_SLog
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_MAX_HUBNAME_LEN,4,2            ## @MAX_HUBNAME_LEN
	.comm	_SHA1_SIZE,4,2                  ## @SHA1_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_ADMINISTRATOR_USERNAME,4,2     ## @ADMINISTRATOR_USERNAME
	.comm	_HUB_TYPE_STANDALONE,4,2        ## @HUB_TYPE_STANDALONE
	.comm	_CompareAdminOption,8,3         ## @CompareAdminOption
	.comm	_GetHashOfMacTable,4,2          ## @GetHashOfMacTable
	.comm	_CompareMacTable,4,2            ## @CompareMacTable
	.comm	_CompareIpTable,8,3             ## @CompareIpTable
	.comm	_MAC_PROTO_TAGVLAN,8,3          ## @MAC_PROTO_TAGVLAN
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ## @SERVER_TYPE_FARM_CONTROLLER
	.comm	_RADIUS_DEFAULT_PORT,4,2        ## @RADIUS_DEFAULT_PORT
	.comm	_PACKET_LOG_HEADER,4,2          ## @PACKET_LOG_HEADER
	.comm	_PACKET_LOG_DHCP,8,3            ## @PACKET_LOG_DHCP
	.comm	_PACKET_LOG_TCP_CONN,8,3        ## @PACKET_LOG_TCP_CONN
	.comm	_LOG_SWITCH_DAY,8,3             ## @LOG_SWITCH_DAY
	.comm	_HUB_SECURITY_LOG_DIR_NAME,4,2  ## @HUB_SECURITY_LOG_DIR_NAME
	.comm	_HUB_PACKET_LOG_DIR_NAME,4,2    ## @HUB_PACKET_LOG_DIR_NAME
	.comm	_HUB_PACKET_LOG_FILE_NAME,4,2   ## @HUB_PACKET_LOG_FILE_NAME
	.comm	_HUB_PACKET_LOG_PREFIX,4,2      ## @HUB_PACKET_LOG_PREFIX
	.comm	_HUB_SECURITY_LOG_FILE_NAME,4,2 ## @HUB_SECURITY_LOG_FILE_NAME
	.comm	_HUB_SECURITY_LOG_PREFIX,4,2    ## @HUB_SECURITY_LOG_PREFIX
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
L_.str.1:                               ## @.str.1
	.asciz	"LS_HUB_START"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewHub                         ; -- Begin function NewHub
	.p2align	2
_NewHub:                                ; @NewHub
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #32
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x12, x9, #0x1fffffff0
	sub	x13, x8, x12
	mov	sp, x13
	mov	x9, x19
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
Lloh10:
	adrp	x8, _MAX_HUBNAME_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_HUBNAME_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	w27, w8, #1
	mov	x9, x27
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x27, #15
	and	x9, x9, #0x1fffffff0
	sub	x28, x8, x9
	mov	sp, x28
Lloh15:
	adrp	x8, _SHA1_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SHA1_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x21, #0
	cbz	x1, LBB0_18
; %bb.1:
	cbz	x26, LBB0_18
; %bb.2:
	cbz	x24, LBB0_18
; %bb.3:
	stur	x13, [x29, #-120]               ; 8-byte Folded Spill
	mov	w0, #320
	bl	_ZeroMalloc
	mov	x21, x0
	ldr	w0, [x0, #316]
Lloh20:
	adrp	x22, l_.str@PAGE
Lloh21:
	add	x22, x22, l_.str@PAGEOFF
	mov	x1, x22
	mov	w2, #0
	bl	_Sha0
	ldr	w0, [x21, #312]
Lloh22:
	adrp	x8, _ADMINISTRATOR_USERNAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ADMINISTRATOR_USERNAME@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_HashPassword
	bl	_NewLock
	str	x0, [x21, #304]
	bl	_NewLock
	str	x0, [x21, #296]
	bl	_NewRef
	str	w0, [x21, #292]
	str	x26, [x21, #16]
	ldr	w0, [x26, #16]
	bl	_AddRef
Lloh25:
	adrp	x8, _HUB_TYPE_STANDALONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HUB_TYPE_STANDALONE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x21, #288]
	mov	x0, x28
	mov	x1, x27
	mov	x2, x25
	bl	_ConvertSafeFileName
	mov	x0, x28
	bl	_CopyStr
	str	w0, [x21, #12]
Lloh28:
	adrp	x8, _CompareAdminOption@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CompareAdminOption@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	bl	_NewList
	str	x0, [x21, #280]
	mov	x0, x21
	mov	w1, #1
	bl	_AddHubAdminOptionsDefaults
	bl	_SystemTime64
	str	x0, [x21, #272]
	bl	_SystemTime64
	stp	xzr, x0, [x21, #256]
	bl	_NewLock
	str	x0, [x21, #248]
	bl	_NewHubDb
	str	w0, [x21, #240]
	mov	x0, #0
	bl	_NewList
	str	x0, [x21, #232]
	bl	_NewCounter
	str	x0, [x21, #224]
	bl	_NewCounter
	str	x0, [x21, #216]
	bl	_NewCounter
	str	x0, [x21, #208]
	bl	_NewCounter
	str	x0, [x21, #200]
Lloh31:
	adrp	x8, _GetHashOfMacTable@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GetHashOfMacTable@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _CompareMacTable@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CompareMacTable@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	w2, #8
	mov	w3, #0
	bl	_NewHashList
	str	w0, [x21, #192]
Lloh37:
	adrp	x8, _CompareIpTable@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CompareIpTable@GOTPAGEOFF]
Lloh39:
	ldr	x0, [x8]
	bl	_NewList
	str	x0, [x21, #184]
	mov	x0, #0
	bl	_NewList
	str	x0, [x21, #176]
	mov	x0, #0
	bl	_NewList
	str	x0, [x21, #168]
	bl	_NewTraffic
	str	x0, [x21, #160]
	bl	_NewTraffic
	str	x0, [x21, #152]
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [x21, #32]
	mov	x1, x24
	mov	w2, #4
	bl	_Copy
	ldr	x8, [x21, #32]
	ldr	x9, [x8]
	cbnz	x9, LBB0_5
; %bb.4:
Lloh40:
	adrp	x9, _MAC_PROTO_TAGVLAN@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MAC_PROTO_TAGVLAN@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_5:
	movi.2s	v8, #1
	str	d8, [x8, #8]
	ldr	w0, [x21, #144]
	mov	w1, #4
	bl	_Rand
	str	wzr, [x21]
	str	xzr, [x21, #136]
	mov	w0, #4
	bl	_ZeroMalloc
	mov	x1, x0
	str	x0, [x21, #128]
	mov	x0, #0
	bl	_NiSetDefaultVhOption
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x8]
Lloh43:
	adrp	x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [x21, #128]
	mov	w1, #1
	bl	_NiClearUnsupportedVhOptionForDynamicHub
LBB0_9:
	mov	x0, x23
	bl	_GenerateMachineUniqueHash
	ldr	w0, [x21, #24]
	ldr	w1, [x21, #12]
	bl	_GenHubMacAddress
	add	x0, x21, #124
	ldr	w1, [x21, #12]
	bl	_GenHubIpAddress
	ldr	w1, [x21, #24]
	sub	x0, x29, #108
	bl	_GenerateEui64LocalAddress
	add	x0, x21, #120
	sub	x1, x29, #108
	bl	_IPToIPv6Addr
	bl	_NewLock
	str	x0, [x21, #112]
Lloh46:
	adrp	x8, _RADIUS_DEFAULT_PORT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RADIUS_DEFAULT_PORT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x21, #104]
	mov	x0, #0
	bl	_NewList
	str	x0, [x21, #96]
	mov	x0, x21
	bl	_InitAccessList
	bl	_NewUserList
	str	w0, [x21, #88]
	str	d8, [x21, #40]
Lloh49:
	adrp	x8, _PACKET_LOG_HEADER@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PACKET_LOG_HEADER@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _PACKET_LOG_DHCP@GOTPAGE
Lloh53:
	ldr	x9, [x9, _PACKET_LOG_DHCP@GOTPAGEOFF]
	ldr	x10, [x21, #64]
Lloh54:
	ldr	x9, [x9]
	str	w8, [x10, x9, lsl #2]
Lloh55:
	adrp	x9, _PACKET_LOG_TCP_CONN@GOTPAGE
Lloh56:
	ldr	x9, [x9, _PACKET_LOG_TCP_CONN@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	str	w8, [x10, x9, lsl #2]
Lloh58:
	adrp	x8, _LOG_SWITCH_DAY@GOTPAGE
Lloh59:
	ldr	x8, [x8, _LOG_SWITCH_DAY@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	stp	x8, x8, [x21, #48]
Lloh61:
	adrp	x8, _HUB_SECURITY_LOG_DIR_NAME@GOTPAGE
Lloh62:
	ldr	x8, [x8, _HUB_SECURITY_LOG_DIR_NAME@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	bl	_MakeDir
Lloh64:
	adrp	x8, _HUB_PACKET_LOG_DIR_NAME@GOTPAGE
Lloh65:
	ldr	x8, [x8, _HUB_PACKET_LOG_DIR_NAME@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	bl	_MakeDir
Lloh67:
	adrp	x8, _HUB_PACKET_LOG_FILE_NAME@GOTPAGE
Lloh68:
	ldr	x8, [x8, _HUB_PACKET_LOG_FILE_NAME@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	ldr	w3, [x21, #12]
	ldur	x22, [x29, #-120]               ; 8-byte Folded Reload
	mov	x0, x22
	mov	x1, x19
	bl	_Format
Lloh70:
	adrp	x8, _HUB_PACKET_LOG_PREFIX@GOTPAGE
Lloh71:
	ldr	x8, [x8, _HUB_PACKET_LOG_PREFIX@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	ldr	x2, [x21, #56]
	mov	x0, x22
	bl	_NewLog
	str	x0, [x21, #80]
Lloh73:
	adrp	x8, _HUB_SECURITY_LOG_FILE_NAME@GOTPAGE
Lloh74:
	ldr	x8, [x8, _HUB_SECURITY_LOG_FILE_NAME@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
	ldr	w3, [x21, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_Format
Lloh76:
	adrp	x8, _HUB_SECURITY_LOG_PREFIX@GOTPAGE
Lloh77:
	ldr	x8, [x8, _HUB_SECURITY_LOG_PREFIX@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	ldr	x2, [x21, #48]
	mov	x0, x20
	bl	_NewLog
	str	x0, [x21, #72]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x8]
Lloh79:
	adrp	x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh80:
	ldr	x9, [x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
Lloh81:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x21, #4]
LBB0_12:
	mov	x0, x21
	bl	_SetHubOnline
	ldr	x0, [x21, #16]
	ldr	x9, [x0]
	ldr	x8, [x21, #32]
	cbz	x9, LBB0_14
; %bb.13:
	mov	w9, #1
	str	w9, [x8, #16]
	b	LBB0_17
LBB0_14:
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_17
; %bb.15:
	ldr	w8, [x8, #20]
	cbnz	w8, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_StartHubWatchDog
	mov	w8, #1
	str	w8, [x21, #8]
	ldr	x0, [x21, #16]
LBB0_17:
	ldr	w2, [x21, #12]
Lloh82:
	adrp	x1, l_.str.1@PAGE
Lloh83:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_SLog
	ldr	w2, [x21, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_MacToStr
	ldr	x0, [x21, #16]
	ldr	w2, [x21, #12]
	str	x20, [sp, #-16]!
Lloh84:
	adrp	x1, l_.str.2@PAGE
Lloh85:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_SLog
	add	sp, sp, #16
LBB0_18:
	ldur	x8, [x29, #-104]
Lloh86:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh87:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x21
	sub	sp, x29, #96
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_MAX_HUBNAME_LEN,4,2            ; @MAX_HUBNAME_LEN
	.comm	_SHA1_SIZE,4,2                  ; @SHA1_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_ADMINISTRATOR_USERNAME,4,2     ; @ADMINISTRATOR_USERNAME
	.comm	_HUB_TYPE_STANDALONE,4,2        ; @HUB_TYPE_STANDALONE
	.comm	_CompareAdminOption,8,3         ; @CompareAdminOption
	.comm	_GetHashOfMacTable,4,2          ; @GetHashOfMacTable
	.comm	_CompareMacTable,4,2            ; @CompareMacTable
	.comm	_CompareIpTable,8,3             ; @CompareIpTable
	.comm	_MAC_PROTO_TAGVLAN,8,3          ; @MAC_PROTO_TAGVLAN
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ; @SERVER_TYPE_FARM_CONTROLLER
	.comm	_RADIUS_DEFAULT_PORT,4,2        ; @RADIUS_DEFAULT_PORT
	.comm	_PACKET_LOG_HEADER,4,2          ; @PACKET_LOG_HEADER
	.comm	_PACKET_LOG_DHCP,8,3            ; @PACKET_LOG_DHCP
	.comm	_PACKET_LOG_TCP_CONN,8,3        ; @PACKET_LOG_TCP_CONN
	.comm	_LOG_SWITCH_DAY,8,3             ; @LOG_SWITCH_DAY
	.comm	_HUB_SECURITY_LOG_DIR_NAME,4,2  ; @HUB_SECURITY_LOG_DIR_NAME
	.comm	_HUB_PACKET_LOG_DIR_NAME,4,2    ; @HUB_PACKET_LOG_DIR_NAME
	.comm	_HUB_PACKET_LOG_FILE_NAME,4,2   ; @HUB_PACKET_LOG_FILE_NAME
	.comm	_HUB_PACKET_LOG_PREFIX,4,2      ; @HUB_PACKET_LOG_PREFIX
	.comm	_HUB_SECURITY_LOG_FILE_NAME,4,2 ; @HUB_SECURITY_LOG_FILE_NAME
	.comm	_HUB_SECURITY_LOG_PREFIX,4,2    ; @HUB_SECURITY_LOG_PREFIX
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
l_.str.1:                               ; @.str.1
	.asciz	"LS_HUB_START"

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

.subsections_via_symbols
