	.file	"extr_fts2.c_leavesReadersMerge.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	leavesReadersMerge, @function
leavesReadersMerge:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rsi
	push	r13
	.cfi_offset 13, -40
	mov	r13d, edx
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rcx
	mov	QWORD PTR -80[rbp], rdi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MERGE_COUNT[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	mov	rdi, r14
	mov	QWORD PTR -72[rbp], rsp
	call	leavesReaderTerm@PLT
	mov	rdi, r14
	mov	QWORD PTR -96[rbp], rax
	call	leavesReaderTermBytes@PLT
	xor	edi, edi
	cmp	DWORD PTR MERGE_COUNT[rip], r13d
	setge	dil
	mov	DWORD PTR -100[rbp], eax
	call	assert@PLT
	test	r13d, r13d
	jle	.L7
	lea	eax, -1[r13]
	mov	rbx, QWORD PTR -72[rbp]
	lea	r12, 4[r14+rax*4]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r14
	call	leavesReaderDataBytes@PLT
	mov	rdi, r14
	add	r14, 4
	mov	r15d, eax
	call	leavesReaderData@PLT
	mov	esi, DWORD PTR DL_DEFAULT[rip]
	mov	rdi, rbx
	mov	ecx, r15d
	mov	edx, eax
	add	rbx, 4
	call	dlrInit@PLT
	cmp	r14, r12
	jne	.L6
.L7:
	mov	rsi, QWORD PTR -88[rbp]
	mov	r8, QWORD PTR -72[rbp]
	mov	r9d, r13d
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rdi, QWORD PTR -80[rbp]
	call	leafWriterStepMerge@PLT
	mov	rsi, QWORD PTR -56[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L18
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	leavesReadersMerge, .-leavesReadersMerge
	.comm	MERGE_COUNT,4,4
	.comm	DL_DEFAULT,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_fts2.c_leavesReadersMerge.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	leavesReadersMerge, %function
leavesReadersMerge:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r9, r0
	ldr	r5, .L11
	str	r3, [fp, #-64]
	ldr	ip, [r5]
	ldr	r3, .L11+4
	lsl	ip, ip, #2
	add	ip, ip, #7
	bic	ip, ip, #7
	sub	sp, sp, ip
	mov	r0, r1
	str	r9, [fp, #-60]
	mov	r8, r2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	leavesReaderTerm
	mov	r3, r0
	mov	r0, r4
	str	r3, [fp, #-52]
	bl	leavesReaderTermBytes
	ldr	r3, [r5]
	str	r0, [fp, #-56]
	cmp	r3, r8
	movlt	r0, #0
	movge	r0, #1
	bl	assert
	add	r3, sp, #8
	cmp	r8, #0
	str	r3, [fp, #-48]
	ble	.L4
	ldr	r5, [fp, #-48]
	ldr	r7, .L11+8
	add	r6, r4, r8, lsl #2
.L3:
	mov	r0, r4
	ldr	r10, [r7]
	bl	leavesReaderData
	mov	r9, r0
	mov	r0, r4
	bl	leavesReaderDataBytes
	add	r4, r4, #4
	mov	r3, r0
	mov	r2, r9
	mov	r0, r5
	mov	r1, r10
	bl	dlrInit
	cmp	r6, r4
	add	r5, r5, #4
	bne	.L3
.L4:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	str	r3, [sp]
	ldr	r1, [fp, #-64]
	ldr	r3, [fp, #-56]
	ldr	r0, [fp, #-60]
	str	r8, [sp, #4]
	bl	leafWriterStepMerge
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	MERGE_COUNT
	.word	.LC0
	.word	DL_DEFAULT
	.size	leavesReadersMerge, .-leavesReadersMerge
	.comm	MERGE_COUNT,4,4
	.comm	DL_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
