	.file	"extr_ao_oss.c_audio_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	audio_wait, @function
audio_wait:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR POLLOUT[rip]
	mov	rcx, rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	rsi, 12[rsp]
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 16[rsp], edx
	mov	edx, 1
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 20[rsp], eax
	call	ao_wait_poll@PLT
	mov	edx, DWORD PTR POLLERR[rip]
	or	edx, DWORD PTR POLLNVAL[rip]
	test	DWORD PTR 12[rsp], edx
	mov	edx, -1
	cmovne	eax, edx
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	audio_wait, .-audio_wait
	.comm	POLLOUT,4,4
	.comm	POLLNVAL,4,4
	.comm	POLLERR,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_oss.c_audio_wait.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	audio_wait, %function
audio_wait:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, lr}
	mov	r3, r1
	ldr	r1, [r0]
	ldr	r2, .L9
	ldr	r4, [r1]
	ldr	r1, .L9+4
	sub	sp, sp, #20
	ldr	lr, [r2]
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	mov	r2, #1
	mov	r1, sp
	stm	sp, {ip, lr}
	str	r4, [sp, #8]
	bl	ao_wait_poll
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp]
	orr	r3, r3, r1
	tst	r3, r2
	ldr	r3, .L9+4
	mvnne	r0, #0
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	POLLOUT
	.word	.LC0
	.word	POLLNVAL
	.word	POLLERR
	.size	audio_wait, .-audio_wait
	.comm	POLLOUT,4,4
	.comm	POLLNVAL,4,4
	.comm	POLLERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
