	.file	"extr_flv_reader.c_flv_read_sample_header.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	flv_read_sample_header, @function
flv_read_sample_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rsi]
	cmp	DWORD PTR [rsi], eax
	jge	.L2
.L8:
	mov	eax, DWORD PTR 20[rbx]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, rdi
	lea	r14, 20[rsp]
	lea	r13, 12[rsp]
	call	STREAM_POSITION@PLT
	lea	rdx, 4[rsp]
	mov	rcx, r13
	mov	r8, r14
	lea	rsi, 8[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdi, rbp
	mov	r12, rax
	push	0
	.cfi_def_cfa_offset 96
	lea	r9, 32[rsp]
	call	flv_read_frame_header@PLT
	cmp	eax, DWORD PTR VC_CONTAINER_SUCCESS[rip]
	pop	rdx
	.cfi_def_cfa_offset 88
	mov	DWORD PTR 20[rbx], eax
	pop	rcx
	.cfi_def_cfa_offset 80
	jne	.L1
	mov	esi, DWORD PTR 4[rsp]
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, rbp
	call	flv_validate_frame_data@PLT
	cmp	eax, DWORD PTR VC_CONTAINER_ERROR_CONTINUE[rip]
	mov	DWORD PTR 20[rbx], eax
	je	.L11
	cmp	eax, DWORD PTR VC_CONTAINER_SUCCESS[rip]
	jne	.L1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR VC_CONTAINER_SUCCESS[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rsp], eax
.L5:
	mov	QWORD PTR 40[rbx], r12
	mov	rdi, rbp
	call	STREAM_POSITION@PLT
	mov	DWORD PTR [rbx], 0
	mov	QWORD PTR 32[rbx], rax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 16[rsp]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 16[rbx], eax
	jmp	.L8
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	flv_read_sample_header, .-flv_read_sample_header
	.comm	VC_CONTAINER_SUCCESS,4,4
	.comm	VC_CONTAINER_ERROR_CONTINUE,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_flv_reader.c_flv_read_sample_header.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flv_read_sample_header, %function
flv_read_sample_header:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldm	r1, {r2, r3}
	mov	r4, r1
	ldr	r1, .L11
	sub	sp, sp, #40
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #36]
	mov	r1,#0
	bge	.L2
	ldr	r0, [r4, #20]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r0
	bl	STREAM_POSITION
	mov	r3, #0
	add	r2, sp, #28
	add	r8, sp, #32
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	add	r3, sp, #24
	mov	r6, r0
	str	r8, [sp]
	mov	r0, r5
	add	r2, sp, #16
	add	r1, sp, #20
	bl	flv_read_frame_header
	ldr	r7, .L11+4
	str	r0, [r4, #20]
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L1
	mov	r3, r8
	mov	r0, r5
	ldr	r1, [sp, #16]
	add	r2, sp, #24
	bl	flv_validate_frame_data
	ldr	r3, .L11+8
	str	r0, [r4, #20]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L10
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L1
	b	.L5
.L10:
	ldr	r3, [r5]
	ldr	r2, [r7]
	str	r3, [sp, #16]
	str	r2, [r4, #20]
.L5:
	mov	r0, r5
	str	r6, [r4, #32]
	bl	STREAM_POSITION
	mov	r3, #0
	ldr	lr, [sp, #24]
	ldr	ip, [sp, #28]
	ldr	r1, [sp, #20]
	ldr	r2, [sp, #32]
	str	r3, [r4]
	ldr	r3, [sp, #16]
	str	r0, [r4, #28]
	str	lr, [r4, #4]
	ldr	r0, [r4, #20]
	str	ip, [r4, #8]
	str	r1, [r4, #12]
	str	r2, [r4, #24]
	str	r3, [r4, #16]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	VC_CONTAINER_SUCCESS
	.word	VC_CONTAINER_ERROR_CONTINUE
	.size	flv_read_sample_header, .-flv_read_sample_header
	.comm	VC_CONTAINER_SUCCESS,4,4
	.comm	VC_CONTAINER_ERROR_CONTINUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
