	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_InitDownloads               ## -- Begin function CL_InitDownloads
	.p2align	4, 0x90
_CL_InitDownloads:                      ## @CL_InitDownloads
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_cl_allowDownload@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DLF_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.5:
	movq	_clc@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_FS_ComparePaks
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_Com_Printf
	movq	(%rbx), %rax
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.7:
	movq	_CA_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	8(%rbx), %rax
	movq	$0, (%rax)
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_Cvar_Set
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%rbp
	jmp	_CL_NextDownload                ## TAILCALL
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1040(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_FS_ComparePaks
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	leaq	-1040(%rbp), %rsi
	callq	_Com_Printf
LBB0_3:
	xorl	%eax, %eax
	callq	_CL_DownloadsComplete
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_9
## %bb.4:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cl_allowDownload,8,3           ## @cl_allowDownload
	.comm	_DLF_ENABLE,4,2                 ## @DLF_ENABLE
	.comm	_qfalse,4,2                     ## @qfalse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nWARNING: You are missing some files referenced by the server:\n%sYou might not be able to join the game\nGo to the setting menu to turn on autodownload, or get the file elsewhere\n\n"

	.comm	_clc,32,3                       ## @clc
	.comm	_qtrue,4,2                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"Need paks: %s\n"

	.comm	_CA_CONNECTED,4,2               ## @CA_CONNECTED
L_.str.2:                               ## @.str.2
	.asciz	"cl_downloadName"

L_.str.3:                               ## @.str.3
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_InitDownloads               ; -- Begin function CL_InitDownloads
	.p2align	2
_CL_InitDownloads:                      ; @CL_InitDownloads
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
Lloh3:
	adrp	x8, _cl_allowDownload@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cl_allowDownload@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DLF_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DLF_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh9:
	adrp	x19, _clc@GOTPAGE
Lloh10:
	ldr	x19, [x19, _clc@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_FS_ComparePaks
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x1, [x19]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_Printf
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
Lloh16:
	adrp	x8, _CA_CONNECTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CA_CONNECTED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	ldr	x8, [x19, #16]
	str	xzr, [x8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Cvar_Set
	ldur	x8, [x29, #-24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.4:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CL_NextDownload
LBB0_5:
Lloh26:
	adrp	x8, _qfalse@GOTPAGE
Lloh27:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #1024
	bl	_FS_ComparePaks
	cbz	x0, LBB0_7
; %bb.6:
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_Com_Printf
LBB0_7:
	bl	_CL_DownloadsComplete
	ldur	x8, [x29, #-24]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_cl_allowDownload,8,3           ; @cl_allowDownload
	.comm	_DLF_ENABLE,4,2                 ; @DLF_ENABLE
	.comm	_qfalse,4,2                     ; @qfalse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nWARNING: You are missing some files referenced by the server:\n%sYou might not be able to join the game\nGo to the setting menu to turn on autodownload, or get the file elsewhere\n\n"

	.comm	_clc,32,3                       ; @clc
	.comm	_qtrue,4,2                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"Need paks: %s\n"

	.comm	_CA_CONNECTED,4,2               ; @CA_CONNECTED
l_.str.2:                               ; @.str.2
	.asciz	"cl_downloadName"

l_.str.3:                               ; @.str.3
	.space	1

.subsections_via_symbols
