	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_WriteSnapshotToClient
_SV_WriteSnapshotToClient:              ## @SV_WriteSnapshotToClient
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	48(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	40(%rdi), %rsi
	movq	_PACKET_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	movq	_CS_ACTIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r12
	subq	%rax, %r12
	movq	_PACKET_BACKUP@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$-3, %rcx
	cmpq	%rcx, %r12
	jae	LBB0_4
## %bb.5:
	andq	%r14, %rax
	leaq	(%rax,%rax,2), %rax
	movq	_svs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	8(%rcx), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rdx, (%rcx,%rax,8)
	jle	LBB0_7
## %bb.6:
	leaq	(%rcx,%rax,8), %rbx
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_4:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	movl	32(%r15), %esi
	callq	_Com_DPrintf
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:
	andq	%rsi, %r14
	movq	_svc_snapshot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_MSG_WriteByte
	movq	_sv@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	movq	%r13, %rdi
	callq	_MSG_WriteLong
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_MSG_WriteByte
	movq	_svs@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%r15)
	movl	$0, %esi
	je	LBB0_11
## %bb.10:
	movq	_SNAPFLAG_RATE_DELAYED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_11:
	leaq	(%r14,%r14,2), %r14
	orl	16(%rax), %esi
	movq	8(%r15), %rax
	movq	_CS_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	$0, %eax
	je	LBB0_13
## %bb.12:
	movq	_SNAPFLAG_NOT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	orl	%eax, %esi
	leaq	(%rbx,%r14,8), %r15
	movq	%r13, %rdi
	callq	_MSG_WriteByte
	movl	8(%rbx,%r14,8), %esi
	movq	%r13, %rdi
	callq	_MSG_WriteByte
	movl	8(%rbx,%r14,8), %edx
	movl	16(%rbx,%r14,8), %esi
	movq	%r13, %rdi
	callq	_MSG_WriteData
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	leaq	12(%r12), %rsi
	leaq	(%rbx,%r14,8), %rdx
	addq	$12, %rdx
	movq	%r13, %rdi
	jmp	LBB0_16
LBB0_15:
	leaq	(%rbx,%r14,8), %rdx
	addq	$12, %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
LBB0_16:
	callq	_MSG_WriteDeltaPlayerstate
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_SV_EmitPacketEntities
	movq	_sv_padPackets@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	movq	_svc_nop@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_MSG_WriteByte
	incl	%ebx
	movq	(%r14), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_18
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_MASK,8,3                ## @PACKET_MASK
	.comm	_CS_ACTIVE,8,3                  ## @CS_ACTIVE
	.comm	_PACKET_BACKUP,4,2              ## @PACKET_BACKUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Delta request from out of date packet.\n"

	.comm	_svs,24,3                       ## @svs
L_.str.1:                               ## @.str.1
	.asciz	"%s: Delta request from out of date entities.\n"

	.comm	_svc_snapshot,4,2               ## @svc_snapshot
	.comm	_sv,8,3                         ## @sv
	.comm	_SNAPFLAG_RATE_DELAYED,4,2      ## @SNAPFLAG_RATE_DELAYED
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ## @SNAPFLAG_NOT_ACTIVE
	.comm	_sv_padPackets,8,3              ## @sv_padPackets
	.comm	_svc_nop,4,2                    ## @svc_nop
	.no_dead_strip	_SV_WriteSnapshotToClient
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_WriteSnapshotToClient
_SV_WriteSnapshotToClient:              ; @SV_WriteSnapshotToClient
	.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
	mov	x19, x1
	mov	x21, x0
	ldp	x9, x24, [x0, #40]
Lloh0:
	adrp	x8, _PACKET_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x25, x8, x9
	mov	w10, #24
	madd	x20, x25, x10, x24
	ldr	x10, [x0]
Lloh3:
	adrp	x27, _svs@GOTPAGE
Lloh4:
	ldr	x27, [x27, _svs@GOTPAGEOFF]
Lloh5:
	adrp	x26, _CS_ACTIVE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _CS_ACTIVE@GOTPAGEOFF]
	cmp	x10, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x11, [x21, #8]
	ldr	x12, [x26]
	cmp	x11, x12
	b.ne	LBB0_7
; %bb.2:
Lloh7:
	adrp	x11, _PACKET_BACKUP@GOTPAGE
Lloh8:
	ldr	x11, [x11, _PACKET_BACKUP@GOTPAGEOFF]
Lloh9:
	ldrsw	x11, [x11]
	sub	x11, x11, #3
	sub	x23, x9, x10
	cmp	x23, x11
	b.hs	LBB0_5
; %bb.3:
	and	x8, x10, x8
	mov	w9, #24
	madd	x22, x8, x9, x24
	ldr	x8, [x22]
	ldp	x9, x10, [x27]
	sub	x9, x9, x10
	cmp	x8, x9
	b.gt	LBB0_8
; %bb.4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	ldr	w1, [x21, #32]
	bl	_Com_DPrintf
LBB0_7:
	mov	x22, #0
	mov	w23, #0
LBB0_8:
Lloh14:
	adrp	x8, _svc_snapshot@GOTPAGE
Lloh15:
	ldr	x8, [x8, _svc_snapshot@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MSG_WriteByte
	ldr	x8, [x21, #24]
Lloh17:
	adrp	x9, _sv@GOTPAGE
Lloh18:
	ldr	x9, [x9, _sv@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_MSG_WriteLong
	mov	x0, x19
	mov	x1, x23
	bl	_MSG_WriteByte
	ldr	w8, [x27, #16]
Lloh20:
	adrp	x9, _SNAPFLAG_RATE_DELAYED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SNAPFLAG_RATE_DELAYED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldp	x11, x10, [x21, #8]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	ldr	x9, [x26]
Lloh23:
	adrp	x10, _SNAPFLAG_NOT_ACTIVE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SNAPFLAG_NOT_ACTIVE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	x11, x9
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
	mov	x0, x19
	bl	_MSG_WriteByte
	mov	w8, #24
	madd	x21, x25, x8, x24
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_MSG_WriteByte
	ldr	w1, [x21, #16]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_MSG_WriteData
	cbz	x22, LBB0_10
; %bb.9:
	add	x1, x22, #12
	mov	w8, #24
	madd	x8, x25, x8, x24
	add	x2, x8, #12
	mov	x0, x19
	b	LBB0_11
LBB0_10:
	mov	w8, #24
	madd	x8, x25, x8, x24
	add	x2, x8, #12
	mov	x0, x19
	mov	x1, #0
LBB0_11:
	bl	_MSG_WriteDeltaPlayerstate
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_SV_EmitPacketEntities
Lloh26:
	adrp	x20, _sv_padPackets@GOTPAGE
Lloh27:
	ldr	x20, [x20, _sv_padPackets@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w21, #0
Lloh28:
	adrp	x22, _svc_nop@GOTPAGE
Lloh29:
	ldr	x22, [x22, _svc_nop@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_MSG_WriteByte
	add	w21, w21, #1
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_13
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_MASK,8,3                ; @PACKET_MASK
	.comm	_CS_ACTIVE,8,3                  ; @CS_ACTIVE
	.comm	_PACKET_BACKUP,4,2              ; @PACKET_BACKUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Delta request from out of date packet.\n"

	.comm	_svs,24,3                       ; @svs
l_.str.1:                               ; @.str.1
	.asciz	"%s: Delta request from out of date entities.\n"

	.comm	_svc_snapshot,4,2               ; @svc_snapshot
	.comm	_sv,8,3                         ; @sv
	.comm	_SNAPFLAG_RATE_DELAYED,4,2      ; @SNAPFLAG_RATE_DELAYED
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ; @SNAPFLAG_NOT_ACTIVE
	.comm	_sv_padPackets,8,3              ; @sv_padPackets
	.comm	_svc_nop,4,2                    ; @svc_nop
	.no_dead_strip	_SV_WriteSnapshotToClient
.subsections_via_symbols
