	.file	"extr_aiff.c_Demux.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	Demux, @function
Demux:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 4[rdi]
	call	vlc_stream_Tell@PLT
	mov	r12, rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jle	.L2
	cmp	rax, r12
	jle	.L13
.L2:
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR VLC_TICK_0[rip]
	add	rsi, QWORD PTR 24[rbx]
	call	es_out_SetPCR@PLT
	movsx	rsi, DWORD PTR 16[rbx]
	mov	rax, rsi
	imul	rsi, rsi, 1717986919
	sar	eax, 31
	sar	rsi, 34
	sub	esi, eax
	mov	rax, QWORD PTR [rbx]
	imul	esi, DWORD PTR 8[rbx]
	test	rax, rax
	jle	.L4
	mov	rcx, rax
	movsx	rdx, esi
	sub	eax, r12d
	sub	rcx, r12
	cmp	rcx, rdx
	cmovl	esi, eax
.L4:
	mov	edi, DWORD PTR 4[rbp]
	call	vlc_stream_Block@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR VLC_TICK_0[rip]
	add	rax, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR 8[r12], rax
	mov	QWORD PTR 16[r12], rax
	call	vlc_tick_from_samples@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 0[rbp]
	cdq
	idiv	DWORD PTR 16[rbx]
	mov	rdx, r12
	cdqe
	add	QWORD PTR 24[rbx], rax
	call	es_out_Send@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR VLC_DEMUXER_SUCCESS[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR VLC_DEMUXER_EOF[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	Demux, .-Demux
	.comm	VLC_TICK_0,8,8
	.comm	VLC_DEMUXER_SUCCESS,4,4
	.comm	VLC_DEMUXER_EOF,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_aiff.c_Demux.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Demux, %function
Demux:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #4]
	ldr	r4, [r5, #8]
	bl	vlc_stream_Tell
	ldr	r3, [r4]
	cmp	r3, #0
	movgt	r2, #1
	movle	r2, #0
	cmp	r3, r0
	movgt	r2, #0
	cmp	r2, #0
	bne	.L7
	ldr	r7, .L9
	ldr	r1, [r4, #16]
	ldr	r3, [r7]
	mov	r6, r0
	add	r1, r1, r3
	ldr	r0, [r5]
	bl	es_out_SetPCR
	ldr	r3, [r4, #12]
	ldr	r1, .L9+4
	ldr	r0, [r4]
	smull	ip, r2, r1, r3
	asr	r1, r3, #31
	ldr	r3, [r4, #4]
	rsb	r1, r1, r2, asr #2
	cmp	r0, #0
	mul	r1, r3, r1
	ble	.L4
	sub	r0, r0, r6
	cmp	r1, r0
	movge	r1, r0
.L4:
	ldr	r0, [r5, #4]
	bl	vlc_stream_Block
	subs	r6, r0, #0
	beq	.L7
	ldr	r2, [r7]
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #4]
	add	r3, r3, r2
	str	r3, [r6, #4]
	str	r3, [r6, #8]
	ldr	r0, [r6]
	bl	vlc_tick_from_samples
	ldr	r1, [r4, #12]
	bl	__aeabi_idiv
	ldr	r3, [r4, #16]
	mov	r2, r6
	add	r3, r3, r0
	ldr	r1, [r4, #8]
	ldr	r0, [r5]
	str	r3, [r4, #16]
	bl	es_out_Send
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	VLC_TICK_0
	.word	1717986919
	.word	VLC_DEMUXER_SUCCESS
	.word	VLC_DEMUXER_EOF
	.size	Demux, .-Demux
	.comm	VLC_TICK_0,4,4
	.comm	VLC_DEMUXER_SUCCESS,4,4
	.comm	VLC_DEMUXER_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
