	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_EmitPacketEntities
_SV_EmitPacketEntities:                 ## @SV_EmitPacketEntities
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	(%rdi), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	testl	%eax, %eax
	setg	%r12b
	cmpl	$0, (%rsi)
	setg	%r8b
	jg	LBB0_5
## %bb.4:
	testl	%eax, %eax
	jle	LBB0_17
LBB0_5:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r11d, %r11d
	xorl	%r13d, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rsi
	shlq	$2, %rsi
	movq	_sv@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r11, %rdx
	movq	%r11, %rbx
	callq	_MSG_WriteDeltaEntity
	movq	%rbx, %r11
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incl	%r14d
	cmpl	(%rsi), %r14d
	setl	%r8b
	movl	%r8d, %eax
	orb	%r12b, %al
	testb	$1, %al
	je	LBB0_17
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_svs@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	8(%rax), %r10
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$9999, %ecx                     ## imm = 0x270F
	movl	$9999, %ebx                     ## imm = 0x270F
	testb	$1, %r8b
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	testb	$1, %r12b
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	%ecx, %ebx
	jne	LBB0_15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	4(%rsi), %eax
	addl	%r14d, %eax
	cltd
	idivl	%r9d
	movslq	%edx, %rax
	leaq	(%r10,%rax,4), %r11
	movl	(%r10,%rax,4), %ebx
	testb	$1, %r12b
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	4(%rdi), %eax
	addl	%r15d, %eax
	cltd
	idivl	%r9d
	movslq	%edx, %rax
	leaq	(%r10,%rax,4), %r13
	movl	(%r10,%rax,4), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	jl	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=2
	jle	LBB0_7
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r11, %rbx
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_MSG_WriteDeltaEntity
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r11, %rbx
	movq	%r11, %rdx
	callq	_MSG_WriteDeltaEntity
	incl	%r14d
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r15d
	setl	%r12b
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	cmpl	(%rsi), %r14d
	setl	%r8b
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %r11
	jl	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %r15d
	jl	LBB0_6
LBB0_17:
	movq	_MAX_GENTITIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	_GENTITYNUM_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MSG_WriteBits                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_svs,16,3                       ## @svs
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_sv,8,3                         ## @sv
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_MAX_GENTITIES,8,3              ## @MAX_GENTITIES
	.comm	_GENTITYNUM_BITS,4,2            ## @GENTITYNUM_BITS
	.no_dead_strip	_SV_EmitPacketEntities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_EmitPacketEntities
_SV_EmitPacketEntities:                 ; @SV_EmitPacketEntities
	.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, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w24, [x21]
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	cmp	w24, #0
	cset	w28, gt
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, gt
	ccmp	w24, #1, #0, le
	b.lt	LBB0_18
; %bb.4:
	mov	w25, #0
	mov	w26, #0
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x27, _svs@GOTPAGE
Lloh1:
	ldr	x27, [x27, _svs@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh2:
	adrp	x8, _sv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sv@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, w11, sxtw #2
Lloh5:
	adrp	x8, _qtrue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_MSG_WriteDeltaEntity
	add	w25, w25, #1
	ldr	w8, [x20]
	cmp	w25, w8
	cset	w8, lt
	orr	w9, w8, w28
	tbz	w9, #0, LBB0_18
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w9, [x27]
	ldr	x10, [x27, #8]
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w8, #0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w11, [x20, #4]
	add	w11, w11, w25
	sdiv	w12, w11, w9
	msub	w11, w12, w9, w11
	add	x22, x10, w11, sxtw #2
	ldr	w11, [x22]
	tbnz	w28, #0, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w12, #9999
	cmp	w11, w12
	b.ne	LBB0_12
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w11, #9999
	tbz	w28, #0, LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w12, [x21, #4]
	add	w12, w12, w26
	sdiv	w13, w12, w9
	msub	w12, w13, w9, w12
	add	x23, x10, w12, sxtw #2
	ldr	w12, [x23]
	cmp	w11, w12
	b.eq	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	b.lt	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	w11, w12
	b.le	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _qtrue@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	bl	_MSG_WriteDeltaEntity
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x8, _qfalse@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_MSG_WriteDeltaEntity
	add	w25, w25, #1
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w26, #1
	cmp	w26, w24
	cset	w28, lt
	ldr	w8, [x20]
	cmp	w25, w8
	cset	w8, lt
	b.lt	LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, w24
	b.lt	LBB0_6
LBB0_18:
Lloh14:
	adrp	x8, _MAX_GENTITIES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_GENTITIES@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh17:
	adrp	x8, _GENTITYNUM_BITS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GENTITYNUM_BITS@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_MSG_WriteBits
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_svs,16,3                       ; @svs
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_sv,8,3                         ; @sv
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_MAX_GENTITIES,8,3              ; @MAX_GENTITIES
	.comm	_GENTITYNUM_BITS,4,2            ; @GENTITYNUM_BITS
	.no_dead_strip	_SV_EmitPacketEntities
.subsections_via_symbols
