	.file	"extr_ao_alsa.c_play.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Write error: %s\n"
.LC1:
	.string	"pcm prepare error"
	.text
	.p2align 4
	.type	play, @function
play:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	and	ecx, DWORD PTR AOPLAY_FINAL_CHUNK[rip]
	mov	rbp, QWORD PTR 8[rdi]
	mov	DWORD PTR 12[rsp], ecx
	jne	.L2
	mov	ecx, DWORD PTR 0[rbp]
	mov	eax, edx
	cdq
	idiv	ecx
	mov	r12d, eax
	imul	r12d, ecx
.L2:
	xor	r14d, r14d
	test	r12d, r12d
	jne	.L22
.L3:
	mov	ecx, DWORD PTR 12[rsp]
	cmp	r12d, r14d
	sete	dl
	xor	eax, eax
	test	ecx, ecx
	setne	al
	and	eax, edx
	mov	DWORD PTR 8[rbp], eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L22:
	.cfi_restore_state
	lea	rdi, 16[rbp]
	mov	edx, r12d
	mov	rsi, r13
	call	ao_convert_inplace@PLT
	lea	r15, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR [rbx]
	call	af_fmt_is_planar@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	edx, r12d
	test	rax, rax
	je	.L5
	mov	rsi, r13
	call	snd_pcm_writen@PLT
	mov	r14d, eax
.L6:
	mov	eax, r14d
	add	eax, DWORD PTR EINTR[rip]
	je	.L4
	mov	eax, r14d
	add	eax, DWORD PTR EAGAIN[rip]
	je	.L4
	mov	esi, r14d
	mov	rdi, rbx
	call	check_device_present@PLT
	test	eax, eax
	je	.L15
	test	r14d, r14d
	js	.L23
	je	.L4
	mov	DWORD PTR 4[rbp], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR 0[r13]
	call	snd_pcm_writei@PLT
	mov	r14d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, r14d
	add	eax, DWORD PTR ESTRPIPE[rip]
	je	.L24
	mov	eax, r14d
	add	eax, DWORD PTR EPIPE[rip]
	je	.L25
	mov	edi, r14d
	call	snd_strerror@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	MP_ERR@PLT
.L11:
	mov	edi, DWORD PTR 12[rbp]
	call	snd_pcm_prepare@PLT
	mov	rdi, r15
	call	CHECK_ALSA_ERROR@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, rbx
	call	handle_underrun@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rbx
	call	resume_device@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r14d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	play, .-play
	.comm	ESTRPIPE,4,4
	.comm	EPIPE,4,4
	.comm	EINTR,4,4
	.comm	EAGAIN,4,4
	.comm	AOPLAY_FINAL_CHUNK,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_ao_alsa.c_play.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Write error: %s\012\000"
	.align	2
.LC1:
	.ascii	"pcm prepare error\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	play, %function
play:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, .L22
	mov	r7, r1
	ldr	r1, [r0]
	sub	sp, sp, #12
	ands	r3, r3, r1
	mov	r5, r2
	ldr	r6, [r4, #4]
	str	r3, [sp, #4]
	bne	.L2
	ldr	r8, [r6]
	mov	r0, r2
	mov	r1, r8
	bl	__aeabi_idiv
	mul	r5, r0, r8
.L2:
	cmp	r5, #0
	moveq	r10, r5
	bne	.L18
.L3:
	sub	r5, r5, r10
	clz	r5, r5
	ldr	r3, [sp, #4]
	lsr	r5, r5, #5
	cmp	r3, #0
	moveq	r5, #0
	mov	r0, r10
	str	r5, [r6, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r2, r5
	mov	r1, r7
	add	r0, r6, #16
	bl	ao_convert_inplace
	ldr	r8, .L22+4
	ldr	r9, .L22+8
	ldr	fp, .L22+12
.L4:
	ldr	r0, [r4]
	bl	af_fmt_is_planar
	cmp	r0, #0
	mov	r2, r5
	beq	.L5
	mov	r1, r7
	ldr	r0, [r6, #12]
	bl	snd_pcm_writen
	mov	r10, r0
.L6:
	ldr	r3, [r8]
	cmn	r10, r3
	beq	.L4
	ldr	r3, [r9]
	cmn	r10, r3
	beq	.L4
	mov	r1, r10
	mov	r0, r4
	bl	check_device_present
	cmp	r0, #0
	beq	.L15
	cmp	r10, #0
	blt	.L19
	beq	.L4
	mov	r3, #0
	str	r3, [r6, #4]
	b	.L3
.L5:
	ldr	r1, [r7]
	ldr	r0, [r6, #12]
	bl	snd_pcm_writei
	mov	r10, r0
	b	.L6
.L19:
	ldr	r3, [fp]
	cmn	r10, r3
	beq	.L20
	ldr	r3, .L22+16
	ldr	r3, [r3]
	cmn	r10, r3
	beq	.L21
	mov	r0, r10
	bl	snd_strerror
	ldr	r1, .L22+20
	mov	r2, r0
	mov	r0, r4
	bl	MP_ERR
.L11:
	ldr	r0, [r6, #12]
	bl	snd_pcm_prepare
	ldr	r0, .L22+24
	bl	CHECK_ALSA_ERROR
	b	.L4
.L21:
	mov	r0, r4
	bl	handle_underrun
	b	.L11
.L20:
	mov	r0, r4
	bl	resume_device
	b	.L11
.L15:
	mvn	r10, #0
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	AOPLAY_FINAL_CHUNK
	.word	EINTR
	.word	EAGAIN
	.word	ESTRPIPE
	.word	EPIPE
	.word	.LC0
	.word	.LC1
	.size	play, .-play
	.comm	ESTRPIPE,4,4
	.comm	EPIPE,4,4
	.comm	EINTR,4,4
	.comm	EAGAIN,4,4
	.comm	AOPLAY_FINAL_CHUNK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
