	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtSetClientConfig              ## -- Begin function CtSetClientConfig
	.p2align	4, 0x90
_CtSetClientConfig:                     ## @CtSetClientConfig
	.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
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.3:
	movl	24(%r14), %edi
	callq	_IsEmptyStr
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_CiSetError
	jmp	LBB0_14
LBB0_4:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jge	LBB0_6
LBB0_7:
	movl	40(%rbx), %edi
	callq	_Lock
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_Copy
	movl	40(%rbx), %edi
	callq	_Unlock
	movq	%rbx, %rdi
	callq	_CiSaveConfigurationFile
	movq	32(%rbx), %r15
	movl	12(%r15), %edi
	callq	_Lock
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.9:
	movl	20(%r15), %edi
	movl	28(%rbx), %edx
	movl	$4, %esi
	callq	_StrCpy
	movl	24(%rbx), %eax
	movl	%eax, 16(%r15)
	imull	$1000, 8(%rbx), %eax            ## imm = 0x3E8
	movl	%eax, (%r15)
	movq	16(%rbx), %rax
	movq	_CONNECTION_UDP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, 4(%r15)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movl	%eax, 8(%r15)
	movl	12(%r15), %edi
	callq	_Unlock
	movl	(%rbx), %edi
	callq	_LockList
	movl	4(%rbx), %edi
	callq	_LockList
	cmpq	$0, 8(%r14)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_CtVLansDown
	jmp	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	callq	_CtVLansUp
LBB0_13:
	movl	4(%rbx), %edi
	callq	_UnlockList
	movl	(%rbx), %edi
	callq	_UnlockList
	movl	$1, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.comm	_CONNECTION_UDP,8,3             ## @CONNECTION_UDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtSetClientConfig              ; -- Begin function CtSetClientConfig
	.p2align	2
_CtSetClientConfig:                     ; @CtSetClientConfig
	.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
	mov	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_13
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_13
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w0, [x20, #24]
	bl	_IsEmptyStr
	cbz	x0, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CiSetError
	mov	w0, #0
	b	LBB0_13
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.6:
	cmp	w8, #16, lsl #12                ; =65536
	b.ge	LBB0_4
LBB0_7:
	ldr	w0, [x19, #40]
	bl	_Lock
	add	x0, x19, #8
	mov	x1, x20
	mov	w2, #32
	bl	_Copy
	ldr	w0, [x19, #40]
	bl	_Unlock
	mov	x0, x19
	bl	_CiSaveConfigurationFile
	ldr	x21, [x19, #32]
	ldr	w0, [x21, #12]
	bl	_Lock
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x21, #20]
	ldr	w2, [x19, #28]
	mov	w1, #4
	bl	_StrCpy
	ldr	w8, [x19, #24]
	str	w8, [x21, #16]
	ldr	w8, [x19, #8]
	mov	w9, #1000
	mul	w8, w8, w9
	ldr	x9, [x19, #16]
Lloh3:
	adrp	x10, _CONNECTION_UDP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CONNECTION_UDP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, eq
	stp	w8, w9, [x21]
	mov	w8, #1
LBB0_9:
	str	w8, [x21, #8]
	ldr	w0, [x21, #12]
	bl	_Unlock
	ldr	w0, [x19]
	bl	_LockList
	ldr	w0, [x19, #4]
	bl	_LockList
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_CtVLansDown
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_CtVLansUp
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_UnlockList
	ldr	w0, [x19]
	bl	_UnlockList
	mov	w0, #1
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.comm	_CONNECTION_UDP,8,3             ; @CONNECTION_UDP
.subsections_via_symbols
