	.file	"295325.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"infile"
	.align 8
.LC1:
	.string	"[%s] !ERROR! open write-only: %s\n"
.LC2:
	.string	"outfile"
	.align 8
.LC3:
	.string	"[%s] !ERROR! open outfile: %s\n"
	.align 8
.LC4:
	.string	"[%s] !ERROR! could sendfile() %d bytes from write-only file\n"
	.align 8
.LC5:
	.string	"[%s] !ERROR! [line %d] unexpected error: %s\n"
	.align 8
.LC6:
	.string	"[%s] !ERROR! close outfile: %s\n"
	.align 8
.LC7:
	.string	"[%s] !ERROR! close infile: %s\n"
.LC8:
	.string	"[%s] !ERROR! open infile: %s\n"
	.align 8
.LC9:
	.string	"[%s] !ERROR! open read-only: %s\n"
	.align 8
.LC10:
	.string	"[%s] !ERROR! could sendfile() %d bytes to read-only file\n"
	.align 8
.LC11:
	.string	"[%s] !ERROR! error %d opeing sendfile_test\n"
	.align 8
.LC12:
	.string	"[%s] !ERROR! error %d opeing sendfile_test_out\n"
	.align 8
.LC13:
	.string	"[%s] !ERROR! sendfile returned %d (errno %d) with invalid output fd\n"
.LC14:
	.string	"[%s]IN fd %d OUT fd %d\n"
	.align 8
.LC15:
	.string	"[%s] !ERROR! Error in reading out file\n"
.LC16:
	.string	"[%s]Previous contents:\n"
.LC17:
	.string	"[%s]outfile[%d] = 0x%02x\n"
	.align 8
.LC18:
	.string	"[%s] !ERROR! Error reading. read %d of %d\n"
.LC19:
	.string	"[%s]Replaced with:\n"
.LC20:
	.string	"[%s]infile[%d] = 0x%02x\n"
	.align 8
.LC21:
	.string	"[%s] !ERROR! Initial contents similar. replace output file.\n"
	.align 8
.LC22:
	.string	"[%s] !ERROR! sendfile error %d. wrote %d of %d\n"
	.align 8
.LC23:
	.string	"sendfile() success. validating contents"
.LC24:
	.string	"[%s]New file contents:\n"
.LC25:
	.string	"[%s]buf[%d] = 0x%02x\n"
	.align 8
.LC26:
	.string	"[%s] !ERROR! sendfile() failed!!\n"
.LC27:
	.string	"!!!Success!!!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L2:
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L4:
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 10
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L6:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.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]
	mov	r8, rdx
	mov	ecx, 49
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.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]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.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]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L10:
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.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]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L11:
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.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]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L12:
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 10
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L13:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rdx
	mov	ecx, 67
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L14:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L15:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L16:
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L17
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L17:
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L18
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L18:
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, 10
	mov	edx, 0
	mov	esi, eax
	mov	edi, -1
	call	sendfile@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L20
.L19:
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L20:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -18[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 10
	je	.L21
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L21:
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	movsx	eax, al
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 1
	mov	ecx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -44[rbp], 1
.L22:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 8
	jbe	.L23
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -28[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 10
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	r8d, 10
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L24:
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -28[rbp+rax]
	movsx	eax, al
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 1
	mov	ecx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -44[rbp], 1
.L25:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 8
	jbe	.L26
	lea	rcx, -18[rbp]
	lea	rax, -28[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L27:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 10
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 10
	je	.L28
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -32[rbp]
	mov	r9d, 10
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L28:
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rax, -18[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -18[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -32[rbp], eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	movsx	eax, al
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 1
	mov	ecx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -44[rbp], 1
.L29:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 8
	jbe	.L30
	lea	rcx, -18[rbp]
	lea	rax, -28[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L7
.L31:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
.L5:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
.L3:
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__func__.0, @object
	.size	__func__.0, 5
__func__.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	"295325.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"infile\000"
	.align	2
.LC1:
	.ascii	"[%s] !ERROR! open write-only: %s\012\000"
	.align	2
.LC2:
	.ascii	"outfile\000"
	.align	2
.LC3:
	.ascii	"[%s] !ERROR! open outfile: %s\012\000"
	.align	2
.LC4:
	.ascii	"[%s] !ERROR! could sendfile() %d bytes from write-o"
	.ascii	"nly file\012\000"
	.align	2
.LC5:
	.ascii	"[%s] !ERROR! [line %d] unexpected error: %s\012\000"
	.align	2
.LC6:
	.ascii	"[%s] !ERROR! close outfile: %s\012\000"
	.align	2
.LC7:
	.ascii	"[%s] !ERROR! close infile: %s\012\000"
	.align	2
.LC8:
	.ascii	"[%s] !ERROR! open infile: %s\012\000"
	.align	2
.LC9:
	.ascii	"[%s] !ERROR! open read-only: %s\012\000"
	.align	2
.LC10:
	.ascii	"[%s] !ERROR! could sendfile() %d bytes to read-only"
	.ascii	" file\012\000"
	.align	2
.LC11:
	.ascii	"[%s] !ERROR! error %d opeing sendfile_test\012\000"
	.align	2
.LC12:
	.ascii	"[%s] !ERROR! error %d opeing sendfile_test_out\012\000"
	.align	2
.LC13:
	.ascii	"[%s] !ERROR! sendfile returned %d (errno %d) with i"
	.ascii	"nvalid output fd\012\000"
	.align	2
.LC14:
	.ascii	"[%s]IN fd %d OUT fd %d\012\000"
	.align	2
.LC15:
	.ascii	"[%s] !ERROR! Error in reading out file\012\000"
	.align	2
.LC16:
	.ascii	"[%s]Previous contents:\012\000"
	.align	2
.LC17:
	.ascii	"[%s]outfile[%d] = 0x%02x\012\000"
	.align	2
.LC18:
	.ascii	"[%s] !ERROR! Error reading. read %d of %d\012\000"
	.align	2
.LC19:
	.ascii	"[%s]Replaced with:\012\000"
	.align	2
.LC20:
	.ascii	"[%s]infile[%d] = 0x%02x\012\000"
	.align	2
.LC21:
	.ascii	"[%s] !ERROR! Initial contents similar. replace outp"
	.ascii	"ut file.\012\000"
	.align	2
.LC22:
	.ascii	"[%s] !ERROR! sendfile error %d. wrote %d of %d\012\000"
	.align	2
.LC23:
	.ascii	"sendfile() success. validating contents\000"
	.align	2
.LC24:
	.ascii	"[%s]New file contents:\012\000"
	.align	2
.LC25:
	.ascii	"[%s]buf[%d] = 0x%02x\012\000"
	.align	2
.LC26:
	.ascii	"[%s] !ERROR! sendfile() failed!!\012\000"
	.align	2
.LC27:
	.ascii	"!!!Success!!!\000"
	.align	2
.LC28:
	.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, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #1
	ldr	r0, .L33+4
	bl	open
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+16
	mov	r0, r4
	bl	fprintf
	b	.L3
.L2:
	mov	r1, #2
	ldr	r0, .L33+20
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+24
	mov	r0, r4
	bl	fprintf
	b	.L5
.L4:
	mov	r3, #10
	mov	r2, #0
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	sendfile
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	beq	.L6
	ldr	r3, .L33+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, .L33+12
	ldr	r1, .L33+28
	bl	fprintf
	b	.L7
.L6:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L8
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, #49
	ldr	r2, .L33+12
	ldr	r1, .L33+32
	mov	r0, r4
	bl	fprintf
	b	.L5
.L8:
	ldr	r0, [fp, #-48]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+36
	mov	r0, r4
	bl	fprintf
	b	.L5
.L9:
	ldr	r0, [fp, #-52]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+40
	mov	r0, r4
	bl	fprintf
	b	.L3
.L10:
	mov	r1, #2
	ldr	r0, .L33+4
	bl	open
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+44
	mov	r0, r4
	bl	fprintf
	b	.L3
.L11:
	mov	r1, #0
	ldr	r0, .L33+20
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+48
	mov	r0, r4
	bl	fprintf
	b	.L5
.L12:
	mov	r3, #10
	mov	r2, #0
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	sendfile
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	beq	.L13
	ldr	r3, .L33+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, .L33+12
	ldr	r1, .L33+52
	bl	fprintf
	b	.L7
.L13:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L14
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, #67
	ldr	r2, .L33+12
	ldr	r1, .L33+32
	mov	r0, r4
	bl	fprintf
	b	.L5
.L14:
	ldr	r0, [fp, #-48]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+36
	mov	r0, r4
	bl	fprintf
	b	.L5
.L15:
	ldr	r0, [fp, #-52]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L33+12
	ldr	r1, .L33+40
	mov	r0, r4
	bl	fprintf
	b	.L3
.L16:
	mov	r1, #2
	ldr	r0, .L33+4
	bl	open
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L33+12
	ldr	r1, .L33+56
	mov	r0, r4
	bl	fprintf
	b	.L3
.L17:
	mov	r1, #2
	ldr	r0, .L33+20
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L18
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L33+12
	ldr	r1, .L33+60
	mov	r0, r4
	bl	fprintf
	b	.L5
.L18:
	mov	r3, #10
	mov	r2, #0
	ldr	r1, [fp, #-52]
	mvn	r0, #0
	bl	sendfile
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L20
.L19:
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	ldr	r2, .L33+12
	ldr	r1, .L33+64
	mov	r0, r4
	bl	fprintf
	b	.L7
.L20:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r1, .L33+12
	ldr	r0, .L33+68
	bl	printf
	sub	r3, fp, #40
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	lseek
	sub	r3, fp, #28
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read
	mov	r3, r0
	cmp	r3, #10
	beq	.L21
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, .L33+12
	ldr	r1, .L33+72
	mov	r0, r3
	bl	fprintf
	b	.L7
.L21:
	ldr	r1, .L33+12
	ldr	r0, .L33+76
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L22
.L23:
	ldr	r3, [fp, #-56]
	add	r1, r3, #1
	sub	r2, fp, #28
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r1
	ldr	r1, .L33+12
	ldr	r0, .L33+80
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L22:
	ldr	r3, [fp, #-56]
	cmp	r3, #8
	bls	.L23
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	lseek
	sub	r3, fp, #40
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	read
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #10
	beq	.L24
	ldr	r3, .L33+8
	ldr	r0, [r3]
	mov	r3, #10
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	ldr	r2, .L33+12
	ldr	r1, .L33+84
	bl	fprintf
	b	.L7
.L24:
	ldr	r1, .L33+12
	ldr	r0, .L33+88
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L25
.L26:
	ldr	r3, [fp, #-56]
	add	r1, r3, #1
	sub	r2, fp, #40
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r1
	ldr	r1, .L33+12
	ldr	r0, .L33+92
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L25:
	ldr	r3, [fp, #-56]
	cmp	r3, #8
	bls	.L26
	sub	r1, fp, #28
	sub	r3, fp, #40
	mov	r2, #10
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, .L33+12
	ldr	r1, .L33+96
	mov	r0, r3
	bl	fprintf
	b	.L7
.L27:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	lseek
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	lseek
	mov	r3, #10
	mov	r2, #0
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	sendfile
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #10
	beq	.L28
	ldr	r3, .L33+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r2, [r3]
	mov	r3, #10
	str	r3, [sp, #4]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L33+12
	ldr	r1, .L33+100
	mov	r0, r4
	bl	fprintf
	b	.L7
.L28:
	ldr	r0, .L33+104
	bl	puts
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	lseek
	sub	r3, fp, #28
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #28
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read
	str	r0, [fp, #-44]
	ldr	r1, .L33+12
	ldr	r0, .L33+108
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L29
.L30:
	ldr	r3, [fp, #-56]
	add	r1, r3, #1
	sub	r2, fp, #28
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r1
	ldr	r1, .L33+12
	ldr	r0, .L33+112
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L29:
	ldr	r3, [fp, #-56]
	cmp	r3, #8
	bls	.L30
	sub	r1, fp, #28
	sub	r3, fp, #40
	mov	r2, #10
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, .L33+12
	ldr	r1, .L33+116
	mov	r0, r3
	bl	fprintf
	b	.L7
.L31:
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r0, [fp, #-52]
	bl	close
	ldr	r0, .L33+120
	bl	puts
	mov	r0, #0
	bl	exit
.L7:
	ldr	r0, [fp, #-48]
	bl	close
.L5:
	ldr	r0, [fp, #-52]
	bl	close
.L3:
	mov	r0, #1
	bl	exit
.L34:
	.align	2
.L33:
	.word	.LC28
	.word	.LC0
	.word	stderr
	.word	__func__.6019
	.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
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.6019, %object
	.size	__func__.6019, 5
__func__.6019:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
