	.file	"extr_dir.c_isc_dir_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	isc_dir_read
	.type	isc_dir_read, @function
isc_dir_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	VALID_DIR@PLT
	xor	edi, edi
	test	rax, rax
	je	.L2
	xor	edi, edi
	mov	rax, QWORD PTR INVALID_HANDLE_VALUE[rip]
	cmp	QWORD PTR [rbx], rax
	setne	dil
.L2:
	call	REQUIRE@PLT
	cmp	QWORD PTR 24[rbx], 0
	je	.L3
	mov	rax, QWORD PTR ISC_FALSE[rip]
	mov	QWORD PTR 24[rbx], rax
.L4:
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 8[rbx]
	call	strcpy@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	strlen@PLT
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR ISC_R_SUCCESS[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, 16[rbx]
	call	FindNextFile@PLT
	cmp	rax, QWORD PTR FALSE[rip]
	jne	.L4
	xor	eax, eax
	call	GetLastError@PLT
	mov	r8, rax
	cmp	r8, QWORD PTR ERROR_NO_MORE_FILES[rip]
	mov	eax, DWORD PTR ISC_R_UNEXPECTED[rip]
	jne	.L1
	mov	eax, DWORD PTR ISC_R_NOMORE[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	isc_dir_read, .-isc_dir_read
	.comm	ISC_R_UNEXPECTED,4,4
	.comm	ISC_R_SUCCESS,4,4
	.comm	ISC_R_NOMORE,4,4
	.comm	ISC_FALSE,8,8
	.comm	INVALID_HANDLE_VALUE,8,8
	.comm	FALSE,8,8
	.comm	ERROR_NO_MORE_FILES,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_dir.c_isc_dir_read.c"
	.text
	.align	2
	.global	isc_dir_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	isc_dir_read, %function
isc_dir_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	VALID_DIR
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L12
	ldr	r0, [r4]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
.L2:
	bl	REQUIRE
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L12+4
	ldr	r3, [r3]
	str	r3, [r4, #16]
.L4:
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #4]
	bl	strcpy
	ldr	r0, [r4, #4]
	bl	strlen
	ldr	r3, .L12+8
	str	r0, [r4, #8]
	ldr	r0, [r3]
	pop	{r4, pc}
.L3:
	mov	r1, r4
	ldr	r0, [r1], #12
	bl	FindNextFile
	ldr	r3, .L12+12
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L4
	bl	GetLastError
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L12+20
	ldrne	r3, .L12+24
	ldr	r0, [r3]
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	INVALID_HANDLE_VALUE
	.word	ISC_FALSE
	.word	ISC_R_SUCCESS
	.word	FALSE
	.word	ERROR_NO_MORE_FILES
	.word	ISC_R_NOMORE
	.word	ISC_R_UNEXPECTED
	.size	isc_dir_read, .-isc_dir_read
	.comm	ISC_R_UNEXPECTED,4,4
	.comm	ISC_R_SUCCESS,4,4
	.comm	ISC_R_NOMORE,4,4
	.comm	ISC_FALSE,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.comm	FALSE,4,4
	.comm	ERROR_NO_MORE_FILES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
