	.file	"extr_myfatfs.c_myfatfs_readdir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	myfatfs_readdir, @function
myfatfs_readdir:
.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
	mov	rbp, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	call	GET_DIR_DP@PLT
	mov	edi, DWORD PTR dp[rip]
	mov	rsi, r12
	call	f_readdir@PLT
	cmp	eax, DWORD PTR FR_OK[rip]
	mov	DWORD PTR last_result[rip], eax
	je	.L7
.L2:
	mov	eax, DWORD PTR VFS_RES_ERR[rip]
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	cmp	BYTE PTR [rax], 0
	je	.L2
	mov	rsi, rbp
	mov	rdi, r12
	call	myfatfs_fill_stat@PLT
	mov	eax, DWORD PTR VFS_RES_OK[rip]
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	myfatfs_readdir, .-myfatfs_readdir
	.comm	last_result,4,4
	.comm	dp,4,4
	.comm	VFS_RES_OK,4,4
	.comm	VFS_RES_ERR,4,4
	.comm	FR_OK,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_myfatfs.c_myfatfs_readdir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	myfatfs_readdir, %function
myfatfs_readdir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L12
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r1
	bl	GET_DIR_DP
	ldr	r3, .L12+4
	mov	r1, sp
	ldr	r0, [r3]
	bl	f_readdir
	ldr	r3, .L12+8
	ldr	r2, .L12+12
	ldr	r3, [r3]
	str	r0, [r2]
	cmp	r0, r3
	beq	.L10
.L2:
	ldr	r3, .L12+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r3, [sp]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	mov	r1, r4
	mov	r0, sp
	bl	myfatfs_fill_stat
	ldr	r3, .L12+20
	ldr	r0, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	dp
	.word	FR_OK
	.word	last_result
	.word	VFS_RES_ERR
	.word	VFS_RES_OK
	.size	myfatfs_readdir, .-myfatfs_readdir
	.comm	last_result,4,4
	.comm	dp,4,4
	.comm	VFS_RES_OK,4,4
	.comm	VFS_RES_ERR,4,4
	.comm	FR_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
