	.file	"extr_seqmap-data.c_tree_lookup_prev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tree_lookup_prev, @function
tree_lookup_prev:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L17
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	neg	eax
	test	r12d, r12d
	mov	r12d, 2000
	mov	esi, r15d
	cmovne	r12d, eax
	mov	edi, r14d
	call	min@PLT
	xor	edi, edi
	cmp	eax, r12d
	setle	dil
	call	assert@PLT
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	je	.L6
	mov	r15d, r12d
.L2:
	mov	esi, r15d
	mov	edi, r14d
	call	min@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR 20[rbx]
	mov	rsi, r13
	lea	r8d, -1[rax]
	mov	edi, ebp
	call	key_cmp2@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L18
	mov	esi, r15d
	mov	edi, r14d
	call	min@PLT
	xor	edi, edi
	cmp	eax, r12d
	setle	dil
	call	assert@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r8d, r15d
	mov	ecx, r12d
	mov	rdx, r13
	mov	esi, ebp
	call	tree_lookup_prev
	test	rax, rax
	cmove	rax, rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L17:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	tree_lookup_prev, .-tree_lookup_prev
	.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_seqmap-data.c_tree_lookup_prev.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tree_lookup_prev, %function
tree_lookup_prev:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r0, #0
	sub	sp, sp, #8
	movne	r8, r1
	movne	r9, r2
	movne	r7, r3
	ldr	r6, [sp, #40]
	bne	.L2
	b	.L6
.L15:
	mov	r1, r6
	mov	r0, r7
	moveq	r4, #2000
	rsbne	r4, r4, #0
	bl	min
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
	bl	assert
	ldr	r5, [r5, #4]
	cmp	r5, #0
	beq	.L6
	mov	r6, r4
.L2:
	mov	r1, r6
	mov	r0, r7
	ldr	r4, [r5, #12]
	ldr	r10, [r5, #8]
	bl	min
	sub	r0, r0, #1
	mov	r2, r4
	str	r0, [sp]
	mov	r3, r10
	mov	r1, r9
	mov	r0, r8
	bl	key_cmp2
	subs	r4, r0, #0
	ble	.L15
	mov	r1, r6
	mov	r0, r7
	bl	min
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
	bl	assert
	ldr	r0, [r5]
	mov	r3, r4
	mov	r2, r9
	mov	r1, r8
	str	r6, [sp]
	bl	tree_lookup_prev
	cmp	r0, #0
	moveq	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	tree_lookup_prev, .-tree_lookup_prev
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
