	.file	"extr_avi.c_avi_HeaderCreateidx1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"idx1"
	.text
	.p2align 4
	.type	avi_HeaderCreateidx1, @function
avi_HeaderCreateidx1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	r12d, DWORD PTR [rbx]
	mov	rdi, rbp
	sal	r12d, 4
	lea	r13d, 8[r12]
	mov	esi, r13d
	call	bo_init@PLT
	mov	r8d, eax
	xor	eax, eax
	test	r8d, r8d
	je	.L1
	mov	rax, QWORD PTR [rsp]
	mov	edx, r13d
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	memset@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	bo_add_fourcc@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	bo_add_32le@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L3
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 8[rbx]
	mov	eax, r12d
	mov	rdi, rbp
	add	r12d, 1
	lea	rax, [rax+rax*2]
	mov	rsi, QWORD PTR [rdx+rax*8]
	lea	r13, 0[0+rax*8]
	call	bo_add_fourcc@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 8[rax+r13]
	call	bo_add_32le@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 12[rax+r13]
	call	bo_add_32le@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 16[rax+r13]
	call	bo_add_32le@PLT
	cmp	DWORD PTR [rbx], r12d
	ja	.L4
.L3:
	mov	rax, QWORD PTR [rsp]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	avi_HeaderCreateidx1, .-avi_HeaderCreateidx1
	.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_HeaderCreateidx1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"idx1\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_HeaderCreateidx1, %function
avi_HeaderCreateidx1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	sub	sp, sp, #8
	ldr	r5, [r4]
	ldr	r3, .L14
	lsl	r5, r5, #4
	add	r6, r5, #8
	mov	r0, sp
	mov	r1, r6
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	bo_init
	cmp	r0, #0
	beq	.L1
	ldr	r3, [sp]
	mov	r2, r6
	ldr	r0, [r3]
	mov	r1, #0
	bl	memset
	ldr	r1, .L14+4
	mov	r0, sp
	bl	bo_add_fourcc
	mov	r1, r5
	mov	r0, sp
	bl	bo_add_32le
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L3
	mov	r5, #0
.L4:
	ldr	r3, [r4, #4]
	mov	r0, sp
	ldr	r1, [r3, r5, lsl #4]
	bl	bo_add_fourcc
	ldr	r3, [r4, #4]
	lsl	r6, r5, #4
	add	r3, r3, r6
	ldr	r1, [r3, #4]
	mov	r0, sp
	bl	bo_add_32le
	ldr	r3, [r4, #4]
	mov	r0, sp
	add	r3, r3, r6
	ldr	r1, [r3, #8]
	bl	bo_add_32le
	ldr	r3, [r4, #4]
	mov	r0, sp
	add	r3, r3, r6
	ldr	r1, [r3, #12]
	bl	bo_add_32le
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L4
.L3:
	ldr	r0, [sp]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC0
	.size	avi_HeaderCreateidx1, .-avi_HeaderCreateidx1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
