	.file	"extr_dir.c_read_cached_dir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	read_cached_dir, @function
read_cached_dir:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	rdi, QWORD PTR 48[rdi]
	test	rdi, rdi
	jne	.L12
	mov	rcx, QWORD PTR 24[rbx]
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR [rcx]
	cmp	rsi, rax
	jbe	.L8
	mov	rdi, QWORD PTR 32[rcx]
.L5:
	mov	rdx, QWORD PTR [rdi+rax*8]
	add	rax, 1
	mov	r8d, DWORD PTR 24[rdx]
	test	r8d, r8d
	je	.L13
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	mov	QWORD PTR 32[rbx], rdx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	readdir@PLT
	test	eax, eax
	mov	DWORD PTR 40[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sete	al
	movzx	eax, al
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	QWORD PTR [rbx], rax
	cmp	rax, rsi
	jne	.L5
.L8:
	mov	QWORD PTR 32[rbx], 0
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR 8[rcx]
	jge	.L14
	mov	rdx, QWORD PTR 16[rcx]
	lea	rcx, 1[rax]
	mov	QWORD PTR 8[rbx], rcx
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR 16[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	read_cached_dir, .-read_cached_dir
	.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_dir.c_read_cached_dir.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_cached_dir, %function
read_cached_dir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #24]
	cmp	r0, #0
	bne	.L12
	ldr	ip, [r4, #12]
	ldr	r3, [r4]
	ldr	r5, [ip]
	cmp	r5, r3
	bls	.L8
	ldr	r2, [ip, #16]
	sub	r1, r3, #-1073741823
	add	r2, r2, r1, lsl #2
.L5:
	ldr	r1, [r2, #4]!
	add	r3, r3, #1
	ldr	lr, [r1, #12]
	cmp	lr, #0
	beq	.L13
	str	r1, [r4, #16]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L12:
	bl	readdir
	clz	r3, r0
	lsr	r3, r3, #5
	str	r0, [r4, #20]
	rsb	r0, r3, #0
	pop	{r4, r5, r6, pc}
.L13:
	cmp	r3, r5
	str	r3, [r4]
	bne	.L5
.L8:
	mov	r1, #0
	ldr	r2, [ip, #4]
	ldr	r3, [r4, #4]
	str	r1, [r4, #16]
	cmp	r3, r2
	bge	.L14
	ldr	r1, [ip, #8]
	add	r2, r3, #1
	ldr	r3, [r1, r3, lsl #2]
	stmib	r4, {r2, r3}
	pop	{r4, r5, r6, pc}
.L14:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
	.size	read_cached_dir, .-read_cached_dir
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
