	.file	"extr_hashsearch.c__hash_load_qualified_items.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_hash_load_qualified_items, @function
_hash_load_qualified_items:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	movsx	rbx, DWORD PTR 8[rdi]
	mov	edi, esi
	call	PageGetMaxOffsetNumber@PLT
	mov	edi, r13d
	mov	QWORD PTR [rsp], rax
	mov	r15, rax
	call	ScanDirectionIsForward@PLT
	test	rax, rax
	je	.L2
	xor	r13d, r13d
	cmp	r15, rbp
	jl	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	xor	edi, edi
	cmp	QWORD PTR FirstOffsetNumber[rip], rbp
	setle	dil
	call	Assert@PLT
	mov	rsi, rbp
	mov	edi, r12d
	call	PageGetItemId@PLT
	mov	edi, r12d
	mov	esi, eax
	call	PageGetItem@PLT
	cmp	QWORD PTR 16[rbx], 0
	mov	r15, rax
	je	.L4
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	jne	.L4
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR INDEX_MOVED_BY_SPLIT_MASK[rip], eax
	jne	.L32
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR [r14], 0
	je	.L6
	mov	edi, r12d
	mov	rsi, rbp
	call	PageGetItemId@PLT
	mov	edi, eax
	call	ItemIdIsDead@PLT
	test	rax, rax
	jne	.L32
.L6:
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	call	_hash_get_indextuple_hashkey@PLT
	cmp	QWORD PTR 8[rsp], rax
	jne	.L3
	mov	rsi, r15
	mov	rdi, r14
	call	_hash_checkqual@PLT
	test	rax, rax
	je	.L3
	mov	esi, r13d
	mov	rcx, r15
	mov	rdx, rbp
	mov	rdi, rbx
	call	_hash_saveitem@PLT
	add	r13d, 1
.L32:
	mov	rdi, rbp
	call	OffsetNumberNext@PLT
	mov	rbp, rax
	cmp	QWORD PTR [rsp], rax
	jge	.L8
.L3:
	xor	edi, edi
	cmp	DWORD PTR MaxIndexTuplesPerPage[rip], r13d
	setge	dil
	call	Assert@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	rbp, QWORD PTR FirstOffsetNumber[rip]
	mov	r13d, DWORD PTR MaxIndexTuplesPerPage[rip]
	jl	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xor	edi, edi
	cmp	QWORD PTR [rsp], rbp
	setge	dil
	call	Assert@PLT
	mov	rsi, rbp
	mov	edi, r12d
	call	PageGetItemId@PLT
	mov	edi, r12d
	mov	esi, eax
	call	PageGetItem@PLT
	cmp	QWORD PTR 16[rbx], 0
	mov	r15, rax
	je	.L11
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR [r15]
	test	DWORD PTR INDEX_MOVED_BY_SPLIT_MASK[rip], eax
	jne	.L33
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	QWORD PTR [r14], 0
	je	.L13
	mov	edi, r12d
	mov	rsi, rbp
	call	PageGetItemId@PLT
	mov	edi, eax
	call	ItemIdIsDead@PLT
	test	rax, rax
	jne	.L33
.L13:
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	call	_hash_get_indextuple_hashkey@PLT
	cmp	QWORD PTR 8[rsp], rax
	jne	.L10
	mov	rsi, r15
	mov	rdi, r14
	call	_hash_checkqual@PLT
	test	rax, rax
	je	.L10
	sub	r13d, 1
	mov	rcx, r15
	mov	rdx, rbp
	mov	rdi, rbx
	mov	esi, r13d
	call	_hash_saveitem@PLT
.L33:
	mov	rdi, rbp
	call	OffsetNumberPrev@PLT
	cmp	QWORD PTR FirstOffsetNumber[rip], rax
	mov	rbp, rax
	jle	.L15
.L10:
	mov	edi, r13d
	not	edi
	shr	edi, 31
	call	Assert@PLT
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	_hash_load_qualified_items, .-_hash_load_qualified_items
	.comm	MaxIndexTuplesPerPage,4,4
	.comm	INDEX_MOVED_BY_SPLIT_MASK,4,4
	.comm	FirstOffsetNumber,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_hashsearch.c__hash_load_qualified_items.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_hash_load_qualified_items, %function
_hash_load_qualified_items:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #12
	mov	r0, r1
	mov	r7, r3
	mov	r6, r1
	mov	r4, r2
	ldr	r5, [r8, #4]
	bl	PageGetMaxOffsetNumber
	mov	r9, r0
	mov	r0, r7
	bl	ScanDirectionIsForward
	cmp	r0, #0
	beq	.L2
	cmp	r9, r4
	mov	r7, #0
	blt	.L3
	ldr	r10, .L46
	b	.L8
.L6:
	ldr	r2, [r5]
	mov	r0, fp
	str	r2, [sp, #4]
	bl	_hash_get_indextuple_hashkey
	ldr	r2, [sp, #4]
	cmp	r2, r0
	bne	.L3
	mov	r1, fp
	mov	r0, r8
	bl	_hash_checkqual
	cmp	r0, #0
	beq	.L3
	mov	r2, r4
	mov	r1, r7
	mov	r3, fp
	mov	r0, r5
	bl	_hash_saveitem
	mov	r0, r4
	bl	OffsetNumberNext
	mov	r4, r0
	cmp	r9, r4
	add	r7, r7, #1
	blt	.L3
.L8:
	ldr	r0, [r10]
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
	bl	Assert
	mov	r1, r4
	mov	r0, r6
	bl	PageGetItemId
	mov	r1, r0
	mov	r0, r6
	bl	PageGetItem
	ldr	r2, [r5, #8]
	mov	fp, r0
	cmp	r2, #0
	beq	.L4
	ldr	r2, [r5, #4]
	cmp	r2, #0
	bne	.L4
	ldr	r3, .L46+4
	ldr	r1, [r0]
	ldr	r2, [r3]
	tst	r1, r2
	bne	.L7
.L4:
	ldr	r2, [r8]
	cmp	r2, #0
	beq	.L6
	mov	r1, r4
	mov	r0, r6
	bl	PageGetItemId
	bl	ItemIdIsDead
	cmp	r0, #0
	beq	.L6
.L7:
	mov	r0, r4
	bl	OffsetNumberNext
	mov	r4, r0
	cmp	r9, r4
	bge	.L8
.L3:
	ldr	r3, .L46+8
	ldr	r0, [r3]
	cmp	r0, r7
	movlt	r0, #0
	movge	r0, #1
	bl	Assert
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r10, .L46
	ldr	r2, .L46+8
	ldr	r3, [r10]
	ldr	r7, [r2]
	cmp	r4, r3
	blt	.L10
.L15:
	cmp	r9, r4
	movlt	r0, #0
	movge	r0, #1
	bl	Assert
	mov	r1, r4
	mov	r0, r6
	bl	PageGetItemId
	mov	r1, r0
	mov	r0, r6
	bl	PageGetItem
	ldr	r2, [r5, #8]
	mov	fp, r0
	cmp	r2, #0
	beq	.L11
	ldr	r2, [r5, #4]
	cmp	r2, #0
	bne	.L11
	ldr	r3, .L46+4
	ldr	r1, [r0]
	ldr	r2, [r3]
	tst	r1, r2
	bne	.L44
.L11:
	ldr	r2, [r8]
	cmp	r2, #0
	beq	.L13
	mov	r1, r4
	mov	r0, r6
	bl	PageGetItemId
	bl	ItemIdIsDead
	cmp	r0, #0
	bne	.L44
.L13:
	ldr	r2, [r5]
	mov	r0, fp
	str	r2, [sp, #4]
	bl	_hash_get_indextuple_hashkey
	ldr	r2, [sp, #4]
	cmp	r2, r0
	bne	.L10
	mov	r1, fp
	mov	r0, r8
	bl	_hash_checkqual
	cmp	r0, #0
	beq	.L10
	sub	r7, r7, #1
	mov	r3, fp
	mov	r1, r7
	mov	r2, r4
	mov	r0, r5
	bl	_hash_saveitem
.L44:
	mov	r0, r4
	bl	OffsetNumberPrev
	ldr	r3, [r10]
	mov	r4, r0
	cmp	r3, r0
	ble	.L15
.L10:
	mvn	r0, r7
	lsr	r0, r0, #31
	bl	Assert
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	.align	2
.L46:
	.word	FirstOffsetNumber
	.word	INDEX_MOVED_BY_SPLIT_MASK
	.word	MaxIndexTuplesPerPage
	.size	_hash_load_qualified_items, .-_hash_load_qualified_items
	.comm	MaxIndexTuplesPerPage,4,4
	.comm	INDEX_MOVED_BY_SPLIT_MASK,4,4
	.comm	FirstOffsetNumber,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
