	.file	"extr_ao_sdl.c_audio_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SDL audio callback not sample aligned"
	.text
	.p2align 4
	.type	audio_callback, @function
audio_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, edx
	mov	QWORD PTR 16[rsp], rsi
	cdq
	idiv	DWORD PTR [rdi]
	test	edx, edx
	jne	.L9
.L2:
	lea	eax, [rbx+rbx]
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR 8[rbp]
	cvtsi2sd	xmm1, eax
	xor	eax, eax
	divsd	xmm1, xmm0
	movsd	QWORD PTR 8[rsp], xmm1
	call	mp_time_us@PLT
	pxor	xmm0, xmm0
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	cvtsi2sd	xmm0, rax
	mov	eax, ebx
	movsd	xmm1, QWORD PTR 8[rsp]
	mulsd	xmm1, QWORD PTR .LC1[rip]
	cdq
	idiv	DWORD PTR 0[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	rcx, xmm0
	mov	edx, eax
	call	ao_read_data@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.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
.L9:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	MP_ERR@PLT
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	audio_callback, .-audio_callback
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1093567616
	.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_sdl.c_audio_callback.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SDL audio callback not sample aligned\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_idiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	audio_callback, %function
audio_callback:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r9, [r0]
	sub	sp, sp, #12
	str	r3, [sp]
	ldr	r3, .L11
	mov	r4, r0
	mov	r1, r9
	mov	r0, r2
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	__aeabi_idivmod
	cmp	r1, #0
	bne	.L9
.L2:
	lsl	r0, r5, #1
	bl	__aeabi_i2d
	mov	r6, r0
	ldr	r0, [r4, #4]
	mov	r7, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r5
	mov	r1, r9
	mov	r8, r2
	mov	r9, r3
	bl	__aeabi_idiv
	mov	r5, r0
	bl	mp_time_us
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r6, r0
	mov	r7, r1
	ldr	r3, .L11+4
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	mov	r2, r5
	mov	r3, r0
	mov	r1, sp
	mov	r0, r4
	bl	ao_read_data
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r0, r4
	ldr	r1, .L11+8
	bl	MP_ERR
	ldr	r9, [r4]
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	1093567616
	.word	.LC0
	.size	audio_callback, .-audio_callback
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
