	.file	"extr_search-x-data.c_rebuild_hashmap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rebuild_hashmap: old hashmap size = %d, Q_limit = %d\n"
	.align 8
.LC1:
	.string	"Not enough memory for allocate hash table for storing %d entries.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"log_cur_pos ()\t%lld\n"
.LC3:
	.string	"last_search_query\t%s\n"
	.text
	.p2align 4
	.globl	rebuild_hashmap
	.type	rebuild_hashmap, @function
rebuild_hashmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	mov	edi, 2
	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	ecx, DWORD PTR Q_limit[rip]
	mov	edx, DWORD PTR hm[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	add	DWORD PTR rebuild_hashmap_calls[rip], 1
	call	vkprintf@PLT
	mov	eax, DWORD PTR hm[rip+4]
	lea	rdi, hm[rip]
	lea	r12d, [rax+rax]
	mov	eax, DWORD PTR MAX_RES[rip]
	add	eax, 10
	cmp	eax, r12d
	cmovle	r12d, eax
	call	hashmap_ll_int_free@PLT
	lea	rdi, hm[rip]
	mov	esi, r12d
	call	hashmap_ll_int_init@PLT
	test	eax, eax
	je	.L15
.L2:
	mov	eax, DWORD PTR R_cnt[rip]
	test	eax, eax
	jle	.L1
	mov	ebp, 4
	mov	r12d, 1
	lea	r13, 4[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR hm[rip]
	mov	rax, QWORD PTR RS[rip]
	mov	DWORD PTR [rax+rbp], edx
.L6:
	add	r12d, 1
	add	rbp, 4
	cmp	DWORD PTR R_cnt[rip], r12d
	jl	.L1
.L7:
	mov	rax, QWORD PTR R[rip]
	mov	edi, DWORD PTR [rax+rbp]
	call	get_hash_item@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L4
	mov	rdx, r13
	mov	rsi, rax
	lea	rdi, hm[rip]
	call	hashmap_ll_int_get@PLT
	test	eax, eax
	jne	.L16
.L5:
	movsx	rax, DWORD PTR 4[rsp]
	mov	rdx, rax
	sal	rax, 4
	add	rax, QWORD PTR hm[rip+16]
	mov	QWORD PTR [rax], rbx
	mov	DWORD PTR 8[rax], r12d
	mov	rax, QWORD PTR RS[rip]
	add	DWORD PTR hm[rip+8], 1
	mov	DWORD PTR [rax+rbp], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xor	eax, eax
	call	log_cur_pos@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	rdx, QWORD PTR last_search_query[rip]
	mov	edi, DWORD PTR stderr[rip]
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	fprintf@PLT
	xor	edi, edi
	call	assert@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rebuild_hashmap, .-rebuild_hashmap
	.comm	stderr,4,4
	.comm	rebuild_hashmap_calls,4,4
	.comm	last_search_query,8,8
	.comm	hm,24,16
	.comm	R_cnt,4,4
	.comm	RS,8,8
	.comm	R,8,8
	.comm	Q_limit,4,4
	.comm	MAX_RES,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_search-x-data.c_rebuild_hashmap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rebuild_hashmap: old hashmap size = %d, Q_limit = %"
	.ascii	"d\012\000"
	.align	2
.LC1:
	.ascii	"Not enough memory for allocate hash table for stori"
	.ascii	"ng %d entries.\012\000"
	.align	2
.LC2:
	.ascii	"log_cur_pos ()\011%lld\012\000"
	.align	2
.LC3:
	.ascii	"last_search_query\011%s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rebuild_hashmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	rebuild_hashmap, %function
rebuild_hashmap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L18
	ldr	r5, .L18+4
	ldr	r0, [ip]
	ldr	lr, .L18+8
	ldr	r3, .L18+12
	sub	sp, sp, #28
	add	r0, r0, #1
	ldr	lr, [lr]
	str	lr, [sp, #20]
	mov	lr,#0
	ldr	r2, [r5]
	str	r0, [ip]
	ldr	r1, .L18+16
	ldr	r3, [r3]
	mov	r0, #2
	bl	vkprintf
	ldr	r3, .L18+20
	ldr	r4, [r5, #4]
	ldr	r3, [r3]
	lsl	r4, r4, #1
	add	r3, r3, #10
	cmp	r3, r4
	movlt	r4, r3
	mov	r0, r5
	bl	hashmap_ll_int_free
	mov	r1, r4
	mov	r0, r5
	bl	hashmap_ll_int_init
	cmp	r0, #0
	beq	.L15
.L2:
	ldr	r9, .L18+24
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L1
	mov	r4, #1
	ldr	r10, .L18+28
	ldr	fp, .L18+32
	b	.L7
.L4:
	ldr	r3, [fp]
	ldr	r2, [r5]
	str	r2, [r3, r4, lsl #2]
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	blt	.L1
.L7:
	ldr	r3, [r10]
	lsl	r8, r4, #2
	ldr	r0, [r3, r4, lsl #2]
	bl	get_hash_item
	mov	r6, r0
	mov	r7, r1
	orrs	r3, r6, r7
	beq	.L4
	add	r3, sp, #16
	mov	r2, r0
	str	r3, [sp]
	ldr	r0, .L18+4
	mov	r3, r1
	bl	hashmap_ll_int_get
	cmp	r0, #0
	bne	.L16
.L5:
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #12]
	ldr	r1, [sp, #16]
	ldr	r0, [fp]
	add	r3, r3, r1, lsl #4
	add	r2, r2, #1
	str	r4, [r3, #8]
	stm	r3, {r6-r7}
	str	r2, [r5, #8]
	str	r1, [r0, r8]
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L7
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L18+36
	ldr	r3, [r3]
	str	r3, [sp, #12]
	bl	log_cur_pos
	ldr	r3, [sp, #12]
	mov	r2, r0
	ldr	r1, .L18+40
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L18+36
	ldr	r2, .L18+44
	ldr	r1, .L18+48
	ldr	r2, [r2]
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #0
	bl	assert
	b	.L5
.L15:
	ldr	r3, .L18+36
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L18+52
	bl	fprintf
	mov	r0, #2
	bl	exit
	b	.L2
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	rebuild_hashmap_calls
	.word	hm
	.word	.LC4
	.word	Q_limit
	.word	.LC0
	.word	MAX_RES
	.word	R_cnt
	.word	R
	.word	RS
	.word	stderr
	.word	.LC2
	.word	last_search_query
	.word	.LC3
	.word	.LC1
	.size	rebuild_hashmap, .-rebuild_hashmap
	.comm	stderr,4,4
	.comm	rebuild_hashmap_calls,4,4
	.comm	last_search_query,4,4
	.comm	hm,16,4
	.comm	R_cnt,4,4
	.comm	RS,4,4
	.comm	R,4,4
	.comm	Q_limit,4,4
	.comm	MAX_RES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
