	.file	"extr_dirent.c_readdir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	readdir
	.type	readdir, @function
readdir:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L11
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	QWORD PTR 8[rdi], 0
	mov	rbx, rdi
	jne	.L4
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR [rbx], eax
	mov	rax, rbx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rsi, 16[rdi]
	mov	edi, DWORD PTR 32[rdi]
	call	FindNextFile@PLT
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR [rbx], eax
	mov	rax, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	mov	eax, DWORD PTR EBADF[rip]
	mov	DWORD PTR errno[rip], eax
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	readdir, .-readdir
	.comm	errno,4,4
	.comm	EBADF,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_dirent.c_readdir.c"
	.text
	.align	2
	.global	readdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	readdir, %function
readdir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L8
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L4
.L5:
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	mov	r0, r4
	str	r2, [r4, #4]
	str	r3, [r4]
	pop	{r4, pc}
.L4:
	ldr	r0, [r4, #16]
	add	r1, r4, #8
	bl	FindNextFile
	cmp	r0, #0
	bne	.L5
	pop	{r4, pc}
.L8:
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r2, [r2]
	mov	r0, r4
	str	r2, [r3]
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	EBADF
	.word	errno
	.size	readdir, .-readdir
	.comm	errno,4,4
	.comm	EBADF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
