	.file	"extr_avi.c_AVI_IndexLoad_idx1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	AVI_IndexLoad_idx1, @function
AVI_IndexLoad_idx1:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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, 104
	.cfi_def_cfa_offset 160
	mov	rbx, QWORD PTR [rdi]
	mov	QWORD PTR [rsp], rsi
	lea	rdx, 40[rsp]
	lea	rsi, 32[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	AVI_IndexFind_idx1@PLT
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR 32[rsp]
	mov	DWORD PTR [rbx], 1
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L4
	lea	rsi, 48[rsp]
	xor	r13d, r13d
	lea	r12, 24[rsp]
	mov	QWORD PTR 8[rsp], rsi
	lea	rbp, 28[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 32[rsp]
	add	r13d, 1
	cmp	DWORD PTR [rax], r13d
	jbe	.L4
.L7:
	mov	edx, r13d
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rbp
	lea	rcx, [rdx+rdx*2]
	mov	rdx, r12
	lea	r15, 0[0+rcx*8]
	mov	edi, DWORD PTR 16[rax+r15]
	call	AVI_ParseStreamHeader@PLT
	mov	edi, DWORD PTR 28[rsp]
	cmp	DWORD PTR 4[rbx], edi
	jbe	.L5
	mov	rdx, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR 24[rsp]
	mov	rdx, QWORD PTR [rdx+rdi*8]
	cmp	DWORD PTR 8[rdx], eax
	je	.L6
	cmp	eax, DWORD PTR UNKNOWN_ES[rip]
	jne	.L5
.L6:
	mov	rax, QWORD PTR 32[rsp]
	sal	rdi, 4
	mov	rsi, r14
	add	rdi, QWORD PTR [rsp]
	mov	rdx, QWORD PTR 8[rsp]
	add	r13d, 1
	mov	rcx, QWORD PTR 8[rax]
	add	rcx, r15
	mov	eax, DWORD PTR 16[rcx]
	mov	DWORD PTR 72[rsp], eax
	mov	eax, DWORD PTR AVIIF_FIXKEYFRAME[rip]
	not	eax
	and	eax, DWORD PTR [rcx]
	mov	DWORD PTR 48[rsp], eax
	mov	rax, QWORD PTR 40[rsp]
	add	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR 64[rsp], rax
	mov	eax, DWORD PTR 4[rcx]
	mov	DWORD PTR 52[rsp], eax
	mov	DWORD PTR 56[rsp], eax
	call	avi_index_Append@PLT
	mov	rax, QWORD PTR 32[rsp]
	cmp	DWORD PTR [rax], r13d
	ja	.L7
.L4:
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
.L1:
	mov	rbx, QWORD PTR 88[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 104
	.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
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	AVI_IndexLoad_idx1, .-AVI_IndexLoad_idx1
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	UNKNOWN_ES,4,4
	.comm	AVIIF_FIXKEYFRAME,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_avi.c_AVI_IndexLoad_idx1.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_IndexLoad_idx1, %function
AVI_IndexLoad_idx1:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L17
	sub	sp, sp, #40
	mov	r5, r1
	mov	r6, r2
	mov	r1, sp
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r9, [r0]
	bl	AVI_IndexFind_idx1
	subs	r4, r0, #0
	bne	.L15
	mov	r2, #1
	ldr	r3, [sp]
	str	r2, [r9]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L4
	ldr	r8, .L17+4
	ldr	r7, .L17+8
	b	.L7
.L5:
	ldr	r3, [sp]
	add	r4, r4, #1
	ldr	r2, [r3]
	cmp	r2, r4
	bls	.L4
.L7:
	ldr	r3, [r3, #4]
	add	r2, sp, #8
	add	r3, r3, r4, lsl #4
	ldr	r0, [r3, #12]
	add	r1, sp, #12
	bl	AVI_ParseStreamHeader
	ldr	r0, [sp, #12]
	ldr	r3, [r9, #4]
	lsl	r2, r4, #4
	cmp	r3, r0
	bls	.L5
	ldr	r1, [r9, #8]
	ldr	r3, [sp, #8]
	ldr	r1, [r1, r0, lsl #2]
	ldr	r1, [r1, #4]
	cmp	r1, r3
	beq	.L6
	ldr	r1, [r7]
	cmp	r3, r1
	bne	.L5
.L6:
	ldr	r3, [sp]
	ldr	ip, [r8]
	ldr	r3, [r3, #4]
	ldr	r10, [sp, #4]
	add	r1, r3, r2
	ldr	r2, [r3, r2]
	ldr	r3, [r1, #8]
	ldr	lr, [r1, #12]
	bic	r2, r2, ip
	ldr	ip, [r1, #4]
	str	r2, [sp, #16]
	add	r3, r3, r10
	mov	r1, r6
	add	r0, r5, r0, lsl #3
	add	r2, sp, #16
	str	r3, [sp, #28]
	str	lr, [sp, #32]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	bl	avi_index_Append
	b	.L5
.L4:
	ldr	r3, .L17+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r3, .L17+16
	ldr	r0, [r3]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	AVIIF_FIXKEYFRAME
	.word	UNKNOWN_ES
	.word	VLC_SUCCESS
	.word	VLC_EGENERIC
	.size	AVI_IndexLoad_idx1, .-AVI_IndexLoad_idx1
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	UNKNOWN_ES,4,4
	.comm	AVIIF_FIXKEYFRAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
