	.file	"extr_lsm_sorted.c_mergeWorkerData.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mergeWorkerData, @function
mergeWorkerData:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r14d, DWORD PTR LSM_OK[rip]
	mov	DWORD PTR 44[rsp], edx
	mov	QWORD PTR 24[rsp], rcx
	mov	DWORD PTR 40[rsp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	r8d, r8d
	jle	.L1
	lea	rax, 52[rsp]
	mov	rbp, rdi
	mov	ebx, r8d
	mov	QWORD PTR 32[rsp], rax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[rbp]
	mov	r13, QWORD PTR [rax]
	call	lsmFsPageWritable@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR 0[rbp]
	call	fsPageData@PLT
	mov	esi, DWORD PTR 52[rsp]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	pageGetNRec@PLT
	mov	r12d, DWORD PTR 0[r13]
	mov	edi, DWORD PTR 52[rsp]
	mov	esi, eax
	call	SEGMENT_EOF@PLT
	movsx	r9, r12d
	mov	edi, ebx
	sub	rax, r9
	mov	QWORD PTR 8[rsp], r9
	mov	rsi, rax
	call	LSM_MIN@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	r9, QWORD PTR 8[rsp]
	mov	r15d, eax
	mov	eax, DWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	sub	eax, ebx
	lea	rdi, [rcx+r9*4]
	sub	ebx, r15d
	cdqe
	lea	rsi, [rdx+rax*4]
	mov	edx, r15d
	call	memcpy@PLT
	test	ebx, ebx
	jg	.L9
	add	r12d, r15d
	mov	DWORD PTR 0[r13], r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR 44[rsp]
	mov	rdi, rbp
	call	mergeWorkerNextPage@PLT
	cmp	DWORD PTR LSM_OK[rip], eax
	mov	r14d, eax
	je	.L4
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mergeWorkerData, .-mergeWorkerData
	.comm	LSM_OK,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_lsm_sorted.c_mergeWorkerData.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mergeWorkerData, %function
mergeWorkerData:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	r1, [sp, #56]
	str	r3, [sp]
	ldr	fp, .L11
	ldr	r3, .L11+4
	str	r2, [sp, #4]
	cmp	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, [fp]
	ble	.L1
	mov	r7, r0
	mov	r5, r1
	mov	r10, r9
.L4:
	ldm	r7, {r0, r2}
	ldr	r8, [r2]
	bl	lsmFsPageWritable
	bl	assert
	add	r1, sp, #8
	ldr	r0, [r7]
	bl	fsPageData
	ldr	r1, [sp, #8]
	mov	r9, r0
	bl	pageGetNRec
	mov	r1, r0
	ldr	r0, [sp, #8]
	ldr	r6, [r8]
	bl	SEGMENT_EOF
	mov	r1, r0
	mov	r0, r5
	sub	r1, r1, r6
	bl	LSM_MIN
	mov	r4, r0
	ldr	r3, [sp, #56]
	mov	r2, r4
	sub	r1, r3, r5
	ldr	r3, [sp]
	add	r0, r9, r6, lsl #2
	add	r1, r3, r1, lsl #2
	sub	r5, r5, r4
	bl	memcpy
	cmp	r5, #0
	bgt	.L9
	mov	r9, r10
	add	r4, r6, r4
	str	r4, [r8]
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r0, r7
	ldr	r1, [sp, #4]
	bl	mergeWorkerNextPage
	ldr	r2, [fp]
	mov	r10, r0
	cmp	r2, r0
	beq	.L4
	mov	r9, r0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	LSM_OK
	.word	.LC0
	.size	mergeWorkerData, .-mergeWorkerData
	.comm	LSM_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
