	.file	"extr_btree.c_befs_bt_get_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	befs_bt_get_key, @function
befs_bt_get_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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	edx, edx
	js	.L2
	mov	rbp, rsi
	mov	ebx, edx
	cmp	DWORD PTR [rsi], edx
	jl	.L2
	mov	r14, rdi
	mov	rdi, rsi
	movsx	r15, ebx
	call	befs_bt_keydata@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	befs_bt_keylen_index@PLT
	mov	rbp, rax
	lea	rax, 0[0+r15*4]
	test	ebx, ebx
	jne	.L11
.L5:
	mov	esi, DWORD PTR 0[rbp+r15*4]
	mov	rdi, r14
	call	fs16_to_cpu@PLT
	sub	eax, ebx
	mov	DWORD PTR [r12], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR -4[rbp+rax]
	mov	rdi, r14
	call	fs16_to_cpu@PLT
	mov	ebx, eax
	cdqe
	add	r13, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	DWORD PTR [r12], 0
	xor	r13d, r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	befs_bt_get_key, .-befs_bt_get_key
	.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_btree.c_befs_bt_get_key.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	befs_bt_get_key, %function
befs_bt_get_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r4, r2, #0
	mov	r7, r3
	blt	.L2
	ldr	r3, [r1]
	mov	r5, r1
	cmp	r3, r4
	blt	.L2
	mov	r8, r0
	mov	r0, r1
	bl	befs_bt_keydata
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	befs_bt_keylen_index
	cmp	r4, #0
	mov	r6, r0
	mov	r9, r4
	bne	.L11
.L5:
	mov	r0, r8
	ldr	r1, [r6, r9, lsl #2]
	bl	fs16_to_cpu
	sub	r4, r0, r4
	str	r4, [r7]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	sub	r4, r4, #-1073741823
	ldr	r1, [r0, r4, lsl #2]
	mov	r0, r8
	bl	fs16_to_cpu
	mov	r4, r0
	add	r5, r5, r0
	b	.L5
.L2:
	mov	r5, #0
	mov	r0, r5
	str	r5, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	befs_bt_get_key, .-befs_bt_get_key
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
