	.file	"extr_snd_dma.c_S_FreeOldestSound.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"S_FreeOldestSound: freeing sound %s\n"
	.text
	.p2align 4
	.globl	S_FreeOldestSound
	.type	S_FreeOldestSound, @function
S_FreeOldestSound:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	Com_Milliseconds@PLT
	mov	edi, DWORD PTR s_numSfx[rip]
	cmp	edi, 1
	jle	.L2
	mov	r8, QWORD PTR s_knownSfx[rip]
	xor	ebp, ebp
	mov	ecx, 1
	lea	rdx, 32[r8]
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR 16[rdx], 0
	je	.L3
	mov	esi, DWORD PTR [rdx]
	cmp	esi, eax
	jge	.L3
	movsx	rbp, ecx
	mov	eax, esi
.L3:
	add	ecx, 1
	add	rdx, 32
	cmp	ecx, edi
	jne	.L4
	sal	rbp, 5
	add	rbp, r8
.L5:
	mov	esi, DWORD PTR 24[rbp]
	lea	rdi, .LC0[rip]
	call	Com_DPrintf@PLT
	mov	rbx, QWORD PTR 8[rbp]
	test	rbx, rbx
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbx
	mov	rbx, QWORD PTR [rbx]
	call	SND_free@PLT
	test	rbx, rbx
	jne	.L6
.L7:
	mov	rax, QWORD PTR qfalse[rip]
	mov	QWORD PTR 8[rbp], 0
	mov	QWORD PTR 16[rbp], rax
	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
.L2:
	.cfi_restore_state
	mov	rbp, QWORD PTR s_knownSfx[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	S_FreeOldestSound, .-S_FreeOldestSound
	.comm	s_numSfx,4,4
	.comm	s_knownSfx,8,8
	.comm	qfalse,8,8
	.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_snd_dma.c_S_FreeOldestSound.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"S_FreeOldestSound: freeing sound %s\012\000"
	.text
	.align	2
	.global	S_FreeOldestSound
	.syntax unified
	.arm
	.fpu softvfp
	.type	S_FreeOldestSound, %function
S_FreeOldestSound:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	Com_Milliseconds
	ldr	r3, .L17
	ldr	ip, [r3]
	cmp	ip, #1
	ble	.L2
	mov	r5, #0
	mov	r3, #1
	ldr	r2, .L17+4
	ldr	r1, [r2]
	add	lr, r1, #8
.L4:
	ldr	r2, [lr, r3, lsl #4]
	cmp	r2, #0
	beq	.L3
	ldr	r2, [r1, r3, lsl #4]
	cmp	r2, r0
	movlt	r5, r3
	movlt	r0, r2
.L3:
	add	r3, r3, #1
	cmp	r3, ip
	bne	.L4
	add	r5, r1, r5, lsl #4
.L5:
	ldr	r1, [r5, #12]
	ldr	r0, .L17+8
	bl	Com_DPrintf
	ldr	r4, [r5, #4]
	cmp	r4, #0
	beq	.L7
.L6:
	mov	r0, r4
	ldr	r4, [r4]
	bl	SND_free
	cmp	r4, #0
	bne	.L6
.L7:
	mov	r2, #0
	ldr	r3, .L17+12
	str	r2, [r5, #4]
	ldr	r3, [r3]
	str	r3, [r5, #8]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L17+4
	ldr	r5, [r3]
	b	.L5
.L18:
	.align	2
.L17:
	.word	s_numSfx
	.word	s_knownSfx
	.word	.LC0
	.word	qfalse
	.size	S_FreeOldestSound, .-S_FreeOldestSound
	.comm	s_numSfx,4,4
	.comm	s_knownSfx,4,4
	.comm	qfalse,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
