	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_ComparePaks                 ## -- Begin function FS_ComparePaks
	.p2align	4, 0x90
_FS_ComparePaks:                        ## @FS_ComparePaks
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_fs_numServerReferencedPaks@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_28
## %bb.1:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movb	$0, (%rdi)
	cmpl	$0, (%r12)
	jle	LBB0_26
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	cltq
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_fs_serverReferencedPakNames@GOTPCREL(%rip), %r15
	leaq	L_.str.2(%rip), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rbx, %r14
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	movq	_BASEGAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NUM_ID_PAKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_FS_idPak
	testq	%rax, %rax
	jne	LBB0_24
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	movq	_BASETA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NUM_TA_PAKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_FS_idPak
	testq	%rax, %rax
	jne	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_FS_CheckDirTraversal
	testq	%rax, %rax
	je	LBB0_6
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	jmp	LBB0_24
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_fs_searchpaths@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_fs_serverReferencedPaks@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	(%rdx), %rdx
	cmpq	(%rcx,%r13,8), %rdx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rbx
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_3
	jmp	LBB0_26
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rdx
	testq	%rdx, %rdx
	movq	%r14, %rbx
	je	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%rdx)
	je	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_Q_strcat
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rdx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Q_strcat
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	callq	_Q_strcat
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_Q_strcat
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_va
	movl	%eax, %edi
	callq	_FS_SV_FileExists
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_MAX_ZPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rcx
	movq	_fs_serverReferencedPaks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %r8
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.4(%rip), %rdx
	callq	_Com_sprintf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_Q_strcat
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_19
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_Q_strcat
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%rdi, %rbx
	movq	%r14, %rdx
	callq	_Q_strcat
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_va
	movl	%eax, %edi
	callq	_FS_SV_FileExists
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.5(%rip), %rdx
	callq	_Q_strcat
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.6(%rip), %rdx
	callq	_Q_strcat
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rdx
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Q_strcat
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	callq	_Q_strcat
	movq	%r14, %rbx
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_strlen
	cltq
	subq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	addq	%rax, %r14
	cmpq	-96(%rbp), %r14                 ## 8-byte Folded Reload
	jl	LBB0_25
## %bb.20:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
LBB0_26:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpb	$0, (%rax)
	jne	LBB0_27
LBB0_28:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_27:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_29:
	movq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_32
## %bb.30:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_fs_numServerReferencedPaks,4,2 ## @fs_numServerReferencedPaks
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_fs_serverReferencedPakNames,8,3 ## @fs_serverReferencedPakNames
	.comm	_BASEGAME,4,2                   ## @BASEGAME
	.comm	_NUM_ID_PAKS,4,2                ## @NUM_ID_PAKS
	.comm	_BASETA,4,2                     ## @BASETA
	.comm	_NUM_TA_PAKS,4,2                ## @NUM_TA_PAKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: Invalid download name %s\n"

	.comm	_fs_searchpaths,8,3             ## @fs_searchpaths
	.comm	_fs_serverReferencedPaks,8,3    ## @fs_serverReferencedPaks
	.comm	_qtrue,8,3                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"@"

L_.str.2:                               ## @.str.2
	.asciz	".pk3"

L_.str.3:                               ## @.str.3
	.asciz	"%s.pk3"

	.comm	_MAX_ZPATH,4,2                  ## @MAX_ZPATH
L_.str.4:                               ## @.str.4
	.asciz	"%s.%08x.pk3"

L_.str.5:                               ## @.str.5
	.asciz	" (local file exists with wrong checksum)"

L_.str.6:                               ## @.str.6
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_ComparePaks                 ; -- Begin function FS_ComparePaks
	.p2align	2
_FS_ComparePaks:                        ; @FS_ComparePaks
	.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, #64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _fs_numServerReferencedPaks@GOTPAGE
Lloh4:
	ldr	x22, [x22, _fs_numServerReferencedPaks@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _qfalse@GOTPAGE
Lloh6:
	ldr	x23, [x23, _qfalse@GOTPAGEOFF]
	cbz	w8, LBB0_28
; %bb.1:
	mov	x19, x0
	stur	w1, [x29, #-92]                 ; 4-byte Folded Spill
	stur	x2, [x29, #-104]                ; 8-byte Folded Spill
	strb	wzr, [x0]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.2:
	mov	x24, #0
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	sub	w8, w8, #1
Lloh7:
	adrp	x26, _fs_serverReferencedPakNames@GOTPAGE
Lloh8:
	ldr	x26, [x26, _fs_serverReferencedPakNames@GOTPAGEOFF]
Lloh9:
	adrp	x25, _BASEGAME@GOTPAGE
Lloh10:
	ldr	x25, [x25, _BASEGAME@GOTPAGEOFF]
Lloh11:
	adrp	x28, _NUM_ID_PAKS@GOTPAGE
Lloh12:
	ldr	x28, [x28, _NUM_ID_PAKS@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh15:
	adrp	x27, _NUM_TA_PAKS@GOTPAGE
Lloh16:
	ldr	x27, [x27, _NUM_TA_PAKS@GOTPAGEOFF]
	sxtw	x8, w8
	stp	x8, x19, [x29, #-120]           ; 16-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x20, x21
	ldr	x21, [x23]
	ldr	x8, [x26]
	ldr	x0, [x8, x24, lsl #3]
	ldr	w1, [x25]
	ldr	w2, [x28]
	bl	_FS_idPak
	cbnz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	x0, [x8, x24, lsl #3]
Lloh17:
	adrp	x8, _BASETA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BASETA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x27]
	bl	_FS_idPak
	cbnz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	x0, [x8, x24, lsl #3]
	bl	_FS_CheckDirTraversal
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	x1, [x8, x24, lsl #3]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x8, _fs_searchpaths@GOTPAGE
Lloh23:
	ldr	x8, [x8, _fs_searchpaths@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x9, _fs_serverReferencedPaks@GOTPAGE
Lloh26:
	ldr	x9, [x9, _fs_serverReferencedPaks@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x8]
	cbz	x10, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x10, [x10]
	ldr	x11, [x9, x24, lsl #3]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x8, _qtrue@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh30:
	ldr	x21, [x8]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x21, LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x20
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_3
	b	LBB0_27
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	x2, [x8, x24, lsl #3]
	cbz	x2, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x2]
	cbz	w8, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cbz	x8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	bl	_strlen
	stur	w0, [x29, #-132]                ; 4-byte Folded Spill
	mov	x0, x19
	ldur	w21, [x29, #-92]                ; 4-byte Folded Reload
	mov	x1, x21
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_Q_strcat
	ldr	x8, [x26]
	lsl	x9, x24, #3
	stur	x9, [x29, #-128]                ; 8-byte Folded Spill
	ldr	x2, [x8, x9]
	mov	x0, x19
	mov	x1, x21
	bl	_Q_strcat
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_Q_strcat
	mov	x0, x19
	mov	x1, x21
Lloh33:
	adrp	x2, l_.str.1@PAGE
Lloh34:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_Q_strcat
	ldr	x8, [x26]
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	ldr	x1, [x8, x9]
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_va
	bl	_FS_SV_FileExists
	cbz	x0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, sp
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
Lloh37:
	adrp	x8, _MAX_ZPATH@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MAX_ZPATH@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x9, x1
Lloh40:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh41:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x8, [x26]
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	ldr	x3, [x8, x9]
Lloh42:
	adrp	x8, _fs_serverReferencedPaks@GOTPAGE
Lloh43:
	ldr	x8, [x8, _fs_serverReferencedPaks@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	x4, [x8, x9]
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
Lloh45:
	adrp	x2, l_.str.4@PAGE
Lloh46:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_Com_sprintf
	mov	x0, x19
	ldur	w1, [x29, #-92]                 ; 4-byte Folded Reload
	mov	x2, x21
	bl	_Q_strcat
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	mov	sp, x8
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	ldur	w21, [x29, #-92]                ; 4-byte Folded Reload
	mov	x1, x21
	bl	_Q_strcat
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_Q_strcat
	ldr	x8, [x26]
	ldr	x1, [x8, x24, lsl #3]
Lloh47:
	adrp	x0, l_.str.3@PAGE
Lloh48:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_va
	bl	_FS_SV_FileExists
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
Lloh49:
	adrp	x2, l_.str.5@PAGE
Lloh50:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_Q_strcat
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
Lloh51:
	adrp	x2, l_.str.6@PAGE
Lloh52:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_Q_strcat
	b	LBB0_14
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	x2, [x8, x24, lsl #3]
	mov	x0, x19
	ldur	w21, [x29, #-92]                ; 4-byte Folded Reload
	mov	x1, x21
	bl	_Q_strcat
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_Q_strcat
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x20
	ldur	x20, [x29, #-112]               ; 8-byte Folded Reload
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	add	x20, x20, w8, sxtw
	mov	x0, x20
	bl	_strlen
	stur	x20, [x29, #-112]               ; 8-byte Folded Spill
	sub	x8, x20, x19
	add	x8, x8, w0, sxtw
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	cmp	x8, x9
	b.lt	LBB0_15
; %bb.26:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	strb	wzr, [x8]
LBB0_27:
	ldrb	w8, [x19]
	cmp	w8, #0
Lloh53:
	adrp	x8, _qtrue@GOTPAGE
Lloh54:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	csel	x23, x23, x8, eq
LBB0_28:
	ldr	x0, [x23]
	ldur	x8, [x29, #-88]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	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_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_fs_numServerReferencedPaks,4,2 ; @fs_numServerReferencedPaks
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_fs_serverReferencedPakNames,8,3 ; @fs_serverReferencedPakNames
	.comm	_BASEGAME,4,2                   ; @BASEGAME
	.comm	_NUM_ID_PAKS,4,2                ; @NUM_ID_PAKS
	.comm	_BASETA,4,2                     ; @BASETA
	.comm	_NUM_TA_PAKS,4,2                ; @NUM_TA_PAKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: Invalid download name %s\n"

	.comm	_fs_searchpaths,8,3             ; @fs_searchpaths
	.comm	_fs_serverReferencedPaks,8,3    ; @fs_serverReferencedPaks
	.comm	_qtrue,8,3                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"@"

l_.str.2:                               ; @.str.2
	.asciz	".pk3"

l_.str.3:                               ; @.str.3
	.asciz	"%s.pk3"

	.comm	_MAX_ZPATH,4,2                  ; @MAX_ZPATH
l_.str.4:                               ; @.str.4
	.asciz	"%s.%08x.pk3"

l_.str.5:                               ; @.str.5
	.asciz	" (local file exists with wrong checksum)"

l_.str.6:                               ; @.str.6
	.asciz	"\n"

.subsections_via_symbols
