	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_ParseGamestate              ## -- Begin function CL_ParseGamestate
	.p2align	4, 0x90
_CL_ParseGamestate:                     ## @CL_ParseGamestate
	.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	%rdi, %r13
	xorl	%eax, %eax
	callq	_Con_Close
	movq	_clc@GOTPCREL(%rip), %rbx
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
	callq	_CL_ClearState
	movq	%r13, %rdi
	callq	_MSG_ReadLong
	movq	%rax, 16(%rbx)
	movq	_cl@GOTPCREL(%rip), %rbx
	movl	$1, 8(%rbx)
	movq	%r13, %rdi
	callq	_MSG_ReadByte
	movq	_svc_EOF@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_1
LBB0_16:
	movq	%r13, %rdi
	callq	_MSG_ReadLong
	movq	_clc@GOTPCREL(%rip), %rbx
	movq	%rax, 8(%rbx)
	movq	%r13, %rdi
	callq	_MSG_ReadLong
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_CL_SystemInfoChanged
	movq	(%rbx), %rdi
	callq	_FS_ConditionalRestart
	xorl	%eax, %eax
	callq	_CL_InitDownloads
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_Cvar_Set
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_svc_configstring@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	movslq	%r14d, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movslq	8(%rbx), %rdi
	addq	24(%rbx), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_Com_Memcpy
	addl	%r12d, 8(%rbx)
	movq	_svc_EOF@GOTPCREL(%rip), %r14
	movq	_svc_configstring@GOTPCREL(%rip), %r12
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_MSG_ReadByte
	cmpl	(%r14), %eax
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r12), %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_MSG_ReadShort
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_CONFIGSTRINGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_MSG_ReadBigString
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movl	8(%rbx), %ecx
	leal	(%rax,%rcx), %edx
	incl	%edx
	movl	%eax, %r12d
	incl	%r12d
	movq	_MAX_GAMESTATE_CHARS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
	movl	8(%rbx), %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_svc_baseline@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r15
	movq	_GENTITYNUM_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_MSG_ReadBits
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_GENTITIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_Com_Error
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_Com_Memset
	movslq	%ebx, %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movq	%r13, %rdi
	leaq	-44(%rbp), %rsi
	movl	%ebx, %ecx
	movq	%r15, %rbx
	callq	_MSG_ReadDeltaEntity
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_clc,32,3                       ## @clc
	.comm	_cl,32,3                        ## @cl
	.comm	_svc_EOF,4,2                    ## @svc_EOF
	.comm	_svc_configstring,4,2           ## @svc_configstring
	.comm	_MAX_CONFIGSTRINGS,4,2          ## @MAX_CONFIGSTRINGS
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"configstring > MAX_CONFIGSTRINGS"

	.comm	_MAX_GAMESTATE_CHARS,4,2        ## @MAX_GAMESTATE_CHARS
L_.str.1:                               ## @.str.1
	.asciz	"MAX_GAMESTATE_CHARS exceeded"

	.comm	_svc_baseline,4,2               ## @svc_baseline
	.comm	_GENTITYNUM_BITS,4,2            ## @GENTITYNUM_BITS
	.comm	_MAX_GENTITIES,4,2              ## @MAX_GENTITIES
L_.str.2:                               ## @.str.2
	.asciz	"Baseline number out of range: %i"

L_.str.3:                               ## @.str.3
	.asciz	"CL_ParseGamestate: bad command byte"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_ParseGamestate              ; -- Begin function CL_ParseGamestate
	.p2align	2
_CL_ParseGamestate:                     ; @CL_ParseGamestate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	bl	_Con_Close
Lloh0:
	adrp	x20, _clc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _clc@GOTPAGEOFF]
	str	xzr, [x20, #24]
	bl	_CL_ClearState
	mov	x0, x19
	bl	_MSG_ReadLong
	str	x0, [x20, #16]
Lloh2:
	adrp	x28, _cl@GOTPAGE
Lloh3:
	ldr	x28, [x28, _cl@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x28, #8]
	mov	x0, x19
	bl	_MSG_ReadByte
Lloh4:
	adrp	x22, _svc_EOF@GOTPAGE
Lloh5:
	ldr	x22, [x22, _svc_EOF@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_MSG_ReadLong
Lloh6:
	adrp	x20, _clc@GOTPAGE
Lloh7:
	ldr	x20, [x20, _clc@GOTPAGEOFF]
	str	x0, [x20, #8]
	mov	x0, x19
	bl	_MSG_ReadLong
	str	x0, [x20]
	bl	_CL_SystemInfoChanged
	ldr	x0, [x20]
	bl	_FS_ConditionalRestart
	bl	_CL_InitDownloads
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_Cvar_Set
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh12:
	adrp	x20, _svc_configstring@GOTPAGE
Lloh13:
	ldr	x20, [x20, _svc_configstring@GOTPAGEOFF]
Lloh14:
	adrp	x23, _MAX_GAMESTATE_CHARS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _MAX_GAMESTATE_CHARS@GOTPAGEOFF]
Lloh16:
	adrp	x27, _ERR_DROP@GOTPAGE
Lloh17:
	ldr	x27, [x27, _ERR_DROP@GOTPAGEOFF]
Lloh18:
	adrp	x21, _svc_baseline@GOTPAGE
Lloh19:
	ldr	x21, [x21, _svc_baseline@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x9, x10, [x28, #16]
	str	w8, [x9, w24, sxtw #2]
	ldrsw	x8, [x28, #8]
	add	x0, x10, x8
	mov	x1, x25
	mov	x2, x26
	bl	_Com_Memcpy
	ldr	w8, [x28, #8]
	add	w8, w8, w26
	str	w8, [x28, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_MSG_ReadByte
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_MSG_ReadShort
	mov	x24, x0
	tbnz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _MAX_CONFIGSTRINGS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX_CONFIGSTRINGS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_MSG_ReadBigString
	mov	x25, x0
	bl	_strlen
	add	w26, w0, #1
	ldr	w8, [x28, #8]
	ldr	w9, [x23]
	add	w10, w26, w8
	cmp	w10, w9
	b.le	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
	ldr	w8, [x28, #8]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh27:
	adrp	x8, _GENTITYNUM_BITS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GENTITYNUM_BITS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MSG_ReadBits
	mov	x24, x0
	tbnz	w0, #31, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh30:
	adrp	x8, _MAX_GENTITIES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MAX_GENTITIES@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	str	x24, [sp]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Com_Error
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_Com_Memset
	ldr	x8, [x28]
	add	x2, x8, w24, sxtw #2
	add	x1, sp, #12
	mov	x0, x19
	mov	x3, x24
	bl	_MSG_ReadDeltaEntity
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Com_Error
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_clc,32,3                       ; @clc
	.comm	_cl,32,3                        ; @cl
	.comm	_svc_EOF,4,2                    ; @svc_EOF
	.comm	_svc_configstring,4,2           ; @svc_configstring
	.comm	_MAX_CONFIGSTRINGS,4,2          ; @MAX_CONFIGSTRINGS
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"configstring > MAX_CONFIGSTRINGS"

	.comm	_MAX_GAMESTATE_CHARS,4,2        ; @MAX_GAMESTATE_CHARS
l_.str.1:                               ; @.str.1
	.asciz	"MAX_GAMESTATE_CHARS exceeded"

	.comm	_svc_baseline,4,2               ; @svc_baseline
	.comm	_GENTITYNUM_BITS,4,2            ; @GENTITYNUM_BITS
	.comm	_MAX_GENTITIES,4,2              ; @MAX_GENTITIES
l_.str.2:                               ; @.str.2
	.asciz	"Baseline number out of range: %i"

l_.str.3:                               ; @.str.3
	.asciz	"CL_ParseGamestate: bad command byte"

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

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

.subsections_via_symbols
