	.file	"extr_targ-index.c_init_new_word_directory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	init_new_word_directory
	.type	init_new_word_directory, @function
init_new_word_directory:
.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, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR HASH_BUCKETS[rip]
	test	edi, edi
	jle	.L18
	xor	r12d, r12d
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR Hash[rip]
	mov	rbx, QWORD PTR [rax+r12*8]
	test	rbx, rbx
	jne	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rbx, QWORD PTR 16[rbx]
	test	rbx, rbx
	je	.L3
.L5:
	mov	esi, DWORD PTR [rbx]
	test	esi, esi
	je	.L4
	add	ebp, 1
	xor	edi, edi
	cmp	ebp, 536870909
	setbe	dil
	call	assert@PLT
	mov	rbx, QWORD PTR 16[rbx]
	test	rbx, rbx
	jne	.L5
.L3:
	add	r12, 1
	cmp	DWORD PTR HASH_BUCKETS[rip], r12d
	jg	.L6
.L2:
	mov	DWORD PTR new_idx_words[rip], ebp
	add	ebp, DWORD PTR idx_words[rip]
	lea	edi, 4[0+rbp*4]
	mov	DWORD PTR new_worddir_size[rip], edi
	call	malloc@PLT
	mov	ecx, DWORD PTR HASH_BUCKETS[rip]
	mov	QWORD PTR NewWordDir[rip], rax
	test	ecx, ecx
	jle	.L19
	xor	r12d, r12d
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR Hash[rip]
	mov	rbx, QWORD PTR [rax+r12*8]
	test	rbx, rbx
	jne	.L12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rbx, QWORD PTR 16[rbx]
	test	rbx, rbx
	je	.L8
.L12:
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L9
	xor	eax, eax
	call	clear_tmp_word_data@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	get_idx_word_list_len@PLT
	cmp	DWORD PTR 8[rbx], eax
	je	.L10
.L11:
	mov	rax, QWORD PTR NewWordDir[rip]
	movsx	rdx, ebp
	add	ebp, 1
	lea	rax, [rax+rdx*8]
	mov	edx, DWORD PTR 4[rbx]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR [rbx]
	mov	rbx, QWORD PTR 16[rbx]
	mov	DWORD PTR 4[rax], edx
	test	rbx, rbx
	jne	.L12
.L8:
	add	r12, 1
	cmp	DWORD PTR HASH_BUCKETS[rip], r12d
	jg	.L13
	movsx	rbx, ebp
	lea	r12d, 1[rbp]
	sal	rbx, 3
.L7:
	xor	edi, edi
	cmp	DWORD PTR new_idx_words[rip], ebp
	setge	dil
	call	assert@PLT
	mov	eax, DWORD PTR idx_words[rip]
	test	eax, eax
	jle	.L14
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR idx_worddir[rip]
	xor	esi, esi
	mov	r12d, DWORD PTR [rax+rbx*4]
	mov	edi, r12d
	call	get_hash_node@PLT
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L16
.L15:
	mov	rax, QWORD PTR NewWordDir[rip]
	movsx	rdx, ebp
	add	ebp, 1
	lea	rax, [rax+rdx*8]
	mov	DWORD PTR [rax], r12d
	mov	DWORD PTR 4[rax], 0
.L16:
	mov	eax, DWORD PTR idx_words[rip]
	add	rbx, 1
	cmp	eax, ebx
	jg	.L17
	movsx	rbx, ebp
	lea	r12d, 1[rbp]
	sal	rbx, 3
.L14:
	add	eax, DWORD PTR new_idx_words[rip]
	xor	edi, edi
	cmp	eax, ebp
	setge	dil
	sal	r12d, 2
	call	assert@PLT
	mov	rdi, QWORD PTR NewWordDir[rip]
	mov	DWORD PTR new_idx_words[rip], ebp
	lea	esi, -1[rbp]
	mov	QWORD PTR [rdi+rbx], -1
	mov	DWORD PTR new_worddir_size[rip], r12d
	add	rsp, 8
	.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
	jmp	sort_word_dictionary@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	edi, edi
	call	dyn_mark@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	build_word_iterator@PLT
	xor	edi, edi
	mov	r13d, DWORD PTR [rax]
	call	dyn_release@PLT
	cmp	DWORD PTR INFTY[rip], r13d
	jne	.L11
	jmp	.L9
.L18:
	xor	ebp, ebp
	jmp	.L2
.L19:
	mov	r12d, 1
	xor	ebx, ebx
	xor	ebp, ebp
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	init_new_word_directory, .-init_new_word_directory
	.comm	new_worddir_size,4,4
	.comm	new_idx_words,4,4
	.comm	idx_words,4,4
	.comm	idx_worddir,8,8
	.comm	NewWordDir,8,8
	.comm	INFTY,4,4
	.comm	Hash,8,8
	.comm	HASH_BUCKETS,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_targ-index.c_init_new_word_directory.c"
	.text
	.align	2
	.global	init_new_word_directory
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_new_word_directory, %function
init_new_word_directory:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L41
	sub	sp, sp, #20
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r9, #0
	mov	r5, r9
	ldr	r7, .L41+4
.L6:
	ldr	r3, [r7]
	ldr	r4, [r3, r5, lsl #2]
	cmp	r4, #0
	bne	.L5
	b	.L3
.L4:
	ldr	r4, [r4, #12]
	cmp	r4, #0
	beq	.L3
.L5:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L4
	add	r9, r9, #1
	cmn	r9, #-536870909
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	ldr	r4, [r4, #12]
	cmp	r4, #0
	bne	.L5
.L3:
	ldr	r4, [r6]
	add	r5, r5, #1
	cmp	r4, r5
	bgt	.L6
	ldr	r8, .L41+8
	ldr	r3, .L41+12
	ldr	r0, [r8]
	ldr	r2, .L41+16
	add	r0, r9, r0
	add	r0, r0, #1
	lsl	r0, r0, #2
	str	r3, [sp, #12]
	str	r2, [sp, #8]
	str	r0, [r3]
	str	r9, [r2]
	bl	malloc
	ldr	r5, .L41+20
	cmp	r4, #0
	str	r0, [r5]
	ble	.L18
	mov	fp, #0
	mov	r4, fp
	ldr	r9, .L41+24
.L13:
	ldr	r3, [r7]
	ldr	r10, [r3, r4, lsl #2]
	cmp	r10, #0
	bne	.L12
	b	.L8
.L9:
	ldr	r10, [r10, #12]
	cmp	r10, #0
	beq	.L8
.L12:
	ldr	r1, [r10]
	cmp	r1, #0
	beq	.L9
	bl	clear_tmp_word_data
	ldr	r0, [r10, #4]
	bl	get_idx_word_list_len
	ldr	r1, [r10, #8]
	cmp	r1, r0
	beq	.L10
.L11:
	ldm	r10, {ip, lr}
	ldr	r1, [r5]
	ldr	r10, [r10, #12]
	add	r0, r1, fp, lsl #3
	cmp	r10, #0
	str	lr, [r1, fp, lsl #3]
	str	ip, [r0, #4]
	add	fp, fp, #1
	bne	.L12
.L8:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L13
	ldr	r3, [sp, #8]
	lsl	r6, fp, #3
	ldr	r9, [r3]
	add	r4, fp, #1
.L7:
	cmp	fp, r9
	movgt	r0, #0
	movle	r0, #1
	bl	assert
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L14
	mov	r4, #0
	mov	r6, r4
	ldr	r9, .L41+28
.L17:
	ldr	r3, [r9]
	mov	r1, #0
	ldr	r7, [r3, r4, lsl #2]
	add	r4, r4, #1
	mov	r0, r7
	bl	get_hash_node
	cmp	r0, #0
	beq	.L15
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r3, [r5]
	add	r1, r3, fp, lsl #3
	str	r7, [r3, fp, lsl #3]
	str	r6, [r1, #4]
	add	fp, fp, #1
.L16:
	ldr	r3, [r8]
	cmp	r3, r4
	bgt	.L17
	lsl	r6, fp, #3
	add	r4, fp, #1
.L14:
	ldr	r7, [sp, #8]
	lsl	r4, r4, #2
	ldr	r1, [r7]
	add	r3, r3, r1
	cmp	r3, fp
	movlt	r0, #0
	movge	r0, #1
	bl	assert
	mvn	r3, #0
	ldr	r0, [r5]
	str	fp, [r7]
	add	ip, r0, r6
	str	r3, [r0, r6]
	add	r1, fp, r3
	str	r3, [ip, #4]
	ldr	r3, [sp, #12]
	str	r4, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	sort_word_dictionary
.L10:
	mov	r0, #0
	bl	dyn_mark
	ldr	r0, [r10, #4]
	bl	build_word_iterator
	mov	r1, r0
	ldr	r1, [r1]
	mov	r0, #0
	str	r1, [sp, #4]
	bl	dyn_release
	ldr	r0, [r9]
	ldr	r1, [sp, #4]
	cmp	r0, r1
	bne	.L11
	b	.L9
.L2:
	mov	r6, #0
	ldr	r8, .L41+8
	ldr	r3, .L41+12
	ldr	r0, [r8]
	ldr	r2, .L41+16
	add	r0, r0, #1
	lsl	r0, r0, #2
	str	r3, [sp, #12]
	str	r2, [sp, #8]
	str	r0, [r3]
	str	r6, [r2]
	bl	malloc
	ldr	r5, .L41+20
	mov	r9, r6
	mov	fp, r6
	mov	r4, #1
	str	r0, [r5]
	b	.L7
.L18:
	mov	r6, #0
	mov	r4, #1
	mov	fp, r6
	b	.L7
.L42:
	.align	2
.L41:
	.word	HASH_BUCKETS
	.word	Hash
	.word	idx_words
	.word	new_worddir_size
	.word	new_idx_words
	.word	NewWordDir
	.word	INFTY
	.word	idx_worddir
	.size	init_new_word_directory, .-init_new_word_directory
	.comm	new_worddir_size,4,4
	.comm	new_idx_words,4,4
	.comm	idx_words,4,4
	.comm	idx_worddir,4,4
	.comm	NewWordDir,4,4
	.comm	INFTY,4,4
	.comm	Hash,4,4
	.comm	HASH_BUCKETS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
