	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FS_CopyFile
_FS_CopyFile:                           ## @FS_CopyFile
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_Com_Printf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_2
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_2:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r12
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%r12, %rdi
	callq	_ftell
	movl	%eax, %r15d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_fread
	cmpl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_Com_Error
LBB0_5:
	movq	%r12, %rdi
	callq	_fclose
	movq	%r13, %rdi
	callq	_FS_CreatePath
	testq	%rax, %rax
	je	LBB0_6
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_fwrite
	cmpl	%r15d, %eax
	je	LBB0_9
## %bb.8:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_Com_Error
LBB0_9:
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"copy %s to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"journal.dat"

L_.str.2:                               ## @.str.2
	.asciz	"journaldata.dat"

L_.str.3:                               ## @.str.3
	.asciz	"Ignoring journal files\n"

L_.str.4:                               ## @.str.4
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.5:                               ## @.str.5
	.asciz	"Short read in FS_Copyfiles()\n"

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

L_.str.7:                               ## @.str.7
	.asciz	"Short write in FS_Copyfiles()\n"

	.no_dead_strip	_FS_CopyFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FS_CopyFile
_FS_CopyFile:                           ; @FS_CopyFile
	.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	x19, x1
	mov	x20, x0
	stp	x0, x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_Com_Printf
LBB0_3:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
Lloh10:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	mov	x0, x22
	bl	_ftell
	mov	x21, x0
Lloh13:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_fseek
	mov	x0, x21
	bl	_malloc
	mov	x20, x0
	mov	w1, #1
	mov	x2, x21
	mov	x3, x22
	bl	_fread
	cmp	w0, w21
	b.eq	LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_Com_Error
LBB0_6:
	mov	x0, x22
	bl	_fclose
	mov	x0, x19
	bl	_FS_CreatePath
	cbz	x0, LBB0_8
LBB0_7:
	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
LBB0_8:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.9:
	mov	x19, x0
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	mov	x3, x19
	bl	_fwrite
	cmp	w0, w21
	b.eq	LBB0_11
; %bb.10:
Lloh23:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_Com_Error
LBB0_11:
	mov	x0, x19
	bl	_fclose
	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
	b	_free
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"copy %s to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"journal.dat"

l_.str.2:                               ; @.str.2
	.asciz	"journaldata.dat"

l_.str.3:                               ; @.str.3
	.asciz	"Ignoring journal files\n"

l_.str.4:                               ; @.str.4
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.5:                               ; @.str.5
	.asciz	"Short read in FS_Copyfiles()\n"

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

l_.str.7:                               ; @.str.7
	.asciz	"Short write in FS_Copyfiles()\n"

	.no_dead_strip	_FS_CopyFile
.subsections_via_symbols
