	.file	"extr_audio.c_check_for_elapsed_periods.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	check_for_elapsed_periods, @function
check_for_elapsed_periods:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L13
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	add	r13, QWORD PTR 16[r15]
	cmp	DWORD PTR 0[r13], r12d
	jge	.L17
.L4:
	add	rbx, 1
	cmp	DWORD PTR [r15], ebx
	jle	.L18
.L2:
	mov	rbp, QWORD PTR [r14+rbx*8]
	test	rbp, rbp
	je	.L4
	mov	rdi, rbp
	lea	r13, 0[0+rbx*4]
	call	snd_pcm_lib_period_bytes@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L5
	add	r13, QWORD PTR 8[r15]
	cmp	DWORD PTR 0[r13], r12d
	jl	.L4
.L17:
	mov	rdi, rbp
	add	rbx, 1
	call	snd_pcm_period_elapsed@PLT
	mov	eax, DWORD PTR 0[r13]
	cdq
	idiv	r12d
	mov	DWORD PTR 0[r13], edx
	cmp	DWORD PTR [r15], ebx
	jg	.L2
.L18:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	check_for_elapsed_periods, .-check_for_elapsed_periods
	.comm	SNDRV_PCM_STREAM_PLAYBACK,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_audio.c_check_for_elapsed_periods.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_for_elapsed_periods, %function
check_for_elapsed_periods:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r0
	mov	r4, #0
	ldr	r9, .L18
	sub	r8, r1, #4
	b	.L8
.L16:
	ldr	r3, [r10]
.L4:
	add	r4, r4, #1
	cmp	r3, r4
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r5, [r8, #4]!
	lsl	r6, r4, #2
	cmp	r5, #0
	beq	.L4
	mov	r0, r5
	bl	snd_pcm_lib_period_bytes
	ldr	r3, [r9]
	ldr	r2, [r5]
	mov	r7, r0
	cmp	r2, r3
	ldreq	r3, [r10, #4]
	ldrne	r3, [r10, #8]
	add	r6, r3, r6
	ldr	r3, [r6]
	cmp	r3, r0
	blt	.L16
	mov	r0, r5
	bl	snd_pcm_period_elapsed
	ldr	r0, [r6]
	mov	r1, r7
	bl	__aeabi_idivmod
	str	r1, [r6]
	b	.L16
.L19:
	.align	2
.L18:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.size	check_for_elapsed_periods, .-check_for_elapsed_periods
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
