	.file	"173577065.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/173577065.c"
.LC1:
	.string	"fd >= 0"
	.align 8
.LC2:
	.string	"err == (sizeof(char) * strlen(buffer))"
	.text
	.type	create_file, @function
create_file:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L2
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 21
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 24
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_file, .-create_file
	.section	.rodata
.LC3:
	.string	"nocanread"
.LC4:
	.string	"!err"
.LC5:
	.string	"foobar"
.LC6:
	.string	"ride into the danger zone"
.LC7:
	.string	"foobar/file.txt"
	.text
	.globl	setup
	.type	setup, @function
setup:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	esi, 73
	lea	rdi, .LC3[rip]
	call	mkdir@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 32
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L5:
	mov	esi, 511
	lea	rdi, .LC5[rip]
	call	mkdir@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 34
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L6:
	mov	edx, 438
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	create_file
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setup, .-setup
	.globl	cleanup
	.type	cleanup, @function
cleanup:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC3[rip]
	call	rmdir@PLT
	lea	rdi, .LC7[rip]
	call	unlink@PLT
	lea	rdi, .LC5[rip]
	call	rmdir@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cleanup, .-cleanup
	.section	.rodata
.LC8:
	.string	"noexist"
.LC9:
	.string	"!dir"
.LC10:
	.string	"errno == ENOENT"
.LC11:
	.string	"errno == EACCES"
.LC12:
	.string	"errno == ENOTDIR"
.LC13:
	.string	"dir"
.LC14:
	.string	"ent"
.LC15:
	.string	"ent->d_reclen == sizeof(*ent)"
.LC16:
	.string	"."
.LC17:
	.string	"ent->d_type & DT_DIR"
.LC18:
	.string	".."
.LC19:
	.string	"file.txt"
.LC20:
	.string	"ent->d_type & DT_REG"
.LC21:
	.string	"0 && \"odd filename\""
.LC22:
	.string	"surprising ent: %p : %s\n"
.LC23:
	.string	"!ent"
	.align 8
.LC24:
	.string	"!strcmp(ent->d_name, \".\") || !strcmp(ent->d_name, \"..\") || !strcmp(ent->d_name, \"file.txt\")"
.LC25:
	.string	"loc >= 0"
	.align 8
.LC26:
	.string	"!strcmp(ent->d_name, name_at_loc)"
.LC27:
	.string	"&ent_r == result"
.LC28:
	.string	"!result"
.LC29:
	.string	"success"
	.text
	.globl	test
	.type	test, @function
test:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1392
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC8[rip]
	call	opendir@PLT
	mov	QWORD PTR -1376[rbp], rax
	cmp	QWORD PTR -1376[rbp], 0
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 55
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L9:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 56
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L10:
	lea	rdi, .LC3[rip]
	call	opendir@PLT
	mov	QWORD PTR -1376[rbp], rax
	cmp	QWORD PTR -1376[rbp], 0
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 58
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L11:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 59
	lea	rsi, .LC0[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L12:
	lea	rdi, .LC7[rip]
	call	opendir@PLT
	mov	QWORD PTR -1376[rbp], rax
	cmp	QWORD PTR -1376[rbp], 0
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 61
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L13:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 20
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 62
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L14:
	lea	rdi, .LC5[rip]
	call	opendir@PLT
	mov	QWORD PTR -1376[rbp], rax
	cmp	QWORD PTR -1376[rbp], 0
	jne	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 81
	lea	rsi, .LC0[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L15:
	mov	DWORD PTR -1340[rbp], 0
	mov	DWORD PTR -1336[rbp], 0
	mov	DWORD PTR -1332[rbp], 0
	mov	DWORD PTR -1392[rbp], 0
	jmp	.L16
.L26:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	cmp	QWORD PTR -1368[rbp], 0
	jne	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 87
	lea	rsi, .LC0[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L17:
	mov	rax, QWORD PTR -1368[rbp]
	movzx	eax, WORD PTR 16[rax]
	cmp	ax, 280
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 89
	lea	rsi, .LC0[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L18:
	mov	eax, DWORD PTR -1340[rbp]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -1368[rbp]
	movzx	eax, BYTE PTR 18[rax]
	movzx	eax, al
	and	eax, 4
	test	eax, eax
	jne	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 91
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L20:
	mov	DWORD PTR -1340[rbp], 1
	jmp	.L21
.L19:
	mov	eax, DWORD PTR -1336[rbp]
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -1368[rbp]
	movzx	eax, BYTE PTR 18[rax]
	movzx	eax, al
	and	eax, 4
	test	eax, eax
	jne	.L23
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 96
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L23:
	mov	DWORD PTR -1336[rbp], 1
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -1332[rbp]
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -1368[rbp]
	movzx	eax, BYTE PTR 18[rax]
	movzx	eax, al
	and	eax, 8
	test	eax, eax
	jne	.L25
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 101
	lea	rsi, .LC0[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L25:
	mov	DWORD PTR -1332[rbp], 1
	jmp	.L21
.L24:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 105
	lea	rsi, .LC0[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L21:
	add	DWORD PTR -1392[rbp], 1
.L16:
	cmp	DWORD PTR -1392[rbp], 2
	jle	.L26
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	cmp	QWORD PTR -1368[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -1368[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -1368[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
.L27:
	cmp	QWORD PTR -1368[rbp], 0
	je	.L28
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 109
	lea	rsi, .LC0[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L28:
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	rewinddir@PLT
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L29
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 114
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L29:
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	rewinddir@PLT
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L30
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L30
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L30
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 119
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L30:
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	telldir@PLT
	mov	QWORD PTR -1360[rbp], rax
	cmp	QWORD PTR -1360[rbp], 0
	jns	.L31
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 121
	lea	rsi, .LC0[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L31:
	mov	rax, QWORD PTR -1368[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1352[rbp], rax
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	mov	rax, QWORD PTR -1368[rbp]
	lea	rdx, 19[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L32
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L32
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 128
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L32:
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L33
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 130
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L33:
	mov	rdx, QWORD PTR -1360[rbp]
	mov	rax, QWORD PTR -1376[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	seekdir@PLT
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	cmp	QWORD PTR -1368[rbp], 0
	jne	.L34
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 133
	lea	rsi, .LC0[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L34:
	mov	rax, QWORD PTR -1368[rbp]
	lea	rdx, 19[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	je	.L35
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 135
	lea	rsi, .LC0[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L35:
	mov	rdx, QWORD PTR -1352[rbp]
	mov	rax, QWORD PTR -1376[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	seekdir@PLT
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1368[rbp], rax
	cmp	QWORD PTR -1368[rbp], 0
	jne	.L36
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 139
	lea	rsi, .LC0[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L36:
	mov	rax, QWORD PTR -1368[rbp]
	lea	rdx, 19[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	je	.L37
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 141
	lea	rsi, .LC0[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L37:
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	rewinddir@PLT
	lea	rdx, -1384[rbp]
	lea	rcx, -1328[rbp]
	mov	rax, QWORD PTR -1376[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	readdir_r@PLT
	mov	DWORD PTR -1388[rbp], eax
	cmp	DWORD PTR -1388[rbp], 0
	je	.L38
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 148
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L38:
	mov	rdx, QWORD PTR -1384[rbp]
	lea	rax, -1328[rbp]
	cmp	rdx, rax
	je	.L39
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 149
	lea	rsi, .LC0[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L39:
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L40
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 150
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L40:
	lea	rdx, -1384[rbp]
	lea	rcx, -1328[rbp]
	mov	rax, QWORD PTR -1376[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	readdir_r@PLT
	mov	DWORD PTR -1388[rbp], eax
	cmp	DWORD PTR -1388[rbp], 0
	je	.L41
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 152
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L41:
	mov	rdx, QWORD PTR -1384[rbp]
	lea	rax, -1328[rbp]
	cmp	rdx, rax
	je	.L42
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 153
	lea	rsi, .LC0[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L42:
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L43
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L43
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L43
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 154
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L43:
	lea	rdx, -1384[rbp]
	lea	rcx, -1328[rbp]
	mov	rax, QWORD PTR -1376[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	readdir_r@PLT
	mov	DWORD PTR -1388[rbp], eax
	cmp	DWORD PTR -1388[rbp], 0
	je	.L44
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 156
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L44:
	mov	rdx, QWORD PTR -1384[rbp]
	lea	rax, -1328[rbp]
	cmp	rdx, rax
	je	.L45
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 157
	lea	rsi, .LC0[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L45:
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L46
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L46
	mov	rax, QWORD PTR -1368[rbp]
	add	rax, 19
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L46
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 158
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L46:
	lea	rdx, -1384[rbp]
	lea	rcx, -1328[rbp]
	mov	rax, QWORD PTR -1376[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	readdir_r@PLT
	mov	DWORD PTR -1388[rbp], eax
	cmp	DWORD PTR -1388[rbp], 0
	je	.L47
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 160
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L47:
	mov	rax, QWORD PTR -1384[rbp]
	test	rax, rax
	je	.L48
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 161
	lea	rsi, .LC0[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L48:
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	DWORD PTR -1388[rbp], eax
	cmp	DWORD PTR -1388[rbp], 0
	je	.L49
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 164
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L49:
	lea	rdi, .LC29[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test, .-test
	.section	.rodata
.LC30:
	.string	"n: %d\n"
.LC31:
	.string	"name: %s\n"
	.text
	.globl	test_scandir
	.type	test_scandir, @function
test_scandir:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdx, QWORD PTR alphasort@GOTPCREL[rip]
	mov	rcx, rdx
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	call	scandir@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -20[rbp], 0
	js	.L57
	jmp	.L54
.L55:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L54:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -20[rbp], edx
	test	eax, eax
	jne	.L55
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L51
.L57:
	nop
.L51:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	test_scandir, .-test_scandir
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, cleanup[rip]
	call	atexit@PLT
	lea	rsi, cleanup[rip]
	mov	edi, 6
	call	signal@PLT
	mov	eax, 0
	call	setup
	mov	eax, 0
	call	test
	mov	eax, 0
	call	test_scandir
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 12
__PRETTY_FUNCTION__.2:
	.string	"create_file"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 6
__PRETTY_FUNCTION__.1:
	.string	"setup"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"test"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"173577065.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/173577065.c\000"
	.align	2
.LC1:
	.ascii	"fd >= 0\000"
	.align	2
.LC2:
	.ascii	"err == (sizeof(char) * strlen(buffer))\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_file, %function
create_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r1, #193
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L4
	mov	r2, #21
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	__assert_fail
.L2:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L4
	mov	r2, #24
	ldr	r1, .L4+4
	ldr	r0, .L4+12
	bl	__assert_fail
.L3:
	ldr	r0, [fp, #-12]
	bl	close
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	__PRETTY_FUNCTION__.6457
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	create_file, .-create_file
	.section	.rodata
	.align	2
.LC3:
	.ascii	"nocanread\000"
	.align	2
.LC4:
	.ascii	"!err\000"
	.align	2
.LC5:
	.ascii	"foobar\000"
	.align	2
.LC6:
	.ascii	"ride into the danger zone\000"
	.align	2
.LC7:
	.ascii	"foobar/file.txt\000"
	.text
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r1, #73
	ldr	r0, .L9
	bl	mkdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L9+4
	mov	r2, #32
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	__assert_fail
.L7:
	ldr	r1, .L9+16
	ldr	r0, .L9+20
	bl	mkdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L9+4
	mov	r2, #34
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	__assert_fail
.L8:
	ldr	r2, .L9+24
	ldr	r1, .L9+28
	ldr	r0, .L9+32
	bl	create_file
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	__PRETTY_FUNCTION__.6462
	.word	.LC0
	.word	.LC4
	.word	511
	.word	.LC5
	.word	438
	.word	.LC6
	.word	.LC7
	.size	setup, .-setup
	.align	2
	.global	cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup, %function
cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L12
	bl	rmdir
	ldr	r0, .L12+4
	bl	unlink
	ldr	r0, .L12+8
	bl	rmdir
	nop
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC7
	.word	.LC5
	.size	cleanup, .-cleanup
	.section	.rodata
	.align	2
.LC8:
	.ascii	"noexist\000"
	.align	2
.LC9:
	.ascii	"!dir\000"
	.align	2
.LC10:
	.ascii	"errno == ENOENT\000"
	.align	2
.LC11:
	.ascii	"errno == EACCES\000"
	.align	2
.LC12:
	.ascii	"errno == ENOTDIR\000"
	.align	2
.LC13:
	.ascii	"dir\000"
	.align	2
.LC14:
	.ascii	"ent\000"
	.align	2
.LC15:
	.ascii	"ent->d_reclen == sizeof(*ent)\000"
	.align	2
.LC16:
	.ascii	".\000"
	.align	2
.LC17:
	.ascii	"ent->d_type & DT_DIR\000"
	.align	2
.LC18:
	.ascii	"..\000"
	.align	2
.LC19:
	.ascii	"file.txt\000"
	.align	2
.LC20:
	.ascii	"ent->d_type & DT_REG\000"
	.align	2
.LC21:
	.ascii	"0 && \"odd filename\"\000"
	.align	2
.LC22:
	.ascii	"surprising ent: %p : %s\012\000"
	.align	2
.LC23:
	.ascii	"!ent\000"
	.align	2
.LC24:
	.ascii	"!strcmp(ent->d_name, \".\") || !strcmp(ent->d_name,"
	.ascii	" \"..\") || !strcmp(ent->d_name, \"file.txt\")\000"
	.align	2
.LC25:
	.ascii	"loc >= 0\000"
	.align	2
.LC26:
	.ascii	"!strcmp(ent->d_name, name_at_loc)\000"
	.align	2
.LC27:
	.ascii	"&ent_r == result\000"
	.align	2
.LC28:
	.ascii	"!result\000"
	.align	2
.LC29:
	.ascii	"success\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 1336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1328
	sub	sp, sp, #8
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L57+4
	bl	opendir
	str	r0, [fp, #-1332]
	ldr	r3, [fp, #-1332]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L57+8
	mov	r2, #55
	ldr	r1, .L57+12
	ldr	r0, .L57+16
	bl	__assert_fail
.L15:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L16
	ldr	r3, .L57+8
	mov	r2, #56
	ldr	r1, .L57+12
	ldr	r0, .L57+20
	bl	__assert_fail
.L16:
	ldr	r0, .L57+24
	bl	opendir
	str	r0, [fp, #-1332]
	ldr	r3, [fp, #-1332]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L57+8
	mov	r2, #58
	ldr	r1, .L57+12
	ldr	r0, .L57+16
	bl	__assert_fail
.L17:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L18
	ldr	r3, .L57+8
	mov	r2, #59
	ldr	r1, .L57+12
	ldr	r0, .L57+28
	bl	__assert_fail
.L18:
	ldr	r0, .L57+32
	bl	opendir
	str	r0, [fp, #-1332]
	ldr	r3, [fp, #-1332]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L57+8
	mov	r2, #61
	ldr	r1, .L57+12
	ldr	r0, .L57+16
	bl	__assert_fail
.L19:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #20
	beq	.L20
	ldr	r3, .L57+8
	mov	r2, #62
	ldr	r1, .L57+12
	ldr	r0, .L57+36
	bl	__assert_fail
.L20:
	ldr	r0, .L57+40
	bl	opendir
	str	r0, [fp, #-1332]
	ldr	r3, [fp, #-1332]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L57+8
	mov	r2, #81
	ldr	r1, .L57+12
	ldr	r0, .L57+44
	bl	__assert_fail
.L21:
	mov	r3, #0
	str	r3, [fp, #-1312]
	mov	r3, #0
	str	r3, [fp, #-1308]
	mov	r3, #0
	str	r3, [fp, #-1304]
	mov	r3, #0
	str	r3, [fp, #-1336]
	b	.L22
.L32:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L57+8
	mov	r2, #87
	ldr	r1, .L57+12
	ldr	r0, .L57+48
	bl	__assert_fail
.L23:
	ldr	r3, [fp, #-1328]
	ldrh	r3, [r3, #8]
	cmp	r3, #268
	beq	.L24
	ldr	r3, .L57+8
	mov	r2, #89
	ldr	r1, .L57+12
	ldr	r0, .L57+52
	bl	__assert_fail
.L24:
	ldr	r3, [fp, #-1312]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-1328]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L57+8
	mov	r2, #91
	ldr	r1, .L57+12
	ldr	r0, .L57+60
	bl	__assert_fail
.L26:
	mov	r3, #1
	str	r3, [fp, #-1312]
	b	.L27
.L25:
	ldr	r3, [fp, #-1308]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-1328]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L57+8
	mov	r2, #96
	ldr	r1, .L57+12
	ldr	r0, .L57+60
	bl	__assert_fail
.L29:
	mov	r3, #1
	str	r3, [fp, #-1308]
	b	.L27
.L28:
	ldr	r3, [fp, #-1304]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-1328]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L57+8
	mov	r2, #101
	ldr	r1, .L57+12
	ldr	r0, .L57+72
	bl	__assert_fail
.L31:
	mov	r3, #1
	str	r3, [fp, #-1304]
	b	.L27
.L30:
	ldr	r3, .L57+8
	mov	r2, #105
	ldr	r1, .L57+12
	ldr	r0, .L57+76
	bl	__assert_fail
.L27:
	ldr	r3, [fp, #-1336]
	add	r3, r3, #1
	str	r3, [fp, #-1336]
.L22:
	ldr	r3, [fp, #-1336]
	cmp	r3, #2
	ble	.L32
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	mov	r2, r3
	ldr	r1, [fp, #-1328]
	ldr	r0, .L57+80
	bl	printf
.L33:
	ldr	r3, [fp, #-1328]
	cmp	r3, #0
	beq	.L34
	ldr	r3, .L57+8
	mov	r2, #109
	ldr	r1, .L57+12
	ldr	r0, .L57+84
	bl	__assert_fail
.L34:
	ldr	r0, [fp, #-1332]
	bl	rewinddir
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L57+8
	mov	r2, #114
	ldr	r1, .L57+12
	ldr	r0, .L57+88
	bl	__assert_fail
.L35:
	ldr	r0, [fp, #-1332]
	bl	rewinddir
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L57+8
	mov	r2, #119
	ldr	r1, .L57+12
	ldr	r0, .L57+88
	bl	__assert_fail
.L36:
	ldr	r0, [fp, #-1332]
	bl	telldir
	str	r0, [fp, #-1324]
	ldr	r3, [fp, #-1324]
	cmp	r3, #0
	bge	.L37
	ldr	r3, .L57+8
	mov	r2, #121
	ldr	r1, .L57+12
	ldr	r0, .L57+92
	bl	__assert_fail
.L37:
	ldr	r3, [fp, #-1328]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1320]
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	add	r2, r3, #11
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L57+8
	mov	r2, #128
	ldr	r1, .L57+12
	ldr	r0, .L57+88
	bl	__assert_fail
.L38:
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L57+8
	mov	r2, #130
	ldr	r1, .L57+12
	ldr	r0, .L57+88
	bl	__assert_fail
.L39:
	ldr	r1, [fp, #-1324]
	ldr	r0, [fp, #-1332]
	bl	seekdir
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L57+8
	mov	r2, #133
	ldr	r1, .L57+12
	ldr	r0, .L57+48
	bl	__assert_fail
.L40:
	ldr	r3, [fp, #-1328]
	add	r2, r3, #11
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L57+8
	mov	r2, #135
	ldr	r1, .L57+12
	ldr	r0, .L57+96
	bl	__assert_fail
.L41:
	ldr	r1, [fp, #-1320]
	ldr	r0, [fp, #-1332]
	bl	seekdir
	ldr	r0, [fp, #-1332]
	bl	readdir
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L57+8
	mov	r2, #139
	ldr	r1, .L57+12
	ldr	r0, .L57+48
	bl	__assert_fail
.L42:
	ldr	r3, [fp, #-1328]
	add	r2, r3, #11
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L57+8
	mov	r2, #141
	ldr	r1, .L57+12
	ldr	r0, .L57+96
	bl	__assert_fail
.L43:
	ldr	r0, [fp, #-1332]
	bl	rewinddir
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r1, fp, #1296
	sub	r1, r1, #4
	mov	r2, r3
	ldr	r0, [fp, #-1332]
	bl	readdir_r
	str	r0, [fp, #-1316]
	ldr	r3, [fp, #-1316]
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L57+8
	mov	r2, #148
	ldr	r1, .L57+12
	ldr	r0, .L57+100
	bl	__assert_fail
.L44:
	ldr	r2, [fp, #-1340]
	sub	r3, fp, #1296
	sub	r3, r3, #4
	cmp	r2, r3
	beq	.L45
	ldr	r3, .L57+8
	mov	r2, #149
	ldr	r1, .L57+12
	ldr	r0, .L57+104
	bl	__assert_fail
.L45:
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L57+8
	mov	r2, #150
	ldr	r1, .L57+12
	ldr	r0, .L57+88
	bl	__assert_fail
.L46:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r1, fp, #1296
	sub	r1, r1, #4
	mov	r2, r3
	ldr	r0, [fp, #-1332]
	bl	readdir_r
	str	r0, [fp, #-1316]
	ldr	r3, [fp, #-1316]
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L57+8
	mov	r2, #152
	ldr	r1, .L57+12
	ldr	r0, .L57+100
	bl	__assert_fail
.L47:
	ldr	r2, [fp, #-1340]
	sub	r3, fp, #1296
	sub	r3, r3, #4
	cmp	r2, r3
	beq	.L48
	ldr	r3, .L57+8
	mov	r2, #153
	ldr	r1, .L57+12
	ldr	r0, .L57+104
	bl	__assert_fail
.L48:
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L57+8
	mov	r2, #154
	ldr	r1, .L57+12
	ldr	r0, .L57+88
	bl	__assert_fail
.L49:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r1, fp, #1296
	sub	r1, r1, #4
	mov	r2, r3
	ldr	r0, [fp, #-1332]
	bl	readdir_r
	str	r0, [fp, #-1316]
	ldr	r3, [fp, #-1316]
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L57+8
	mov	r2, #156
	ldr	r1, .L57+12
	ldr	r0, .L57+100
	bl	__assert_fail
.L50:
	ldr	r2, [fp, #-1340]
	sub	r3, fp, #1296
	sub	r3, r3, #4
	cmp	r2, r3
	beq	.L51
	ldr	r3, .L57+8
	mov	r2, #157
	ldr	r1, .L57+12
	ldr	r0, .L57+104
	bl	__assert_fail
.L51:
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-1328]
	add	r3, r3, #11
	ldr	r1, .L57+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L57+8
	mov	r2, #158
	ldr	r1, .L57+12
	ldr	r0, .L57+88
	bl	__assert_fail
.L52:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r1, fp, #1296
	sub	r1, r1, #4
	mov	r2, r3
	ldr	r0, [fp, #-1332]
	bl	readdir_r
	str	r0, [fp, #-1316]
	ldr	r3, [fp, #-1316]
	cmp	r3, #0
	beq	.L53
	ldr	r3, .L57+8
	mov	r2, #160
	ldr	r1, .L57+12
	ldr	r0, .L57+100
	bl	__assert_fail
.L53:
	ldr	r3, [fp, #-1340]
	cmp	r3, #0
	beq	.L54
	ldr	r3, .L57+8
	mov	r2, #161
	ldr	r1, .L57+12
	ldr	r0, .L57+108
	bl	__assert_fail
.L54:
	ldr	r0, [fp, #-1332]
	bl	closedir
	str	r0, [fp, #-1316]
	ldr	r3, [fp, #-1316]
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L57+8
	mov	r2, #164
	ldr	r1, .L57+12
	ldr	r0, .L57+100
	bl	__assert_fail
.L55:
	ldr	r0, .L57+112
	bl	puts
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC30
	.word	.LC8
	.word	__PRETTY_FUNCTION__.6475
	.word	.LC0
	.word	.LC9
	.word	.LC10
	.word	.LC3
	.word	.LC11
	.word	.LC7
	.word	.LC12
	.word	.LC5
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC4
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	test, .-test
	.section	.rodata
	.align	2
.LC31:
	.ascii	"n: %d\012\000"
	.align	2
.LC32:
	.ascii	"name: %s\012\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_scandir
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_scandir, %function
test_scandir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #16
	ldr	r3, .L66+4
	mov	r2, #0
	ldr	r0, .L66+8
	bl	scandir
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L66+12
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L65
	b	.L62
.L63:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L66+16
	bl	printf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L62:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	str	r2, [fp, #-12]
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	free
	b	.L59
.L65:
	nop
.L59:
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC33
	.word	alphasort
	.word	.LC16
	.word	.LC31
	.word	.LC32
	.size	test_scandir, .-test_scandir
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L70
	bl	atexit
	ldr	r1, .L70
	mov	r0, #6
	bl	signal
	bl	setup
	bl	test
	bl	test_scandir
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	cleanup
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6457, %object
	.size	__PRETTY_FUNCTION__.6457, 12
__PRETTY_FUNCTION__.6457:
	.ascii	"create_file\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6462, %object
	.size	__PRETTY_FUNCTION__.6462, 6
__PRETTY_FUNCTION__.6462:
	.ascii	"setup\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6475, %object
	.size	__PRETTY_FUNCTION__.6475, 5
__PRETTY_FUNCTION__.6475:
	.ascii	"test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
