	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	movq	_bg_numItems@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_CG_Error
	movq	24(%r14), %rbx
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.3:
	movq	_EF_NODRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r14)
	jne	LBB0_25
## %bb.4:
	movq	_bg_itemlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$4, %rbx
	leaq	(%rdx,%rbx), %r13
	movq	_cg_simpleItems@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%r13), %rax
	movq	_IT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_7:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movsd	40(%r14), %xmm0                 ## xmm0 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movq	_cg@GOTPCREL(%rip), %r12
	movl	$1000, %eax                     ## imm = 0x3E8
	addl	(%r12), %eax
	cvtsi2ss	%eax, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	callq	_cos
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r14), %rcx
	movl	8(%rcx), %edx
	leal	(%rdx,%rax,4), %eax
	addl	$4, %eax
	movl	%eax, 8(%rcx)
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	_IT_HEALTH@GOTPCREL(%rip), %rsi
	leaq	8(%r12), %rcx
	leaq	24(%r12), %rdx
	leaq	16(%r12), %r8
	leaq	32(%r12), %r15
	cmpq	(%rsi), %rax
	cmoveq	%rcx, %rdx
	movq	(%rdx), %rdi
	movq	8(%r14), %rsi
	cmoveq	%r8, %r15
	callq	_VectorCopy
	movq	(%r15), %rdi
	movq	%r13, %r15
	movq	-104(%rbp), %rsi
	callq	_AxisCopy
	movq	(%r13), %rax
	movq	_IT_WEAPON@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.9:
	movq	_cg_weapons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx,%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	-104(%rbp), %rsi
	movq	(%rsi), %r8
	movq	8(%rsi), %r9
	movl	(%r8), %ebx
	movl	(%r9), %ecx
	movq	16(%rsi), %rsi
	movl	(%rsi), %edx
	imull	(%rax), %ebx
	imull	4(%rax), %ecx
	movq	(%r14), %rdi
	addl	%ebx, %ecx
	imull	8(%rax), %edx
	addl	%ecx, %edx
	subl	%edx, (%rdi)
	movl	4(%r8), %ecx
	movl	4(%r9), %edx
	imull	(%rax), %ecx
	imull	4(%rax), %edx
	movl	4(%rsi), %ebx
	addl	%ecx, %edx
	imull	8(%rax), %ebx
	addl	%edx, %ebx
	subl	%ebx, 4(%rdi)
	movl	8(%r8), %ecx
	movl	8(%r9), %edx
	movl	8(%rsi), %esi
	imull	(%rax), %ecx
	imull	4(%rax), %edx
	movl	8(%rdi), %ebx
	addl	%ecx, %edx
	imull	8(%rax), %esi
	addl	%edx, %esi
	negl	%esi
	leal	(%rbx,%rsi), %eax
	addl	$8, %eax
	movl	%eax, 8(%rdi)
	jmp	LBB0_10
LBB0_8:
	movq	(%r14), %rdi
LBB0_10:
	movq	_cg_simpleItems@GOTPCREL(%rip), %r13
	movq	_cg@GOTPCREL(%rip), %rbx
	movq	_cg_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	-128(%rbp), %rsi
	callq	_VectorCopy
	movq	(%r14), %rdi
	movq	-96(%rbp), %rsi
	callq	_VectorCopy
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	(%rbx), %eax
	subl	16(%r14), %eax
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	js	LBB0_13
## %bb.11:
	movq	_ITEM_SCALEUP_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_13
## %bb.12:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	divss	%xmm1, %xmm0
	movss	%xmm0, -48(%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	-48(%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	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rdi, %rsi
	callq	_VectorScale
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
LBB0_13:
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	(%r15), %rax
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_15
## %bb.14:
	movq	_IT_ARMOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_16
LBB0_15:
	movq	_RF_MINLIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, -64(%rbp)
LBB0_16:
	cmpq	%rcx, %rax
	jne	LBB0_18
## %bb.17:
	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_18:
	leaq	-128(%rbp), %rdi
	callq	_trap_R_AddRefEntityToScene
	cmpq	$0, (%r13)
	jne	LBB0_25
## %bb.19:
	callq	_VectorClear
	movq	(%r15), %rax
	movq	_IT_HEALTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.20:
	movq	_IT_POWERUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
LBB0_21:
	movq	_cg_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movq	-104(%rbp), %rsi
	callq	_AnglesToAxis
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_3(%rip), %xmm0
	jne	LBB0_23
	jnp	LBB0_24
LBB0_23:
	movq	-104(%rbp), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	callq	_VectorScale
	movq	-104(%rbp), %rax
	movq	8(%rax), %rdi
	movss	-48(%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	-48(%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_24
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	(%r14), %rdi
	movq	-128(%rbp), %rsi
	callq	_VectorCopy
	movl	$14, -120(%rbp)
	movq	_cg_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %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_24:
	leaq	-128(%rbp), %rdi
	callq	_trap_R_AddRefEntityToScene
LBB0_25:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_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	_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	_IT_POWERUP,8,3                 ## @IT_POWERUP
	.comm	_HI_KAMIKAZE,8,3                ## @HI_KAMIKAZE
	.comm	_IT_HOLDABLE,8,3                ## @IT_HOLDABLE
	.comm	_cgs,4,2                        ## @cgs
	.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, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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_25
; %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_25
; %bb.4:
Lloh8:
	adrp	x8, _bg_itemlist@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bg_itemlist@GOTPAGEOFF]
Lloh10:
	ldr	x26, [x8]
	add	x21, x26, x20, lsl #4
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_23
LBB0_6:
	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
Lloh16:
	adrp	x24, _cg@GOTPAGE
Lloh17:
	ldr	x24, [x24, _cg@GOTPAGEOFF]
	mov	x25, x24
	ldr	w8, [x25], #8
	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]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	ldr	x8, [x21]
Lloh18:
	adrp	x23, _IT_HEALTH@GOTPAGE
Lloh19:
	ldr	x23, [x23, _IT_HEALTH@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x10, x24, #24
	cmp	x8, x9
	csel	x8, x25, x10, eq
	ldr	x0, [x8]
	ldr	x1, [x19, #8]
	add	x8, x24, #16
	add	x9, x24, #32
	csel	x25, x8, x9, eq
	bl	_VectorCopy
	ldr	x0, [x25]
	ldr	x1, [sp, #24]
	bl	_AxisCopy
	ldr	x8, [x21]
Lloh20:
	adrp	x25, _IT_WEAPON@GOTPAGE
Lloh21:
	ldr	x25, [x25, _IT_WEAPON@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh22:
	adrp	x8, _cg_weapons@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cg_weapons@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x9, x26, x20, lsl #4
	ldr	x9, [x9, #8]
	mov	w10, #24
	mul	x9, x9, x10
	ldr	x8, [x8, x9]
	ldr	x9, [sp, #24]
	ldp	x10, x11, [x9]
	ldr	w12, [x10]
	ldp	w13, w14, [x8]
	ldr	w15, [x11]
	ldr	w16, [x8, #8]
	ldr	x9, [x9, #16]
	ldr	w17, [x9]
	ldr	x0, [x19]
	mul	w12, w12, w13
	madd	w12, w15, w14, w12
	madd	w12, w17, w16, w12
	ldp	w13, w14, [x0]
	sub	w12, w13, w12
	str	w12, [x0]
	ldr	w12, [x10, #4]
	ldp	w13, w15, [x8]
	ldr	w16, [x11, #4]
	ldr	w17, [x8, #8]
	ldr	w1, [x9, #4]
	mul	w12, w12, w13
	madd	w12, w16, w15, w12
	madd	w12, w1, w17, w12
	sub	w12, w14, w12
	str	w12, [x0, #4]
	ldr	w10, [x10, #8]
	ldp	w12, w13, [x8]
	ldr	w11, [x11, #8]
	ldr	w8, [x8, #8]
	ldr	w9, [x9, #8]
	ldr	w14, [x0, #8]
	mul	w10, w10, w12
	madd	w10, w11, w13, w10
	madd	w8, w9, w8, w10
	sub	w8, w14, w8
	add	w8, w8, #8
	str	w8, [x0, #8]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x19]
LBB0_9:
Lloh25:
	adrp	x20, _cg_items@GOTPAGE
Lloh26:
	ldr	x20, [x20, _cg_items@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19, #24]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x1, [sp]
	bl	_VectorCopy
	ldr	x0, [x19]
	ldr	x1, [sp, #32]
	bl	_VectorCopy
Lloh27:
	adrp	x8, _qfalse@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [sp, #48]
	ldr	w8, [x24]
	ldr	w9, [x19, #16]
	fmov	s8, #1.00000000
	subs	w8, w8, w9
	b.mi	LBB0_12
; %bb.10:
Lloh30:
	adrp	x9, _ITEM_SCALEUP_TIME@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ITEM_SCALEUP_TIME@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_12
; %bb.11:
	scvtf	s0, w8
	scvtf	s1, w9
	fdiv	s8, s0, s1
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #16]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
Lloh33:
	adrp	x8, _qtrue@GOTPAGE
Lloh34:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [sp, #48]
LBB0_12:
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
Lloh36:
	adrp	x10, _IT_ARMOR@GOTPAGE
Lloh37:
	ldr	x10, [x10, _IT_ARMOR@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_15
LBB0_14:
Lloh39:
	adrp	x10, _RF_MINLIGHT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _RF_MINLIGHT@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	ldr	w11, [sp, #64]
	orr	w10, w11, w10
	str	w10, [sp, #64]
LBB0_15:
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	fmov	s0, #1.50000000
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #8]
	fmov	s0, #1.50000000
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #16]
	fmov	s0, #1.50000000
	mov	x1, x0
	bl	_VectorScale
Lloh42:
	adrp	x8, _qtrue@GOTPAGE
Lloh43:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	str	x8, [sp, #48]
LBB0_17:
	mov	x0, sp
	bl	_trap_R_AddRefEntityToScene
	ldr	x8, [x22]
	cbnz	x8, LBB0_25
; %bb.18:
	bl	_VectorClear
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.19:
Lloh45:
	adrp	x9, _IT_POWERUP@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IT_POWERUP@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
LBB0_20:
	ldr	x8, [x20]
	ldr	x9, [x19, #24]
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	ldr	x8, [x8, #8]
	str	x8, [sp, #56]
	cbz	x8, LBB0_25
; %bb.21:
	ldr	x1, [sp, #24]
	bl	_AnglesToAxis
	fmov	s0, #1.00000000
	fcmp	s8, s0
	b.eq	LBB0_24
; %bb.22:
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #8]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #16]
	fmov	s0, s8
	mov	x1, x0
	bl	_VectorScale
Lloh48:
	adrp	x8, _qtrue@GOTPAGE
Lloh49:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	str	x8, [sp, #48]
	b	LBB0_24
LBB0_23:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh51:
	adrp	x8, _RT_SPRITE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _RT_SPRITE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [sp, #76]
	ldr	x0, [x19]
	ldr	x1, [sp]
	bl	_VectorCopy
	mov	w8, #14
	str	w8, [sp, #8]
Lloh54:
	adrp	x8, _cg_items@GOTPAGE
Lloh55:
	ldr	x8, [x8, _cg_items@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [sp, #72]
	ldr	x8, [sp, #16]
	movi.2d	v0, #0x0000ff000000ff
	str	q0, [x8]
LBB0_24:
	mov	x0, sp
	bl	_trap_R_AddRefEntityToScene
LBB0_25:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.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	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.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	_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	_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	_IT_POWERUP,8,3                 ; @IT_POWERUP
	.comm	_HI_KAMIKAZE,8,3                ; @HI_KAMIKAZE
	.comm	_IT_HOLDABLE,8,3                ; @IT_HOLDABLE
	.comm	_cgs,4,2                        ; @cgs
	.comm	_vec3_origin,4,2                ; @vec3_origin
	.no_dead_strip	_CG_Item
.subsections_via_symbols
