	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiWriteSettingToCfg            ## -- Begin function CiWriteSettingToCfg
	.p2align	4, 0x90
_CiWriteSettingToCfg:                   ## @CiWriteSettingToCfg
	.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_12
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.2:
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgCreateFolder
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgCreateFolder
	movq	%rax, %rbx
	leaq	64(%r13), %rsi
	movq	%rax, %rdi
	callq	_CiWriteClientConfig
	movq	56(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_CfgAddInt64
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgCreateFolder
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_CiWriteAccountDatabase
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgCreateFolder
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r12
	movl	52(%r13), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	callq	_CfgAddInt
	movl	48(%r13), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_CfgAddStr
	movl	44(%r13), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_CfgAddInt
	movl	40(%r13), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_CfgAddStr
	movl	36(%r13), %edi
	callq	_IsEmptyStr
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	36(%r13), %edi
	callq	_EncryptPassword
	movq	%rax, %rbx
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_CfgAddBuf
	movq	%rbx, %rdi
	callq	_FreeBuf
LBB0_5:
	movl	32(%r13), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_CfgAddStr
LBB0_6:
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgCreateFolder
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_CiWriteCAList
	xorl	%eax, %eax
	callq	_GetOsInfo
	movq	(%rax), %rdi
	callq	_OS_IS_UNIX
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgCreateFolder
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_CiWriteVLanList
LBB0_8:
	movl	28(%r13), %edx
	movq	_SHA1_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgAddByte
	movl	24(%r13), %edx
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgAddBool
	movl	20(%r13), %edx
	leaq	L_.str.15(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgAddInt
	movl	16(%r13), %edx
	leaq	L_.str.16(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgAddBool
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rax), %edx
	leaq	L_.str.17(%rip), %rsi
	movq	%r15, %rdi
	callq	_CfgAddStr
LBB0_10:
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	(%r13), %rbx
	movl	8(%rbx), %edx
	leaq	L_.str.18(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgAddBool
	movl	4(%rbx), %edx
	leaq	L_.str.19(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgAddBool
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_IsZero
	testl	%eax, %eax
	je	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%rbx), %edx
	leaq	L_.str.20(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CfgAddByte                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ClientManagerSetting"

L_.str.1:                               ## @.str.1
	.asciz	"Config"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"ProxyType"

L_.str.6:                               ## @.str.6
	.asciz	"ProxyHostName"

L_.str.7:                               ## @.str.7
	.asciz	"ProxyPort"

L_.str.8:                               ## @.str.8
	.asciz	"ProxyUsername"

L_.str.9:                               ## @.str.9
	.asciz	"ProxyPassword"

L_.str.10:                              ## @.str.10
	.asciz	"CustomHttpHeader"

L_.str.11:                              ## @.str.11
	.asciz	"RootCA"

L_.str.12:                              ## @.str.12
	.asciz	"UnixVLan"

L_.str.13:                              ## @.str.13
	.asciz	"EncryptedPassword"

	.comm	_SHA1_SIZE,4,2                  ## @SHA1_SIZE
L_.str.14:                              ## @.str.14
	.asciz	"PasswordRemoteOnly"

L_.str.15:                              ## @.str.15
	.asciz	"UseSecureDeviceId"

L_.str.16:                              ## @.str.16
	.asciz	"DontSavePassword"

L_.str.17:                              ## @.str.17
	.asciz	"UserAgent"

L_.str.18:                              ## @.str.18
	.asciz	"EasyMode"

L_.str.19:                              ## @.str.19
	.asciz	"LockMode"

L_.str.20:                              ## @.str.20
	.asciz	"HashedPassword"

	.comm	_OSTYPE_MACOS_X,8,3             ## @OSTYPE_MACOS_X
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiWriteSettingToCfg            ; -- Begin function CiWriteSettingToCfg
	.p2align	2
_CiWriteSettingToCfg:                   ; @CiWriteSettingToCfg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_12
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_CfgCreateFolder
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_CfgCreateFolder
	mov	x22, x0
	add	x1, x20, #64
	bl	_CiWriteClientConfig
	ldr	x8, [x20, #56]
	ldr	w2, [x8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_CfgAddInt64
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_CfgCreateFolder
	mov	x1, x0
	mov	x0, x20
	bl	_CiWriteAccountDatabase
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_CfgCreateFolder
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	ldr	w2, [x20, #52]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_CfgAddInt
	ldr	w2, [x20, #48]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_CfgAddStr
	ldr	w2, [x20, #44]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_CfgAddInt
	ldr	w2, [x20, #40]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_CfgAddStr
	ldr	w0, [x20, #36]
	bl	_IsEmptyStr
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x20, #36]
	bl	_EncryptPassword
	mov	x23, x0
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_CfgAddBuf
	mov	x0, x23
	bl	_FreeBuf
LBB0_5:
	ldr	w2, [x20, #32]
Lloh20:
	adrp	x1, l_.str.10@PAGE
Lloh21:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_CfgAddStr
LBB0_6:
Lloh22:
	adrp	x1, l_.str.11@PAGE
Lloh23:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_CfgCreateFolder
	mov	x1, x0
	mov	x0, x20
	bl	_CiWriteCAList
	bl	_GetOsInfo
	ldr	x0, [x0]
	bl	_OS_IS_UNIX
	cbz	x0, LBB0_8
; %bb.7:
Lloh24:
	adrp	x1, l_.str.12@PAGE
Lloh25:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	bl	_CfgCreateFolder
	mov	x1, x0
	mov	x0, x20
	bl	_CiWriteVLanList
LBB0_8:
	ldr	w2, [x20, #28]
Lloh26:
	adrp	x8, _SHA1_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SHA1_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x1, l_.str.13@PAGE
Lloh30:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x21
	bl	_CfgAddByte
	ldr	w2, [x20, #24]
Lloh31:
	adrp	x1, l_.str.14@PAGE
Lloh32:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x21
	bl	_CfgAddBool
	ldr	w2, [x20, #20]
Lloh33:
	adrp	x1, l_.str.15@PAGE
Lloh34:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x21
	bl	_CfgAddInt
	ldr	w2, [x20, #16]
Lloh35:
	adrp	x1, l_.str.16@PAGE
Lloh36:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x21
	bl	_CfgAddBool
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w2, [x8]
Lloh37:
	adrp	x1, l_.str.17@PAGE
Lloh38:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x21
	bl	_CfgAddStr
LBB0_10:
	cbz	x19, LBB0_12
; %bb.11:
	ldr	x20, [x20]
	ldr	w2, [x20, #8]
Lloh39:
	adrp	x1, l_.str.18@PAGE
Lloh40:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_CfgAddBool
	ldr	w2, [x20, #4]
Lloh41:
	adrp	x1, l_.str.19@PAGE
Lloh42:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_CfgAddBool
	ldr	w0, [x20]
	mov	w1, #4
	bl	_IsZero
	cbz	w0, LBB0_13
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w2, [x20]
Lloh43:
	adrp	x1, l_.str.20@PAGE
Lloh44:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x19
	mov	w3, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CfgAddByte
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ClientManagerSetting"

l_.str.1:                               ; @.str.1
	.asciz	"Config"

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"ProxyType"

l_.str.6:                               ; @.str.6
	.asciz	"ProxyHostName"

l_.str.7:                               ; @.str.7
	.asciz	"ProxyPort"

l_.str.8:                               ; @.str.8
	.asciz	"ProxyUsername"

l_.str.9:                               ; @.str.9
	.asciz	"ProxyPassword"

l_.str.10:                              ; @.str.10
	.asciz	"CustomHttpHeader"

l_.str.11:                              ; @.str.11
	.asciz	"RootCA"

l_.str.12:                              ; @.str.12
	.asciz	"UnixVLan"

l_.str.13:                              ; @.str.13
	.asciz	"EncryptedPassword"

	.comm	_SHA1_SIZE,4,2                  ; @SHA1_SIZE
l_.str.14:                              ; @.str.14
	.asciz	"PasswordRemoteOnly"

l_.str.15:                              ; @.str.15
	.asciz	"UseSecureDeviceId"

l_.str.16:                              ; @.str.16
	.asciz	"DontSavePassword"

l_.str.17:                              ; @.str.17
	.asciz	"UserAgent"

l_.str.18:                              ; @.str.18
	.asciz	"EasyMode"

l_.str.19:                              ; @.str.19
	.asciz	"LockMode"

l_.str.20:                              ; @.str.20
	.asciz	"HashedPassword"

	.comm	_OSTYPE_MACOS_X,8,3             ; @OSTYPE_MACOS_X
.subsections_via_symbols
