	.file	"extr_search-x-engine.c_search_query_heap_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	search_query_heap_insert
	.type	search_query_heap_insert, @function
search_query_heap_insert:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR SQH_SIZE[rip]
	cmp	edx, DWORD PTR SEARCH_QUERY_HEAP_SIZE[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, QWORD PTR SQH[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	je	.L17
	lea	eax, 1[rdx]
	mov	DWORD PTR SQH_SIZE[rip], eax
	cmp	eax, 1
	jg	.L10
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, 16
	call	memcpy@PLT
	cmp	r12d, 1
	je	.L15
	mov	rdi, QWORD PTR SQH[rip]
	mov	eax, r12d
.L10:
	mov	r12d, eax
	cdqe
	sar	r12d
	sal	rax, 4
	movsx	rbx, r12d
	sal	rbx, 4
	lea	rsi, [rdi+rbx]
	add	rdi, rax
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rsi], rax
	jg	.L18
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	mov	edx, 16
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	add	rbx, QWORD PTR SQH[rip]
	mov	rdi, rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 24[rdi]
	call	strlen@PLT
	lea	rsi, 1[rax]
	mov	rax, QWORD PTR SQH[rip]
	mov	edi, DWORD PTR 24[rax]
	call	zzfree@PLT
	mov	ecx, DWORD PTR SQH_SIZE[rip]
	cmp	ecx, 1
	jle	.L3
	mov	edx, 2
	mov	eax, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, 16
	call	memcpy@PLT
	mov	ecx, DWORD PTR SQH_SIZE[rip]
	lea	edx, [r12+r12]
	cmp	ecx, edx
	jl	.L15
	movsx	rax, r12d
.L6:
	mov	rdi, QWORD PTR SQH[rip]
	movsx	rbx, edx
	mov	r12d, edx
	sal	rbx, 4
	lea	rsi, [rdi+rbx]
	mov	r8, QWORD PTR [rsi]
	cmp	ecx, edx
	jle	.L4
	lea	rdx, 16[rbx]
	lea	rcx, [rdi+rdx]
	mov	r9, QWORD PTR [rcx]
	cmp	r9, r8
	jge	.L4
	add	r12d, 1
	mov	r8, r9
	mov	rsi, rcx
	mov	rbx, rdx
.L4:
	sal	rax, 4
	add	rdi, rax
	cmp	QWORD PTR 0[rbp], r8
	jg	.L19
	jmp	.L8
.L3:
	mov	rax, QWORD PTR SQH[rip]
	lea	rdi, 16[rax]
	jmp	.L8
.L7:
	movsx	rcx, eax
	sal	rcx, 4
	add	rdi, rcx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	search_query_heap_insert, .-search_query_heap_insert
	.comm	SQH_SIZE,4,4
	.comm	SQH,8,8
	.comm	SEARCH_QUERY_HEAP_SIZE,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-engine.c_search_query_heap_insert.c"
	.text
	.align	2
	.global	search_query_heap_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_query_heap_insert, %function
search_query_heap_insert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L21
	ldr	r4, .L21+4
	ldr	r2, [r2]
	ldr	r3, [r4]
	ldr	r6, .L21+8
	cmp	r3, r2
	mov	r5, r0
	ldr	r1, [r6]
	beq	.L16
	add	r0, r3, #1
	cmp	r0, #1
	str	r0, [r4]
	bgt	.L10
	b	.L7
.L18:
	mov	r2, #8
	bl	memcpy
	cmp	r4, #1
	beq	.L17
	mov	r0, r4
	ldr	r1, [r6]
.L10:
	asr	r4, r0, #1
	ldr	r2, [r1, r4, lsl #3]
	ldr	r3, [r5]
	add	r0, r1, r0, lsl #3
	cmp	r2, r3
	add	r1, r1, r4, lsl #3
	lsl	r7, r4, #3
	bgt	.L18
.L8:
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r2, #8
	b	memcpy
.L17:
	ldr	r3, [r6]
	mov	r1, r5
	add	r0, r3, r7
	mov	r2, #8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	memcpy
.L16:
	ldr	r7, [r1, #12]
	mov	r0, r7
	bl	strlen
	mov	r1, r0
	mov	r0, r7
	add	r1, r1, #1
	bl	zzfree
	ldr	r2, [r4]
	cmp	r2, #1
	ble	.L3
	mov	r3, #2
	mov	lr, #1
	b	.L6
.L20:
	ldr	r9, [r0, ip]
	add	r10, r0, ip
	cmp	r9, r2
	bge	.L12
	mov	r2, r9
	mov	r1, r10
	mov	r8, ip
	add	r7, r3, #1
.L4:
	ldr	r3, [r5]
	add	r0, r0, lr, lsl #3
	cmp	r3, r2
	ble	.L8
	mov	r2, #8
	bl	memcpy
	ldr	r2, [r4]
	lsl	r3, r7, #1
	cmp	r2, r7, lsl #1
	blt	.L19
	mov	lr, r7
.L6:
	ldr	r0, [r6]
	cmp	r2, r3
	lsl	r8, r3, #3
	ldr	r2, [r0, r3, lsl #3]
	add	r1, r0, r3, lsl #3
	add	ip, r8, #8
	bgt	.L20
.L12:
	mov	r7, r3
	b	.L4
.L19:
	ldr	r0, [r6]
	add	r0, r0, r8
	b	.L8
.L3:
	ldr	r0, [r6]
	add	r0, r0, #8
	b	.L8
.L7:
	add	r0, r1, r0, lsl #3
	b	.L8
.L22:
	.align	2
.L21:
	.word	SEARCH_QUERY_HEAP_SIZE
	.word	SQH_SIZE
	.word	SQH
	.size	search_query_heap_insert, .-search_query_heap_insert
	.comm	SQH_SIZE,4,4
	.comm	SQH,4,4
	.comm	SEARCH_QUERY_HEAP_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
