	.file	"extr_cg_view.c_CG_PowerupTimerSounds.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CG_PowerupTimerSounds, @function
CG_PowerupTimerSounds:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MAX_POWERUPS[rip]
	test	eax, eax
	jle	.L7
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rbp, cg[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r8, QWORD PTR cg[rip+8]
	mov	rax, QWORD PTR [r8]
	mov	ecx, DWORD PTR [rax+rbx*4]
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, ecx
	jge	.L3
	mov	edi, DWORD PTR POWERUP_BLINK_TIME[rip]
	mov	edx, DWORD PTR POWERUP_BLINKS[rip]
	mov	esi, ecx
	sub	esi, eax
	imul	edx, edi
	mov	eax, esi
	cmp	esi, edx
	jge	.L3
	cdq
	idiv	edi
	mov	esi, eax
	mov	eax, ecx
	sub	eax, DWORD PTR cg[rip+4]
	cdq
	idiv	edi
	cmp	esi, eax
	je	.L3
	mov	esi, DWORD PTR 8[r8]
	mov	ecx, DWORD PTR cgs[rip]
	xor	edi, edi
	mov	edx, DWORD PTR CHAN_ITEM[rip]
	call	trap_S_StartSound@PLT
.L3:
	add	rbx, 1
	cmp	DWORD PTR MAX_POWERUPS[rip], ebx
	jg	.L4
	add	rsp, 8
	.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
.L7:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	CG_PowerupTimerSounds, .-CG_PowerupTimerSounds
	.comm	cgs,4,4
	.comm	cg,16,16
	.comm	POWERUP_BLINK_TIME,4,4
	.comm	POWERUP_BLINKS,4,4
	.comm	MAX_POWERUPS,4,4
	.comm	CHAN_ITEM,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_view.c_CG_PowerupTimerSounds.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_PowerupTimerSounds, %function
CG_PowerupTimerSounds:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L8
	ldr	r3, [r7]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r4, #0
	ldr	r6, .L8+4
	ldr	r9, .L8+8
	ldr	r8, .L8+12
.L4:
	ldr	r10, [r6, #8]
	ldr	r3, [r6]
	ldr	r1, [r10]
	ldr	r5, [r1, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r5
	sub	r0, r5, r3
	bge	.L3
	ldr	fp, [r9]
	ldr	r3, [r8]
	mul	r3, fp, r3
	cmp	r0, r3
	bge	.L3
	mov	r1, fp
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r0, [r6, #4]
	mov	r1, fp
	sub	r0, r5, r0
	mov	r5, r3
	bl	__aeabi_idiv
	cmp	r5, r0
	beq	.L3
	ldr	r3, .L8+16
	ldr	r2, .L8+20
	mov	r0, #0
	ldr	r1, [r10, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	trap_S_StartSound
.L3:
	ldr	r3, [r7]
	cmp	r3, r4
	bgt	.L4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	MAX_POWERUPS
	.word	cg
	.word	POWERUP_BLINK_TIME
	.word	POWERUP_BLINKS
	.word	cgs
	.word	CHAN_ITEM
	.size	CG_PowerupTimerSounds, .-CG_PowerupTimerSounds
	.comm	cgs,4,4
	.comm	cg,12,4
	.comm	POWERUP_BLINK_TIME,4,4
	.comm	POWERUP_BLINKS,4,4
	.comm	MAX_POWERUPS,4,4
	.comm	CHAN_ITEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
