	.file	"extr_ebml.c_ebml_read_element.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unexpected end of file - partial or corrupt file?\n"
	.align 8
.LC1:
	.string	"EBML element with unknown length - unsupported\n"
	.align 8
.LC2:
	.string	"Refusing to read element over 100 MB in size\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Error parsing element %s\n"
	.text
	.p2align 4
	.globl	ebml_read_element
	.type	ebml_read_element, @function
ebml_read_element:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR 8[rsi], 0
	mov	DWORD PTR [rsi], 0
	mov	r14d, DWORD PTR MSGL_WARN[rip]
	je	.L3
	mov	r14d, DWORD PTR MSGL_DEBUG[rip]
.L3:
	mov	rdi, r15
	call	ebml_read_length@PLT
	cmp	QWORD PTR [r15], 0
	mov	ebx, eax
	jne	.L15
	cmp	DWORD PTR EBML_UINT_INVALID[rip], eax
	je	.L16
	cmp	eax, 1000000000
	jg	.L17
	mov	esi, eax
	xor	edi, edi
	call	talloc_size@PLT
	mov	rdi, r15
	mov	edx, ebx
	mov	DWORD PTR 4[rbp], eax
	mov	esi, eax
	call	stream_read@PLT
	mov	r15d, eax
	cmp	ebx, eax
	jg	.L18
.L8:
	mov	edx, DWORD PTR 4[rbp]
	xor	r9d, r9d
	mov	r8, r12
	mov	ecx, r15d
	mov	rsi, r13
	mov	rdi, rbp
	call	ebml_parse_element@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L19
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L18:
	.cfi_restore_state
	lea	rdx, .LC0[rip]
	mov	esi, r14d
	mov	rdi, rbp
	xor	eax, eax
	call	MP_MSG@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	ecx, DWORD PTR [r12]
	mov	esi, r14d
	mov	rdi, rbp
	xor	eax, eax
	lea	rdx, .LC3[rip]
	call	MP_MSG@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L17:
	.cfi_restore_state
	lea	rdx, .LC2[rip]
.L13:
	mov	esi, r14d
	mov	rdi, rbp
	xor	eax, eax
	call	MP_MSG@PLT
	mov	eax, -1
	jmp	.L1
.L15:
	lea	rdx, .LC0[rip]
	jmp	.L13
.L16:
	lea	rdx, .LC1[rip]
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	ebml_read_element, .-ebml_read_element
	.comm	MSGL_WARN,4,4
	.comm	MSGL_DEBUG,4,4
	.comm	EBML_UINT_INVALID,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_ebml.c_ebml_read_element.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unexpected end of file - partial or corrupt file?\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"EBML element with unknown length - unsupported\012\000"
	.align	2
.LC2:
	.ascii	"Refusing to read element over 100 MB in size\012\000"
	.align	2
.LC3:
	.ascii	"Error parsing element %s\012\000"
	.text
	.align	2
	.global	ebml_read_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	ebml_read_element, %function
ebml_read_element:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r1
	mov	r1, #0
	ldr	ip, [r4, #8]
	mov	r6, r0
	cmp	ip, r1
	mov	r7, r3
	ldrne	r3, .L19
	ldreq	r3, .L19+4
	str	r1, [r4]
	sub	sp, sp, #12
	ldr	r9, [r3]
	mov	r8, r2
	bl	ebml_read_length
	ldr	r3, [r6]
	mov	r5, r0
	cmp	r3, #0
	bne	.L14
	ldr	r2, .L19+8
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L15
	ldr	r2, .L19+12
	cmp	r0, r2
	bgt	.L16
	mov	r0, r3
	mov	r1, r5
	bl	talloc_size
	mov	r1, r0
	mov	r2, r5
	mov	r0, r6
	str	r1, [r4, #4]
	bl	stream_read
	cmp	r5, r0
	mov	r6, r0
	bgt	.L17
.L8:
	mov	r5, #0
	str	r7, [sp]
	str	r5, [sp, #4]
	mov	r3, r6
	mov	r1, r8
	mov	r0, r4
	ldr	r2, [r4, #4]
	bl	ebml_parse_element
	ldr	r0, [r4]
	cmp	r0, r5
	bne	.L18
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	mov	r1, r9
	mov	r0, r4
	ldr	r2, .L19+16
	bl	MP_MSG
	b	.L8
.L18:
	mov	r1, r9
	mov	r0, r4
	ldr	r3, [r7]
	ldr	r2, .L19+20
	bl	MP_MSG
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	mov	r1, r9
	mov	r0, r4
	ldr	r2, .L19+24
	bl	MP_MSG
	mvn	r0, #0
	b	.L1
.L14:
	mov	r1, r9
	mov	r0, r4
	ldr	r2, .L19+16
	bl	MP_MSG
	mvn	r0, #0
	b	.L1
.L15:
	mov	r1, r9
	mov	r0, r4
	ldr	r2, .L19+28
	bl	MP_MSG
	mvn	r0, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	MSGL_DEBUG
	.word	MSGL_WARN
	.word	EBML_UINT_INVALID
	.word	1000000000
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.size	ebml_read_element, .-ebml_read_element
	.comm	MSGL_WARN,4,4
	.comm	MSGL_DEBUG,4,4
	.comm	EBML_UINT_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
