	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_BuildClientSnapshot
_SV_BuildClientSnapshot:                ## @SV_BuildClientSnapshot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_sv@GOTPCREL(%rip), %rax
	incq	(%rax)
	movq	_PACKET_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	andq	16(%rdi), %r14
	movq	24(%rdi), %r15
	leaq	(%r14,%r14,2), %rbx
	shlq	$4, %rbx
	movq	16(%r15,%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_Com_Memset
	movq	$0, 8(%r15,%rbx)
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_CS_ZOMBIE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_SV_BuildClientSnapshot.cold.1
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function SV_BuildClientSnapshot.cold.1
_SV_BuildClientSnapshot.cold.1:         ## @SV_BuildClientSnapshot.cold.1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_svs@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$5, %rax
	subq	%rax, %rdi
	callq	_SV_GameClientNum
	movq	%rax, %r15
	imulq	$48, %r14, %rax
	movups	(%r15), %xmm0
	movups	%xmm0, 24(%rbx,%rax)
	movq	16(%r15), %rcx
	movq	%rcx, 40(%rbx,%rax)
	movslq	24(%rbx,%rax), %rbx
	testq	%rbx, %rbx
	js	LBB1_2
## %bb.1:
	movq	_MAX_GENTITIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB1_3
LBB1_2:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
LBB1_3:
	movq	_sv@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	%rcx, (%rax,%rbx,8)
	movl	16(%r15), %edi
	callq	_VectorCopy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_sv,16,3                        ## @sv
	.comm	_PACKET_MASK,8,3                ## @PACKET_MASK
	.comm	_CS_ZOMBIE,8,3                  ## @CS_ZOMBIE
	.comm	_svs,32,3                       ## @svs
	.comm	_MAX_GENTITIES,4,2              ## @MAX_GENTITIES
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_SvEntityForGentity: bad gEnt"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_SV_QsortEntityNumbers,4,2      ## @SV_QsortEntityNumbers
	.comm	_MAX_MAP_AREA_BYTES,4,2         ## @MAX_MAP_AREA_BYTES
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.no_dead_strip	_SV_BuildClientSnapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_BuildClientSnapshot
_SV_BuildClientSnapshot:                ; @SV_BuildClientSnapshot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x8, _sv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sv@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
Lloh2:
	adrp	x8, _PACKET_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PACKET_MASK@GOTPAGEOFF]
	ldp	x9, x20, [x0, #16]
Lloh4:
	ldr	x8, [x8]
	and	x21, x8, x9
	mov	w8, #48
	madd	x22, x21, x8, x20
	ldr	x0, [x22, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_Com_Memset
	str	xzr, [x22, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _CS_ZOMBIE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CS_ZOMBIE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_SV_BuildClientSnapshot.cold.1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function SV_BuildClientSnapshot.cold.1
_SV_BuildClientSnapshot.cold.1:         ; @SV_BuildClientSnapshot.cold.1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
Lloh8:
	adrp	x8, _svs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _svs@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	sub	x0, x0, x8, lsl #5
	bl	_SV_GameClientNum
	mov	x19, x0
	mov	w8, #48
	madd	x8, x20, x8, x21
	ldr	x9, [x0, #16]
	ldr	q0, [x0]
	stur	q0, [x8, #24]
	str	x9, [x8, #40]
	ldr	w8, [x8, #24]
	sxtw	x20, w8
	tbnz	w8, #31, LBB1_2
; %bb.1:
Lloh11:
	adrp	x9, _MAX_GENTITIES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX_GENTITIES@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB1_3
LBB1_2:
Lloh14:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
LBB1_3:
Lloh19:
	adrp	x8, _sv@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sv@GOTPAGEOFF]
	ldp	x8, x9, [x8]
	str	x8, [x9, x20, lsl #3]
	ldr	w0, [x19, #16]
	bl	_VectorCopy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_sv,16,3                        ; @sv
	.comm	_PACKET_MASK,8,3                ; @PACKET_MASK
	.comm	_CS_ZOMBIE,8,3                  ; @CS_ZOMBIE
	.comm	_svs,32,3                       ; @svs
	.comm	_MAX_GENTITIES,4,2              ; @MAX_GENTITIES
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_SvEntityForGentity: bad gEnt"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_SV_QsortEntityNumbers,4,2      ; @SV_QsortEntityNumbers
	.comm	_MAX_MAP_AREA_BYTES,4,2         ; @MAX_MAP_AREA_BYTES
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.no_dead_strip	_SV_BuildClientSnapshot
.subsections_via_symbols
