	.file	"extr_vc1test.c_vc1t_read_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vc1t_read_packet, @function
vc1t_read_packet:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 8[rdi]
	mov	rdi, rbp
	call	avio_feof@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, rbp
	call	avio_rl24@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	avio_r8@PLT
	mov	rdi, rbp
	and	eax, 128
	mov	r14d, eax
	call	avio_rl32@PLT
	mov	edx, r13d
	mov	rsi, rbx
	mov	rdi, rbp
	mov	r15d, eax
	call	av_get_packet@PLT
	test	rax, rax
	js	.L10
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR [rax], 1000
	je	.L12
	mov	eax, DWORD PTR 8[rbx]
	test	r14d, r14d
	je	.L5
.L13:
	or	eax, DWORD PTR AV_PKT_FLAG_KEY[rip]
.L5:
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 4[rbx]
	sub	DWORD PTR [rbx], 8
	add	rsp, 8
	.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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR EIO[rip]
	add	rsp, 8
	.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
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	DWORD PTR 12[rbx], r15d
	mov	eax, DWORD PTR 8[rbx]
	test	r14d, r14d
	je	.L5
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	vc1t_read_packet, .-vc1t_read_packet
	.comm	EIO,4,4
	.comm	AV_PKT_FLAG_KEY,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_vc1test.c_vc1t_read_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vc1t_read_packet, %function
vc1t_read_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #4]
	mov	r6, r0
	mov	r0, r5
	mov	r4, r1
	bl	avio_feof
	cmp	r0, #0
	bne	.L10
	mov	r0, r5
	bl	avio_rl24
	mov	r7, r0
	mov	r0, r5
	bl	avio_r8
	mov	r8, r0
	mov	r0, r5
	bl	avio_rl32
	mov	r3, r0
	mov	r2, r7
	mov	r0, r5
	mov	r1, r4
	mov	r5, r3
	bl	av_get_packet
	cmp	r0, #0
	and	r8, r8, #128
	blt	.L10
	ldr	r3, [r6]
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #1000
	streq	r5, [r4, #12]
	cmp	r8, #0
	ldrne	r3, .L12
	ldrne	r3, [r3]
	orrne	r2, r2, r3
	ldr	r3, [r4]
	str	r2, [r4, #8]
	sub	r3, r3, #8
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12+4
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	AVERROR
.L13:
	.align	2
.L12:
	.word	AV_PKT_FLAG_KEY
	.word	EIO
	.size	vc1t_read_packet, .-vc1t_read_packet
	.comm	EIO,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
