	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiNewClient                    ## -- Begin function CiNewClient
	.p2align	4, 0x90
_CiNewClient:                           ## @CiNewClient
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$88, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movq	_ci_active_sessions_lock@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_NewLock
	movq	%rax, (%r14)
	movq	_ci_num_active_sessions@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_2:
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, 72(%rbx)
	xorl	%eax, %eax
	callq	_NewSockList
	movl	%eax, 64(%rbx)
	xorl	%eax, %eax
	callq	_NewLock
	movq	%rax, 56(%rbx)
	xorl	%eax, %eax
	callq	_NewLock
	movq	%rax, 48(%rbx)
	xorl	%eax, %eax
	callq	_NewRef
	movl	%eax, 40(%rbx)
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_NewCedar
	movq	%rax, 8(%rbx)
	movq	%rbx, 8(%rax)
	xorl	%edi, %edi
	callq	_NewList
	movl	%eax, 36(%rbx)
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_Sha0
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_CiPulseRecvThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_NewThread
	movl	%eax, 20(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_CiLoadIniSettings
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_CLIENT_LOG_DIR_NAME@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_MakeDir
	movl	(%r14), %edi
	movq	_CLIENT_LOG_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LOG_SWITCH_DAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_NewLog
	movl	%eax, 16(%rbx)
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_CLog
	movq	_CEDAR_CLIENT_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rax
	movl	4(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_CLog
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_CLog
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_CLog
	movq	%rbx, %rdi
	callq	_CiInitConfiguration
	xorl	%eax, %eax
	callq	_OSSetHighPriority
	movq	%rbx, %rdi
	callq	_CiChangeAllVLanMacAddressIfMachineChanged
	movq	%rbx, %rdi
	callq	_CiChangeAllVLanMacAddressIfCleared
	movq	%rbx, %rdi
	callq	_CiApplyInnerVPNServerConfig
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ci_active_sessions_lock,8,3    ## @ci_active_sessions_lock
	.comm	_ci_num_active_sessions,8,3     ## @ci_num_active_sessions
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_CiPulseRecvThread,4,2          ## @CiPulseRecvThread
	.comm	_CLIENT_LOG_DIR_NAME,4,2        ## @CLIENT_LOG_DIR_NAME
	.comm	_CLIENT_LOG_PREFIX,4,2          ## @CLIENT_LOG_PREFIX
	.comm	_LOG_SWITCH_DAY,4,2             ## @LOG_SWITCH_DAY
L_.str.1:                               ## @.str.1
	.asciz	"L_LINE"

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

	.comm	_CEDAR_CLIENT_STR,4,2           ## @CEDAR_CLIENT_STR
L_.str.3:                               ## @.str.3
	.asciz	"LC_START_3"

L_.str.4:                               ## @.str.4
	.asciz	"LC_START_1"

	.comm	_CLIENT_GLOBAL_PULSE_NAME,4,2   ## @CLIENT_GLOBAL_PULSE_NAME
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiNewClient                    ; -- Begin function CiNewClient
	.p2align	2
_CiNewClient:                           ; @CiNewClient
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	w0, #88
	bl	_ZeroMalloc
	mov	x19, x0
Lloh0:
	adrp	x20, _ci_active_sessions_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ci_active_sessions_lock@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_NewLock
	str	x0, [x20]
Lloh2:
	adrp	x8, _ci_num_active_sessions@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ci_num_active_sessions@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
LBB0_2:
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [x19, #72]
	bl	_NewSockList
	str	w0, [x19, #64]
	bl	_NewLock
	str	x0, [x19, #56]
	bl	_NewLock
	str	x0, [x19, #48]
	bl	_NewRef
	str	w0, [x19, #40]
	mov	x0, #0
	mov	x1, #0
	bl	_NewCedar
	str	x0, [x19, #8]
	str	x19, [x0, #8]
	mov	x0, #0
	bl	_NewList
	str	w0, [x19, #36]
	ldr	w0, [x19, #32]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_Sha0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _CiPulseRecvThread@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CiPulseRecvThread@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_NewThread
	str	w0, [x19, #20]
LBB0_4:
	mov	x0, x19
	bl	_CiLoadIniSettings
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh10:
	adrp	x20, _CLIENT_LOG_DIR_NAME@GOTPAGE
Lloh11:
	ldr	x20, [x20, _CLIENT_LOG_DIR_NAME@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_MakeDir
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _CLIENT_LOG_PREFIX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLIENT_LOG_PREFIX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _LOG_SWITCH_DAY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_SWITCH_DAY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_NewLog
	str	w0, [x19, #16]
LBB0_6:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_CLog
Lloh20:
	adrp	x8, _CEDAR_CLIENT_STR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CEDAR_CLIENT_STR@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x9, #4]
	stp	x8, x9, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_CLog
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_CLog
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_CLog
	mov	x0, x19
	bl	_CiInitConfiguration
	bl	_OSSetHighPriority
	mov	x0, x19
	bl	_CiChangeAllVLanMacAddressIfMachineChanged
	mov	x0, x19
	bl	_CiChangeAllVLanMacAddressIfCleared
	mov	x0, x19
	bl	_CiApplyInnerVPNServerConfig
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ci_active_sessions_lock,8,3    ; @ci_active_sessions_lock
	.comm	_ci_num_active_sessions,8,3     ; @ci_num_active_sessions
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_CiPulseRecvThread,4,2          ; @CiPulseRecvThread
	.comm	_CLIENT_LOG_DIR_NAME,4,2        ; @CLIENT_LOG_DIR_NAME
	.comm	_CLIENT_LOG_PREFIX,4,2          ; @CLIENT_LOG_PREFIX
	.comm	_LOG_SWITCH_DAY,4,2             ; @LOG_SWITCH_DAY
l_.str.1:                               ; @.str.1
	.asciz	"L_LINE"

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

	.comm	_CEDAR_CLIENT_STR,4,2           ; @CEDAR_CLIENT_STR
l_.str.3:                               ; @.str.3
	.asciz	"LC_START_3"

l_.str.4:                               ; @.str.4
	.asciz	"LC_START_1"

	.comm	_CLIENT_GLOBAL_PULSE_NAME,4,2   ; @CLIENT_GLOBAL_PULSE_NAME
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
.subsections_via_symbols
