	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_WriteDownloadToClient       ## -- Begin function SV_WriteDownloadToClient
	.p2align	4, 0x90
_SV_WriteDownloadToClient:              ## @SV_WriteDownloadToClient
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	88(%rdi), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_55
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpl	$0, 80(%rdi)
	je	LBB0_3
## %bb.2:
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
LBB0_16:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	movq	_MAX_DOWNLOAD_WINDOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jae	LBB0_17
## %bb.18:
	movl	32(%r12), %ecx
	movq	_MAX_DOWNLOAD_BLKSIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%r12)
	je	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	64(%r12), %rax
	movslq	%edx, %rbx
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	(%r15), %edi
	callq	_Z_Malloc
	movq	%rax, %rdi
	movq	64(%r12), %rax
	movq	%rdi, (%rax,%rbx,8)
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	(%r15), %esi
	movl	80(%r12), %edx
	callq	_FS_Read
	movl	%eax, %ecx
	movq	40(%r12), %rax
	movl	%ecx, (%rax,%rbx,4)
	testl	%ecx, %ecx
	js	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	addl	32(%r12), %ecx
	movl	%ecx, 32(%r12)
	movq	8(%r12), %rax
	incq	%rax
	movq	%rax, 8(%r12)
	movq	%rax, %rdx
	subq	16(%r12), %rdx
	movq	_MAX_DOWNLOAD_WINDOW@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	jb	LBB0_19
	jmp	LBB0_28
LBB0_3:
	movq	_svs@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	negq	%rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$5, %rsi
	addq	%r12, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movq	88(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_FS_idPak
	testl	%eax, %eax
	je	LBB0_4
## %bb.57:
	movslq	(%r15), %rax
	negq	%rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$5, %rsi
	addq	%r12, %rsi
	movq	88(%r12), %rdx
	leaq	L_.str.3(%rip), %rdi
	callq	_Com_Printf
	movq	88(%r12), %rcx
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_14
LBB0_17:
	movl	32(%r12), %ecx
LBB0_28:
	cmpl	(%r12), %ecx
	jne	LBB0_35
## %bb.29:
	cmpq	$0, 72(%r12)
	jne	LBB0_35
	jmp	LBB0_30
LBB0_4:
	movq	88(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_FS_idPak
	movl	%eax, %ebx
	movq	_sv_allowDownload@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	leaq	80(%r12), %rsi
	movq	88(%r12), %rdi
	callq	_FS_SV_FOpenFileRead
	movl	%eax, (%r12)
	testl	%eax, %eax
	jle	LBB0_7
## %bb.15:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 20(%r12)
	movups	%xmm0, 8(%r12)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r12)
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_26:
	movl	(%r12), %eax
	movl	%eax, 32(%r12)
	cmpq	$0, 72(%r12)
	jne	LBB0_35
LBB0_30:
	movq	8(%r12), %rcx
	movq	%rcx, %rax
	subq	16(%r12), %rax
	movq	_MAX_DOWNLOAD_WINDOW@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	cmpq	%rdi, %rax
	jae	LBB0_35
## %bb.31:
	movq	40(%r12), %rsi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_32
## %bb.33:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_34
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movslq	(%r15), %rax
	negq	%rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$5, %rsi
	addq	%r12, %rsi
	movq	88(%r12), %rdx
	leaq	L_.str.3(%rip), %rdi
	callq	_Com_Printf
	movq	88(%r12), %rcx
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_14
LBB0_9:
	movq	(%r13), %rax
	movslq	(%r15), %rcx
	negq	%rcx
	leaq	(%rcx,%rcx,2), %rsi
	shlq	$5, %rsi
	addq	%r12, %rsi
	cmpl	$0, (%rax)
	movq	88(%r12), %rdx
	je	LBB0_10
## %bb.13:
	leaq	L_.str.9(%rip), %rdi
	callq	_Com_Printf
	movq	88(%r12), %rcx
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_14
LBB0_32:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_34:
	movl	$0, (%rsi,%rdx,4)
	incq	%rcx
	movq	%rcx, 8(%r12)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r12)
LBB0_35:
	movl	48(%r12), %ebx
	movq	_sv_maxRate@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_39
## %bb.36:
	cmpl	$999, %eax                      ## imm = 0x3E7
	jg	LBB0_38
## %bb.37:
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_Cvar_Set
	movq	(%r15), %rax
	movl	(%rax), %eax
LBB0_38:
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
LBB0_39:
	movl	$1, %r13d
	testl	%ebx, %ebx
	je	LBB0_42
## %bb.40:
	imull	52(%r12), %ebx
	movslq	%ebx, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	_MAX_DOWNLOAD_BLKSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	js	LBB0_42
## %bb.41:
	movl	%eax, %r13d
	je	LBB0_55
LBB0_42:
	movq	_svs@GOTPCREL(%rip), %r15
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_43 Depth=1
	movslq	(%r15), %rax
	negq	%rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$5, %rsi
	addq	%r12, %rsi
	movl	24(%r12), %edx
	leaq	L_.str.13(%rip), %rdi
	callq	_Com_DPrintf
	incq	24(%r12)
	movl	4(%r15), %eax
	movl	%eax, 56(%r12)
	testl	%r13d, %r13d
	je	LBB0_55
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdx
	movq	16(%r12), %rcx
	cmpq	%rdx, %rcx
	je	LBB0_55
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	24(%r12), %rax
	cmpq	%rdx, %rax
	jne	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_43 Depth=1
	movl	4(%r15), %eax
	subl	56(%r12), %eax
	cmpl	$1001, %eax                     ## imm = 0x3E9
	jl	LBB0_55
## %bb.46:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	%rcx, 24(%r12)
	movq	%rcx, %rax
LBB0_47:                                ##   in Loop: Header=BB0_43 Depth=1
	movq	_MAX_DOWNLOAD_WINDOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_48
## %bb.49:                              ##   in Loop: Header=BB0_43 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_43 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
LBB0_50:                                ##   in Loop: Header=BB0_43 Depth=1
	movq	_svc_download@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MSG_WriteByte
	movl	24(%r12), %esi
	movq	%r14, %rdi
	callq	_MSG_WriteShort
	cmpq	$0, 24(%r12)
	jne	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_43 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_MSG_WriteLong
LBB0_52:                                ##   in Loop: Header=BB0_43 Depth=1
	decl	%r13d
	movq	40(%r12), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_MSG_WriteShort
	movq	40(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	testl	%edx, %edx
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	64(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_MSG_WriteData
	jmp	LBB0_54
LBB0_10:
	leaq	L_.str.6(%rip), %rdi
	callq	_Com_Printf
	movq	_sv_pure@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	movq	88(%r12), %rcx
	je	LBB0_12
## %bb.11:
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.8(%rip), %rdx
LBB0_14:
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_Com_sprintf
	movq	_svc_download@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MSG_WriteByte
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_MSG_WriteShort
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_MSG_WriteLong
	leaq	-1072(%rbp), %rsi
	movq	%r14, %rdi
	callq	_MSG_WriteString
	movq	88(%r12), %rax
	movq	$0, (%rax)
LBB0_55:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_58
## %bb.56:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clientDownload: %d : begining \"%s\"\n"

	.comm	_svs,8,2                        ## @svs
L_.str.1:                               ## @.str.1
	.asciz	"missionpack"

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

	.comm	_sv_allowDownload,8,3           ## @sv_allowDownload
L_.str.3:                               ## @.str.3
	.asciz	"clientDownload: %d : \"%s\" cannot download id pk3 files\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot autodownload Team Arena file \"%s\"\nThe Team Arena mission pack can be found in your local game store."

L_.str.5:                               ## @.str.5
	.asciz	"Cannot autodownload id pk3 file \"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"clientDownload: %d : \"%s\" download disabled"

	.comm	_sv_pure,8,3                    ## @sv_pure
L_.str.7:                               ## @.str.7
	.asciz	"Could not download \"%s\" because autodownloading is disabled on the server.\n\nYou will need to get this file elsewhere before you can connect to this pure server.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Could not download \"%s\" because autodownloading is disabled on the server.\n\nThe server you are connecting to is not a pure server, set autodownload to No in your settings and you might be able to join the game anyway.\n"

L_.str.9:                               ## @.str.9
	.asciz	"clientDownload: %d : \"%s\" file not found on server\n"

L_.str.10:                              ## @.str.10
	.asciz	"File \"%s\" not found on server for autodownloading.\n"

	.comm	_svc_download,4,2               ## @svc_download
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_MAX_DOWNLOAD_WINDOW,8,3        ## @MAX_DOWNLOAD_WINDOW
	.comm	_MAX_DOWNLOAD_BLKSIZE,4,2       ## @MAX_DOWNLOAD_BLKSIZE
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_sv_maxRate,8,3                 ## @sv_maxRate
L_.str.11:                              ## @.str.11
	.asciz	"sv_MaxRate"

L_.str.12:                              ## @.str.12
	.asciz	"1000"

L_.str.13:                              ## @.str.13
	.asciz	"clientDownload: %d : writing block %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_WriteDownloadToClient       ; -- Begin function SV_WriteDownloadToClient
	.p2align	2
_SV_WriteDownloadToClient:              ; @SV_WriteDownloadToClient
	.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, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x2, [x0, #88]
	ldr	x8, [x2]
	cbz	x8, LBB0_47
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x21, x0
	ldr	w8, [x21, #80]!
	cbz	w8, LBB0_10
; %bb.2:
	ldp	x8, x9, [x19, #8]
LBB0_3:
Lloh3:
	adrp	x22, _MAX_DOWNLOAD_WINDOW@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_DOWNLOAD_WINDOW@GOTPAGEOFF]
	ldr	x10, [x22]
	sub	x9, x8, x9
	cmp	x9, x10
Lloh5:
	adrp	x21, _MAX_DOWNLOAD_BLKSIZE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MAX_DOWNLOAD_BLKSIZE@GOTPAGEOFF]
	b.hs	LBB0_12
; %bb.4:
	ldr	w9, [x19, #32]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x19]
	cmp	w11, w9
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	udiv	x9, x8, x10
	msub	x8, x9, x10, x8
	ldr	x9, [x19, #64]
	sxtw	x23, w8
	sbfiz	x8, x8, #3, #32
	ldr	x0, [x9, x8]
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_Z_Malloc
	ldr	x8, [x19, #64]
	str	x0, [x8, x23, lsl #3]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21]
	ldr	w2, [x19, #80]
	bl	_FS_Read
	ldr	x8, [x19, #40]
	str	w0, [x8, x23, lsl #2]
	tbnz	w0, #31, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #32]
	add	w9, w8, w0
	str	w9, [x19, #32]
	ldp	x8, x11, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	x10, [x22]
	sub	x11, x8, x11
	cmp	x11, x10
	b.lo	LBB0_5
	b	LBB0_13
LBB0_10:
Lloh7:
	adrp	x23, _svs@GOTPAGE
Lloh8:
	ldr	x23, [x23, _svs@GOTPAGEOFF]
	ldrsw	x8, [x23]
	mov	w9, #96
	mneg	x8, x8, x9
	add	x1, x19, x8
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	ldr	x0, [x19, #88]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_FS_idPak
	cbz	w0, LBB0_15
; %bb.11:
	ldrsw	x8, [x23]
	mov	w9, #96
	mneg	x8, x8, x9
	add	x1, x19, x8
	ldr	x2, [x19, #88]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_Printf
	ldr	x3, [x19, #88]
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_46
LBB0_12:
	ldr	w9, [x19, #32]
LBB0_13:
	ldr	w8, [x19]
	cmp	w9, w8
	b.ne	LBB0_21
; %bb.14:
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_21
	b	LBB0_19
LBB0_15:
	ldr	x0, [x19, #88]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_FS_idPak
	mov	x22, x0
Lloh19:
	adrp	x24, _sv_allowDownload@GOTPAGE
Lloh20:
	ldr	x24, [x24, _sv_allowDownload@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w8, [x8]
	cmp	w8, #0
	ccmp	w0, #0, #0, ne
	b.ne	LBB0_39
; %bb.16:
	ldr	x0, [x19, #88]
	mov	x1, x21
	bl	_FS_SV_FOpenFileRead
	str	w0, [x19]
	cmp	w0, #0
	b.le	LBB0_39
; %bb.17:
	mov	x9, #0
	mov	x8, #0
	stp	xzr, xzr, [x19, #8]
	str	wzr, [x19, #32]
	str	xzr, [x19, #24]
Lloh21:
	adrp	x10, _qfalse@GOTPAGE
Lloh22:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	str	x10, [x19, #72]
	b	LBB0_3
LBB0_18:
	ldr	w8, [x19]
	str	w8, [x19, #32]
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_21
LBB0_19:
	ldp	x8, x10, [x19, #8]
	ldr	x9, [x22]
	sub	x10, x8, x10
	cmp	x10, x9
	b.hs	LBB0_21
; %bb.20:
	ldr	x10, [x19, #40]
	udiv	x11, x8, x9
	msub	x9, x11, x9, x8
	str	wzr, [x10, x9, lsl #2]
	add	x8, x8, #1
	str	x8, [x19, #8]
Lloh24:
	adrp	x8, _qtrue@GOTPAGE
Lloh25:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19, #72]
LBB0_21:
	ldr	w23, [x19, #48]
Lloh27:
	adrp	x24, _sv_maxRate@GOTPAGE
Lloh28:
	ldr	x24, [x24, _sv_maxRate@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w8, [x8]
	cbz	w8, LBB0_25
; %bb.22:
	cmp	w8, #999
	b.gt	LBB0_24
; %bb.23:
Lloh29:
	adrp	x0, l_.str.11@PAGE
Lloh30:
	add	x0, x0, l_.str.11@PAGEOFF
Lloh31:
	adrp	x1, l_.str.12@PAGE
Lloh32:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_Cvar_Set
	ldr	x8, [x24]
	ldr	w8, [x8]
LBB0_24:
	cmp	w8, w23
	csel	w23, w8, w23, lt
LBB0_25:
	cbz	w23, LBB0_28
; %bb.26:
	ldr	w8, [x19, #52]
	mul	w8, w8, w23
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	ldr	w10, [x21]
	add	w8, w8, w9
	add	w8, w8, w10
	sdiv	w23, w8, w10
	tbnz	w23, #31, LBB0_28
; %bb.27:
	cbnz	w23, LBB0_29
	b	LBB0_47
LBB0_28:
	mov	w23, #1
LBB0_29:
Lloh33:
	adrp	x24, _svs@GOTPAGE
Lloh34:
	ldr	x24, [x24, _svs@GOTPAGEOFF]
Lloh35:
	adrp	x25, _svc_download@GOTPAGE
Lloh36:
	ldr	x25, [x25, _svc_download@GOTPAGEOFF]
	mov	w26, #96
Lloh37:
	adrp	x21, l_.str.13@PAGE
Lloh38:
	add	x21, x21, l_.str.13@PAGEOFF
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	ldrsw	x8, [x24]
	mneg	x8, x8, x26
	add	x1, x19, x8
	ldr	w2, [x19, #24]
	mov	x0, x21
	bl	_Com_DPrintf
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
	ldr	w8, [x24, #4]
	str	w8, [x19, #56]
	cbz	w23, LBB0_47
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_47
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x27, [x19, #24]
	cmp	x27, x9
	b.ne	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w9, [x24, #4]
	ldr	w10, [x19, #56]
	sub	w9, w9, w10
	cmp	w9, #1001
	b.lt	LBB0_47
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	str	x8, [x19, #24]
	mov	x27, x8
LBB0_35:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	x28, [x22]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_MSG_WriteByte
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_MSG_WriteShort
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w1, [x19]
	mov	x0, x20
	bl	_MSG_WriteLong
LBB0_37:                                ;   in Loop: Header=BB0_31 Depth=1
	sub	w23, w23, #1
	udiv	x8, x27, x28
	msub	x27, x8, x28, x27
	ldr	x8, [x19, #40]
	sbfiz	x28, x27, #2, #32
	ldr	w1, [x8, x28]
	mov	x0, x20
	bl	_MSG_WriteShort
	ldr	x8, [x19, #40]
	ldr	w2, [x8, x28]
	cbz	w2, LBB0_30
; %bb.38:                               ;   in Loop: Header=BB0_31 Depth=1
	sxtw	x8, w27
	ldr	x9, [x19, #64]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x20
	bl	_MSG_WriteData
	b	LBB0_30
LBB0_39:
	cbz	w22, LBB0_41
; %bb.40:
	ldrsw	x8, [x23]
	mov	w9, #96
	mneg	x8, x8, x9
	add	x1, x19, x8
	ldr	x2, [x19, #88]
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_Printf
	ldr	x3, [x19, #88]
Lloh41:
	adrp	x2, l_.str.5@PAGE
Lloh42:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_46
LBB0_41:
	ldr	x8, [x24]
	ldr	w8, [x8]
	ldrsw	x9, [x23]
	mov	w10, #96
	mneg	x9, x9, x10
	add	x1, x19, x9
	ldr	x2, [x19, #88]
	cbz	w8, LBB0_43
; %bb.42:
Lloh43:
	adrp	x0, l_.str.9@PAGE
Lloh44:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_Com_Printf
	ldr	x3, [x19, #88]
Lloh45:
	adrp	x2, l_.str.10@PAGE
Lloh46:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_46
LBB0_43:
Lloh47:
	adrp	x0, l_.str.6@PAGE
Lloh48:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_Com_Printf
Lloh49:
	adrp	x8, _sv_pure@GOTPAGE
Lloh50:
	ldr	x8, [x8, _sv_pure@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x3, [x19, #88]
	cbz	x8, LBB0_45
; %bb.44:
Lloh52:
	adrp	x2, l_.str.7@PAGE
Lloh53:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_46
LBB0_45:
Lloh54:
	adrp	x2, l_.str.8@PAGE
Lloh55:
	add	x2, x2, l_.str.8@PAGEOFF
LBB0_46:
	mov	x0, sp
	mov	w1, #1024
	bl	_Com_sprintf
Lloh56:
	adrp	x8, _svc_download@GOTPAGE
Lloh57:
	ldr	x8, [x8, _svc_download@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MSG_WriteByte
	mov	x0, x20
	mov	w1, #0
	bl	_MSG_WriteShort
	mov	x0, x20
	mov	w1, #-1
	bl	_MSG_WriteLong
	mov	x1, sp
	mov	x0, x20
	bl	_MSG_WriteString
	ldr	x8, [x19, #88]
	str	xzr, [x8]
LBB0_47:
	ldur	x8, [x29, #-96]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	add	sp, sp, #1040
	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_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clientDownload: %d : begining \"%s\"\n"

	.comm	_svs,8,2                        ; @svs
l_.str.1:                               ; @.str.1
	.asciz	"missionpack"

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

	.comm	_sv_allowDownload,8,3           ; @sv_allowDownload
l_.str.3:                               ; @.str.3
	.asciz	"clientDownload: %d : \"%s\" cannot download id pk3 files\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot autodownload Team Arena file \"%s\"\nThe Team Arena mission pack can be found in your local game store."

l_.str.5:                               ; @.str.5
	.asciz	"Cannot autodownload id pk3 file \"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"clientDownload: %d : \"%s\" download disabled"

	.comm	_sv_pure,8,3                    ; @sv_pure
l_.str.7:                               ; @.str.7
	.asciz	"Could not download \"%s\" because autodownloading is disabled on the server.\n\nYou will need to get this file elsewhere before you can connect to this pure server.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Could not download \"%s\" because autodownloading is disabled on the server.\n\nThe server you are connecting to is not a pure server, set autodownload to No in your settings and you might be able to join the game anyway.\n"

l_.str.9:                               ; @.str.9
	.asciz	"clientDownload: %d : \"%s\" file not found on server\n"

l_.str.10:                              ; @.str.10
	.asciz	"File \"%s\" not found on server for autodownloading.\n"

	.comm	_svc_download,4,2               ; @svc_download
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_MAX_DOWNLOAD_WINDOW,8,3        ; @MAX_DOWNLOAD_WINDOW
	.comm	_MAX_DOWNLOAD_BLKSIZE,4,2       ; @MAX_DOWNLOAD_BLKSIZE
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_sv_maxRate,8,3                 ; @sv_maxRate
l_.str.11:                              ; @.str.11
	.asciz	"sv_MaxRate"

l_.str.12:                              ; @.str.12
	.asciz	"1000"

l_.str.13:                              ; @.str.13
	.asciz	"clientDownload: %d : writing block %d\n"

.subsections_via_symbols
