	.file	"extr_cg_ents.c_CG_AddCEntity.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Bad entity type: %i\n"
	.text
	.p2align 4
	.type	CG_AddCEntity, @function
CG_AddCEntity:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR ET_EVENTS[rip]
	cmp	DWORD PTR [rdi], eax
	jl	.L20
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	CG_CalcEntityLerpPositions@PLT
	mov	rdi, rbp
	call	CG_EntityEffects@PLT
	mov	esi, DWORD PTR 0[rbp]
	lea	eax, -128[rsi]
	cmp	eax, 12
	ja	.L3
	lea	rdx, .L5[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L1-.L5
	.long	.L14-.L5
	.long	.L13-.L5
	.long	.L1-.L5
	.long	.L12-.L5
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L1-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_General@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Beam@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_TeamBase@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Speaker@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Portal@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Player@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Mover@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Missile@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Item@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Grapple@PLT
.L3:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	CG_Error@PLT
	.cfi_endproc
.LFE0:
	.size	CG_AddCEntity, .-CG_AddCEntity
	.comm	ET_EVENTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cg_ents.c_CG_AddCEntity.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Bad entity type: %i\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_AddCEntity, %function
CG_AddCEntity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bxge	lr
	push	{r4, lr}
	mov	r4, r0
	bl	CG_CalcEntityLerpPositions
	mov	r0, r4
	bl	CG_EntityEffects
	ldr	r1, [r4]
	sub	r3, r1, #128
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L1
	.word	.L14
	.word	.L13
	.word	.L1
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L1
	.word	.L7
	.word	.L6
	.word	.L4
.L1:
	pop	{r4, pc}
.L4:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Beam
.L14:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_TeamBase
.L13:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Speaker
.L12:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Portal
.L11:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Player
.L10:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Mover
.L9:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Missile
.L8:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Item
.L7:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_Grapple
.L6:
	mov	r0, r4
	pop	{r4, lr}
	b	CG_General
.L3:
	ldr	r0, .L20+4
	pop	{r4, lr}
	b	CG_Error
.L21:
	.align	2
.L20:
	.word	ET_EVENTS
	.word	.LC0
	.size	CG_AddCEntity, .-CG_AddCEntity
	.comm	ET_EVENTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
