	.file	"extr_encavcodec.c_get_packets.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"encavcodec: avcodec_receive_packet failed"
	.text
	.p2align 4
	.type	get_packets, @function
get_packets:
.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
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, rbp
	mov	rdi, rbx
	call	process_delay_list@PLT
	mov	rdi, r13
	mov	rsi, rax
	call	hb_buffer_list_append@PLT
	mov	rdi, r12
	call	av_packet_unref@PLT
.L5:
	mov	rdi, r12
	call	av_init_packet@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, r12
	call	avcodec_receive_packet@PLT
	mov	edi, DWORD PTR EAGAIN[rip]
	mov	ebp, eax
	call	AVERROR@PLT
	cmp	eax, ebp
	je	.L1
	cmp	DWORD PTR AVERROR_EOF[rip], ebp
	je	.L1
	test	ebp, ebp
	js	.L12
.L3:
	mov	edi, DWORD PTR 4[rsp]
	call	hb_buffer_init@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 40[rax]
	mov	edi, DWORD PTR 44[rax]
	mov	rbp, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	r15d, DWORD PTR 8[rsp]
	mov	rdi, rbx
	mov	DWORD PTR 40[rbp], eax
	mov	esi, r15d
	call	get_frame_start@PLT
	mov	esi, r15d
	mov	rdi, rbx
	mov	DWORD PTR 32[rbp], eax
	call	get_frame_duration@PLT
	add	QWORD PTR 24[rbp], rax
	mov	edx, DWORD PTR [rsp]
	mov	QWORD PTR 16[rbp], rax
	mov	eax, DWORD PTR HB_FLAG_FRAMETYPE_REF[rip]
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 0[rbp], eax
	test	DWORD PTR AV_PKT_FLAG_KEY[rip], edx
	je	.L4
	or	eax, DWORD PTR HB_FLAG_FRAMETYPE_KEY[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	DWORD PTR 0[rbp], eax
	call	hb_chapter_dequeue@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r14
	call	hb_log@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	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
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_packets, .-get_packets
	.comm	HB_FLAG_FRAMETYPE_REF,4,4
	.comm	HB_FLAG_FRAMETYPE_KEY,4,4
	.comm	EAGAIN,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AVERROR_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_encavcodec.c_get_packets.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"encavcodec: avcodec_receive_packet failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_packets, %function
get_packets:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L14
	sub	sp, sp, #28
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r10, #0
	ldr	r4, [r0]
	ldr	r6, .L14+4
	ldr	r7, .L14+8
	ldr	r8, .L14+12
	b	.L5
.L4:
	mov	r1, r9
	mov	r0, r4
	bl	process_delay_list
	mov	r1, r0
	mov	r0, r5
	bl	hb_buffer_list_append
	add	r0, sp, #4
	bl	av_packet_unref
.L5:
	add	r0, sp, #4
	bl	av_init_packet
	add	r1, sp, #4
	ldr	r0, [r4, #4]
	bl	avcodec_receive_packet
	mov	r9, r0
	ldr	r0, [r6]
	bl	AVERROR
	cmp	r0, r9
	beq	.L1
	ldr	r3, [r7]
	cmp	r3, r9
	beq	.L1
	cmp	r9, #0
	blt	.L12
.L3:
	ldr	r0, [sp, #8]
	bl	hb_buffer_init
	mov	r9, r0
	ldr	r2, [r0, #20]
	ldr	r1, [sp, #16]
	ldr	r0, [r0, #24]
	bl	memcpy
	ldr	r3, [sp, #8]
	ldr	fp, [sp, #12]
	str	r3, [r9, #20]
	mov	r1, fp
	mov	r0, r4
	bl	get_frame_start
	mov	r1, fp
	str	r0, [r9, #16]
	mov	r0, r4
	bl	get_frame_duration
	ldr	r2, [r8]
	ldr	r1, [sp, #4]
	ldr	r3, [r9, #12]
	tst	r1, r2
	ldr	r2, .L14+16
	add	r3, r3, r0
	ldr	r2, [r2]
	str	r0, [r9, #8]
	str	r10, [r9, #4]
	str	r3, [r9, #12]
	str	r2, [r9]
	beq	.L4
	ldr	r3, .L14+20
	mov	r1, r9
	ldr	r3, [r3]
	ldr	r0, [r4]
	orr	r2, r3, r2
	str	r2, [r9]
	bl	hb_chapter_dequeue
	b	.L4
.L12:
	ldr	r0, .L14+24
	bl	hb_log
	b	.L3
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	EAGAIN
	.word	AVERROR_EOF
	.word	AV_PKT_FLAG_KEY
	.word	HB_FLAG_FRAMETYPE_REF
	.word	HB_FLAG_FRAMETYPE_KEY
	.word	.LC0
	.size	get_packets, .-get_packets
	.comm	HB_FLAG_FRAMETYPE_REF,4,4
	.comm	HB_FLAG_FRAMETYPE_KEY,4,4
	.comm	EAGAIN,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AVERROR_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
