	.file	"extr_h26x.c_Demux.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"using %.2f fps"
	.text
	.p2align 4
	.type	Demux, @function
Demux:
.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, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r12, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR H26X_PACKET_SIZE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR 4[rdi]
	call	vlc_stream_Block@PLT
	mov	DWORD PTR 12[rsp], 1
	mov	QWORD PTR 16[rsp], rax
	mov	rsi, rax
	test	rax, rax
	je	.L15
	lea	rdi, 12[r12]
	call	date_Get@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	DWORD PTR 12[rsp], 0
	mov	QWORD PTR [rsi], rax
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 16[r12]
	lea	rdx, 16[rsp]
	test	rsi, rsi
	cmovne	rsi, rdx
	mov	rdi, rax
	call	[QWORD PTR 24[rax]]
	mov	rbp, rax
	test	rax, rax
	jne	.L14
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR 8[r15]
	mov	rax, QWORD PTR [r15]
	mov	rdx, r15
	and	ecx, DWORD PTR BLOCK_FLAG_TYPE_MASK[rip]
	mov	rbx, QWORD PTR 16[r15]
	mov	r14d, ecx
	mov	QWORD PTR [rsp], rax
	call	es_out_Send@PLT
	test	r14d, r14d
	je	.L7
	mov	rax, QWORD PTR 16[r12]
	pxor	xmm2, xmm2
	lea	r15, 12[r12]
	movsd	xmm0, QWORD PTR 8[rax]
	ucomisd	xmm0, xmm2
	jp	.L22
	je	.L8
.L22:
	ucomisd	xmm0, QWORD PTR [r12]
	jp	.L23
	je	.L8
.L23:
	mov	esi, DWORD PTR 16[rax]
	test	esi, esi
	je	.L8
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR 8[r12]
	ucomisd	xmm0, xmm1
	jp	.L24
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r15
	call	date_Get@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, rax
	call	es_out_SetPCR@PLT
	test	rbx, rbx
	jle	.L20
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm0, rbx
	cvtsi2sd	xmm1, DWORD PTR 8[r12]
	addsd	xmm0, xmm0
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR [r12]
	mulsd	xmm1, QWORD PTR CLOCK_FREQ[rip]
	divsd	xmm0, xmm1
	call	round@PLT
	mov	esi, eax
	cmp	eax, 6
	ja	.L37
.L12:
	mov	rdi, r15
	call	date_Increment@PLT
.L7:
	test	rbp, rbp
	je	.L38
.L14:
	mov	r15, rbp
	cmp	QWORD PTR 16[rsp], 0
	mov	rbp, QWORD PTR 32[rbp]
	mov	QWORD PTR 32[r15], 0
	je	.L3
	lea	rdi, 12[r12]
	call	date_Get@PLT
	mov	ecx, DWORD PTR VLC_TICK_INVALID[rip]
	mov	r8, rax
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], r8
	mov	DWORD PTR 24[rax], ecx
.L3:
	mov	rsi, QWORD PTR 24[r12]
	mov	edi, DWORD PTR 0[r13]
	test	rsi, rsi
	jne	.L4
	mov	rsi, QWORD PTR 16[r12]
	mov	DWORD PTR [rsi], 1
	call	es_out_Add@PLT
	mov	QWORD PTR 24[r12], rax
	mov	rsi, rax
	test	rax, rax
	je	.L5
	mov	edi, DWORD PTR 0[r13]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, 2
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r15
	call	date_Set@PLT
	test	rbp, rbp
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rsi, QWORD PTR 16[rsp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	mov	DWORD PTR 8[r12], esi
	mov	rdi, r15
	add	esi, esi
	movsd	QWORD PTR [r12], xmm0
	call	date_Change@PLT
	pxor	xmm0, xmm0
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	cvtsi2sd	xmm0, DWORD PTR 8[r12]
	divsd	xmm0, QWORD PTR [r12]
	call	msg_Dbg@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r15
	call	block_ChainRelease@PLT
	mov	eax, DWORD PTR VLC_DEMUXER_EOF[rip]
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L39
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L36:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	mov	eax, DWORD PTR VLC_DEMUXER_EOF[rip]
	cmove	eax, DWORD PTR VLC_DEMUXER_SUCCESS[rip]
	jmp	.L1
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Demux, .-Demux
	.comm	VLC_TICK_INVALID,4,4
	.comm	VLC_DEMUXER_SUCCESS,4,4
	.comm	VLC_DEMUXER_EOF,4,4
	.comm	H26X_PACKET_SIZE,4,4
	.comm	CLOCK_FREQ,8,8
	.comm	BLOCK_FLAG_TYPE_MASK,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_h26x.c_Demux.c"
	.text
	.global	__aeabi_dcmpeq
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"using %.2f fps\000"
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Demux, %function
Demux:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	ldr	r3, .L43
	sub	sp, sp, #28
	ldr	r1, [r3]
	ldr	r3, .L43+4
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r8, [fp, #8]
	bl	vlc_stream_Block
	cmp	r0, #0
	str	r0, [sp, #16]
	beq	.L19
	add	r0, r8, #12
	bl	date_Get
	mov	r3, #0
	ldr	r1, [sp, #16]
	str	r3, [sp, #12]
	str	r0, [r1]
.L2:
	mov	r5, fp
	ldr	r9, .L43+8
.L15:
	ldr	r0, [r8, #16]
	cmp	r1, #0
	addne	r1, sp, #16
	ldr	r3, [r0, #24]
	blx	r3
	subs	fp, r0, #0
	beq	.L36
	mov	r7, r5
	b	.L14
.L4:
	ldr	r5, [r6, #4]
	ldr	r3, [r9]
	mov	r2, r6
	and	r5, r5, r3
	ldr	r10, [r6]
	ldr	r4, [r6, #8]
	bl	es_out_Send
	cmp	r5, #0
	beq	.L7
	ldr	r5, [r8, #16]
	mov	r2, #0
	add	r1, r5, #8
	ldmia	r1, {r0-r1}
	mov	r3, #0
	stm	sp, {r0-r1}
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	add	r6, r8, #12
	bne	.L8
	ldmia	r8, {r2-r3}
	ldmia	sp, {r0-r1}
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	bne	.L8
	ldr	r5, [r5, #16]
	cmp	r5, #0
	beq	.L8
	ldr	r0, [r8, #8]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldmia	sp, {r0-r1}
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	beq	.L39
.L8:
	mov	r0, r6
	ldr	r5, [r7]
	bl	date_Get
	mov	r1, r0
	mov	r0, r5
	bl	es_out_SetPCR
	cmp	r4, #0
	ble	.L20
	mov	r0, r4
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r4, r0
	ldr	r0, [r8, #8]
	mov	r5, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	ldr	r3, .L43+12
	mov	r4, r0
	ldmia	r3, {r2-r3}
	mov	r5, r1
	ldmia	r8, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	bl	round
	cmp	r0, #6
	mov	r1, r0
	bhi	.L40
.L12:
	mov	r0, r6
	bl	date_Increment
.L7:
	cmp	fp, #0
	beq	.L41
.L14:
	ldr	r3, [sp, #16]
	mov	r6, fp
	cmp	r3, #0
	mov	r3, #0
	ldr	fp, [fp, #16]
	str	r3, [r6, #16]
	beq	.L3
	add	r0, r8, #12
	bl	date_Get
	ldr	r2, .L43+16
	ldr	r3, [sp, #16]
	ldr	r2, [r2]
	str	r0, [r3]
	str	r2, [r3, #12]
.L3:
	ldr	r1, [r8, #20]
	ldr	r0, [r7]
	cmp	r1, #0
	bne	.L4
	mov	r3, #1
	ldr	r1, [r8, #16]
	str	r3, [r1]
	bl	es_out_Add
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r8, #20]
	beq	.L5
	ldr	r0, [r7]
	b	.L4
.L20:
	mov	r1, #2
	b	.L12
.L40:
	mov	r1, r10
	mov	r0, r6
	bl	date_Set
	cmp	fp, #0
	bne	.L14
.L41:
	mov	r5, r7
	ldr	r1, [sp, #16]
	b	.L15
.L39:
	ldmia	sp, {r2-r3}
	lsl	r1, r5, #1
	stm	r8, {r2-r3}
	mov	r0, r6
	str	r5, [r8, #8]
	bl	date_Change
	ldr	r0, [r8, #8]
	bl	__aeabi_i2d
	ldmia	r8, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r7
	ldr	r1, .L43+20
	bl	msg_Dbg
	b	.L8
.L5:
	mov	r0, r6
	bl	block_ChainRelease
	ldr	r3, .L43+24
	ldr	r0, [r3]
.L1:
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r3, #1
	mov	r1, r0
	str	r3, [sp, #12]
	b	.L2
.L36:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ldrne	r3, .L43+24
	ldreq	r3, .L43+28
	ldr	r0, [r3]
	b	.L1
.L42:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	H26X_PACKET_SIZE
	.word	.LC1
	.word	BLOCK_FLAG_TYPE_MASK
	.word	CLOCK_FREQ
	.word	VLC_TICK_INVALID
	.word	.LC0
	.word	VLC_DEMUXER_EOF
	.word	VLC_DEMUXER_SUCCESS
	.size	Demux, .-Demux
	.comm	VLC_TICK_INVALID,4,4
	.comm	VLC_DEMUXER_SUCCESS,4,4
	.comm	VLC_DEMUXER_EOF,4,4
	.comm	H26X_PACKET_SIZE,4,4
	.comm	CLOCK_FREQ,8,8
	.comm	BLOCK_FLAG_TYPE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
