	.file	"636275.c"
	.intel_syntax noprefix
	.text
	.globl	bsearch
	.type	bsearch, @function
bsearch:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -64[rbp], rdi
	mov	r14, rsi
	mov	rbx, rdx
	mov	r15, rcx
	mov	QWORD PTR -56[rbp], r8
	jmp	.L2
.L6:
	mov	rax, rbx
	shr	rax
	imul	rax, r15
	lea	r12, [r14+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, r12
	mov	rdi, QWORD PTR -64[rbp]
	call	rax
	mov	r13d, eax
	test	r13d, r13d
	jne	.L3
	mov	rax, r12
	jmp	.L4
.L3:
	test	r13d, r13d
	js	.L5
	lea	r14, [r12+r15]
	lea	rax, -1[rbx]
	shr	rax
	mov	rbx, rax
	jmp	.L2
.L5:
	shr	rbx
.L2:
	test	rbx, rbx
	jne	.L6
	mov	eax, 0
.L4:
	add	rsp, 24
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	bsearch, .-bsearch
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"636275.c"
	.text
	.align	2
	.global	bsearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	bsearch, %function
bsearch:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	mov	r9, r0
	mov	r6, r1
	mov	r4, r2
	mov	r7, r3
	b	.L2
.L6:
	lsr	r3, r4, #1
	mul	r3, r7, r3
	add	r5, r6, r3
	ldr	r3, [fp, #4]
	mov	r1, r5
	mov	r0, r9
	blx	r3
	mov	r8, r0
	cmp	r8, #0
	bne	.L3
	mov	r3, r5
	b	.L4
.L3:
	cmp	r8, #0
	blt	.L5
	add	r6, r5, r7
	sub	r3, r4, #1
	lsr	r4, r3, #1
	b	.L2
.L5:
	lsr	r4, r4, #1
.L2:
	cmp	r4, #0
	bne	.L6
	mov	r3, #0
.L4:
	mov	r0, r3
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	bsearch, .-bsearch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
