	.file	"extr_util.c_binary_search.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	binary_search
	.type	binary_search, @function
binary_search:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, r14d
	mov	rdi, rbp
	sub	eax, r13d
	mov	r12d, eax
	shr	r12d, 31
	add	r12d, eax
	sar	r12d
	add	r12d, r13d
	movsx	rax, r12d
	mov	rsi, QWORD PTR [rbx+rax*8]
	call	strcmp@PLT
	test	eax, eax
	jns	.L12
	mov	r14d, r12d
.L3:
	cmp	r14d, r13d
	jne	.L13
	mov	r12d, -1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	je	.L1
	lea	r13d, 1[r12]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	binary_search, .-binary_search
	.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_util.c_binary_search.c"
	.text
	.align	2
	.global	binary_search
	.syntax unified
	.arm
	.fpu softvfp
	.type	binary_search, %function
binary_search:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	mov	r7, r1
	mov	r5, r2
	mov	r6, r3
	b	.L3
.L10:
	mov	r0, r8
	ldr	r1, [r7, r4, lsl #2]
	bl	strcmp
	cmp	r0, #0
	movlt	r6, r4
	bge	.L9
.L3:
	sub	ip, r6, r5
	add	ip, ip, ip, lsr #31
	cmp	r6, r5
	add	r4, r5, ip, asr #1
	bne	.L10
	mvn	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	beq	.L1
	add	r5, r4, #1
	b	.L3
	.size	binary_search, .-binary_search
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
