	.file	"extr_ref-cache.c_search_ref_dir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	search_ref_dir
	.type	search_ref_dir, @function
search_ref_dir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L4
	mov	eax, DWORD PTR 8[rdi]
	mov	rbx, rdi
	test	eax, eax
	je	.L4
	mov	rbp, rsi
	mov	r12, rdx
	call	sort_ref_dir@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rsp
	mov	r8d, DWORD PTR ref_entry_cmp_sslice[rip]
	mov	ecx, 8
	mov	QWORD PTR [rsp], r12
	mov	QWORD PTR 8[rsp], rbp
	call	bsearch@PLT
	test	rax, rax
	je	.L4
	sub	rax, QWORD PTR [rbx]
	sar	rax, 3
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	search_ref_dir, .-search_ref_dir
	.comm	ref_entry_cmp_sslice,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_ref-cache.c_search_ref_dir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	search_ref_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_ref_dir, %function
search_ref_dir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	sub	sp, sp, #24
	subs	r5, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L4
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, #0
	beq	.L4
	mov	r6, r2
	bl	sort_ref_dir
	ldr	r2, .L15+4
	mov	r3, #4
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	str	r1, [sp]
	ldr	r1, [r4]
	add	r0, sp, #12
	str	r6, [sp, #12]
	str	r5, [sp, #16]
	bl	bsearch
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4]
	sub	r0, r0, r3
	asr	r0, r0, #2
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mvn	r0, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	ref_entry_cmp_sslice
	.size	search_ref_dir, .-search_ref_dir
	.comm	ref_entry_cmp_sslice,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
