	.file	"extr_platform-nix.c_os_readdir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/"
	.text
	.p2align 4
	.globl	os_readdir
	.type	os_readdir, @function
os_readdir:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	test	rdi, rdi
	je	.L4
	mov	rbx, rdi
	mov	edi, DWORD PTR 32[rdi]
	call	readdir@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR [rax]
	mov	rdi, QWORD PTR [rbx]
	mov	edx, 255
	mov	rbp, rsp
	call	strncpy@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	dstr_copy@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dstr_cat@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	dstr_cat@PLT
	mov	edi, DWORD PTR [rsp]
	call	is_dir@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[rbx], eax
	call	dstr_free@PLT
	mov	rax, rbx
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	os_readdir, .-os_readdir
	.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_platform-nix.c_os_readdir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	os_readdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	os_readdir, %function
os_readdir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, lr}
	ldr	r2, .L12
	sub	sp, sp, #16
	subs	r4, r0, #0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	beq	.L4
	ldr	r0, [r4, #16]
	bl	readdir
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L4
	mov	r2, #255
	ldr	r1, [r0]
	ldr	r0, [r4]
	bl	strncpy
	ldr	r1, [r4, #8]
	add	r0, sp, #4
	bl	dstr_copy
	ldr	r1, .L12+4
	add	r0, sp, #4
	bl	dstr_cat
	ldr	r1, [r4]
	add	r0, sp, #4
	bl	dstr_cat
	ldr	r0, [sp, #4]
	bl	is_dir
	mov	r3, r0
	add	r0, sp, #4
	str	r3, [r4, #4]
	bl	dstr_free
	mov	r0, r4
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L4:
	mov	r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	os_readdir, .-os_readdir
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
