	.file	"883982.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nfilename: "
.LC1:
	.string	"\r\n"
.LC2:
	.string	"rb"
.LC3:
	.string	"cannot open %s: %s\n"
.LC4:
	.string	"short read, aborted\n"
.LC5:
	.string	"ftell returned -1: %s\n"
.LC6:
	.string	"reading 10 bytes from file"
.LC7:
	.string	"current file pos: %ld\n"
.LC8:
	.string	"get file size (lseek): "
.LC9:
	.string	"lseek returned -1: %s\n"
.LC10:
	.string	"%ld (fd = %d)\n"
.LC11:
	.string	"get file size (fseek): "
.LC12:
	.string	"fseek returned -1: %s\n"
.LC13:
	.string	"%ld\n"
.LC14:
	.string	"positioning at offset 100: "
.LC15:
	.string	"Ok"
.LC16:
	.string	"failed! cur pos = %ld\n"
.LC17:
	.string	"seeking back 44 bytes: "
.LC18:
	.string	"seeking forward 111 bytes: "
.LC19:
	.string	"seeking 13 bytes before eof: "
.LC20:
	.string	"seeking before sof:\n\t"
.LC21:
	.string	"Ok, error %s\n"
.LC22:
	.string	"NOT OK, no error"
.LC23:
	.string	"seeking to position 2^24:\n\t"
	.align 8
.LC24:
	.string	"NOT OK, returned %ld but expected -1\n"
	.align 8
.LC25:
	.string	"trying invalid value for whence:\n\t"
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -32[rbp]
	mov	esi, 19
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	edi, 10
	call	putchar@PLT
	cmp	QWORD PTR -64[rbp], 0
	jne	.L3
	mov	eax, 0
	jmp	.L34
.L3:
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	rdx, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L5
.L2:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -72[rbp], rax
.L5:
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L34
.L6:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 10
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L7:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L8:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L9:
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L11:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	esi, 100
	mov	rdi, rax
	call	fseek@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L12:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L13:
	cmp	QWORD PTR -48[rbp], 100
	jne	.L14
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 1
	mov	rsi, -44
	mov	rdi, rax
	call	fseek@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L16
	jmp	.L36
.L14:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L36:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L16:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L17:
	cmp	QWORD PTR -48[rbp], 56
	jne	.L18
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 1
	mov	esi, 111
	mov	rdi, rax
	call	fseek@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L20
	jmp	.L37
.L18:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L37:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L20:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L21:
	cmp	QWORD PTR -48[rbp], 167
	jne	.L22
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 2
	mov	rsi, -13
	mov	rdi, rax
	call	fseek@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L24
	jmp	.L38
.L22:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L38:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L24:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L25:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, 13
	cmp	QWORD PTR -48[rbp], rax
	jne	.L26
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	neg	rax
	mov	rcx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L28
	jmp	.L39
.L26:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L39:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 0
	mov	esi, 16777216
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L30
	jmp	.L40
.L28:
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L40:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 3
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L32
	jmp	.L41
.L30:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L34
.L41:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L34
.L32:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
.L34:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-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	"883982.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012filename: \000"
	.align	2
.LC1:
	.ascii	"\015\012\000"
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"cannot open %s: %s\012\000"
	.align	2
.LC4:
	.ascii	"short read, aborted\012\000"
	.align	2
.LC5:
	.ascii	"ftell returned -1: %s\012\000"
	.align	2
.LC6:
	.ascii	"reading 10 bytes from file\000"
	.align	2
.LC7:
	.ascii	"current file pos: %ld\012\000"
	.align	2
.LC8:
	.ascii	"get file size (lseek): \000"
	.align	2
.LC9:
	.ascii	"lseek returned -1: %s\012\000"
	.align	2
.LC10:
	.ascii	"%ld (fd = %d)\012\000"
	.align	2
.LC11:
	.ascii	"get file size (fseek): \000"
	.align	2
.LC12:
	.ascii	"fseek returned -1: %s\012\000"
	.align	2
.LC13:
	.ascii	"%ld\012\000"
	.align	2
.LC14:
	.ascii	"positioning at offset 100: \000"
	.align	2
.LC15:
	.ascii	"Ok\000"
	.align	2
.LC16:
	.ascii	"failed! cur pos = %ld\012\000"
	.align	2
.LC17:
	.ascii	"seeking back 44 bytes: \000"
	.align	2
.LC18:
	.ascii	"seeking forward 111 bytes: \000"
	.align	2
.LC19:
	.ascii	"seeking 13 bytes before eof: \000"
	.align	2
.LC20:
	.ascii	"seeking before sof:\012\011\000"
	.align	2
.LC21:
	.ascii	"Ok, error %s\012\000"
	.align	2
.LC22:
	.ascii	"NOT OK, no error\000"
	.align	2
.LC23:
	.ascii	"seeking to position 2^24:\012\011\000"
	.align	2
.LC24:
	.ascii	"NOT OK, returned %ld but expected -1\012\000"
	.align	2
.LC25:
	.ascii	"trying invalid value for whence:\012\011\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L42+4
	bl	printf
	ldr	r3, .L42+8
	ldr	r2, [r3]
	sub	r3, fp, #36
	mov	r1, #19
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-56]
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	b	.L34
.L3:
	ldr	r1, .L42+12
	ldr	r0, [fp, #-56]
	bl	strcspn
	mov	r2, r0
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-60]
	b	.L5
.L2:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-60]
.L5:
	ldr	r1, .L42+16
	ldr	r0, [fp, #-60]
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-60]
	ldr	r1, .L42+24
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L34
.L6:
	sub	r0, fp, #36
	ldr	r3, [fp, #-52]
	mov	r2, #1
	mov	r1, #10
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L7
	ldr	r3, .L42+20
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L42+28
	bl	fwrite
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L7:
	ldr	r0, [fp, #-52]
	bl	ftell
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+32
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L8:
	ldr	r0, .L42+36
	bl	puts
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+40
	bl	printf
	ldr	r0, .L42+44
	bl	printf
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-44]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	lseek
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+48
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L9:
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	ldr	r0, .L42+52
	bl	printf
	ldr	r0, .L42+56
	bl	printf
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	fseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+60
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L10:
	ldr	r0, [fp, #-52]
	bl	ftell
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L11
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+32
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L11:
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+64
	bl	printf
	ldr	r0, .L42+68
	bl	printf
	mov	r2, #0
	mov	r1, #100
	ldr	r0, [fp, #-52]
	bl	fseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+60
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L12:
	ldr	r0, [fp, #-52]
	bl	ftell
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L13
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+32
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L13:
	ldr	r3, [fp, #-48]
	cmp	r3, #100
	bne	.L14
	ldr	r0, .L42+72
	bl	puts
	ldr	r0, .L42+76
	bl	printf
	mov	r2, #1
	mvn	r1, #43
	ldr	r0, [fp, #-52]
	bl	fseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L16
	b	.L36
.L14:
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+80
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L36:
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+60
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L16:
	ldr	r0, [fp, #-52]
	bl	ftell
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+32
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L17:
	ldr	r3, [fp, #-48]
	cmp	r3, #56
	bne	.L18
	ldr	r0, .L42+72
	bl	puts
	ldr	r0, .L42+84
	bl	printf
	mov	r2, #1
	mov	r1, #111
	ldr	r0, [fp, #-52]
	bl	fseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L20
	b	.L37
.L18:
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+80
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L37:
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+60
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L20:
	ldr	r0, [fp, #-52]
	bl	ftell
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L21
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+32
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L21:
	ldr	r3, [fp, #-48]
	cmp	r3, #167
	bne	.L22
	ldr	r0, .L42+72
	bl	puts
	ldr	r0, .L42+88
	bl	printf
	mov	r2, #2
	mvn	r1, #12
	ldr	r0, [fp, #-52]
	bl	fseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L24
	b	.L38
.L22:
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+80
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L38:
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+60
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L24:
	ldr	r0, [fp, #-52]
	bl	ftell
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L25
	ldr	r3, .L42+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L42+32
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L25:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #13
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bne	.L26
	ldr	r0, .L42+72
	bl	puts
	ldr	r0, .L42+92
	bl	printf
	ldr	r3, [fp, #-40]
	rsb	r3, r3, #0
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	fseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L28
	b	.L39
.L26:
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+80
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L39:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L42+96
	bl	printf
	ldr	r0, .L42+100
	bl	printf
	mov	r2, #0
	mov	r1, #16777216
	ldr	r0, [fp, #-44]
	bl	lseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L30
	b	.L40
.L28:
	ldr	r0, .L42+104
	bl	puts
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L40:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L42+96
	bl	printf
	ldr	r0, .L42+108
	bl	printf
	mov	r2, #3
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	lseek
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L32
	b	.L41
.L30:
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+112
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
	b	.L34
.L41:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L42+96
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #0
	b	.L34
.L32:
	ldr	r1, [fp, #-48]
	ldr	r0, .L42+112
	bl	printf
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #1
.L34:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC26
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	stderr
	.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	.LC17
	.word	.LC16
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC23
	.word	.LC22
	.word	.LC25
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
