	.file	"extr_letters-data.c_load_index.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error reading header from index file: read %d bytes instead of %d: %m\n"
	.align 8
.LC1:
	.string	"bad letters index file header\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"header loaded\n"
	.text
	.p2align 4
	.globl	load_index
	.type	load_index, @function
load_index:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	test	rdi, rdi
	je	.L5
	mov	rsi, rdi
	mov	edx, -1
	xor	edi, edi
	call	dl_open_file@PLT
	test	rax, rax
	js	.L5
	mov	rax, QWORD PTR fd[rip]
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	lseek@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR fd[rip]
	mov	edx, 4
	lea	rsi, header[rip]
	mov	edi, DWORD PTR [rax]
	call	read@PLT
	mov	ebx, eax
	cmp	eax, 4
	je	.L9
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, eax
	xor	eax, eax
	mov	ecx, 4
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
.L9:
	xor	edi, edi
	cmp	ebx, 4
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR LETTERS_INDEX_MAGIC[rip]
	cmp	QWORD PTR header[rip], rax
	je	.L10
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	xor	edi, edi
	call	assert@PLT
.L10:
	cmp	DWORD PTR verbosity[rip], 1
	jle	.L11
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	fprintf@PLT
.L11:
	xor	edi, edi
	call	dl_close_file@PLT
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR LETTERS_INDEX_MAGIC[rip]
	xor	edi, edi
	mov	QWORD PTR header[rip], rax
	call	time@PLT
	mov	edx, DWORD PTR MAX_PRIORITY[rip]
	mov	DWORD PTR header[rip+16], eax
	test	edx, edx
	jle	.L4
	mov	rax, QWORD PTR header[rip+8]
	sub	edx, 1
	lea	rcx, [rdx+rdx*2]
	lea	rdx, 24[rax]
	lea	rcx, [rdx+rcx*8]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	add	rdx, 24
.L8:
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	rax, rdx
	cmp	rdx, rcx
	jne	.L19
.L4:
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	load_index, .-load_index
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	header,24,16
	.comm	fd,8,8
	.comm	SEEK_SET,4,4
	.comm	MAX_PRIORITY,4,4
	.comm	LETTERS_INDEX_MAGIC,8,8
	.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_letters-data.c_load_index.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error reading header from index file: read %d bytes"
	.ascii	" instead of %d: %m\012\000"
	.align	2
.LC1:
	.ascii	"bad letters index file header\012\000"
	.align	2
.LC2:
	.ascii	"header loaded\012\000"
	.text
	.align	2
	.global	load_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_index, %function
load_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r1, r0, #0
	push	{r4, lr}
	beq	.L5
	mvn	r2, #0
	mov	r0, #0
	bl	dl_open_file
	cmp	r0, #0
	blt	.L5
	ldr	r4, .L19
	ldr	r2, .L19+4
	ldr	r3, [r4]
	mov	r1, #0
	ldr	r2, [r2]
	ldr	r0, [r3]
	bl	lseek
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r4]
	mov	r2, #4
	ldr	r0, [r3]
	ldr	r1, .L19+8
	bl	read
	cmp	r0, #4
	mov	r4, r0
	beq	.L9
	ldr	r2, .L19+12
	mov	r3, #4
	ldr	r0, [r2]
	ldr	r1, .L19+16
	mov	r2, r4
	bl	fprintf
.L9:
	sub	r0, r4, #4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r2, .L19+8
	ldr	r3, .L19+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
	ldr	r3, .L19+12
	ldr	r1, .L19+24
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #0
	bl	assert
.L10:
	ldr	r3, .L19+28
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L11
	ldr	r3, .L19+12
	ldr	r1, .L19+32
	ldr	r0, [r3]
	bl	fprintf
.L11:
	mov	r0, #0
	bl	dl_close_file
	mov	r0, #1
	pop	{r4, pc}
.L5:
	ldr	r3, .L19+20
	ldr	r4, .L19+8
	ldr	r3, [r3]
	mov	r0, #0
	str	r3, [r4]
	bl	time
	ldr	r3, .L19+36
	str	r0, [r4, #8]
	ldr	r1, [r3]
	cmp	r1, #0
	ble	.L4
	mov	r2, #0
	ldr	r3, [r4, #4]
	add	r1, r1, r1, lsl #1
	add	r1, r3, r1, lsl #2
.L8:
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	add	r3, r3, #12
	cmp	r3, r1
	bne	.L8
.L4:
	mov	r0, #0
	pop	{r4, pc}
.L20:
	.align	2
.L19:
	.word	fd
	.word	SEEK_SET
	.word	header
	.word	stderr
	.word	.LC0
	.word	LETTERS_INDEX_MAGIC
	.word	.LC1
	.word	verbosity
	.word	.LC2
	.word	MAX_PRIORITY
	.size	load_index, .-load_index
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	header,12,4
	.comm	fd,4,4
	.comm	SEEK_SET,4,4
	.comm	MAX_PRIORITY,4,4
	.comm	LETTERS_INDEX_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
