	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CG_AddPacketEntities
LCPI0_0:
	.quad	0x3f40000000000000              ## double 4.8828125E-4
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3a800000                      ## float 9.765625E-4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_AddPacketEntities
	.p2align	4, 0x90
_CG_AddPacketEntities:                  ## @CG_AddPacketEntities
	.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	_cg@GOTPCREL(%rip), %r15
	movq	48(%r15), %rax
	xorps	%xmm0, %xmm0
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rax), %eax
	movq	24(%r15), %rcx
	movl	(%rcx), %ecx
	subl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	movl	4(%r15), %edx
	subl	%ecx, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	cvtsi2ss	%eax, %xmm1
	divss	%xmm1, %xmm0
LBB0_3:
	movss	%xmm0, (%r15)
	movq	8(%r15), %rdi
	movl	$0, (%rdi)
	movl	$2047, %eax                     ## imm = 0x7FF
	andl	4(%r15), %eax
	imull	$360, %eax, %eax                ## imm = 0x168
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, 4(%rdi)
	movl	$0, 8(%rdi)
	movq	16(%r15), %rax
	movl	$0, (%rax)
	movl	$1023, %ecx                     ## imm = 0x3FF
	andl	4(%r15), %ecx
	imull	$360, %ecx, %ecx                ## imm = 0x168
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %ecx
	movl	%ecx, 4(%rax)
	movl	$0, 8(%rax)
	movl	44(%r15), %esi
	callq	_AnglesToAxis
	movq	16(%r15), %rdi
	movl	40(%r15), %esi
	callq	_AnglesToAxis
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	36(%r15), %rdi
	leaq	32(%r15), %r14
	movq	%r14, %rsi
	callq	_BG_PlayerStateToEntityState
	movq	%r14, %rdi
	callq	_CG_AddCEntity
	movq	_cg_entities@GOTPCREL(%rip), %r14
	movq	24(%r15), %rax
	movq	16(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_CG_CalcEntityLerpPositions
	movq	24(%r15), %rax
	cmpl	$0, 4(%rax)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_CG_AddCEntity
	incq	%rbx
	movq	24(%r15), %rax
	movslq	4(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,56,3                        ## @cg
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_cg_entities,8,3                ## @cg_entities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_AddPacketEntities           ; -- Begin function CG_AddPacketEntities
	.p2align	2
_CG_AddPacketEntities:                  ; @CG_AddPacketEntities
	.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
Lloh0:
	adrp	x20, _cg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
	ldr	x8, [x20, #48]
	movi	d0, #0000000000000000
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
	subs	w8, w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	w10, [x20, #4]
	sub	w9, w10, w9
	scvtf	s0, w9
	scvtf	s1, w8
	fdiv	s0, s0, s1
LBB0_3:
	str	s0, [x20]
	ldp	x0, x8, [x20, #8]
	str	wzr, [x0]
	ldr	w9, [x20, #4]
	and	w9, w9, #0x7ff
	mov	w10, #360
	mul	w9, w9, w10
	scvtf	d0, w9
	mov	x9, #4557642822898941952
	fmov	d1, x9
	fmul	d0, d0, d1
	fcvtzs	w9, d0
	stp	w9, wzr, [x0, #4]
	str	wzr, [x8]
	ldr	w9, [x20, #4]
	and	w9, w9, #0x3ff
	mul	w9, w9, w10
	scvtf	s0, w9
	mov	w9, #981467136
	fmov	s1, w9
	fmul	s0, s0, s1
	fcvtzs	w9, s0
	stp	w9, wzr, [x8, #4]
	ldr	w1, [x20, #44]
	bl	_AnglesToAxis
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #40]
	bl	_AnglesToAxis
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x0, x20, #36
	add	x19, x20, #32
	mov	x1, x19
	bl	_BG_PlayerStateToEntityState
	mov	x0, x19
	bl	_CG_AddCEntity
Lloh5:
	adrp	x19, _cg_entities@GOTPAGE
Lloh6:
	ldr	x19, [x19, _cg_entities@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20, #24]
	ldr	x9, [x9, #16]
	add	x0, x8, x9, lsl #2
	bl	_CG_CalcEntityLerpPositions
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x21, lsl #3]
	add	x0, x9, x8, lsl #2
	bl	_CG_AddCEntity
	add	x21, x21, #1
	ldr	x8, [x20, #24]
	ldrsw	x9, [x8, #4]
	cmp	x21, x9
	b.lt	LBB0_5
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,56,3                        ; @cg
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_cg_entities,8,3                ; @cg_entities
.subsections_via_symbols
