	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtSetStartupAccount            ## -- Begin function CtSetStartupAccount
	.p2align	4, 0x90
_CtSetStartupAccount:                   ## @CtSetStartupAccount
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_LockList
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, -32(%rbp)
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_UniStrCpy
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_Search
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	callq	_Free
	movl	4(%rbx), %edi
	callq	_Lock
	movl	$1, (%rbx)
	movl	4(%rbx), %edi
	callq	_Unlock
	movl	(%r15), %edi
	callq	_UnlockList
	movq	%r15, %rdi
	callq	_CiSaveConfigurationFile
	movq	%r15, %rdi
	callq	_CiNotify
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	(%r15), %edi
	callq	_UnlockList
	movq	-32(%rbp), %rdi
	callq	_Free
	movq	_ERR_ACCOUNT_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CiSetError
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_ACCOUNT_NOT_FOUND,4,2      ## @ERR_ACCOUNT_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtSetStartupAccount            ; -- Begin function CtSetStartupAccount
	.p2align	2
_CtSetStartupAccount:                   ; @CtSetStartupAccount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	w20, #0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w0, [x0]
	bl	_LockList
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [sp, #8]
	ldr	w0, [x0]
	ldr	w2, [x21]
	mov	w1, #4
	bl	_UniStrCpy
	ldr	w0, [x19]
	mov	x1, sp
	bl	_Search
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_Free
	ldr	w0, [x21, #4]
	bl	_Lock
	mov	w20, #1
	str	w20, [x21]
	ldr	w0, [x21, #4]
	bl	_Unlock
	ldr	w0, [x19]
	bl	_UnlockList
	mov	x0, x19
	bl	_CiSaveConfigurationFile
	mov	x0, x19
	bl	_CiNotify
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_UnlockList
	ldr	x0, [sp, #8]
	bl	_Free
Lloh0:
	adrp	x8, _ERR_ACCOUNT_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_ACCOUNT_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CiSetError
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_ACCOUNT_NOT_FOUND,4,2      ; @ERR_ACCOUNT_NOT_FOUND
.subsections_via_symbols
