	.file	"extr_vd_lavc.c_send_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	send_packet, @function
send_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
	mov	r14, rsi
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 56[rbp], 0
	je	.L2
	mov	rax, QWORD PTR 48[rbp]
	cmp	QWORD PTR [rax], rsi
	jne	.L4
.L2:
	cmp	QWORD PTR 40[rbp], 0
	jne	.L4
	mov	r15, QWORD PTR 32[rbp]
	mov	r13d, DWORD PTR AVERROR_EOF[rip]
	test	r15, r15
	je	.L1
	mov	rdi, r12
	xor	r13d, r13d
	call	prepare_decoding@PLT
	mov	rax, QWORD PTR AVDISCARD_ALL[rip]
	cmp	QWORD PTR [r15], rax
	je	.L1
	lea	r13, 4[rsp]
	lea	rdx, 24[rbp]
	mov	rsi, r14
	mov	rdi, r13
	call	mp_set_av_packet@PLT
	test	r14, r14
	mov	esi, 0
	mov	rdi, r15
	cmovne	rsi, r13
	call	avcodec_send_packet@PLT
	mov	edi, DWORD PTR EAGAIN[rip]
	mov	r13d, eax
	call	AVERROR@PLT
	cmp	eax, r13d
	je	.L1
	cmp	DWORD PTR AVERROR_EOF[rip], r13d
	je	.L1
	cmp	QWORD PTR 16[rbp], 0
	je	.L7
	mov	edx, DWORD PTR 0[rbp]
	cmp	edx, 31
	jg	.L7
	mov	rax, QWORD PTR 8[rbp]
	cmp	DWORD PTR [rax], 32
	jg	.L7
	test	r14, r14
	je	.L8
	mov	rdi, r14
	call	demux_copy_packet@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	r14, rax
.L8:
	mov	esi, DWORD PTR 4[rbp]
	mov	rcx, r14
	mov	rdi, rbp
	call	MP_TARRAY_APPEND@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	test	r13d, r13d
	js	.L17
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR EAGAIN[rip]
	call	AVERROR@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r12
	call	handle_err@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_packet, .-send_packet
	.comm	EAGAIN,4,4
	.comm	AVERROR_EOF,4,4
	.comm	AVDISCARD_ALL,8,8
	.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_vd_lavc.c_send_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	send_packet, %function
send_packet:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	ldr	r2, .L24
	ldr	r3, [r5, #32]
	sub	sp, sp, #8
	cmp	r3, #0
	mov	r6, r0
	mov	r7, r1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	beq	.L2
	ldr	r3, [r5, #28]
	ldr	r3, [r3]
	cmp	r3, r1
	bne	.L4
.L2:
	ldr	r4, [r5, #24]
	cmp	r4, #0
	bne	.L4
	ldr	r8, [r5, #20]
	cmp	r8, #0
	beq	.L22
	mov	r0, r6
	bl	prepare_decoding
	ldr	r3, .L24+4
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	mov	r4, sp
	mov	r1, r7
	add	r2, r5, #16
	mov	r0, r4
	bl	mp_set_av_packet
	cmp	r7, #0
	movne	r1, r4
	moveq	r1, #0
	mov	r0, r8
	bl	avcodec_send_packet
	ldr	r3, .L24+8
	mov	r4, r0
	ldr	r0, [r3]
	bl	AVERROR
	cmp	r0, r4
	beq	.L1
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L1
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [r5]
	cmp	r2, #31
	bgt	.L7
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	cmp	r3, #32
	bgt	.L7
	cmp	r7, #0
	beq	.L8
	mov	r0, r7
	bl	demux_copy_packet
	mov	r7, r0
	ldr	r2, [r5]
.L8:
	mov	r3, r7
	mov	r0, r5
	ldr	r1, [r5, #4]
	bl	MP_TARRAY_APPEND
.L7:
	cmp	r4, #0
	bge	.L1
	mov	r0, r6
	bl	handle_err
	b	.L1
.L22:
	ldr	r3, .L24+12
	ldr	r4, [r3]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L24+8
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	AVDISCARD_ALL
	.word	EAGAIN
	.word	AVERROR_EOF
	.size	send_packet, .-send_packet
	.comm	EAGAIN,4,4
	.comm	AVERROR_EOF,4,4
	.comm	AVDISCARD_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
