	.file	"12756.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/12756.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__.1[rip]
	mov	edx, 23
	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__.1[rip]
	mov	edx, 26
	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	"working"
.LC4:
	.string	"test"
.LC5:
	.string	"file"
.LC6:
	.string	"file1"
.LC7:
	.string	"file1-link"
.LC8:
	.string	"dir-empty"
.LC9:
	.string	"dir-empty-link"
.LC10:
	.string	"dir-readonly"
.LC11:
	.string	"dir-readonly/anotherfile"
.LC12:
	.string	"dir-readonly/anotherdir"
.LC13:
	.string	"dir-full"
.LC14:
	.string	"dir-full/anotherfile"
	.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
	mov	esi, 511
	lea	rdi, .LC3[rip]
	call	mkdir@PLT
	lea	rdi, .LC3[rip]
	call	chdir@PLT
	mov	edx, 511
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	create_file
	mov	edx, 511
	lea	rsi, .LC4[rip]
	lea	rdi, .LC6[rip]
	call	create_file
	lea	rsi, .LC7[rip]
	lea	rdi, .LC6[rip]
	call	symlink@PLT
	mov	esi, 511
	lea	rdi, .LC8[rip]
	call	mkdir@PLT
	lea	rsi, .LC9[rip]
	lea	rdi, .LC8[rip]
	call	symlink@PLT
	mov	esi, 511
	lea	rdi, .LC10[rip]
	call	mkdir@PLT
	mov	edx, 511
	lea	rsi, .LC4[rip]
	lea	rdi, .LC11[rip]
	call	create_file
	mov	esi, 511
	lea	rdi, .LC12[rip]
	call	mkdir@PLT
	mov	esi, 365
	lea	rdi, .LC10[rip]
	call	chmod@PLT
	mov	esi, 511
	lea	rdi, .LC13[rip]
	call	mkdir@PLT
	mov	edx, 511
	lea	rsi, .LC4[rip]
	lea	rdi, .LC14[rip]
	call	create_file
	nop
	pop	rbp
	.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, .LC5[rip]
	call	unlink@PLT
	lea	rdi, .LC6[rip]
	call	unlink@PLT
	lea	rdi, .LC7[rip]
	call	unlink@PLT
	lea	rdi, .LC8[rip]
	call	rmdir@PLT
	lea	rdi, .LC9[rip]
	call	unlink@PLT
	mov	esi, 511
	lea	rdi, .LC10[rip]
	call	chmod@PLT
	lea	rdi, .LC11[rip]
	call	unlink@PLT
	lea	rdi, .LC12[rip]
	call	rmdir@PLT
	lea	rdi, .LC10[rip]
	call	rmdir@PLT
	lea	rdi, .LC14[rip]
	call	unlink@PLT
	lea	rdi, .LC13[rip]
	call	rmdir@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cleanup, .-cleanup
	.section	.rodata
.LC15:
	.string	"noexist"
.LC16:
	.string	"err == -1"
.LC17:
	.string	"errno == ENOENT"
	.align 8
.LC18:
	.string	"errno == EISDIR || errno == EPERM"
.LC19:
	.string	"errno == EACCES"
.LC20:
	.string	"!err"
.LC21:
	.string	"errno == ENOTDIR"
.LC22:
	.string	"errno == ENOTEMPTY"
.LC23:
	.string	"errno == EBUSY"
.LC24:
	.string	"/"
	.align 8
.LC25:
	.string	"errno == EBUSY || errno == EISDIR"
.LC26:
	.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, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC15[rip]
	call	unlink@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 89
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L7:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 90
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L8:
	lea	rdi, .LC10[rip]
	call	unlink@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 93
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L9:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 21
	je	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 99
	lea	rsi, .LC0[rip]
	lea	rdi, .LC18[rip]
	call	__assert_fail@PLT
.L10:
	lea	rdi, .LC11[rip]
	call	unlink@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 106
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[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, 107
	lea	rsi, .LC0[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L12:
	lea	rdi, .LC7[rip]
	call	unlink@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 114
	lea	rsi, .LC0[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L13:
	mov	esi, 0
	lea	rdi, .LC6[rip]
	call	access@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 117
	lea	rsi, .LC0[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L14:
	mov	esi, 0
	lea	rdi, .LC7[rip]
	call	access@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 120
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L15:
	lea	rdi, .LC5[rip]
	call	unlink@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 124
	lea	rsi, .LC0[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L16:
	mov	esi, 0
	lea	rdi, .LC5[rip]
	call	access@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 126
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L17:
	lea	rdi, .LC15[rip]
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 132
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L18:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 133
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L19:
	lea	rdi, .LC6[rip]
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 136
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L20:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 20
	je	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 137
	lea	rsi, .LC0[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L21:
	lea	rdi, .LC12[rip]
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 141
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L22:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 142
	lea	rsi, .LC0[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L23:
	lea	rdi, .LC13[rip]
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L24
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 146
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L24:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 39
	je	.L25
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 147
	lea	rsi, .LC0[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L25:
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	getcwd@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L26
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 154
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L26:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 16
	je	.L27
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 158
	lea	rsi, .LC0[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L27:
	lea	rdi, .LC24[rip]
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L28
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 162
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L28:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 16
	je	.L29
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 21
	je	.L29
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 167
	lea	rsi, .LC0[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L29:
	lea	rdi, .LC9[rip]
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L30
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 172
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L30:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 20
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 173
	lea	rsi, .LC0[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L31:
	lea	rdi, .LC8[rip]
	call	rmdir@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 177
	lea	rsi, .LC0[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L32:
	mov	esi, 0
	lea	rdi, .LC8[rip]
	call	access@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	je	.L33
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 179
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L33:
	lea	rdi, .LC26[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test, .-test
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 12
__PRETTY_FUNCTION__.1:
	.string	"create_file"
	.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	"12756.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/12756.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, #23
	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, #26
	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__.6402
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	create_file, .-create_file
	.section	.rodata
	.align	2
.LC3:
	.ascii	"working\000"
	.align	2
.LC4:
	.ascii	"test\000"
	.align	2
.LC5:
	.ascii	"file\000"
	.align	2
.LC6:
	.ascii	"file1\000"
	.align	2
.LC7:
	.ascii	"file1-link\000"
	.align	2
.LC8:
	.ascii	"dir-empty\000"
	.align	2
.LC9:
	.ascii	"dir-empty-link\000"
	.align	2
.LC10:
	.ascii	"dir-readonly\000"
	.align	2
.LC11:
	.ascii	"dir-readonly/anotherfile\000"
	.align	2
.LC12:
	.ascii	"dir-readonly/anotherdir\000"
	.align	2
.LC13:
	.ascii	"dir-full\000"
	.align	2
.LC14:
	.ascii	"dir-full/anotherfile\000"
	.text
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L7
	ldr	r0, .L7+4
	bl	mkdir
	ldr	r0, .L7+4
	bl	chdir
	ldr	r2, .L7
	ldr	r1, .L7+8
	ldr	r0, .L7+12
	bl	create_file
	ldr	r2, .L7
	ldr	r1, .L7+8
	ldr	r0, .L7+16
	bl	create_file
	ldr	r1, .L7+20
	ldr	r0, .L7+16
	bl	symlink
	ldr	r1, .L7
	ldr	r0, .L7+24
	bl	mkdir
	ldr	r1, .L7+28
	ldr	r0, .L7+24
	bl	symlink
	ldr	r1, .L7
	ldr	r0, .L7+32
	bl	mkdir
	ldr	r2, .L7
	ldr	r1, .L7+8
	ldr	r0, .L7+36
	bl	create_file
	ldr	r1, .L7
	ldr	r0, .L7+40
	bl	mkdir
	ldr	r1, .L7+44
	ldr	r0, .L7+32
	bl	chmod
	ldr	r1, .L7
	ldr	r0, .L7+48
	bl	mkdir
	ldr	r2, .L7
	ldr	r1, .L7+8
	ldr	r0, .L7+52
	bl	create_file
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	511
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	365
	.word	.LC13
	.word	.LC14
	.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, .L10
	bl	unlink
	ldr	r0, .L10+4
	bl	unlink
	ldr	r0, .L10+8
	bl	unlink
	ldr	r0, .L10+12
	bl	rmdir
	ldr	r0, .L10+16
	bl	unlink
	ldr	r1, .L10+20
	ldr	r0, .L10+24
	bl	chmod
	ldr	r0, .L10+28
	bl	unlink
	ldr	r0, .L10+32
	bl	rmdir
	ldr	r0, .L10+24
	bl	rmdir
	ldr	r0, .L10+36
	bl	unlink
	ldr	r0, .L10+40
	bl	rmdir
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	511
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC14
	.word	.LC13
	.size	cleanup, .-cleanup
	.section	.rodata
	.align	2
.LC15:
	.ascii	"noexist\000"
	.align	2
.LC16:
	.ascii	"err == -1\000"
	.align	2
.LC17:
	.ascii	"errno == ENOENT\000"
	.align	2
.LC18:
	.ascii	"errno == EISDIR || errno == EPERM\000"
	.align	2
.LC19:
	.ascii	"errno == EACCES\000"
	.align	2
.LC20:
	.ascii	"!err\000"
	.align	2
.LC21:
	.ascii	"errno == ENOTDIR\000"
	.align	2
.LC22:
	.ascii	"errno == ENOTEMPTY\000"
	.align	2
.LC23:
	.ascii	"errno == EBUSY\000"
	.align	2
.LC24:
	.ascii	"/\000"
	.align	2
.LC25:
	.ascii	"errno == EBUSY || errno == EISDIR\000"
	.align	2
.LC26:
	.ascii	"success\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #520
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L41+4
	bl	unlink
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L13
	ldr	r3, .L41+8
	mov	r2, #89
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L13:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L14
	ldr	r3, .L41+8
	mov	r2, #90
	ldr	r1, .L41+12
	ldr	r0, .L41+20
	bl	__assert_fail
.L14:
	ldr	r0, .L41+24
	bl	unlink
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L15
	ldr	r3, .L41+8
	mov	r2, #93
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L15:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #21
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L16
	ldr	r3, .L41+8
	mov	r2, #99
	ldr	r1, .L41+12
	ldr	r0, .L41+28
	bl	__assert_fail
.L16:
	ldr	r0, .L41+32
	bl	unlink
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L17
	ldr	r3, .L41+8
	mov	r2, #106
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L17:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L18
	ldr	r3, .L41+8
	mov	r2, #107
	ldr	r1, .L41+12
	ldr	r0, .L41+36
	bl	__assert_fail
.L18:
	ldr	r0, .L41+40
	bl	unlink
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L41+8
	mov	r2, #114
	ldr	r1, .L41+12
	ldr	r0, .L41+44
	bl	__assert_fail
.L19:
	mov	r1, #0
	ldr	r0, .L41+48
	bl	access
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L41+8
	mov	r2, #117
	ldr	r1, .L41+12
	ldr	r0, .L41+44
	bl	__assert_fail
.L20:
	mov	r1, #0
	ldr	r0, .L41+40
	bl	access
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L21
	ldr	r3, .L41+8
	mov	r2, #120
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L21:
	ldr	r0, .L41+52
	bl	unlink
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L41+8
	mov	r2, #124
	ldr	r1, .L41+12
	ldr	r0, .L41+44
	bl	__assert_fail
.L22:
	mov	r1, #0
	ldr	r0, .L41+52
	bl	access
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L23
	ldr	r3, .L41+8
	mov	r2, #126
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L23:
	ldr	r0, .L41+4
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L24
	ldr	r3, .L41+8
	mov	r2, #132
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L24:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L25
	ldr	r3, .L41+8
	mov	r2, #133
	ldr	r1, .L41+12
	ldr	r0, .L41+20
	bl	__assert_fail
.L25:
	ldr	r0, .L41+48
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L26
	ldr	r3, .L41+8
	mov	r2, #136
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L26:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #20
	beq	.L27
	ldr	r3, .L41+8
	mov	r2, #137
	ldr	r1, .L41+12
	ldr	r0, .L41+56
	bl	__assert_fail
.L27:
	ldr	r0, .L41+60
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L28
	ldr	r3, .L41+8
	mov	r2, #141
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L28:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L29
	ldr	r3, .L41+8
	mov	r2, #142
	ldr	r1, .L41+12
	ldr	r0, .L41+36
	bl	__assert_fail
.L29:
	ldr	r0, .L41+64
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L30
	ldr	r3, .L41+8
	mov	r2, #146
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L30:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #39
	beq	.L31
	ldr	r3, .L41+8
	mov	r2, #147
	ldr	r1, .L41+12
	ldr	r0, .L41+68
	bl	__assert_fail
.L31:
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	getcwd
	sub	r3, fp, #520
	mov	r0, r3
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L32
	ldr	r3, .L41+8
	mov	r2, #154
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L32:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #16
	beq	.L33
	ldr	r3, .L41+8
	mov	r2, #158
	ldr	r1, .L41+12
	ldr	r0, .L41+72
	bl	__assert_fail
.L33:
	ldr	r0, .L41+76
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L34
	ldr	r3, .L41+8
	mov	r2, #162
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L34:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #16
	beq	.L35
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #21
	beq	.L35
	ldr	r3, .L41+8
	mov	r2, #167
	ldr	r1, .L41+12
	ldr	r0, .L41+80
	bl	__assert_fail
.L35:
	ldr	r0, .L41+84
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L36
	ldr	r3, .L41+8
	mov	r2, #172
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L36:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #20
	beq	.L37
	ldr	r3, .L41+8
	mov	r2, #173
	ldr	r1, .L41+12
	ldr	r0, .L41+56
	bl	__assert_fail
.L37:
	ldr	r0, .L41+88
	bl	rmdir
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L41+8
	mov	r2, #177
	ldr	r1, .L41+12
	ldr	r0, .L41+44
	bl	__assert_fail
.L38:
	mov	r1, #0
	ldr	r0, .L41+88
	bl	access
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L39
	ldr	r3, .L41+8
	mov	r2, #179
	ldr	r1, .L41+12
	ldr	r0, .L41+16
	bl	__assert_fail
.L39:
	ldr	r0, .L41+92
	bl	puts
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC27
	.word	.LC15
	.word	__PRETTY_FUNCTION__.6412
	.word	.LC0
	.word	.LC16
	.word	.LC17
	.word	.LC10
	.word	.LC18
	.word	.LC11
	.word	.LC19
	.word	.LC7
	.word	.LC20
	.word	.LC6
	.word	.LC5
	.word	.LC21
	.word	.LC12
	.word	.LC13
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC9
	.word	.LC8
	.word	.LC26
	.size	test, .-test
	.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, .L45
	bl	atexit
	ldr	r1, .L45
	mov	r0, #6
	bl	signal
	bl	setup
	bl	test
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	cleanup
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6402, %object
	.size	__PRETTY_FUNCTION__.6402, 12
__PRETTY_FUNCTION__.6402:
	.ascii	"create_file\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6412, %object
	.size	__PRETTY_FUNCTION__.6412, 5
__PRETTY_FUNCTION__.6412:
	.ascii	"test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
