	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtGetAccount                   ## -- Begin function CtGetAccount
	.p2align	4, 0x90
_CtGetAccount:                          ## @CtGetAccount
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_LockList
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, -40(%rbp)
	movl	(%rax), %edi
	movl	64(%rbx), %edx
	movl	$4, %esi
	callq	_UniStrCpy
	movl	(%r14), %edi
	leaq	-88(%rbp), %rsi
	callq	_Search
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r15
	movq	-40(%rbp), %rdi
	callq	_Free
	movl	(%r15), %edi
	callq	_Lock
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_Free
LBB0_5:
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, 56(%rbx)
	movq	48(%r15), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_Copy
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_CiFreeClientAuth
LBB0_7:
	movl	44(%r15), %edi
	callq	_CopyClientAuth
	movq	%rax, 48(%rbx)
	movl	40(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	36(%r15), %eax
	movl	%eax, 36(%rbx)
	movl	32(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_CloneX
	movq	%rax, 24(%rbx)
LBB0_9:
	movq	16(%rbx), %rdi
	movq	16(%r15), %rsi
	movq	_SHA1_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_Copy
	movl	12(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	4(%r15), %eax
	movl	%eax, (%rbx)
	movl	(%r15), %edi
	callq	_Unlock
	movl	(%r14), %edi
	callq	_UnlockList
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_11:
	movl	(%r14), %edi
	callq	_UnlockList
	movq	-40(%rbp), %rdi
	callq	_Free
	movq	_ERR_ACCOUNT_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_CiSetError
LBB0_10:
	movl	%r12d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_ACCOUNT_NOT_FOUND,4,2      ## @ERR_ACCOUNT_NOT_FOUND
	.comm	_SHA1_SIZE,4,2                  ## @SHA1_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CtGetAccount                   ; -- Begin function CtGetAccount
	.p2align	2
_CtGetAccount:                          ; @CtGetAccount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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_11
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_11
; %bb.2:
	ldr	w0, [x19]
	bl	_LockList
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [sp, #56]
	ldr	w0, [x0]
	ldr	w2, [x20, #64]
	mov	w1, #4
	bl	_UniStrCpy
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_Search
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
	ldr	x0, [sp, #56]
	bl	_Free
	ldr	w0, [x21]
	bl	_Lock
	ldr	x0, [x20, #56]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_Free
LBB0_5:
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [x20, #56]
	ldr	x1, [x21, #48]
	mov	w2, #4
	bl	_Copy
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_CiFreeClientAuth
LBB0_7:
	ldr	w0, [x21, #44]
	bl	_CopyClientAuth
	str	x0, [x20, #48]
	ldr	w8, [x21, #40]
	str	w8, [x20, #40]
	ldr	d0, [x21, #32]
	str	d0, [x20, #32]
	str	xzr, [x20, #24]
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_CloneX
	str	x0, [x20, #24]
LBB0_9:
	ldr	x0, [x20, #16]
	ldr	x1, [x21, #16]
Lloh0:
	adrp	x8, _SHA1_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHA1_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_Copy
	ldr	w8, [x21, #12]
	str	w8, [x20, #8]
	ldur	d0, [x21, #4]
	str	d0, [x20]
	ldr	w0, [x21]
	bl	_Unlock
	ldr	w0, [x19]
	bl	_UnlockList
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19]
	bl	_UnlockList
	ldr	x0, [sp, #56]
	bl	_Free
Lloh3:
	adrp	x8, _ERR_ACCOUNT_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_ACCOUNT_NOT_FOUND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CiSetError
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_ACCOUNT_NOT_FOUND,4,2      ; @ERR_ACCOUNT_NOT_FOUND
	.comm	_SHA1_SIZE,4,2                  ; @SHA1_SIZE
.subsections_via_symbols
