	.file	"extr_video.c_EncoderThread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	EncoderThread, @function
EncoderThread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	r14, 16[rbp]
	lea	rbx, 4[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	vlc_savecancel@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	vlc_mutex_lock@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L2
.L14:
	mov	rdi, r14
	call	vlc_sem_post@PLT
	cmp	QWORD PTR 24[rbp], 0
	jne	.L8
.L2:
	lea	r15, 32[rbp]
.L4:
	mov	edi, DWORD PTR 20[rbp]
	call	picture_fifo_Pop@PLT
	mov	r12, rax
	test	rax, rax
	je	.L20
	mov	rdi, r14
	call	vlc_sem_post@PLT
	mov	rdi, rbp
	call	vlc_mutex_unlock@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, r12
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	rdi, r12
	mov	r15, rax
	call	picture_Release@PLT
	mov	rdi, rbp
	call	vlc_mutex_lock@PLT
	mov	rsi, r15
	mov	rdi, rbx
	call	block_ChainAppend@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L2
	mov	edi, DWORD PTR 20[rbp]
	call	picture_fifo_Pop@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r14
	call	vlc_sem_post@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, r12
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	rdi, r12
	mov	r15, rax
	call	picture_Release@PLT
	mov	rsi, r15
	mov	rdi, rbx
	call	block_ChainAppend@PLT
.L8:
	mov	edi, DWORD PTR 20[rbp]
	call	picture_fifo_Pop@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[rbp]
	xor	esi, esi
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	rdi, rbx
	mov	r12, rax
	mov	rsi, rax
	call	block_ChainAppend@PLT
	test	r12, r12
	jne	.L10
	mov	rdi, rbp
	call	vlc_mutex_unlock@PLT
	mov	edi, r13d
	call	vlc_restorecancel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r15
	call	vlc_cond_wait@PLT
	cmp	QWORD PTR 24[rbp], 0
	jne	.L14
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	EncoderThread, .-EncoderThread
	.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_video.c_EncoderThread.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	EncoderThread, %function
EncoderThread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	bl	vlc_savecancel
	mov	r7, r0
	mov	r0, r4
	bl	vlc_mutex_lock
	ldr	r3, [r4, #20]
	add	r8, r4, #12
	cmp	r3, #0
	add	r6, r4, #4
	beq	.L2
.L18:
	mov	r0, r8
	bl	vlc_sem_post
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L8
.L2:
	add	r9, r4, #24
.L4:
	ldr	r0, [r4, #16]
	bl	picture_fifo_Pop
	subs	r5, r0, #0
	beq	.L24
	mov	r0, r8
	bl	vlc_sem_post
	mov	r0, r4
	bl	vlc_mutex_unlock
	ldr	r0, [r4, #8]
	mov	r1, r5
	ldr	r3, [r0]
	blx	r3
	mov	r1, r0
	mov	r0, r5
	mov	r5, r1
	bl	picture_Release
	mov	r0, r4
	bl	vlc_mutex_lock
	mov	r1, r5
	mov	r0, r6
	bl	block_ChainAppend
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [r4, #16]
	bl	picture_fifo_Pop
	subs	r5, r0, #0
	beq	.L10
.L9:
	mov	r0, r8
	bl	vlc_sem_post
	ldr	r0, [r4, #8]
	mov	r1, r5
	ldr	r3, [r0]
	blx	r3
	mov	r1, r0
	mov	r0, r5
	mov	r5, r1
	bl	picture_Release
	mov	r1, r5
	mov	r0, r6
	bl	block_ChainAppend
.L8:
	ldr	r0, [r4, #16]
	bl	picture_fifo_Pop
	subs	r5, r0, #0
	bne	.L9
.L10:
	ldr	r0, [r4, #8]
	mov	r1, #0
	ldr	r3, [r0]
	blx	r3
	mov	r5, r0
	mov	r0, r6
	mov	r1, r5
	bl	block_ChainAppend
	cmp	r5, #0
	bne	.L10
	mov	r0, r4
	bl	vlc_mutex_unlock
	mov	r0, r7
	bl	vlc_restorecancel
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	mov	r1, r4
	mov	r0, r9
	bl	vlc_cond_wait
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L18
	b	.L4
	.size	EncoderThread, .-EncoderThread
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
