	.file	"extr_dirs.c_rst_readdir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"error reading directory\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"corrupted directory: bad reclen %d\n"
	.section	.rodata.str1.1
.LC2:
	.string	"/"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"corrupted directory: bad inum %d\n"
	.text
	.p2align 4
	.globl	rst_readdir
	.type	rst_readdir, @function
rst_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
	lea	rbp, .LC2[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdx, QWORD PTR [rdi]
	mov	rbx, rdi
	mov	rsi, QWORD PTR 16[rdi]
.L11:
	test	rdx, rdx
	je	.L7
	mov	rax, QWORD PTR 8[rbx]
.L4:
	cmp	rax, rdx
	jle	.L18
	lea	r12, [rdx+rsi]
	mov	r8, QWORD PTR [r12]
	test	r8, r8
	je	.L8
	mov	rax, QWORD PTR DIRBLKSIZ[rip]
	add	rax, 1
	sub	rax, rdx
	cmp	r8, rax
	jg	.L8
	add	rdx, r8
	mov	QWORD PTR [rbx], rdx
	mov	rdx, QWORD PTR 8[r12]
	test	rdx, rdx
	je	.L19
	cmp	QWORD PTR maxino[rip], rdx
	jle	.L20
.L1:
	mov	rax, r12
	pop	rbx
	.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
.L18:
	.cfi_restore_state
	mov	QWORD PTR [rbx], 0
.L7:
	mov	edi, DWORD PTR 24[rbx]
	mov	rdx, QWORD PTR DIRBLKSIZ[rip]
	call	read@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jle	.L3
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 16[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 16[r12]
	mov	rsi, rbp
	call	strcmp@PLT
	test	rax, rax
	je	.L12
	mov	rdx, QWORD PTR 8[r12]
	cmp	QWORD PTR maxino[rip], rdx
	jg	.L1
.L20:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dprintf@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 16[rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r8
	xor	eax, eax
	xor	r12d, r12d
	lea	rsi, .LC1[rip]
	call	dprintf@PLT
	jmp	.L1
.L3:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	dprintf@PLT
	jmp	.L1
.L12:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rst_readdir, .-rst_readdir
	.comm	stderr,4,4
	.comm	maxino,8,8
	.comm	DIRBLKSIZ,8,8
	.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_dirs.c_rst_readdir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error reading directory\012\000"
	.align	2
.LC1:
	.ascii	"corrupted directory: bad reclen %d\012\000"
	.align	2
.LC2:
	.ascii	"/\000"
	.align	2
.LC3:
	.ascii	"corrupted directory: bad inum %d\012\000"
	.text
	.align	2
	.global	rst_readdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	rst_readdir, %function
rst_readdir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r7, #0
	ldr	r3, [r0]
	ldr	r1, [r0, #8]
	ldr	r6, .L20
	ldr	r8, .L20+4
	ldr	fp, .L20+8
	ldr	r10, .L20+12
	ldr	r9, .L20+16
.L11:
	cmp	r3, #0
	ldrne	r0, [r4, #4]
	beq	.L7
.L4:
	cmp	r0, r3
	strle	r7, [r4]
	ble	.L7
	ldr	r0, [r3, r1]
	add	r5, r3, r1
	cmp	r0, #0
	beq	.L8
	ldr	r2, [r6]
	add	r2, r2, #1
	sub	r2, r2, r3
	cmp	r0, r2
	bgt	.L8
	ldr	r2, [r5, #4]
	add	r3, r0, r3
	cmp	r2, #0
	str	r3, [r4]
	beq	.L18
	ldr	r3, [fp]
	cmp	r3, r2
	ble	.L19
.L1:
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, [r6]
	ldr	r0, [r4, #12]
	bl	read
	cmp	r0, #0
	str	r0, [r4, #4]
	ble	.L3
	ldr	r3, [r4]
	ldr	r1, [r4, #8]
	b	.L4
.L18:
	mov	r1, r8
	ldr	r0, [r5, #8]
	bl	strcmp
	cmp	r0, #0
	beq	.L12
	ldr	r2, [r5, #4]
	ldr	r3, [fp]
	cmp	r3, r2
	bgt	.L1
.L19:
	mov	r1, r9
	ldr	r0, [r10]
	bl	dprintf
	ldr	r3, [r4]
	ldr	r1, [r4, #8]
	b	.L11
.L8:
	ldr	r3, .L20+12
	mov	r2, r0
	ldr	r1, .L20+20
	ldr	r0, [r3]
	bl	dprintf
	mov	r5, #0
	b	.L1
.L3:
	ldr	r3, .L20+12
	ldr	r1, .L20+24
	ldr	r0, [r3]
	bl	dprintf
	mov	r5, #0
	b	.L1
.L12:
	mov	r5, r0
	b	.L1
.L21:
	.align	2
.L20:
	.word	DIRBLKSIZ
	.word	.LC2
	.word	maxino
	.word	stderr
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.size	rst_readdir, .-rst_readdir
	.comm	stderr,4,4
	.comm	maxino,4,4
	.comm	DIRBLKSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
