	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsLogFileGet                   ## -- Begin function PsLogFileGet
	.p2align	4, 0x90
_PsLogFileGet:                          ## @PsLogFileGet
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -176(%rbp)
	movq	_CmdPrompt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -168(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	__UU
	movq	%rax, -160(%rbp)
	movq	_CmdEvalNotEmpty@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -152(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -112(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -136(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -96(%rbp)
	leaq	-176(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$3, %r8d
	callq	_ParseCommandList
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_GetParamStr
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IsEmptyStr
	testl	%eax, %eax
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_GetParamStr
	movq	%rax, %r12
LBB0_4:
	movq	(%r13), %rbx
	leaq	L_.str.5(%rip), %rdi
	callq	__UU
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	*%rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_GetParamStr
	movq	%rax, %r15
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, -184(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_GetParamStr
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DownloadFileFromServer
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_IsEmptyStr
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movq	%rsp, %r14
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str.8(%rip), %rdi
	callq	__UU
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_UniFormat
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*(%r13)
	leaq	l_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	*(%r13)
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	callq	_CalcUtf8ToUni
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_ZeroMalloc
	movq	%rax, %r12
	movq	8(%r15), %rdx
	movl	(%r15), %ecx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_Utf8ToUni
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*(%r13)
	movq	%r13, %rdi
	leaq	l_.str.9(%rip), %rsi
	callq	*(%r13)
	movq	%r12, %rdi
	callq	_Free
	xorl	%ebx, %ebx
	movq	%r14, %rsp
	jmp	LBB0_11
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_13
LBB0_5:
	movq	(%r13), %rbx
	leaq	L_.str.6(%rip), %rdi
	callq	__UU
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	*%rbx
	movq	_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_12
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_DumpBuf
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%r13), %r12
	leaq	L_.str.7(%rip), %rdi
	callq	__UU
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	*%r12
LBB0_11:
	movq	%r15, %rdi
	callq	_FreeBuf
LBB0_12:
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_FreeParamValueList
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[name]"

	.comm	_CmdPrompt,8,3                  ## @CmdPrompt
L_.str.1:                               ## @.str.1
	.asciz	"CMD_LogFileGet_PROMPT_NAME"

	.comm	_CmdEvalNotEmpty,8,3            ## @CmdEvalNotEmpty
L_.str.2:                               ## @.str.2
	.asciz	"SERVER"

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

	.comm	_ERR_INVALID_PARAMETER,8,3      ## @ERR_INVALID_PARAMETER
L_.str.4:                               ## @.str.4
	.asciz	"SAVE"

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

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

	.comm	_ERR_INTERNAL_ERROR,8,3         ## @ERR_INTERNAL_ERROR
L_.str.7:                               ## @.str.7
	.asciz	"CMD_LogFileGet_SAVE_FAILED"

	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
L_.str.8:                               ## @.str.8
	.asciz	"CMD_LogFileGet_FILESIZE"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.9
l_.str.9:
	.space	4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsLogFileGet                   ; -- Begin function PsLogFileGet
	.p2align	2
_PsLogFileGet:                          ; @PsLogFileGet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #128
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CmdPrompt@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CmdPrompt@GOTPAGEOFF]
	stur	x8, [x29, #-72]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x8, [x29, #-192]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__UU
Lloh10:
	adrp	x8, _CmdEvalNotEmpty@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CmdEvalNotEmpty@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	stp	x0, x8, [x29, #-176]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x29, #-160]
	stur	q0, [x29, #-128]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
	stur	x8, [x29, #-152]
	stur	q0, [x29, #-104]
	stur	q0, [x29, #-88]
Lloh15:
	adrp	x8, l_.str.3@PAGE
Lloh16:
	add	x8, x8, l_.str.3@PAGEOFF
	stur	x8, [x29, #-112]
	sub	x3, x29, #192
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	w4, #3
	bl	_ParseCommandList
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_GetParamStr
	mov	x22, x0
	bl	_IsEmptyStr
	cbz	w0, LBB0_3
; %bb.2:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_GetParamStr
	mov	x22, x0
LBB0_3:
	ldr	x23, [x20]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x20
	blr	x23
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_GetParamStr
	mov	x23, x0
	ldr	w21, [x21]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_GetParamStr
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_DownloadFileFromServer
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	mov	x0, x22
	bl	_IsEmptyStr
	cbz	w0, LBB0_8
; %bb.5:
	mov	x25, sp
Lloh27:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	mov	x9, x22
Lloh30:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh31:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__UU
	mov	x2, x0
	ldr	w3, [x21]
	mov	x0, x23
	mov	x1, x22
	bl	_UniFormat
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x23
	blr	x8
	ldr	x8, [x20]
Lloh34:
	adrp	x22, l_.str.9@PAGE
Lloh35:
	add	x22, x22, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	blr	x8
	ldr	x0, [x21, #8]
	ldr	w1, [x21]
	bl	_CalcUtf8ToUni
	mov	x23, x0
	add	x0, x0, #32
	bl	_ZeroMalloc
	mov	x24, x0
	ldr	x2, [x21, #8]
	ldr	w3, [x21]
	mov	x1, x23
	bl	_Utf8ToUni
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x24
	blr	x8
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	mov	x0, x24
	bl	_Free
	mov	sp, x25
	b	LBB0_9
LBB0_6:
Lloh36:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh38:
	ldr	x22, [x8]
	b	LBB0_12
LBB0_7:
	ldr	x21, [x20]
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x20
	blr	x21
Lloh41:
	adrp	x8, _ERR_INTERNAL_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	x22, [x8]
	b	LBB0_11
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	bl	_DumpBuf
	cbz	w0, LBB0_14
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, x21
	bl	_FreeBuf
LBB0_11:
	mov	x0, x19
	bl	_FreeParamValueList
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x22
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh47:
	adrp	x8, _ERR_INTERNAL_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	x22, [x8]
	ldr	x23, [x20]
Lloh50:
	adrp	x0, l_.str.7@PAGE
Lloh51:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x20
	blr	x23
	b	LBB0_10
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[name]"

	.comm	_CmdPrompt,8,3                  ; @CmdPrompt
l_.str.1:                               ; @.str.1
	.asciz	"CMD_LogFileGet_PROMPT_NAME"

	.comm	_CmdEvalNotEmpty,8,3            ; @CmdEvalNotEmpty
l_.str.2:                               ; @.str.2
	.asciz	"SERVER"

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

	.comm	_ERR_INVALID_PARAMETER,8,3      ; @ERR_INVALID_PARAMETER
l_.str.4:                               ; @.str.4
	.asciz	"SAVE"

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

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

	.comm	_ERR_INTERNAL_ERROR,8,3         ; @ERR_INTERNAL_ERROR
l_.str.7:                               ; @.str.7
	.asciz	"CMD_LogFileGet_SAVE_FAILED"

	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
l_.str.8:                               ; @.str.8
	.asciz	"CMD_LogFileGet_FILESIZE"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.9
l_.str.9:
	.space	4

.subsections_via_symbols
