	.file	"extr_g_client.c_CopyToBodyQue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CopyToBodyQue
	.type	CopyToBodyQue, @function
CopyToBodyQue:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	trap_UnlinkEntity@PLT
	mov	edi, DWORD PTR 120[rbx]
	mov	esi, -1
	call	trap_PointContents@PLT
	test	DWORD PTR CONTENTS_NODROP[rip], eax
	je	.L23
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR level[rip]
	mov	rdx, QWORD PTR level[rip+16]
	movsx	rcx, DWORD PTR BODY_QUEUE_SIZE[rip]
	mov	rbp, QWORD PTR [rdx+rax*8]
	add	rax, 1
	xor	edx, edx
	div	rcx
	mov	rdi, rbp
	mov	QWORD PTR level[rip], rdx
	call	trap_UnlinkEntity@PLT
	movdqu	xmm0, XMMWORD PTR 48[rbx]
	mov	eax, DWORD PTR EF_DEAD[rip]
	movabs	rdx, -8116567392432202711
	mov	rcx, QWORD PTR ENTITYNUM_NONE[rip]
	movups	XMMWORD PTR 48[rbp], xmm0
	movdqu	xmm1, XMMWORD PTR 64[rbx]
	movups	XMMWORD PTR 64[rbp], xmm1
	movdqu	xmm2, XMMWORD PTR 80[rbx]
	movups	XMMWORD PTR 80[rbp], xmm2
	movdqu	xmm3, XMMWORD PTR 96[rbx]
	movups	XMMWORD PTR 96[rbp], xmm3
	movdqu	xmm4, XMMWORD PTR 112[rbx]
	mov	DWORD PTR 48[rbp], eax
	mov	rax, rbp
	sub	rax, QWORD PTR g_entities[rip]
	sar	rax, 3
	movups	XMMWORD PTR 112[rbp], xmm4
	imul	rax, rdx
	mov	rdx, QWORD PTR qtrue[rip]
	mov	QWORD PTR 112[rbp], 0
	mov	QWORD PTR 104[rbp], 0
	mov	QWORD PTR 168[rbp], rdx
	mov	DWORD PTR 52[rbp], eax
	mov	rax, QWORD PTR level[rip+8]
	mov	QWORD PTR 160[rbp], 0
	mov	QWORD PTR 176[rbp], rax
	cmp	QWORD PTR 56[rbp], rcx
	je	.L24
	mov	eax, DWORD PTR TR_STATIONARY[rip]
	mov	DWORD PTR 76[rbp], eax
.L4:
	mov	eax, DWORD PTR ANIM_TOGGLEBIT[rip]
	mov	QWORD PTR 96[rbp], 0
	not	eax
	and	eax, DWORD PTR 64[rbp]
	cmp	eax, 132
	je	.L5
	jg	.L6
	cmp	eax, 129
	je	.L5
	cmp	eax, 130
	jne	.L8
.L7:
	movabs	rax, 571230650501
	mov	QWORD PTR 64[rbp], rax
.L9:
	mov	eax, DWORD PTR 44[rbx]
	mov	esi, DWORD PTR 40[rbp]
	mov	edi, DWORD PTR 40[rbx]
	mov	DWORD PTR 44[rbp], eax
	call	VectorCopy@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	edi, DWORD PTR 36[rbx]
	call	VectorCopy@PLT
	mov	esi, DWORD PTR 32[rbp]
	mov	edi, DWORD PTR 32[rbx]
	call	VectorCopy@PLT
	mov	esi, DWORD PTR 28[rbp]
	mov	edi, DWORD PTR 28[rbx]
	call	VectorCopy@PLT
	mov	eax, DWORD PTR CONTENTS_SOLID[rip]
	or	eax, DWORD PTR CONTENTS_PLAYERCLIP[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR CONTENTS_CORPSE[rip]
	mov	rcx, QWORD PTR GIB_HEALTH[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR 52[rbx]
	mov	DWORD PTR 16[rbp], eax
	mov	rax, QWORD PTR level[rip+8]
	add	rax, 5000
	mov	QWORD PTR 144[rbp], rax
	mov	eax, DWORD PTR BodySink[rip]
	mov	DWORD PTR 140[rbp], eax
	mov	eax, DWORD PTR body_die[rip]
	mov	DWORD PTR 136[rbp], eax
	mov	rax, QWORD PTR qtrue[rip]
	cmp	QWORD PTR 8[rbx], rcx
	jg	.L11
	mov	rax, QWORD PTR qfalse[rip]
.L11:
	mov	edi, DWORD PTR 72[rbp]
	mov	esi, DWORD PTR 20[rbp]
	mov	QWORD PTR 128[rbp], rax
	call	VectorCopy@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	trap_LinkEntity@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	cmp	eax, 133
	je	.L7
.L8:
	movabs	rax, 562640715907
	mov	QWORD PTR 64[rbp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movabs	rax, 566935683204
	mov	QWORD PTR 64[rbp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, DWORD PTR TR_GRAVITY[rip]
	mov	esi, DWORD PTR 80[rbp]
	mov	QWORD PTR 88[rbp], rax
	mov	rax, QWORD PTR 152[rbx]
	mov	DWORD PTR 76[rbp], edx
	mov	edi, DWORD PTR [rax]
	call	VectorCopy@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	CopyToBodyQue, .-CopyToBodyQue
	.comm	qtrue,8,8
	.comm	qfalse,8,8
	.comm	level,24,16
	.comm	g_entities,8,8
	.comm	body_die,4,4
	.comm	TR_STATIONARY,4,4
	.comm	TR_GRAVITY,4,4
	.comm	MAX_GENTITIES,4,4
	.comm	GIB_HEALTH,8,8
	.comm	ENTITYNUM_NONE,8,8
	.comm	EF_KAMIKAZE,4,4
	.comm	EF_DEAD,4,4
	.comm	CONTENTS_SOLID,4,4
	.comm	CONTENTS_PLAYERCLIP,4,4
	.comm	CONTENTS_NODROP,4,4
	.comm	CONTENTS_CORPSE,4,4
	.comm	BodySink,4,4
	.comm	BODY_QUEUE_SIZE,4,4
	.comm	ANIM_TOGGLEBIT,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_g_client.c_CopyToBodyQue.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	CopyToBodyQue
	.syntax unified
	.arm
	.fpu softvfp
	.type	CopyToBodyQue, %function
CopyToBodyQue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	trap_UnlinkEntity
	mvn	r1, #0
	ldr	r0, [r5, #88]
	bl	trap_PointContents
	ldr	r3, .L15
	ldr	r3, [r3]
	ands	r6, r0, r3
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r8, .L15+4
	ldr	r1, .L15+8
	ldr	r3, [r8]
	ldr	r2, [r8, #8]
	add	r0, r3, #1
	ldr	r1, [r1]
	ldr	r4, [r2, r3, lsl #2]
	bl	__aeabi_uidivmod
	mov	r0, r4
	str	r1, [r8]
	bl	trap_UnlinkEntity
	add	ip, r4, #40
	add	lr, r5, #40
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r7, .L15+12
	ldmia	lr!, {r0, r1, r2, r3}
	ldr	r7, [r7]
	stmia	ip!, {r0, r1, r2, r3}
	sub	r3, r4, r7
	asr	r3, r3, #3
	ldr	r1, .L15+16
	rsb	r2, r3, r3, lsl #4
	add	r2, r2, r2, lsl #8
	ldr	lr, [lr]
	ldr	r0, [r1]
	add	r2, r2, r2, lsl #16
	ldr	r1, .L15+20
	add	r3, r3, r2, lsl #4
	ldr	r7, .L15+24
	str	lr, [ip]
	str	r0, [r4, #40]
	str	r6, [r4, #84]
	str	r6, [r4, #80]
	str	r3, [r4, #44]
	ldr	r3, [r8, #4]
	ldr	r0, [r4, #48]
	ldr	r1, [r1]
	ldr	r2, [r7]
	cmp	r0, r1
	str	r3, [r4, #120]
	str	r6, [r4, #112]
	str	r2, [r4, #116]
	beq	.L14
	ldr	r3, .L15+28
	ldr	r3, [r3]
	str	r3, [r4, #64]
.L4:
	mov	r1, #0
	ldr	r2, .L15+32
	ldr	r3, [r4, #52]
	ldr	r2, [r2]
	str	r1, [r4, #76]
	bic	r3, r3, r2
	sub	r3, r3, #129
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L8
	.word	.L6
	.word	.L5
	.word	.L8
	.word	.L6
.L6:
	mov	r3, #133
	str	r3, [r4, #52]
	str	r3, [r4, #56]
.L9:
	ldr	r3, [r5, #36]
	ldr	r1, [r4, #32]
	str	r3, [r4, #36]
	ldr	r0, [r5, #32]
	bl	VectorCopy
	ldr	r1, [r4, #28]
	ldr	r0, [r5, #28]
	bl	VectorCopy
	ldr	r1, [r4, #24]
	ldr	r0, [r5, #24]
	bl	VectorCopy
	ldr	r1, [r4, #20]
	ldr	r0, [r5, #20]
	bl	VectorCopy
	ldr	r0, .L15+36
	ldr	r2, .L15+40
	ldr	lr, [r0]
	ldr	r3, [r8, #4]
	ldr	r2, [r2]
	ldr	r1, .L15+44
	orr	r2, r2, lr
	add	r3, r3, #4992
	ldr	lr, .L15+48
	ldr	r0, [r5, #4]
	ldr	r1, [r1]
	add	r3, r3, #8
	ldr	ip, [r5, #44]
	str	r3, [r4, #104]
	ldr	r3, [lr]
	cmp	r0, r1
	str	r3, [r4, #96]
	ldr	r0, .L15+52
	ldrle	r3, .L15+56
	ldr	r1, .L15+60
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldrgt	r3, [r7]
	ldrle	r3, [r3]
	str	r0, [r4, #16]
	str	r1, [r4, #100]
	ldr	r0, [r4, #60]
	ldr	r1, [r4, #12]
	str	ip, [r4, #8]
	str	r2, [r4]
	str	r3, [r4, #92]
	bl	VectorCopy
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	trap_LinkEntity
.L8:
	mov	r3, #132
	str	r3, [r4, #52]
	str	r3, [r4, #56]
	b	.L9
.L5:
	mov	r3, #131
	str	r3, [r4, #52]
	str	r3, [r4, #56]
	b	.L9
.L14:
	ldr	r1, .L15+64
	ldr	r2, [r5, #108]
	ldr	r1, [r1]
	ldr	r0, [r2]
	str	r1, [r4, #64]
	str	r3, [r4, #72]
	ldr	r1, [r4, #68]
	bl	VectorCopy
	b	.L4
.L16:
	.align	2
.L15:
	.word	CONTENTS_NODROP
	.word	level
	.word	BODY_QUEUE_SIZE
	.word	g_entities
	.word	EF_DEAD
	.word	ENTITYNUM_NONE
	.word	qtrue
	.word	TR_STATIONARY
	.word	ANIM_TOGGLEBIT
	.word	CONTENTS_PLAYERCLIP
	.word	CONTENTS_SOLID
	.word	GIB_HEALTH
	.word	body_die
	.word	CONTENTS_CORPSE
	.word	qfalse
	.word	BodySink
	.word	TR_GRAVITY
	.size	CopyToBodyQue, .-CopyToBodyQue
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	level,12,4
	.comm	g_entities,4,4
	.comm	body_die,4,4
	.comm	TR_STATIONARY,4,4
	.comm	TR_GRAVITY,4,4
	.comm	MAX_GENTITIES,4,4
	.comm	GIB_HEALTH,4,4
	.comm	ENTITYNUM_NONE,4,4
	.comm	EF_KAMIKAZE,4,4
	.comm	EF_DEAD,4,4
	.comm	CONTENTS_SOLID,4,4
	.comm	CONTENTS_PLAYERCLIP,4,4
	.comm	CONTENTS_NODROP,4,4
	.comm	CONTENTS_CORPSE,4,4
	.comm	BodySink,4,4
	.comm	BODY_QUEUE_SIZE,4,4
	.comm	ANIM_TOGGLEBIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
