	.file	"extr_screen.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]
	cmp	QWORD PTR [rbx], 0
	jne	.L3
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [rbx], rax
.L3:
	xor	eax, eax
	call	vlc_tick_now@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r8, rax
	mov	rax, QWORD PTR 8[rbx]
	add	rax, rdi
	cmp	r8, rax
	jge	.L4
	call	vlc_tick_wait@PLT
	mov	rdi, rbp
	call	screen_Capture@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR 8[rax], rsi
	mov	QWORD PTR [rax], rsi
	call	es_out_SetPCR@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r12
	call	es_out_Send@PLT
.L8:
	mov	rax, QWORD PTR 8[rbx]
	add	QWORD PTR [rbx], rax
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	eax, eax
	call	vlc_tick_now@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	Demux, .-Demux
	.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_screen.c_Demux.c"
	.text
	.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, lr}
	ldr	r4, [r0, #4]
	mov	r5, r0
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L3
	b	.L10
.L4:
	str	r3, [r4]
.L3:
	bl	vlc_tick_now
	ldm	r4, {r2, r3}
	add	r3, r2, r3
	cmp	r0, r3
	bge	.L4
	mov	r0, r2
	bl	vlc_tick_wait
	mov	r0, r5
	bl	screen_Capture
	subs	r6, r0, #0
	beq	.L8
	ldr	r1, [r4]
	ldr	r0, [r5]
	str	r1, [r6, #4]
	str	r1, [r6]
	bl	es_out_SetPCR
	mov	r2, r6
	ldr	r0, [r5]
	ldr	r1, [r4, #8]
	bl	es_out_Send
.L8:
	ldm	r4, {r2, r3}
	add	r3, r3, r2
	mov	r0, #1
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L10:
	bl	vlc_tick_now
	str	r0, [r4]
	b	.L3
	.size	Demux, .-Demux
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
