	.file	"extr_dm-btree.c_bsearch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bsearch, @function
bsearch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	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
	mov	ebp, -1
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 8[rdi]
	mov	DWORD PTR 12[rsp], edx
	call	le32_to_cpu@PLT
	mov	r13d, eax
	lea	ebx, 1[rax]
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	ebx, 1
	jle	.L2
.L13:
	sar	ebx
	mov	rax, QWORD PTR [r15]
	lea	r12d, [rbx+rbp]
	movsx	rdx, r12d
	mov	edi, DWORD PTR [rax+rdx*4]
	call	le64_to_cpu@PLT
	cmp	rax, r14
	je	.L1
	jge	.L7
	mov	ebx, r13d
	mov	ebp, r12d
	sub	ebx, r12d
	cmp	ebx, 1
	jg	.L13
.L2:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	cmovne	ebp, r13d
	mov	r12d, ebp
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L7:
	.cfi_restore_state
	mov	r13d, r12d
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	bsearch, .-bsearch
	.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_bsearch.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bsearch, %function
bsearch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r0
	ldr	r0, [r0, #4]
	mov	r8, r1
	mov	r9, r2
	bl	le32_to_cpu
	mvn	r6, #0
	mov	r7, r0
	add	r4, r0, #1
	b	.L11
.L13:
	ldr	r3, [r10]
	asr	r4, r4, #1
	add	r5, r4, r6
	ldr	r0, [r3, r5, lsl #2]
	bl	le64_to_cpu
	cmp	r0, r8
	beq	.L1
	movlt	r6, r5
	movge	r7, r5
	sublt	r4, r7, r5
.L11:
	cmp	r4, #1
	bgt	.L13
	cmp	r9, #0
	movne	r5, r7
	moveq	r5, r6
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	bsearch, .-bsearch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
