	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PcAccountExport                ## -- Begin function PcAccountExport
	.p2align	4, 0x90
_PcAccountExport:                       ## @PcAccountExport
	.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
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -112(%rbp)
	movq	_CmdPrompt@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	movq	%rax, -104(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	__UU
	movl	%eax, -96(%rbp)
	movq	_CmdEvalNotEmpty@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -92(%rbp)
	movl	$0, -88(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -80(%rbp)
	movslq	(%r13), %rax
	movq	%rax, -72(%rbp)
	leaq	L_.str.3(%rip), %rdi
	callq	__UU
	movl	%eax, -64(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	$0, -56(%rbp)
	leaq	-112(%rbp), %rcx
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	$2, %r8d
	callq	_ParseCommandList
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-192(%rbp), %r12
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_Zero
	movl	-172(%rbp), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_GetParamUniStr
	movl	%ebx, %edi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_UniStrCpy
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_CcGetAccount
	movq	%rax, %r13
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r13
	jne	LBB0_6
## %bb.3:
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	movl	l___const.PcAccountExport.bom+8(%rip), %eax
	movl	%eax, -120(%rbp)
	movq	l___const.PcAccountExport.bom(%rip), %rax
	movq	%rax, -128(%rbp)
	leaq	-224(%rbp), %r14
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_Zero
	movl	-176(%rbp), %eax
	movl	%eax, -208(%rbp)
	movaps	-192(%rbp), %xmm0
	movaps	%xmm0, -224(%rbp)
	movq	%r14, %rdi
	callq	_CiAccountToCfg
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_GetParamStr
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_StrCpy
	xorl	%eax, %eax
	callq	_NewBuf
	movq	%rax, %rbx
	leaq	-128(%rbp), %rsi
	movq	%rax, %rdi
	movl	$12, %edx
	callq	_WriteBuf
	leaq	L_.str.4(%rip), %rdi
	callq	__UU
	movl	%eax, %edi
	callq	_CalcUniToUtf8
	movq	%rax, %r12
	leaq	32(%rax), %rdi
	callq	_ZeroMalloc
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rdi
	callq	__UU
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_UniToUtf8
	movq	%r14, %rdi
	callq	_StrLen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_WriteBuf
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	(%r12), %rsi
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_WriteBuf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SeekBuf
	movq	%r12, %rdi
	callq	_FreeBuf
	movq	%rbx, %rdi
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	callq	_DumpBuf
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-144(%rbp), %r13                ## 8-byte Reload
	movq	(%r13), %r12
	leaq	L_.str.5(%rip), %rdi
	callq	__UU
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%r12
	movq	_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_5:
	movq	%rbx, %rdi
	callq	_FreeBuf
	movq	%r14, %rdi
	callq	_Free
	movq	-136(%rbp), %rsp                ## 8-byte Reload
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	cmpq	%rax, %r13
	je	LBB0_8
## %bb.7:
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	callq	_CmdPrintError
LBB0_8:
	leaq	-192(%rbp), %rdi
	callq	_CiFreeClientGetAccount
	movq	%r15, %rdi
	callq	_FreeParamValueList
	jmp	LBB0_9
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[name]"

	.comm	_CmdPrompt,4,2                  ## @CmdPrompt
L_.str.1:                               ## @.str.1
	.asciz	"CMD_AccountCreate_Prompt_Name"

	.comm	_CmdEvalNotEmpty,4,2            ## @CmdEvalNotEmpty
L_.str.2:                               ## @.str.2
	.asciz	"SAVEPATH"

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

	.comm	_ERR_INVALID_PARAMETER,8,3      ## @ERR_INVALID_PARAMETER
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.section	__TEXT,__const
	.p2align	2                               ## @__const.PcAccountExport.bom
l___const.PcAccountExport.bom:
	.long	239                             ## 0xef
	.long	187                             ## 0xbb
	.long	191                             ## 0xbf

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"CM_ACCOUNT_FILE_BANNER"

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

	.comm	_ERR_INTERNAL_ERROR,8,3         ## @ERR_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PcAccountExport                ; -- Begin function PcAccountExport
	.p2align	2
_PcAccountExport:                       ; @PcAccountExport
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #176
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _CmdPrompt@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CmdPrompt@GOTPAGEOFF]
	stur	x8, [x29, #-96]
	ldrsw	x8, [x23]
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x8, [x29, #-160]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__UU
Lloh9:
	adrp	x24, _CmdEvalNotEmpty@GOTPAGE
Lloh10:
	ldr	x24, [x24, _CmdEvalNotEmpty@GOTPAGEOFF]
	ldr	w8, [x24]
	stp	w0, w8, [x29, #-144]
	stur	wzr, [x29, #-136]
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
	ldrsw	x9, [x23]
	stp	x8, x9, [x29, #-128]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__UU
	ldr	w8, [x24]
	stp	w0, w8, [x29, #-112]
	stur	wzr, [x29, #-104]
	sub	x3, x29, #160
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	w4, #2
	bl	_ParseCommandList
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	sub	x0, x29, #208
	mov	w1, #24
	bl	_Zero
	ldur	w22, [x29, #-188]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_GetParamUniStr
	mov	x2, x0
	mov	x0, x22
	mov	w1, #4
	bl	_UniStrCpy
	ldr	w0, [x21]
	sub	x1, x29, #208
	bl	_CcGetAccount
	mov	x21, x0
Lloh17:
	adrp	x28, _ERR_NO_ERROR@GOTPAGE
Lloh18:
	ldr	x28, [x28, _ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x8, sp
	stur	x8, [x29, #-248]                ; 8-byte Folded Spill
Lloh19:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
	mov	x9, x23
Lloh22:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh23:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh24:
	adrp	x8, l___const.PcAccountExport.bom@PAGE
Lloh25:
	add	x8, x8, l___const.PcAccountExport.bom@PAGEOFF
	ldr	x9, [x8]
	stur	x9, [x29, #-176]
	ldr	w8, [x8, #8]
	stur	w8, [x29, #-168]
	sub	x0, x29, #240
	mov	w1, #24
	bl	_Zero
	ldur	w8, [x29, #-192]
	stur	w8, [x29, #-224]
	ldur	q0, [x29, #-208]
	stur	q0, [x29, #-240]
	sub	x0, x29, #240
	bl	_CiAccountToCfg
	mov	x24, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_GetParamStr
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_StrCpy
	bl	_NewBuf
	mov	x23, x0
	sub	x1, x29, #176
	mov	w2, #12
	bl	_WriteBuf
Lloh28:
	adrp	x26, l_.str.4@PAGE
Lloh29:
	add	x26, x26, l_.str.4@PAGEOFF
	mov	x0, x26
	bl	__UU
	bl	_CalcUniToUtf8
	mov	x27, x0
	add	x0, x0, #32
	bl	_ZeroMalloc
	mov	x25, x0
	mov	x0, x26
	bl	__UU
	mov	x2, x0
	mov	x0, x25
	mov	x1, x27
	bl	_UniToUtf8
	mov	x0, x25
	bl	_StrLen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x25
	bl	_WriteBuf
	ldr	x1, [x24]
	ldr	w2, [x24, #8]
	mov	x0, x23
	bl	_WriteBuf
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_SeekBuf
	mov	x0, x24
	bl	_FreeBuf
	mov	x0, x23
	mov	x1, x22
	bl	_DumpBuf
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x21, [x19]
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x19
	blr	x21
Lloh32:
	adrp	x8, _ERR_INTERNAL_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	x21, [x8]
LBB0_4:
	mov	x0, x23
	bl	_FreeBuf
	mov	x0, x25
	bl	_Free
	ldur	x8, [x29, #-248]                ; 8-byte Folded Reload
	mov	sp, x8
	ldr	x8, [x28]
LBB0_5:
	cmp	x21, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_CmdPrintError
LBB0_7:
	sub	x0, x29, #208
	bl	_CiFreeClientGetAccount
	mov	x0, x20
	bl	_FreeParamValueList
	b	LBB0_9
LBB0_8:
Lloh35:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh37:
	ldr	x21, [x8]
LBB0_9:
	ldur	x8, [x29, #-96]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[name]"

	.comm	_CmdPrompt,4,2                  ; @CmdPrompt
l_.str.1:                               ; @.str.1
	.asciz	"CMD_AccountCreate_Prompt_Name"

	.comm	_CmdEvalNotEmpty,4,2            ; @CmdEvalNotEmpty
l_.str.2:                               ; @.str.2
	.asciz	"SAVEPATH"

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

	.comm	_ERR_INVALID_PARAMETER,8,3      ; @ERR_INVALID_PARAMETER
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.section	__TEXT,__const
	.p2align	2                               ; @__const.PcAccountExport.bom
l___const.PcAccountExport.bom:
	.long	239                             ; 0xef
	.long	187                             ; 0xbb
	.long	191                             ; 0xbf

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"CM_ACCOUNT_FILE_BANNER"

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

	.comm	_ERR_INTERNAL_ERROR,8,3         ; @ERR_INTERNAL_ERROR
.subsections_via_symbols
