	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtRenameAccount                ## -- Begin function CtRenameAccount
	.p2align	4, 0x90
_CtRenameAccount:                       ## @CtRenameAccount
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdi, %r15
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_UniStrCmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movl	(%r15), %edi
	callq	_LockList
	movl	(%rbx), %edi
	callq	_UniStrLen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, -48(%rbp)
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	movl	$4, %esi
	callq	_UniStrCpy
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	callq	_Search
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r12
	movq	-48(%rbp), %rdi
	callq	_Free
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, -48(%rbp)
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_UniStrCpy
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	callq	_Search
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	callq	_UnlockList
	movq	-48(%rbp), %rdi
	callq	_Free
	movq	_ERR_ACCOUNT_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_ERR_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CiSetError
	movl	(%r15), %edi
	callq	_UnlockList
	jmp	LBB0_14
LBB0_6:
	movl	(%r15), %edi
	callq	_UnlockList
	movq	-48(%rbp), %rdi
	callq	_Free
	movq	_ERR_ACCOUNT_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_Free
	movl	(%r12), %edi
	callq	_Lock
	cmpq	$0, 16(%r12)
	je	LBB0_12
## %bb.11:
	movl	(%r12), %edi
	callq	_Unlock
	movl	(%r15), %edi
	callq	_UnlockList
	movq	_ERR_ACCOUNT_ACTIVE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CiSetError
	jmp	LBB0_14
LBB0_12:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_UniStrCpy
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_CLog
	movl	(%r12), %edi
	callq	_Unlock
	movl	(%r15), %edi
	callq	_Sort
	movl	(%r15), %edi
	callq	_UnlockList
	movq	%r15, %rdi
	callq	_CiSaveConfigurationFile
	movq	%r15, %rdi
	callq	_CiNotify
LBB0_13:
	movl	$1, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_INVALID_VALUE,4,2          ## @ERR_INVALID_VALUE
	.comm	_ERR_ACCOUNT_NOT_FOUND,4,2      ## @ERR_ACCOUNT_NOT_FOUND
	.comm	_ERR_ACCOUNT_ALREADY_EXISTS,4,2 ## @ERR_ACCOUNT_ALREADY_EXISTS
	.comm	_ERR_ACCOUNT_ACTIVE,4,2         ## @ERR_ACCOUNT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LC_RENAME_ACCOUNT"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtRenameAccount                ; -- Begin function CtRenameAccount
	.p2align	2
_CtRenameAccount:                       ; @CtRenameAccount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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_14
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_14
; %bb.2:
	ldp	w0, w1, [x20]
	bl	_UniStrCmp
	cbz	x0, LBB0_13
; %bb.3:
	ldr	w0, [x19]
	bl	_LockList
	ldr	w0, [x20]
	bl	_UniStrLen
	cbz	x0, LBB0_7
; %bb.4:
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [sp, #16]
	ldr	w0, [x0]
	ldr	w2, [x20, #4]
	mov	w1, #4
	bl	_UniStrCpy
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_Search
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	ldr	x0, [sp, #16]
	bl	_Free
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [sp, #16]
	ldr	w0, [x0]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_UniStrCpy
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_Search
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x19]
	bl	_UnlockList
	ldr	x0, [sp, #16]
	bl	_Free
Lloh0:
	adrp	x8, _ERR_ACCOUNT_ALREADY_EXISTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_ACCOUNT_ALREADY_EXISTS@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x8, _ERR_INVALID_VALUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_INVALID_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CiSetError
	ldr	w0, [x19]
	bl	_UnlockList
	mov	w0, #0
	b	LBB0_14
LBB0_8:
	ldr	w0, [x19]
	bl	_UnlockList
	ldr	x0, [sp, #16]
	bl	_Free
Lloh5:
	adrp	x8, _ERR_ACCOUNT_NOT_FOUND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_ACCOUNT_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	x0, [sp, #16]
	bl	_Free
	ldr	w0, [x21]
	bl	_Lock
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w0, [x21]
	bl	_Unlock
	ldr	w0, [x19]
	bl	_UnlockList
Lloh7:
	adrp	x8, _ERR_ACCOUNT_ACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_ACCOUNT_ACTIVE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CiSetError
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_UniStrCpy
	ldp	w3, w2, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_CLog
	ldr	w0, [x21]
	bl	_Unlock
	ldr	w0, [x19]
	bl	_Sort
	ldr	w0, [x19]
	bl	_UnlockList
	mov	x0, x19
	bl	_CiSaveConfigurationFile
	mov	x0, x19
	bl	_CiNotify
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_INVALID_VALUE,4,2          ; @ERR_INVALID_VALUE
	.comm	_ERR_ACCOUNT_NOT_FOUND,4,2      ; @ERR_ACCOUNT_NOT_FOUND
	.comm	_ERR_ACCOUNT_ALREADY_EXISTS,4,2 ; @ERR_ACCOUNT_ALREADY_EXISTS
	.comm	_ERR_ACCOUNT_ACTIVE,4,2         ; @ERR_ACCOUNT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LC_RENAME_ACCOUNT"

.subsections_via_symbols
