	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CopyToBodyQue                  ## -- Begin function CopyToBodyQue
	.p2align	4, 0x90
_CopyToBodyQue:                         ## @CopyToBodyQue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_trap_UnlinkEntity
	movl	120(%r14), %edi
	movl	$-1, %esi
	callq	_trap_PointContents
	movq	_CONTENTS_NODROP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	48(%r14), %r12
	movq	_level@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rcx,%rax,8), %rbx
	incq	%rax
	movq	_BODY_QUEUE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	%rdx, (%r15)
	movq	%rbx, %rdi
	callq	_trap_UnlinkEntity
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	32(%r12), %xmm2
	movups	48(%r12), %xmm3
	movups	%xmm0, 48(%rbx)
	movups	%xmm1, 64(%rbx)
	movups	%xmm2, 80(%rbx)
	movups	%xmm3, 96(%rbx)
	movups	64(%r12), %xmm0
	movups	%xmm0, 112(%rbx)
	movq	_EF_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%rbx)
	movq	_g_entities@GOTPCREL(%rip), %rax
	movq	%rbx, %rcx
	subq	(%rax), %rcx
	shrq	$3, %rcx
	imull	$-1030792151, %ecx, %eax        ## imm = 0xC28F5C29
	movl	%eax, 52(%rbx)
	movq	8(%r15), %rax
	movq	%rax, 176(%rbx)
	movq	_qtrue@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rcx, 168(%rbx)
	movq	$0, 160(%rbx)
	movq	56(%rbx), %rcx
	movq	_ENTITYNUM_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_TR_GRAVITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 76(%rbx)
	movq	%rax, 88(%rbx)
	movq	152(%r14), %rax
	movl	(%rax), %edi
	movl	80(%rbx), %esi
	callq	_VectorCopy
	jmp	LBB0_7
LBB0_6:
	movq	_TR_STATIONARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
LBB0_7:
	movq	$0, 96(%rbx)
	movq	_ANIM_TOGGLEBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	64(%rbx), %eax
	addl	$-129, %eax
	movl	$131, %ecx
	cmpl	$4, %eax
	ja	LBB0_9
## %bb.8:
	cltq
	leaq	l_switch.table.CopyToBodyQue(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_9:
	movl	%ecx, 64(%rbx)
	movl	%ecx, 68(%rbx)
	movl	44(%r14), %eax
	movl	%eax, 44(%rbx)
	movl	40(%r14), %edi
	movl	40(%rbx), %esi
	callq	_VectorCopy
	movl	36(%r14), %edi
	movl	36(%rbx), %esi
	callq	_VectorCopy
	movl	32(%r14), %edi
	movl	32(%rbx), %esi
	callq	_VectorCopy
	movl	28(%r14), %edi
	movl	28(%rbx), %esi
	callq	_VectorCopy
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rax
	movq	_CONTENTS_PLAYERCLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_CONTENTS_CORPSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	52(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	$5000, %eax                     ## imm = 0x1388
	addq	8(%r15), %rax
	movq	%rax, 144(%rbx)
	movq	_BodySink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 140(%rbx)
	movq	_body_die@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%rbx)
	movq	8(%r14), %rax
	movq	_GIB_HEALTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_11
## %bb.10:
	movq	_qfalse@GOTPCREL(%rip), %r12
LBB0_11:
	movq	(%r12), %rax
	movq	%rax, 128(%rbx)
	movl	20(%rbx), %esi
	movl	72(%rbx), %edi
	callq	_VectorCopy
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_LinkEntity                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTENTS_NODROP,4,2            ## @CONTENTS_NODROP
	.comm	_level,24,3                     ## @level
	.comm	_BODY_QUEUE_SIZE,4,2            ## @BODY_QUEUE_SIZE
	.comm	_EF_DEAD,4,2                    ## @EF_DEAD
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_ENTITYNUM_NONE,8,3             ## @ENTITYNUM_NONE
	.comm	_TR_GRAVITY,4,2                 ## @TR_GRAVITY
	.comm	_TR_STATIONARY,4,2              ## @TR_STATIONARY
	.comm	_ANIM_TOGGLEBIT,4,2             ## @ANIM_TOGGLEBIT
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.comm	_CONTENTS_PLAYERCLIP,4,2        ## @CONTENTS_PLAYERCLIP
	.comm	_CONTENTS_CORPSE,4,2            ## @CONTENTS_CORPSE
	.comm	_BodySink,4,2                   ## @BodySink
	.comm	_body_die,4,2                   ## @body_die
	.comm	_GIB_HEALTH,8,3                 ## @GIB_HEALTH
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_EF_KAMIKAZE,4,2                ## @EF_KAMIKAZE
	.comm	_MAX_GENTITIES,4,2              ## @MAX_GENTITIES
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.CopyToBodyQue
l_switch.table.CopyToBodyQue:
	.long	132                             ## 0x84
	.long	133                             ## 0x85
	.long	131                             ## 0x83
	.long	132                             ## 0x84
	.long	133                             ## 0x85

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CopyToBodyQue                  ; -- Begin function CopyToBodyQue
	.p2align	2
_CopyToBodyQue:                         ; @CopyToBodyQue
	.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
	mov	x19, x0
	bl	_trap_UnlinkEntity
	ldr	w0, [x19, #120]
	mov	w1, #-1
	bl	_trap_PointContents
Lloh0:
	adrp	x8, _CONTENTS_NODROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTENTS_NODROP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh3:
	adrp	x21, _level@GOTPAGE
Lloh4:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	ldr	x20, [x8, x9, lsl #3]
	add	x8, x9, #1
Lloh5:
	adrp	x9, _BODY_QUEUE_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BODY_QUEUE_SIZE@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x21]
	mov	x0, x20
	bl	_trap_UnlinkEntity
	ldr	q0, [x19, #48]
	str	q0, [x20, #48]
	ldp	q0, q1, [x19, #64]
	ldp	q2, q3, [x19, #96]
	stp	q2, q3, [x20, #96]
	stp	q0, q1, [x20, #64]
Lloh8:
	adrp	x8, _EF_DEAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EF_DEAD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	xzr, xzr, [x20, #104]
Lloh11:
	adrp	x9, _g_entities@GOTPAGE
Lloh12:
	ldr	x9, [x9, _g_entities@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	sub	x9, x20, x9
	lsr	x9, x9, #3
	mov	w10, #23593
	movk	w10, #49807, lsl #16
	mul	w9, w9, w10
	stp	w8, w9, [x20, #48]
	ldr	x8, [x21, #8]
	str	x8, [x20, #176]
Lloh14:
	adrp	x22, _qtrue@GOTPAGE
Lloh15:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
	ldr	x9, [x22]
	stp	xzr, x9, [x20, #160]
	ldr	x9, [x20, #56]
Lloh16:
	adrp	x10, _ENTITYNUM_NONE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ENTITYNUM_NONE@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh19:
	adrp	x9, _TR_GRAVITY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TR_GRAVITY@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	str	w9, [x20, #76]
	str	x8, [x20, #88]
	ldr	x8, [x19, #152]
	ldr	w0, [x8]
	ldr	w1, [x20, #80]
	bl	_VectorCopy
	b	LBB0_5
LBB0_4:
Lloh22:
	adrp	x8, _TR_STATIONARY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TR_STATIONARY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20, #76]
LBB0_5:
	str	xzr, [x20, #96]
	ldr	w8, [x20, #64]
Lloh25:
	adrp	x9, _ANIM_TOGGLEBIT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ANIM_TOGGLEBIT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	bic	w8, w8, w9
	sub	w8, w8, #129
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.6:
Lloh28:
	adrp	x9, l_switch.table.CopyToBodyQue@PAGE
Lloh29:
	add	x9, x9, l_switch.table.CopyToBodyQue@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_8
LBB0_7:
	mov	w8, #131
LBB0_8:
	stp	w8, w8, [x20, #64]
	ldp	w0, w8, [x19, #40]
	str	w8, [x20, #44]
	ldr	w1, [x20, #40]
	bl	_VectorCopy
	ldr	w0, [x19, #36]
	ldr	w1, [x20, #36]
	bl	_VectorCopy
	ldr	w0, [x19, #32]
	ldr	w1, [x20, #32]
	bl	_VectorCopy
	ldr	w0, [x19, #28]
	ldr	w1, [x20, #28]
	bl	_VectorCopy
Lloh30:
	adrp	x8, _CONTENTS_SOLID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CONTENTS_SOLID@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _CONTENTS_PLAYERCLIP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _CONTENTS_PLAYERCLIP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh36:
	adrp	x8, _CONTENTS_CORPSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CONTENTS_CORPSE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	w8, [x19, #52]
	str	w8, [x20, #16]
	ldr	x8, [x21, #8]
	mov	w9, #5000
	add	x8, x8, x9
	str	x8, [x20, #144]
Lloh39:
	adrp	x8, _BodySink@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BodySink@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _body_die@GOTPAGE
Lloh43:
	ldr	x9, [x9, _body_die@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #136]
	ldr	x8, [x19, #8]
Lloh45:
	adrp	x9, _GIB_HEALTH@GOTPAGE
Lloh46:
	ldr	x9, [x9, _GIB_HEALTH@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
Lloh48:
	adrp	x10, _qfalse@GOTPAGE
Lloh49:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x22, x10, gt
	ldr	x8, [x8]
	str	x8, [x20, #128]
	ldr	w0, [x20, #72]
	ldr	w1, [x20, #20]
	bl	_VectorCopy
	mov	x0, x20
	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
	b	_trap_LinkEntity
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTENTS_NODROP,4,2            ; @CONTENTS_NODROP
	.comm	_level,24,3                     ; @level
	.comm	_BODY_QUEUE_SIZE,4,2            ; @BODY_QUEUE_SIZE
	.comm	_EF_DEAD,4,2                    ; @EF_DEAD
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_ENTITYNUM_NONE,8,3             ; @ENTITYNUM_NONE
	.comm	_TR_GRAVITY,4,2                 ; @TR_GRAVITY
	.comm	_TR_STATIONARY,4,2              ; @TR_STATIONARY
	.comm	_ANIM_TOGGLEBIT,4,2             ; @ANIM_TOGGLEBIT
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.comm	_CONTENTS_PLAYERCLIP,4,2        ; @CONTENTS_PLAYERCLIP
	.comm	_CONTENTS_CORPSE,4,2            ; @CONTENTS_CORPSE
	.comm	_BodySink,4,2                   ; @BodySink
	.comm	_body_die,4,2                   ; @body_die
	.comm	_GIB_HEALTH,8,3                 ; @GIB_HEALTH
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_EF_KAMIKAZE,4,2                ; @EF_KAMIKAZE
	.comm	_MAX_GENTITIES,4,2              ; @MAX_GENTITIES
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.CopyToBodyQue
l_switch.table.CopyToBodyQue:
	.long	132                             ; 0x84
	.long	133                             ; 0x85
	.long	131                             ; 0x83
	.long	132                             ; 0x84
	.long	133                             ; 0x85

.subsections_via_symbols
