	.file	"extr_wave.c_QueueWaveBuffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Queueing wave buffer\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"I was given a header which hasn't been prepared yet!\n"
	.align 8
.LC2:
	.string	"I was given a header for a buffer which is already playing\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB3:
	.text
.LHOTB3:
	.p2align 4
	.globl	QueueWaveBuffer
	.type	QueueWaveBuffer, @function
QueueWaveBuffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	DPRINT@PLT
	test	rbx, rbx
	je	.L4
	mov	eax, DWORD PTR 32[rbx]
	test	eax, eax
	je	.L4
	mov	edx, DWORD PTR [rbx]
	test	DWORD PTR WHDR_PREPARED[rip], edx
	je	.L12
	mov	ecx, DWORD PTR WHDR_INQUEUE[rip]
	test	edx, ecx
	jne	.L13
	mov	eax, DWORD PTR WHDR_DONE[rip]
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], rbp
	not	eax
	and	eax, edx
	or	eax, ecx
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, rax
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L8
	mov	QWORD PTR 8[rdx], rbx
	mov	eax, DWORD PTR MMSYSERR_NOERROR[rip]
	mov	QWORD PTR 8[rbx], 0
.L1:
	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
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR MMSYSERR_INVALPARAM[rip]
	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
.L12:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	DPRINT@PLT
	mov	eax, DWORD PTR WAVERR_UNPREPARED[rip]
	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
.L13:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	DPRINT@PLT
	mov	eax, DWORD PTR WAVERR_STILLPLAYING[rip]
	jmp	.L1
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	QueueWaveBuffer.cold, @function
QueueWaveBuffer.cold:
.LFSB0:
.L7:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	QWORD PTR ds:8, rbx
	ud2
	.cfi_endproc
.LFE0:
	.text
	.size	QueueWaveBuffer, .-QueueWaveBuffer
	.section	.text.unlikely
	.size	QueueWaveBuffer.cold, .-QueueWaveBuffer.cold
.LCOLDE3:
	.text
.LHOTE3:
	.comm	WHDR_PREPARED,4,4
	.comm	WHDR_INQUEUE,4,4
	.comm	WHDR_DONE,4,4
	.comm	WAVERR_UNPREPARED,4,4
	.comm	WAVERR_STILLPLAYING,4,4
	.comm	MMSYSERR_NOERROR,4,4
	.comm	MMSYSERR_INVALPARAM,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_wave.c_QueueWaveBuffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Queueing wave buffer\012\000"
	.align	2
.LC1:
	.ascii	"I was given a header which hasn't been prepared yet"
	.ascii	"!\012\000"
	.align	2
.LC2:
	.ascii	"I was given a header for a buffer which is already "
	.ascii	"playing\012\000"
	.text
	.align	2
	.global	QueueWaveBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	QueueWaveBuffer, %function
QueueWaveBuffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r0, .L17
	bl	DPRINT
	cmp	r4, #0
	beq	.L4
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L17+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L15
	ldr	r3, .L17+8
	ldr	r1, [r3]
	ands	r3, r2, r1
	bne	.L16
	ldr	r0, .L17+12
	str	r3, [r4, #12]
	ldr	r0, [r0]
	ldr	r3, [r5, #8]
	bic	r2, r2, r0
	orr	r2, r2, r1
	cmp	r3, #0
	str	r5, [r4, #8]
	str	r2, [r4]
	beq	.L7
.L8:
	mov	r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L8
	ldr	r1, .L17+16
	str	r4, [r2, #4]
	ldr	r0, [r1]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r0, .L17+24
	bl	DPRINT
	ldr	r3, .L17+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r0, .L17+32
	bl	DPRINT
	ldr	r3, .L17+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	str	r4, [r3, #4]
	.inst	0xe7f000f0
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	WHDR_PREPARED
	.word	WHDR_INQUEUE
	.word	WHDR_DONE
	.word	MMSYSERR_NOERROR
	.word	MMSYSERR_INVALPARAM
	.word	.LC1
	.word	WAVERR_UNPREPARED
	.word	.LC2
	.word	WAVERR_STILLPLAYING
	.size	QueueWaveBuffer, .-QueueWaveBuffer
	.comm	WHDR_PREPARED,4,4
	.comm	WHDR_INQUEUE,4,4
	.comm	WHDR_DONE,4,4
	.comm	WAVERR_UNPREPARED,4,4
	.comm	WAVERR_STILLPLAYING,4,4
	.comm	MMSYSERR_NOERROR,4,4
	.comm	MMSYSERR_INVALPARAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
