	.file	"extr_libmp4.c_MP4_ReadBoxContainerChildrenIndexed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	MP4_ReadBoxContainerChildrenIndexed, @function
MP4_ReadBoxContainerChildrenIndexed:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rsi], 0
	jne	.L2
	mov	rdx, QWORD PTR 32[rsi]
	test	rdx, rdx
	je	.L44
.L2:
	mov	rdi, rbp
	call	vlc_stream_Tell@PLT
	cmp	r14d, 1
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	r8, rax
	sbb	rax, rax
	and	rax, -8
	add	rsi, rdx
	lea	rcx, 16[rax+r8]
	mov	QWORD PTR [rsp], rsi
	xor	eax, eax
	cmp	rcx, rsi
	jg	.L1
.L3:
	mov	DWORD PTR 28[rsp], 0
	mov	QWORD PTR 8[rsp], 0
.L6:
	test	rdx, rdx
	jne	.L45
.L7:
	test	r14d, r14d
	je	.L10
.L25:
	lea	rsi, 32[rsp]
	mov	edx, 8
	mov	rdi, rbp
	call	vlc_stream_Read@PLT
	cmp	eax, 7
	jle	.L13
	lea	rdi, 48[rsp]
	call	GetDWBE@PLT
	mov	r12, rax
.L12:
	xor	edx, edx
	lea	r8, 28[rsp]
	mov	rcx, r15
	mov	rsi, rbx
	mov	rdi, rbp
	mov	DWORD PTR 28[rsp], 0
	call	MP4_ReadBoxRestricted@PLT
	test	rax, rax
	je	.L14
	mov	QWORD PTR 24[rax], r12
	test	r13, r13
	je	.L15
	mov	rdx, r13
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	add	rdx, 8
	cmp	QWORD PTR 16[rax], rcx
	je	.L42
.L16:
	mov	rcx, QWORD PTR [rdx]
	test	rcx, rcx
	jne	.L17
.L15:
	mov	rdi, rbp
	call	vlc_stream_Tell@PLT
	mov	rdx, QWORD PTR [rbx]
	test	rdx, rdx
	je	.L7
	cmp	QWORD PTR [rsp], rax
	jg	.L6
.L18:
	xor	edi, edi
	cmp	rax, QWORD PTR [rsp]
	sete	dil
	call	assert@PLT
.L13:
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L42
	cmp	QWORD PTR [rbx], 0
	jne	.L46
	.p2align 4,,10
	.p2align 3
.L42:
	mov	eax, 1
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L47
	add	rsp, 88
	.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
.L48:
	.cfi_restore_state
	add	rax, 8
	cmp	QWORD PTR [rsp], rax
	jle	.L13
.L10:
	xor	r12d, r12d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rdi, rbp
	call	vlc_stream_Tell@PLT
	test	r14d, r14d
	je	.L48
	add	rax, 16
	cmp	QWORD PTR [rsp], rax
	jg	.L25
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	vlc_stream_Tell@PLT
	mov	rdx, QWORD PTR [rbx]
	test	rdx, rdx
	je	.L19
	cmp	QWORD PTR [rsp], rax
	jle	.L18
.L19:
	cmp	QWORD PTR 8[rsp], rax
	je	.L13
	mov	QWORD PTR 8[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rax, QWORD PTR 8[rsi]
	mov	QWORD PTR [rsp], rax
	jmp	.L3
.L46:
	mov	rdi, rbp
	call	vlc_stream_Tell@PLT
	mov	rsi, QWORD PTR [rsp]
	cmp	rsi, rax
	je	.L42
	mov	rdi, rbp
	call	MP4_Seek@PLT
	jmp	.L42
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	MP4_ReadBoxContainerChildrenIndexed, .-MP4_ReadBoxContainerChildrenIndexed
	.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_libmp4.c_MP4_ReadBoxContainerChildrenIndexed.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MP4_ReadBoxContainerChildrenIndexed, %function
MP4_ReadBoxContainerChildrenIndexed:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r1, [r1]
	mov	r8, r3
	ldr	r3, .L53
	sub	sp, sp, #52
	cmp	r1, #0
	mov	r5, r0
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bne	.L2
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L48
.L2:
	mov	r0, r5
	bl	vlc_stream_Tell
	ldr	r3, [sp, #88]
	cmp	r3, #0
	movne	r2, #16
	ldm	r4, {r3, r9}
	moveq	r2, #8
	add	r9, r3, r9
	add	r0, r0, r2
	cmp	r0, r9
	movgt	r0, #0
	bgt	.L1
.L3:
	mov	r2, #0
	mov	fp, r2
	mov	r10, r2
	str	r2, [sp, #8]
.L6:
	cmp	r3, #0
	bne	.L49
.L7:
	ldr	r3, [sp, #88]
	cmp	r3, #0
	beq	.L10
.L25:
	mov	r2, #8
	mov	r0, r5
	add	r1, sp, #12
	bl	vlc_stream_Read
	cmp	r0, #7
	ble	.L13
	add	r0, sp, #28
	bl	GetDWBE
	mov	r6, r0
.L12:
	add	r3, sp, #8
	str	r3, [sp]
	mov	r2, #0
	mov	r3, r8
	mov	r1, r4
	mov	r0, r5
	str	r10, [sp, #8]
	bl	MP4_ReadBoxRestricted
	cmp	r0, #0
	beq	.L14
	cmp	r7, #0
	str	r6, [r0, #12]
	beq	.L15
	sub	r2, r7, #4
	b	.L16
.L17:
	ldr	r1, [r0, #8]
	cmp	r1, r3
	beq	.L46
.L16:
	ldr	r3, [r2, #4]!
	cmp	r3, #0
	bne	.L17
.L15:
	mov	r0, r5
	bl	vlc_stream_Tell
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L7
	cmp	r9, r0
	bgt	.L6
.L18:
	sub	r0, r0, r9
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
.L13:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L46
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L50
.L46:
	mov	r0, #1
.L1:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L52:
	add	r0, r0, #8
	cmp	r9, r0
	ble	.L13
.L10:
	mov	r6, #0
	b	.L12
.L49:
	mov	r0, r5
	bl	vlc_stream_Tell
	ldr	r3, [sp, #88]
	cmp	r3, #0
	beq	.L52
	add	r0, r0, #16
	cmp	r9, r0
	bgt	.L25
	b	.L13
.L14:
	mov	r0, r5
	bl	vlc_stream_Tell
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L19
	cmp	r9, r0
	ble	.L18
.L19:
	cmp	fp, r0
	beq	.L13
	mov	fp, r0
	b	.L6
.L48:
	ldr	r9, [r4, #4]
	b	.L3
.L50:
	mov	r0, r5
	bl	vlc_stream_Tell
	cmp	r9, r0
	beq	.L46
	mov	r1, r9
	mov	r0, r5
	bl	MP4_Seek
	b	.L46
.L51:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC0
	.size	MP4_ReadBoxContainerChildrenIndexed, .-MP4_ReadBoxContainerChildrenIndexed
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
