	.file	"extr_flvdec.c_flv_data_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"text"
	.text
	.p2align 4
	.type	flv_data_packet, @function
flv_data_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
	mov	r13, rdi
	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, 56
	.cfi_def_cfa_offset 112
	mov	r12, QWORD PTR 8[rdi]
	mov	r15d, DWORD PTR AVERROR_INVALIDDATA[rip]
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 8[rsp], ecx
	mov	rdi, r12
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	avio_r8@PLT
	cmp	eax, 129
	je	.L22
	cmp	eax, 130
	je	.L23
	cmp	eax, 128
	je	.L29
.L4:
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 8[r13]
	mov	edx, DWORD PTR SEEK_SET[rip]
	add	esi, 4
	call	avio_seek@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L23:
	.cfi_restore_state
	mov	ebp, 1
.L2:
	mov	edx, DWORD PTR SEEK_CUR[rip]
	mov	esi, 4
	mov	rdi, r12
	call	avio_seek@PLT
.L3:
	lea	rbx, 16[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edx, 20
	mov	rsi, rbx
	mov	rdi, r12
	call	amf_get_string@PLT
	test	eax, eax
	jle	.L12
	mov	rdi, r12
	call	avio_r8@PLT
	movsx	rsi, eax
	cmp	rsi, QWORD PTR AMF_DATA_TYPE_STRING[rip]
	jne	.L7
	cmp	DWORD PTR [rbx], 1954047348
	je	.L31
.L7:
	mov	rdi, r12
	call	amf_skip_tag@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L4
.L9:
	test	ebp, ebp
	je	.L32
	mov	rdi, r12
	call	avio_r8@PLT
	movsx	rsi, eax
	cmp	rsi, QWORD PTR AMF_DATA_TYPE_STRING[rip]
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r12
	call	avio_rb16@PLT
	mov	rsi, r14
	mov	rdi, r12
	mov	edx, eax
	mov	ebx, eax
	call	av_get_packet@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L4
	test	ebx, ebx
	js	.L12
	mov	r10d, DWORD PTR 0[r13]
	xor	ecx, ecx
	xor	edx, edx
	test	r10d, r10d
	jle	.L14
	lea	esi, -1[r10]
	mov	r9, QWORD PTR 16[r13]
	mov	eax, 1
	mov	rdi, QWORD PTR AVMEDIA_TYPE_SUBTITLE[rip]
	add	rsi, 2
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L33:
	mov	ecx, eax
	add	rax, 1
	cmp	rsi, rax
	je	.L14
.L16:
	mov	rdx, QWORD PTR -8[r9+rax*8]
	mov	rcx, QWORD PTR 8[rdx]
	cmp	QWORD PTR [rcx], rdi
	jne	.L33
.L15:
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 8[r14], r15d
	mov	DWORD PTR [r14], eax
	mov	DWORD PTR 4[r14], eax
	mov	eax, DWORD PTR [rdx]
	mov	DWORD PTR 16[r14], eax
	mov	eax, DWORD PTR AV_PKT_FLAG_KEY[rip]
	or	DWORD PTR 12[r14], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	cmp	BYTE PTR 4[rbx], 0
	jne	.L7
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L29:
	xor	ebp, ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	xor	ebp, ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r15d, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	r10d, ecx
	jne	.L15
	mov	rsi, QWORD PTR AVMEDIA_TYPE_SUBTITLE[rip]
	mov	rdi, r13
	call	create_stream@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR AV_CODEC_ID_TEXT[rip]
	mov	DWORD PTR 8[rax], ecx
	jmp	.L15
.L34:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r15d, eax
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	flv_data_packet, .-flv_data_packet
	.comm	SEEK_SET,4,4
	.comm	SEEK_CUR,4,4
	.comm	ENOMEM,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AV_CODEC_ID_TEXT,4,4
	.comm	AVMEDIA_TYPE_SUBTITLE,8,8
	.comm	AVERROR_INVALIDDATA,4,4
	.comm	AMF_DATA_TYPE_STRING,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_flvdec.c_flv_data_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"text\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flv_data_packet, %function
flv_data_packet:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0, #4]
	sub	sp, sp, #36
	str	r3, [sp]
	ldr	fp, .L39
	ldr	r3, .L39+4
	str	r2, [sp, #4]
	mov	r8, r0
	mov	r0, r4
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r10, [fp]
	bl	avio_r8
	cmp	r0, #129
	beq	.L23
	cmp	r0, #130
	beq	.L24
	cmp	r0, #128
	beq	.L32
.L4:
	ldr	r2, .L39+8
	ldr	r3, [sp]
	ldr	r0, [r8, #4]
	ldr	r2, [r2]
	add	r1, r3, #4
	bl	avio_seek
.L1:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r10
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	r5, #1
.L2:
	ldr	r3, .L39+12
	mov	r1, #4
	mov	r0, r4
	ldr	r2, [r3]
	bl	avio_seek
.L3:
	ldr	r6, .L39+16
	ldr	r7, .L39+20
	b	.L9
.L35:
	mov	r2, #20
	mov	r0, r4
	add	r1, sp, #8
	bl	amf_get_string
	cmp	r0, #0
	ble	.L12
	mov	r0, r4
	bl	avio_r8
	ldr	r3, [r6]
	mov	r1, r0
	cmp	r0, r3
	bne	.L7
	ldr	r3, [sp, #8]
	cmp	r3, r7
	beq	.L34
.L7:
	mov	r0, r4
	bl	amf_skip_tag
	subs	r10, r0, #0
	blt	.L4
.L9:
	cmp	r5, #0
	beq	.L35
	mov	r0, r4
	bl	avio_r8
	ldr	r3, [r6]
	mov	r1, r0
	cmp	r0, r3
	bne	.L7
.L21:
	mov	r0, r4
	bl	avio_rb16
	mov	r5, r0
	mov	r1, r9
	mov	r0, r4
	mov	r2, r5
	bl	av_get_packet
	subs	r10, r0, #0
	blt	.L4
	cmp	r5, #0
	blt	.L12
	ldr	lr, [r8]
	cmp	lr, #0
	ble	.L36
	ldr	r5, .L39+24
	ldr	r1, [r8, #8]
	mov	r2, #0
	ldr	r4, [r5]
	sub	r1, r1, #4
	b	.L16
.L37:
	add	r2, r2, #1
	cmp	lr, r2
	beq	.L17
.L16:
	ldr	r0, [r1, #4]!
	ldr	ip, [r0, #4]
	ldr	ip, [ip]
	cmp	ip, r4
	bne	.L37
.L15:
	ldr	r2, .L39+28
	ldr	r0, [r0]
	ldr	r1, [r2]
	ldr	r2, [r9, #12]
	ldr	r3, [sp, #4]
	orr	r2, r2, r1
	stmib	r9, {r3, r10}
	str	r0, [r9, #16]
	str	r3, [r9]
	str	r2, [r9, #12]
	b	.L4
.L34:
	ldrb	r3, [sp, #12]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	b	.L21
.L32:
	mov	r5, #0
	b	.L3
.L23:
	mov	r5, #0
	b	.L2
.L12:
	ldr	r10, [fp]
	b	.L4
.L36:
	movne	r0, #0
	bne	.L15
	ldr	r5, .L39+24
.L17:
	mov	r0, r8
	ldr	r1, [r5]
	bl	create_stream
	cmp	r0, #0
	beq	.L38
	ldr	r1, .L39+32
	ldr	r2, [r0, #4]
	ldr	r1, [r1]
	str	r1, [r2, #4]
	b	.L15
.L38:
	ldr	r3, .L39+36
	ldr	r0, [r3]
	bl	AVERROR
	mov	r10, r0
	b	.L1
.L33:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	AVERROR_INVALIDDATA
	.word	.LC1
	.word	SEEK_SET
	.word	SEEK_CUR
	.word	AMF_DATA_TYPE_STRING
	.word	1954047348
	.word	AVMEDIA_TYPE_SUBTITLE
	.word	AV_PKT_FLAG_KEY
	.word	AV_CODEC_ID_TEXT
	.word	ENOMEM
	.size	flv_data_packet, .-flv_data_packet
	.comm	SEEK_SET,4,4
	.comm	SEEK_CUR,4,4
	.comm	ENOMEM,4,4
	.comm	AV_PKT_FLAG_KEY,4,4
	.comm	AV_CODEC_ID_TEXT,4,4
	.comm	AVMEDIA_TYPE_SUBTITLE,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.comm	AMF_DATA_TYPE_STRING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
