	.file	"extr_rtmppkt.c_ff_amf_tag_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_amf_tag_size
	.type	ff_amf_tag_size, @function
ff_amf_tag_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	rdi, rsi
	jnb	.L4
	sub	rsi, rdi
	lea	rbp, 4[rsp]
	mov	rbx, rsi
	mov	rsi, rdi
	mov	rdi, rbp
	sar	rbx, 2
	mov	edx, ebx
	call	bytestream2_init@PLT
	mov	rdi, rbp
	call	amf_tag_skip@PLT
	test	eax, eax
	js	.L4
	mov	rdi, rbp
	call	bytestream2_get_bytes_left@PLT
	test	rax, rax
	jle	.L4
	mov	rdi, rbp
	call	bytestream2_tell@PLT
	xor	edi, edi
	test	eax, eax
	js	.L5
	mov	rdi, rbp
	call	bytestream2_tell@PLT
	xor	edi, edi
	cdqe
	cmp	rbx, rax
	setge	dil
.L5:
	call	av_assert0@PLT
	mov	rdi, rbp
	call	bytestream2_tell@PLT
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ff_amf_tag_size, .-ff_amf_tag_size
	.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_rtmppkt.c_ff_amf_tag_size.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ff_amf_tag_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_amf_tag_size, %function
ff_amf_tag_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r2, .L11
	sub	sp, sp, #8
	cmp	r0, r1
	mov	r3, r1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bcs	.L4
	sub	r3, r3, r0
	asr	r4, r3, #2
	mov	r1, r0
	mov	r2, r4
	mov	r0, sp
	bl	bytestream2_init
	mov	r0, sp
	bl	amf_tag_skip
	cmp	r0, #0
	blt	.L4
	mov	r0, sp
	bl	bytestream2_get_bytes_left
	cmp	r0, #0
	ble	.L4
	mov	r0, sp
	bl	bytestream2_tell
	cmp	r0, #0
	movlt	r0, #0
	blt	.L5
	mov	r0, sp
	bl	bytestream2_tell
	cmp	r4, r0
	movlt	r0, #0
	movge	r0, #1
.L5:
	bl	av_assert0
	mov	r0, sp
	bl	bytestream2_tell
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L4:
	mvn	r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	ff_amf_tag_size, .-ff_amf_tag_size
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
