	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CG_Item
LCPI0_0:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ee4f8b588e368f1              ## double 1.0000000000000001E-5
LCPI0_2:
	.quad	0x3f747ae147ae147b              ## double 0.0050000000000000001
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_3:
	.long	0x3f800000                      ## float 1
LCPI0_4:
	.long	0x3fc00000                      ## float 1.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_Item:                               ## @CG_Item
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rsi
	movq	_bg_numItems@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_CG_Error
	movq	24(%rbx), %rsi
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.3:
	movq	_EF_NODRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rbx)
	jne	LBB0_36
## %bb.4:
	movq	_bg_itemlist@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	(%rsi,%rsi,2), %r12
	leaq	(%r14,%r12,8), %r15
	movq	_cg_simpleItems@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	movq	_IT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_7:
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	8(%r14,%r12,8), %rax
	movq	_MOVE_TYPE_BOB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:
	movsd	40(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movq	_cg@GOTPCREL(%rip), %r13
	movl	$1000, %eax                     ## imm = 0x3E8
	addl	(%r13), %eax
	cvtsi2ss	%eax, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	callq	_cos
                                        ## kill: def $eax killed $eax def $rax
	movq	(%rbx), %rcx
	movl	8(%rcx), %edx
	leal	(%rdx,%rax,4), %eax
	addl	$4, %eax
	movl	%eax, 8(%rcx)
	movq	(%r15), %rax
	movq	_IT_HEALTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	8(%r13), %rdi
	movq	8(%rbx), %rsi
	callq	_VectorCopy
	movl	36(%r13), %edi
	jmp	LBB0_10
LBB0_12:
	movq	(%rbx), %rax
	addl	$4, 8(%rax)
	movq	48(%rbx), %rdi
	movq	-104(%rbp), %rsi
	callq	_AnglesToAxis
	jmp	LBB0_13
LBB0_6:
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_RT_SPRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%rbx), %rdi
	movq	-128(%rbp), %rsi
	callq	_VectorCopy
	movl	$14, -120(%rbp)
	movq	_cg_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rbx), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %eax
	movl	%eax, -56(%rbp)
	movq	-112(%rbp), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, (%rax)
LBB0_35:
	leaq	-128(%rbp), %rdi
	callq	_trap_R_AddRefEntityToScene
	jmp	LBB0_36
LBB0_11:
	movq	16(%r13), %rdi
	movq	8(%rbx), %rsi
	callq	_VectorCopy
	movl	32(%r13), %edi
LBB0_10:
	movq	-104(%rbp), %rsi
	callq	_AxisCopy
LBB0_13:
	movq	(%r15), %rax
	movq	_IT_WEAPON@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_14
## %bb.15:
	movq	_cg_weapons@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	16(%r14,%r12,8), %r8
	leaq	(%r8,%r8,2), %r10
	movq	(%r9,%r10,8), %rcx
	movq	-104(%rbp), %rdx
	movq	(%rdx), %r11
	movq	8(%rdx), %r12
	movl	(%r11), %eax
	movl	(%r12), %esi
	movq	16(%rdx), %rdi
	movl	(%rdi), %edx
	imull	(%rcx), %eax
	imull	4(%rcx), %esi
	addl	%eax, %esi
	movq	(%rbx), %rax
	imull	8(%rcx), %edx
	addl	%esi, %edx
	subl	%edx, (%rax)
	movl	4(%r11), %edx
	movl	4(%r12), %esi
	imull	(%rcx), %edx
	imull	4(%rcx), %esi
	addl	%edx, %esi
	movl	4(%rdi), %edx
	imull	8(%rcx), %edx
	addl	%esi, %edx
	subl	%edx, 4(%rax)
	leaq	(%r9,%r10,8), %r14
	movl	8(%r11), %edx
	movl	8(%r12), %esi
	movl	8(%rdi), %edi
	movl	8(%rax), %r9d
	imull	(%rcx), %edx
	imull	4(%rcx), %esi
	imull	8(%rcx), %edi
	addl	%edx, %esi
	addl	%esi, %edi
	negl	%edi
	leal	(%r9,%rdi), %ecx
	addl	$8, %ecx
	movl	%ecx, 8(%rax)
	movq	_WP_RAILGUN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_17
## %bb.16:
	movq	_cgs@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movq	_cg@GOTPCREL(%rip), %rcx
	movq	24(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	-112(%rbp), %rsi
	callq	_Byte4Copy
	jmp	LBB0_17
LBB0_14:
	xorl	%r14d, %r14d
LBB0_17:
	movq	_cg_items@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	24(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	(%rbx), %rdi
	movq	-128(%rbp), %rsi
	callq	_VectorCopy
	movq	(%rbx), %rdi
	movq	-96(%rbp), %rsi
	callq	_VectorCopy
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_cg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	16(%rbx), %eax
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	js	LBB0_20
## %bb.18:
	movq	_ITEM_SCALEUP_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_20
## %bb.19:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	divss	%xmm1, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	-104(%rbp), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	-104(%rbp), %rax
	movq	8(%rax), %rdi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	-104(%rbp), %rax
	movq	16(%rax), %rdi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
LBB0_20:
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	(%r15), %rax
	movq	(%r13), %rcx
	cmpq	%rcx, %rax
	je	LBB0_22
## %bb.21:
	movq	_IT_ARMOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_23
LBB0_22:
	movq	_RF_MINLIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, -64(%rbp)
LBB0_23:
	cmpq	%rcx, %rax
	jne	LBB0_25
## %bb.24:
	movq	-104(%rbp), %rax
	movq	(%rax), %rdi
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	-104(%rbp), %rax
	movq	8(%rax), %rdi
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	-104(%rbp), %rax
	movq	16(%rax), %rdi
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
LBB0_25:
	leaq	-128(%rbp), %rdi
	callq	_trap_R_AddRefEntityToScene
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_29
## %bb.26:
	testq	%r14, %r14
	je	LBB0_29
## %bb.27:
	cmpq	$0, 16(%r14)
	jne	LBB0_28
LBB0_29:
	movq	_cg_simpleItems@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_36
## %bb.30:
	callq	_VectorClear
	movq	(%r15), %rax
	movq	_IT_HEALTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.31:
	movq	_IT_POWERUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
LBB0_32:
	movq	(%r12), %rax
	movq	24(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_36
## %bb.33:
	movq	-104(%rbp), %rsi
	callq	_AnglesToAxis
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_3(%rip), %xmm0
	jne	LBB0_34
	jnp	LBB0_35
LBB0_34:
	movq	-104(%rbp), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	-104(%rbp), %rax
	movq	8(%rax), %rdi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	-104(%rbp), %rax
	movq	16(%rax), %rdi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	jmp	LBB0_35
LBB0_28:
	addq	$16, %r14
	leaq	-208(%rbp), %rdi
	leaq	-128(%rbp), %rdx
	movq	%r14, %rsi
	callq	_CG_Item.cold.1
LBB0_36:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function CG_Item.cold.1
_CG_Item.cold.1:                        ## @CG_Item.cold.1
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	pushq	$80
	popq	%rdx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r15), %rax
	movq	%rax, 56(%rbx)
	movq	40(%r14), %rdi
	movq	40(%rbx), %rsi
	callq	_VectorCopy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_bg_numItems,8,3                ## @bg_numItems
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad item index %i on entity"

	.comm	_EF_NODRAW,4,2                  ## @EF_NODRAW
	.comm	_bg_itemlist,8,3                ## @bg_itemlist
	.comm	_cg_simpleItems,8,3             ## @cg_simpleItems
	.comm	_IT_TEAM,8,3                    ## @IT_TEAM
	.comm	_RT_SPRITE,4,2                  ## @RT_SPRITE
	.comm	_cg_items,8,3                   ## @cg_items
	.comm	_MOVE_TYPE_BOB,8,3              ## @MOVE_TYPE_BOB
	.comm	_cg,40,3                        ## @cg
	.comm	_IT_HEALTH,8,3                  ## @IT_HEALTH
	.comm	_IT_WEAPON,8,3                  ## @IT_WEAPON
	.comm	_cg_weapons,8,3                 ## @cg_weapons
	.comm	_WP_RAILGUN,8,3                 ## @WP_RAILGUN
	.comm	_cgs,16,3                       ## @cgs
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_ITEM_SCALEUP_TIME,4,2          ## @ITEM_SCALEUP_TIME
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_IT_ARMOR,8,3                   ## @IT_ARMOR
	.comm	_RF_MINLIGHT,4,2                ## @RF_MINLIGHT
	.comm	_YAW,8,3                        ## @YAW
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_ROLL,8,3                       ## @ROLL
	.comm	_IT_POWERUP,8,3                 ## @IT_POWERUP
	.comm	_HI_KAMIKAZE,8,3                ## @HI_KAMIKAZE
	.comm	_IT_HOLDABLE,8,3                ## @IT_HOLDABLE
	.comm	_vec3_origin,4,2                ## @vec3_origin
	.no_dead_strip	_CG_Item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_Item
_CG_Item:                               ; @CG_Item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	d9, d8, [sp, #160]              ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x8, _bg_numItems@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bg_numItems@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_CG_Error
	ldr	x20, [x19, #24]
LBB0_2:
	cbz	x20, LBB0_35
; %bb.3:
	ldr	w8, [x19, #32]
Lloh5:
	adrp	x9, _EF_NODRAW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EF_NODRAW@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_35
; %bb.4:
Lloh8:
	adrp	x8, _bg_itemlist@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bg_itemlist@GOTPAGEOFF]
Lloh10:
	ldr	x25, [x8]
	mov	w8, #24
	madd	x21, x20, x8, x25
Lloh11:
	adrp	x22, _cg_simpleItems@GOTPAGE
Lloh12:
	ldr	x22, [x22, _cg_simpleItems@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _IT_TEAM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IT_TEAM@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_6:
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	mov	w8, #24
	madd	x8, x20, x8, x25
	ldr	x8, [x8, #8]
Lloh16:
	adrp	x9, _MOVE_TYPE_BOB@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MOVE_TYPE_BOB@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x24, _cg@GOTPAGE
Lloh20:
	ldr	x24, [x24, _cg@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	d0, [x19, #40]
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16244, lsl #48
	fmov	d1, x8
	mov	x8, #26865
	movk	x8, #35043, lsl #16
	movk	x8, #63669, lsl #32
	movk	x8, #16100, lsl #48
	fmov	d2, x8
	fmadd	d0, d0, d2, d1
	fcvt	s0, d0
	ldr	w8, [x24]
	add	w8, w8, #1000
	scvtf	s1, w8
	fmul	s0, s0, s1
	fcvtzs	w0, s0
	bl	_cos
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	add	w9, w9, w0, lsl #2
	add	w9, w9, #4
	str	w9, [x8, #8]
	ldr	x8, [x21]
Lloh21:
	adrp	x9, _IT_HEALTH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IT_HEALTH@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
	ldr	x0, [x24, #8]
	ldr	x1, [x19, #8]
	bl	_VectorCopy
	ldr	w0, [x24, #36]
	b	LBB0_13
LBB0_9:
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	add	w9, w9, #4
	str	w9, [x8, #8]
	ldr	x0, [x19, #48]
	ldr	x1, [sp, #104]
	bl	_AnglesToAxis
	b	LBB0_14
LBB0_10:
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh24:
	adrp	x8, _RT_SPRITE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RT_SPRITE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #156]
	ldr	x0, [x19]
	ldr	x1, [sp, #80]
	bl	_VectorCopy
	mov	w8, #14
	str	w8, [sp, #88]
Lloh27:
	adrp	x8, _cg_items@GOTPAGE
Lloh28:
	ldr	x8, [x8, _cg_items@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [sp, #152]
	ldr	x8, [sp, #96]
	movi.2d	v0, #0x0000ff000000ff
	str	q0, [x8]
LBB0_11:
	add	x0, sp, #80
	bl	_trap_R_AddRefEntityToScene
	b	LBB0_35
LBB0_12:
	ldr	x0, [x24, #16]
	ldr	x1, [x19, #8]
	bl	_VectorCopy
	ldr	w0, [x24, #32]
LBB0_13:
	ldr	x1, [sp, #104]
	bl	_AxisCopy
LBB0_14:
	ldr	x8, [x21]
Lloh30:
	adrp	x23, _IT_WEAPON@GOTPAGE
Lloh31:
	ldr	x23, [x23, _IT_WEAPON@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
Lloh32:
	adrp	x8, _cg_weapons@GOTPAGE
Lloh33:
	ldr	x8, [x8, _cg_weapons@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x10, x20, x9, x25
	ldr	x10, [x10, #16]
	madd	x20, x10, x9, x8
	ldr	x8, [x20]
	ldr	x9, [sp, #104]
	ldp	x11, x12, [x9]
	ldr	w13, [x11]
	ldp	w14, w15, [x8]
	ldr	w16, [x12]
	ldr	w17, [x8, #8]
	ldr	x9, [x9, #16]
	ldr	w0, [x9]
	ldr	x1, [x19]
	mul	w13, w13, w14
	madd	w13, w16, w15, w13
	madd	w13, w0, w17, w13
	ldp	w14, w15, [x1]
	sub	w13, w14, w13
	str	w13, [x1]
	ldr	w13, [x11, #4]
	ldp	w14, w16, [x8]
	ldr	w17, [x12, #4]
	ldr	w0, [x8, #8]
	ldr	w2, [x9, #4]
	mul	w13, w13, w14
	madd	w13, w17, w16, w13
	madd	w13, w2, w0, w13
	sub	w13, w15, w13
	str	w13, [x1, #4]
	ldr	w11, [x11, #8]
	ldp	w13, w14, [x8]
	ldr	w12, [x12, #8]
	ldr	w8, [x8, #8]
	ldr	w9, [x9, #8]
	ldr	w15, [x1, #8]
	mul	w11, w11, w13
	madd	w11, w12, w14, w11
	madd	w8, w9, w8, w11
	sub	w8, w15, w8
	add	w8, w8, #8
	str	w8, [x1, #8]
Lloh35:
	adrp	x8, _WP_RAILGUN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WP_RAILGUN@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_18
; %bb.16:
Lloh38:
	adrp	x8, _cgs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8, #8]
	ldr	x9, [x24, #24]
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	ldr	x1, [sp, #96]
	bl	_Byte4Copy
	b	LBB0_18
LBB0_17:
	mov	x20, #0
LBB0_18:
Lloh41:
	adrp	x25, _cg_items@GOTPAGE
Lloh42:
	ldr	x25, [x25, _cg_items@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x9, [x19, #24]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	ldr	x8, [x8]
	str	x8, [sp, #136]
	ldr	x0, [x19]
	ldr	x1, [sp, #80]
	bl	_VectorCopy
	ldr	x0, [x19]
	ldr	x1, [sp, #112]
	bl	_VectorCopy
Lloh43:
	adrp	x8, _qfalse@GOTPAGE
Lloh44:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	str	x8, [sp, #128]
	ldr	w8, [x24]
	ldr	w9, [x19, #16]
	fmov	s8, #1.00000000
	subs	w8, w8, w9
	b.mi	LBB0_21
; %bb.19:
Lloh46:
	adrp	x9, _ITEM_SCALEUP_TIME@GOTPAGE
Lloh47:
	ldr	x9, [x9, _ITEM_SCALEUP_TIME@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_21
; %bb.20:
	scvtf	s0, w8
	scvtf	s1, w9
	fdiv	s8, s0, s1
	ldr	x8, [sp, #104]
	ldr	x0, [x8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #104]
	ldr	x0, [x8, #8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #104]
	ldr	x0, [x8, #16]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
Lloh49:
	adrp	x8, _qtrue@GOTPAGE
Lloh50:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	str	x8, [sp, #128]
LBB0_21:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.22:
Lloh52:
	adrp	x10, _IT_ARMOR@GOTPAGE
Lloh53:
	ldr	x10, [x10, _IT_ARMOR@GOTPAGEOFF]
Lloh54:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_24
LBB0_23:
Lloh55:
	adrp	x10, _RF_MINLIGHT@GOTPAGE
Lloh56:
	ldr	x10, [x10, _RF_MINLIGHT@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	ldr	w11, [sp, #144]
	orr	w10, w11, w10
	str	w10, [sp, #144]
LBB0_24:
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
	ldr	x8, [sp, #104]
	ldr	x0, [x8]
	fmov	s0, #1.50000000
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #104]
	ldr	x0, [x8, #8]
	fmov	s0, #1.50000000
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #104]
	ldr	x0, [x8, #16]
	fmov	s0, #1.50000000
	mov	x1, x0
	bl	_VectorScale
Lloh58:
	adrp	x8, _qtrue@GOTPAGE
Lloh59:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	str	x8, [sp, #128]
LBB0_26:
	add	x0, sp, #80
	bl	_trap_R_AddRefEntityToScene
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.27:
	cbz	x20, LBB0_29
; %bb.28:
	ldr	x8, [x20, #16]!
	cbnz	x8, LBB0_36
LBB0_29:
	ldr	x8, [x22]
	cbnz	x8, LBB0_35
; %bb.30:
	bl	_VectorClear
	ldr	x8, [x21]
Lloh61:
	adrp	x9, _IT_HEALTH@GOTPAGE
Lloh62:
	ldr	x9, [x9, _IT_HEALTH@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_32
; %bb.31:
Lloh64:
	adrp	x9, _IT_POWERUP@GOTPAGE
Lloh65:
	ldr	x9, [x9, _IT_POWERUP@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_35
LBB0_32:
	ldr	x8, [x25]
	ldr	x9, [x19, #24]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	ldr	x8, [x8, #8]
	str	x8, [sp, #136]
	cbz	x8, LBB0_35
; %bb.33:
	ldr	x1, [sp, #104]
	bl	_AnglesToAxis
	fmov	s0, #1.00000000
	fcmp	s8, s0
	b.eq	LBB0_11
; %bb.34:
	ldr	x8, [sp, #104]
	ldr	x0, [x8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #104]
	ldr	x0, [x8, #8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #104]
	ldr	x0, [x8, #16]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
Lloh67:
	adrp	x8, _qtrue@GOTPAGE
Lloh68:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	str	x8, [sp, #128]
	b	LBB0_11
LBB0_35:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #160]              ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_36:
	mov	x0, sp
	add	x2, sp, #80
	mov	x1, x20
	bl	_CG_Item.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function CG_Item.cold.1
_CG_Item.cold.1:                        ; @CG_Item.cold.1
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	ldr	x8, [x20]
	str	x8, [x21, #56]
	ldr	x0, [x19, #40]
	ldr	x1, [x21, #40]
	bl	_VectorCopy
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_bg_numItems,8,3                ; @bg_numItems
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad item index %i on entity"

	.comm	_EF_NODRAW,4,2                  ; @EF_NODRAW
	.comm	_bg_itemlist,8,3                ; @bg_itemlist
	.comm	_cg_simpleItems,8,3             ; @cg_simpleItems
	.comm	_IT_TEAM,8,3                    ; @IT_TEAM
	.comm	_RT_SPRITE,4,2                  ; @RT_SPRITE
	.comm	_cg_items,8,3                   ; @cg_items
	.comm	_MOVE_TYPE_BOB,8,3              ; @MOVE_TYPE_BOB
	.comm	_cg,40,3                        ; @cg
	.comm	_IT_HEALTH,8,3                  ; @IT_HEALTH
	.comm	_IT_WEAPON,8,3                  ; @IT_WEAPON
	.comm	_cg_weapons,8,3                 ; @cg_weapons
	.comm	_WP_RAILGUN,8,3                 ; @WP_RAILGUN
	.comm	_cgs,16,3                       ; @cgs
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_ITEM_SCALEUP_TIME,4,2          ; @ITEM_SCALEUP_TIME
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_IT_ARMOR,8,3                   ; @IT_ARMOR
	.comm	_RF_MINLIGHT,4,2                ; @RF_MINLIGHT
	.comm	_YAW,8,3                        ; @YAW
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_ROLL,8,3                       ; @ROLL
	.comm	_IT_POWERUP,8,3                 ; @IT_POWERUP
	.comm	_HI_KAMIKAZE,8,3                ; @HI_KAMIKAZE
	.comm	_IT_HOLDABLE,8,3                ; @IT_HOLDABLE
	.comm	_vec3_origin,4,2                ; @vec3_origin
	.no_dead_strip	_CG_Item
.subsections_via_symbols
