	.file	"extr_wtvdec.c_read_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	read_packet, @function
read_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	mov	esi, DWORD PTR SEEK_TO_DATA[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rcx, 4[rsp]
	mov	r13, QWORD PTR 8[rbp]
	call	parse_chunks@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 4[rsp]
	mov	rsi, rbx
	mov	rdi, r13
	lea	edx, -32[rax]
	call	av_get_packet@PLT
	test	eax, eax
	js	.L4
	mov	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 4[rsp]
	mov	DWORD PTR [rbx], r12d
	xor	r12d, r12d
	mov	DWORD PTR 4[rbx], eax
	call	WTV_PAD8@PLT
	movsx	rdx, DWORD PTR 4[rsp]
	mov	rdi, r13
	sub	rax, rdx
	mov	rsi, rax
	call	avio_skip@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r12d, eax
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_packet, .-read_packet
	.comm	SEEK_TO_DATA,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_wtvdec.c_read_packet.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_packet, %function
read_packet:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L8
	sub	sp, sp, #12
	ldr	r6, [r0]
	ldr	ip, .L8+4
	mov	r5, r1
	mov	r2, #0
	ldr	r1, [r3]
	mov	r3, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	ldr	r7, [r6, #4]
	bl	parse_chunks
	subs	r4, r0, #0
	blt	.L1
	ldr	r2, [sp]
	mov	r1, r5
	mov	r0, r7
	sub	r2, r2, #32
	bl	av_get_packet
	cmp	r0, #0
	movlt	r4, r0
	blt	.L1
	ldr	r3, [r6]
	ldr	r0, [sp]
	str	r4, [r5]
	str	r3, [r5, #4]
	bl	WTV_PAD8
	mov	r1, r0
	ldr	r3, [sp]
	mov	r0, r7
	sub	r1, r1, r3
	bl	avio_skip
	mov	r4, #0
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	SEEK_TO_DATA
	.word	.LC0
	.size	read_packet, .-read_packet
	.comm	SEEK_TO_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
