	.file	"extr_dm-btree.c_dm_btree_find_highest_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dm_btree_find_highest_key
	.type	dm_btree_find_highest_key, @function
dm_btree_find_highest_key:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], esi
	lea	r15, 20[rsp]
	mov	rsi, rdi
	mov	rdi, r15
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	init_ro_spine@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L2
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	test	ebx, ebx
	jne	.L4
	mov	eax, DWORD PTR 0[rbp]
	add	r13d, 1
	add	r14, 4
	cmp	eax, r13d
	jle	.L2
.L5:
	sub	eax, 1
	lea	rcx, 12[rsp]
	mov	esi, DWORD PTR 12[rsp]
	mov	rdx, r14
	cmp	eax, r13d
	mov	rdi, r15
	cmove	rcx, r12
	call	find_highest_key@PLT
	mov	ebx, eax
	add	eax, DWORD PTR ENODATA[rip]
	jne	.L13
.L2:
	mov	rdi, r15
	call	exit_ro_spine@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r15
	mov	r13d, ebx
	call	exit_ro_spine@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dm_btree_find_highest_key, .-dm_btree_find_highest_key
	.comm	ENODATA,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_dm-btree.c_dm_btree_find_highest_key.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dm_btree_find_highest_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm_btree_find_highest_key, %function
dm_btree_find_highest_key:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r0
	sub	sp, sp, #20
	ldr	r3, .L15
	str	r1, [sp, #4]
	add	r0, sp, #8
	mov	r1, r6
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r9, r2
	bl	init_ro_spine
	ldr	r3, [r6]
	mov	r5, #0
	cmp	r3, #0
	ble	.L2
	ldr	r8, .L15+4
	add	r7, sp, #4
	b	.L5
.L13:
	cmp	r0, #0
	bne	.L4
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	add	r9, r9, #4
	ble	.L2
.L5:
	sub	r3, r3, #1
	cmp	r3, r5
	movne	r3, r7
	moveq	r3, #0
	mov	r2, r9
	ldr	r1, [sp, #4]
	add	r0, sp, #8
	bl	find_highest_key
	ldr	r3, [r8]
	mov	r4, r0
	cmn	r0, r3
	bne	.L13
.L2:
	add	r0, sp, #8
	bl	exit_ro_spine
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	add	r0, sp, #8
	bl	exit_ro_spine
	mov	r5, r4
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	ENODATA
	.size	dm_btree_find_highest_key, .-dm_btree_find_highest_key
	.comm	ENODATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
