	.file	"170772.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/170772.c"
.LC1:
	.string	"_stat(__FILE__, &st) != 0"
.LC2:
	.string	"errno == 2"
.LC3:
	.string	"Writing stdout\n"
	.align 8
.LC4:
	.string	"_write(STDOUT_FILENO, \"Writing stdout\\n\", len) == len"
.LC5:
	.string	"errno == 0"
.LC6:
	.string	"Writing stderr\n"
	.align 8
.LC7:
	.string	"_write(STDERR_FILENO, \"Writing stderr\\n\", len) ==len"
.LC8:
	.string	"_isatty(STDOUT_FILENO) == 0"
.LC9:
	.string	"_isatty(STDERR_FILENO) != 0"
	.align 8
.LC10:
	.string	"_read(STDIN_FILENO, buf, 5) == 5"
.LC11:
	.string	"buf[0] == 's'"
.LC12:
	.string	"buf[1] == 't'"
.LC13:
	.string	"buf[2] == 'd'"
.LC14:
	.string	"buf[3] == 'i'"
.LC15:
	.string	"buf[4] == 'n'"
.LC16:
	.string	"test-file"
.LC17:
	.string	"fd == 3"
.LC18:
	.string	"Writing to fd_\n"
	.align 8
.LC19:
	.string	"_write(fd, \"Writing to fd_\\n\", len) == len"
.LC20:
	.string	"_read(fd, buf, 5) == 5"
.LC21:
	.string	"buf[0] == 't'"
.LC22:
	.string	"buf[1] == 'e'"
.LC23:
	.string	"buf[2] == 's'"
.LC24:
	.string	"buf[3] == 't'"
.LC25:
	.string	"buf[4] == 'f'"
.LC26:
	.string	"_fstat(fd, &st) == 0"
.LC27:
	.string	"st.st_dev == 1"
.LC28:
	.string	"st.st_ino == 2"
.LC29:
	.string	"st.st_nlink == 4"
.LC30:
	.string	"st.st_uid == 5"
.LC31:
	.string	"st.st_gid == 6"
.LC32:
	.string	"st.st_size == 1024"
.LC33:
	.string	"st.st_atim.tv_sec == 900"
.LC34:
	.string	"st.st_atim.tv_nsec == 800"
.LC35:
	.string	"st.st_mtim.tv_sec == 3000"
.LC36:
	.string	"st.st_ctim.tv_sec == 5000"
.LC37:
	.string	"_close(fd) == 0"
.LC38:
	.string	"lib/syscalls.c"
.LC39:
	.string	"syscalls.h"
	.align 8
.LC40:
	.string	"_link(\"syscalls.h\", \"lib/syscalls.c\") == 0"
.LC41:
	.string	"_unlink(\"syscalls.h\") == 0"
.LC42:
	.string	"lib/syscalls.h"
.LC43:
	.string	"doesn't exist"
	.align 8
.LC44:
	.string	"_symlink(\"doesn't exist\", \"lib/syscalls.h\") != 0"
.LC45:
	.string	"errno == ENOENT"
	.text
	.globl	_main
	.type	_main, @function
_main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -188[rbp], 0
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	_stat@PLT
	test	eax, eax
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 34
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 35
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -184[rbp], 15
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	_write@PLT
	cmp	DWORD PTR -184[rbp], eax
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 40
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L4:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 41
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L5:
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, eax
	lea	rsi, .LC6[rip]
	mov	edi, 2
	call	_write@PLT
	cmp	DWORD PTR -184[rbp], eax
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 43
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L6:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 44
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L7:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	edi, 1
	call	_isatty@PLT
	test	eax, eax
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 47
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L8:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 48
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L9:
	mov	edi, 2
	call	_isatty@PLT
	test	eax, eax
	jne	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 50
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L10:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 51
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L11:
	lea	rax, -18[rbp]
	mov	edx, 5
	mov	rsi, rax
	mov	edi, 0
	call	_read@PLT
	cmp	eax, 5
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 54
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L12:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 55
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L13:
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 115
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 56
	lea	rsi, .LC0[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L14:
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 116
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 57
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L15:
	movzx	eax, BYTE PTR -16[rbp]
	cmp	al, 100
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 58
	lea	rsi, .LC0[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L16:
	movzx	eax, BYTE PTR -15[rbp]
	cmp	al, 105
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 59
	lea	rsi, .LC0[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L17:
	movzx	eax, BYTE PTR -14[rbp]
	cmp	al, 110
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 60
	lea	rsi, .LC0[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L18:
	mov	edx, 0
	mov	esi, 2
	lea	rdi, .LC16[rip]
	call	_open@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 3
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 64
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L19:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 65
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L20:
	mov	edx, DWORD PTR -184[rbp]
	mov	eax, DWORD PTR -180[rbp]
	lea	rsi, .LC18[rip]
	mov	edi, eax
	call	_write@PLT
	cmp	DWORD PTR -184[rbp], eax
	je	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 67
	lea	rsi, .LC0[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L21:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 68
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L22:
	lea	rcx, -18[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	edx, 5
	mov	rsi, rcx
	mov	edi, eax
	call	_read@PLT
	cmp	eax, 5
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 71
	lea	rsi, .LC0[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L23:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L24
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 72
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L24:
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 116
	je	.L25
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 73
	lea	rsi, .LC0[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L25:
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 101
	je	.L26
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 74
	lea	rsi, .LC0[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L26:
	movzx	eax, BYTE PTR -16[rbp]
	cmp	al, 115
	je	.L27
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 75
	lea	rsi, .LC0[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L27:
	movzx	eax, BYTE PTR -15[rbp]
	cmp	al, 116
	je	.L28
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 76
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L28:
	movzx	eax, BYTE PTR -14[rbp]
	cmp	al, 102
	je	.L29
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 77
	lea	rsi, .LC0[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L29:
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	_fstat@PLT
	test	eax, eax
	je	.L30
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 80
	lea	rsi, .LC0[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L30:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 81
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L31:
	mov	rax, QWORD PTR -176[rbp]
	cmp	rax, 1
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 83
	lea	rsi, .LC0[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L32:
	mov	rax, QWORD PTR -168[rbp]
	cmp	rax, 2
	je	.L33
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 84
	lea	rsi, .LC0[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L33:
	mov	rax, QWORD PTR -160[rbp]
	cmp	rax, 4
	je	.L34
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 85
	lea	rsi, .LC0[rip]
	lea	rdi, .LC29[rip]
	call	__assert_fail@PLT
.L34:
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, 5
	je	.L35
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 86
	lea	rsi, .LC0[rip]
	lea	rdi, .LC30[rip]
	call	__assert_fail@PLT
.L35:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 6
	je	.L36
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 87
	lea	rsi, .LC0[rip]
	lea	rdi, .LC31[rip]
	call	__assert_fail@PLT
.L36:
	mov	rax, QWORD PTR -128[rbp]
	cmp	rax, 1024
	je	.L37
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 89
	lea	rsi, .LC0[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L37:
	mov	rax, QWORD PTR -104[rbp]
	cmp	rax, 900
	je	.L38
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 90
	lea	rsi, .LC0[rip]
	lea	rdi, .LC33[rip]
	call	__assert_fail@PLT
.L38:
	mov	rax, QWORD PTR -96[rbp]
	cmp	rax, 800
	je	.L39
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 91
	lea	rsi, .LC0[rip]
	lea	rdi, .LC34[rip]
	call	__assert_fail@PLT
.L39:
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, 3000
	je	.L40
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 92
	lea	rsi, .LC0[rip]
	lea	rdi, .LC35[rip]
	call	__assert_fail@PLT
.L40:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, 5000
	je	.L41
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 93
	lea	rsi, .LC0[rip]
	lea	rdi, .LC36[rip]
	call	__assert_fail@PLT
.L41:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	_close@PLT
	test	eax, eax
	je	.L42
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 96
	lea	rsi, .LC0[rip]
	lea	rdi, .LC37[rip]
	call	__assert_fail@PLT
.L42:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L43
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 97
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L43:
	lea	rsi, .LC38[rip]
	lea	rdi, .LC39[rip]
	call	_link@PLT
	test	eax, eax
	je	.L44
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 99
	lea	rsi, .LC0[rip]
	lea	rdi, .LC40[rip]
	call	__assert_fail@PLT
.L44:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L45
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 100
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L45:
	lea	rdi, .LC39[rip]
	call	_unlink@PLT
	test	eax, eax
	je	.L46
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 102
	lea	rsi, .LC0[rip]
	lea	rdi, .LC41[rip]
	call	__assert_fail@PLT
.L46:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L47
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 103
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L47:
	lea	rsi, .LC42[rip]
	lea	rdi, .LC43[rip]
	call	_symlink@PLT
	test	eax, eax
	jne	.L48
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 105
	lea	rsi, .LC0[rip]
	lea	rdi, .LC44[rip]
	call	__assert_fail@PLT
.L48:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L49
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 106
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L49:
	mov	eax, DWORD PTR -188[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	_main, .-_main
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	_main
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	_exit@PLT
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 6
__PRETTY_FUNCTION__.0:
	.string	"_main"
	.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	"170772.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/170772.c\000"
	.align	2
.LC1:
	.ascii	"_stat(__FILE__, &st) != 0\000"
	.align	2
.LC2:
	.ascii	"errno == 2\000"
	.align	2
.LC3:
	.ascii	"Writing stdout\012\000"
	.align	2
.LC4:
	.ascii	"_write(STDOUT_FILENO, \"Writing stdout\\n\", len) ="
	.ascii	"= len\000"
	.align	2
.LC5:
	.ascii	"errno == 0\000"
	.align	2
.LC6:
	.ascii	"Writing stderr\012\000"
	.align	2
.LC7:
	.ascii	"_write(STDERR_FILENO, \"Writing stderr\\n\", len) ="
	.ascii	"=len\000"
	.align	2
.LC8:
	.ascii	"_isatty(STDOUT_FILENO) == 0\000"
	.align	2
.LC9:
	.ascii	"_isatty(STDERR_FILENO) != 0\000"
	.align	2
.LC10:
	.ascii	"_read(STDIN_FILENO, buf, 5) == 5\000"
	.align	2
.LC11:
	.ascii	"buf[0] == 's'\000"
	.align	2
.LC12:
	.ascii	"buf[1] == 't'\000"
	.align	2
.LC13:
	.ascii	"buf[2] == 'd'\000"
	.align	2
.LC14:
	.ascii	"buf[3] == 'i'\000"
	.align	2
.LC15:
	.ascii	"buf[4] == 'n'\000"
	.align	2
.LC16:
	.ascii	"test-file\000"
	.align	2
.LC17:
	.ascii	"fd == 3\000"
	.align	2
.LC18:
	.ascii	"Writing to fd_\012\000"
	.align	2
.LC19:
	.ascii	"_write(fd, \"Writing to fd_\\n\", len) == len\000"
	.align	2
.LC20:
	.ascii	"_read(fd, buf, 5) == 5\000"
	.align	2
.LC21:
	.ascii	"buf[0] == 't'\000"
	.align	2
.LC22:
	.ascii	"buf[1] == 'e'\000"
	.align	2
.LC23:
	.ascii	"buf[2] == 's'\000"
	.align	2
.LC24:
	.ascii	"buf[3] == 't'\000"
	.align	2
.LC25:
	.ascii	"buf[4] == 'f'\000"
	.align	2
.LC26:
	.ascii	"_fstat(fd, &st) == 0\000"
	.align	2
.LC27:
	.ascii	"st.st_dev == 1\000"
	.align	2
.LC28:
	.ascii	"st.st_ino == 2\000"
	.align	2
.LC29:
	.ascii	"st.st_nlink == 4\000"
	.align	2
.LC30:
	.ascii	"st.st_uid == 5\000"
	.align	2
.LC31:
	.ascii	"st.st_gid == 6\000"
	.align	2
.LC32:
	.ascii	"st.st_size == 1024\000"
	.align	2
.LC33:
	.ascii	"st.st_atim.tv_sec == 900\000"
	.align	2
.LC34:
	.ascii	"st.st_atim.tv_nsec == 800\000"
	.align	2
.LC35:
	.ascii	"st.st_mtim.tv_sec == 3000\000"
	.align	2
.LC36:
	.ascii	"st.st_ctim.tv_sec == 5000\000"
	.align	2
.LC37:
	.ascii	"_close(fd) == 0\000"
	.align	2
.LC38:
	.ascii	"lib/syscalls.c\000"
	.align	2
.LC39:
	.ascii	"syscalls.h\000"
	.align	2
.LC40:
	.ascii	"_link(\"syscalls.h\", \"lib/syscalls.c\") == 0\000"
	.align	2
.LC41:
	.ascii	"_unlink(\"syscalls.h\") == 0\000"
	.align	2
.LC42:
	.ascii	"lib/syscalls.h\000"
	.align	2
.LC43:
	.ascii	"doesn't exist\000"
	.align	2
.LC44:
	.ascii	"_symlink(\"doesn't exist\", \"lib/syscalls.h\") != "
	.ascii	"0\000"
	.align	2
.LC45:
	.ascii	"errno == ENOENT\000"
	.align	2
.LC46:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	_main, %function
_main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L52+4
	bl	_stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L52+8
	mov	r2, #34
	ldr	r1, .L52+4
	ldr	r0, .L52+12
	bl	__assert_fail
.L2:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L3
	ldr	r3, .L52+8
	mov	r2, #35
	ldr	r1, .L52+4
	ldr	r0, .L52+16
	bl	__assert_fail
.L3:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #15
	str	r3, [fp, #-116]
	ldr	r2, [fp, #-116]
	ldr	r1, .L52+20
	mov	r0, #1
	bl	_write
	mov	r2, r0
	ldr	r3, [fp, #-116]
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L52+8
	mov	r2, #40
	ldr	r1, .L52+4
	ldr	r0, .L52+24
	bl	__assert_fail
.L4:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L52+8
	mov	r2, #41
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L5:
	ldr	r2, [fp, #-116]
	ldr	r1, .L52+32
	mov	r0, #2
	bl	_write
	mov	r2, r0
	ldr	r3, [fp, #-116]
	cmp	r3, r2
	beq	.L6
	ldr	r3, .L52+8
	mov	r2, #43
	ldr	r1, .L52+4
	ldr	r0, .L52+36
	bl	__assert_fail
.L6:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L52+8
	mov	r2, #44
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L7:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #1
	bl	_isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L52+8
	mov	r2, #47
	ldr	r1, .L52+4
	ldr	r0, .L52+40
	bl	__assert_fail
.L8:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L52+8
	mov	r2, #48
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L9:
	mov	r0, #2
	bl	_isatty
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L52+8
	mov	r2, #50
	ldr	r1, .L52+4
	ldr	r0, .L52+44
	bl	__assert_fail
.L10:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L52+8
	mov	r2, #51
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L11:
	sub	r3, fp, #20
	mov	r2, #5
	mov	r1, r3
	mov	r0, #0
	bl	_read
	mov	r3, r0
	cmp	r3, #5
	beq	.L12
	ldr	r3, .L52+8
	mov	r2, #54
	ldr	r1, .L52+4
	ldr	r0, .L52+48
	bl	__assert_fail
.L12:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L52+8
	mov	r2, #55
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L13:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L14
	ldr	r3, .L52+8
	mov	r2, #56
	ldr	r1, .L52+4
	ldr	r0, .L52+52
	bl	__assert_fail
.L14:
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #116
	beq	.L15
	ldr	r3, .L52+8
	mov	r2, #57
	ldr	r1, .L52+4
	ldr	r0, .L52+56
	bl	__assert_fail
.L15:
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #100
	beq	.L16
	ldr	r3, .L52+8
	mov	r2, #58
	ldr	r1, .L52+4
	ldr	r0, .L52+60
	bl	__assert_fail
.L16:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #105
	beq	.L17
	ldr	r3, .L52+8
	mov	r2, #59
	ldr	r1, .L52+4
	ldr	r0, .L52+64
	bl	__assert_fail
.L17:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L18
	ldr	r3, .L52+8
	mov	r2, #60
	ldr	r1, .L52+4
	ldr	r0, .L52+68
	bl	__assert_fail
.L18:
	mov	r2, #0
	mov	r1, #2
	ldr	r0, .L52+72
	bl	_open
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #3
	beq	.L19
	ldr	r3, .L52+8
	mov	r2, #64
	ldr	r1, .L52+4
	ldr	r0, .L52+76
	bl	__assert_fail
.L19:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L52+8
	mov	r2, #65
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L20:
	ldr	r2, [fp, #-116]
	ldr	r1, .L52+80
	ldr	r0, [fp, #-112]
	bl	_write
	mov	r2, r0
	ldr	r3, [fp, #-116]
	cmp	r3, r2
	beq	.L21
	ldr	r3, .L52+8
	mov	r2, #67
	ldr	r1, .L52+4
	ldr	r0, .L52+84
	bl	__assert_fail
.L21:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L52+8
	mov	r2, #68
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L22:
	sub	r3, fp, #20
	mov	r2, #5
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	_read
	mov	r3, r0
	cmp	r3, #5
	beq	.L23
	ldr	r3, .L52+8
	mov	r2, #71
	ldr	r1, .L52+4
	ldr	r0, .L52+88
	bl	__assert_fail
.L23:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L52+8
	mov	r2, #72
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L24:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #116
	beq	.L25
	ldr	r3, .L52+8
	mov	r2, #73
	ldr	r1, .L52+4
	ldr	r0, .L52+92
	bl	__assert_fail
.L25:
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L26
	ldr	r3, .L52+8
	mov	r2, #74
	ldr	r1, .L52+4
	ldr	r0, .L52+96
	bl	__assert_fail
.L26:
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L27
	ldr	r3, .L52+8
	mov	r2, #75
	ldr	r1, .L52+4
	ldr	r0, .L52+100
	bl	__assert_fail
.L27:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #116
	beq	.L28
	ldr	r3, .L52+8
	mov	r2, #76
	ldr	r1, .L52+4
	ldr	r0, .L52+104
	bl	__assert_fail
.L28:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #102
	beq	.L29
	ldr	r3, .L52+8
	mov	r2, #77
	ldr	r1, .L52+4
	ldr	r0, .L52+108
	bl	__assert_fail
.L29:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	_fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L52+8
	mov	r2, #80
	ldr	r1, .L52+4
	ldr	r0, .L52+112
	bl	__assert_fail
.L30:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L52+8
	mov	r2, #81
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L31:
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	beq	.L32
	ldr	r3, .L52+8
	mov	r2, #83
	ldr	r1, .L52+4
	ldr	r0, .L52+116
	bl	__assert_fail
.L32:
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	beq	.L33
	ldr	r3, .L52+8
	mov	r2, #84
	ldr	r1, .L52+4
	ldr	r0, .L52+120
	bl	__assert_fail
.L33:
	ldr	r3, [fp, #-88]
	cmp	r3, #4
	beq	.L34
	ldr	r3, .L52+8
	mov	r2, #85
	ldr	r1, .L52+4
	ldr	r0, .L52+124
	bl	__assert_fail
.L34:
	ldr	r3, [fp, #-84]
	cmp	r3, #5
	beq	.L35
	ldr	r3, .L52+8
	mov	r2, #86
	ldr	r1, .L52+4
	ldr	r0, .L52+128
	bl	__assert_fail
.L35:
	ldr	r3, [fp, #-80]
	cmp	r3, #6
	beq	.L36
	ldr	r3, .L52+8
	mov	r2, #87
	ldr	r1, .L52+4
	ldr	r0, .L52+132
	bl	__assert_fail
.L36:
	ldr	r3, [fp, #-64]
	cmp	r3, #1024
	beq	.L37
	ldr	r3, .L52+8
	mov	r2, #89
	ldr	r1, .L52+4
	ldr	r0, .L52+136
	bl	__assert_fail
.L37:
	ldr	r3, [fp, #-52]
	cmp	r3, #900
	beq	.L38
	ldr	r3, .L52+8
	mov	r2, #90
	ldr	r1, .L52+4
	ldr	r0, .L52+140
	bl	__assert_fail
.L38:
	ldr	r3, [fp, #-48]
	cmp	r3, #800
	beq	.L39
	ldr	r3, .L52+8
	mov	r2, #91
	ldr	r1, .L52+4
	ldr	r0, .L52+144
	bl	__assert_fail
.L39:
	ldr	r3, [fp, #-44]
	ldr	r2, .L52+148
	cmp	r3, r2
	beq	.L40
	ldr	r3, .L52+8
	mov	r2, #92
	ldr	r1, .L52+4
	ldr	r0, .L52+152
	bl	__assert_fail
.L40:
	ldr	r3, [fp, #-36]
	ldr	r2, .L52+156
	cmp	r3, r2
	beq	.L41
	ldr	r3, .L52+8
	mov	r2, #93
	ldr	r1, .L52+4
	ldr	r0, .L52+160
	bl	__assert_fail
.L41:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-112]
	bl	_close
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L52+8
	mov	r2, #96
	ldr	r1, .L52+4
	ldr	r0, .L52+164
	bl	__assert_fail
.L42:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L52+8
	mov	r2, #97
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L43:
	ldr	r1, .L52+168
	ldr	r0, .L52+172
	bl	_link
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L52+8
	mov	r2, #99
	ldr	r1, .L52+4
	ldr	r0, .L52+176
	bl	__assert_fail
.L44:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L52+8
	mov	r2, #100
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L45:
	ldr	r0, .L52+172
	bl	_unlink
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L52+8
	mov	r2, #102
	ldr	r1, .L52+4
	ldr	r0, .L52+180
	bl	__assert_fail
.L46:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L52+8
	mov	r2, #103
	ldr	r1, .L52+4
	ldr	r0, .L52+28
	bl	__assert_fail
.L47:
	ldr	r1, .L52+184
	ldr	r0, .L52+188
	bl	_symlink
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L52+8
	mov	r2, #105
	ldr	r1, .L52+4
	ldr	r0, .L52+192
	bl	__assert_fail
.L48:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L49
	ldr	r3, .L52+8
	mov	r2, #106
	ldr	r1, .L52+4
	ldr	r0, .L52+196
	bl	__assert_fail
.L49:
	ldr	r3, [fp, #-120]
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC46
	.word	.LC0
	.word	__PRETTY_FUNCTION__.5313
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.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	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	3000
	.word	.LC35
	.word	5000
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.size	_main, .-_main
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	_main
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	_exit
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5313, %object
	.size	__PRETTY_FUNCTION__.5313, 6
__PRETTY_FUNCTION__.5313:
	.ascii	"_main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
