	.file	"154830605.c"
	.intel_syntax noprefix
	.text
	.globl	lines
	.bss
	.align 8
	.type	lines, @object
	.size	lines, 8
lines:
	.zero	8
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"pi.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"copy1.txt"
.LC4:
	.string	"File open failed\n"
.LC5:
	.string	"Input error at %d\n"
.LC6:
	.string	"Output error at %d\n"
.LC7:
	.string	"Copy complete."
.LC8:
	.string	"Deleting copy."
	.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, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -180[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -160[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -160[rbp], 0
	je	.L2
	cmp	QWORD PTR -152[rbp], 0
	jne	.L3
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	QWORD PTR -176[rbp], 0
.L9:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	ftell@PLT
	cmp	QWORD PTR -176[rbp], rax
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -176[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L4:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	ftell@PLT
	cmp	QWORD PTR -176[rbp], rax
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -176[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L5:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 10
	jne	.L6
	mov	rax, QWORD PTR lines[rip]
	add	rax, 1
	mov	QWORD PTR lines[rip], rax
.L6:
	cmp	DWORD PTR -180[rbp], -1
	je	.L12
	mov	rdx, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	QWORD PTR -176[rbp], 1
	jmp	.L9
.L12:
	nop
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	unlink@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"154830605.c"
	.text
	.global	lines
	.bss
	.align	2
	.type	lines, %object
	.size	lines, 4
lines:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"pi.txt\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"copy1.txt\000"
	.align	2
.LC4:
	.ascii	"File open failed\012\000"
	.align	2
.LC5:
	.ascii	"Input error at %d\012\000"
	.align	2
.LC6:
	.ascii	"Output error at %d\012\000"
	.align	2
.LC7:
	.ascii	"Copy complete.\000"
	.align	2
.LC8:
	.ascii	"Deleting copy.\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-148]
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [fp, #-144]
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	fopen
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L13+20
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L13+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-156]
.L9:
	ldr	r0, [fp, #-144]
	bl	ftell
	mov	r2, r0
	ldr	r3, [fp, #-156]
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L13+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-156]
	ldr	r1, .L13+28
	mov	r0, r3
	bl	fprintf
.L4:
	ldr	r0, [fp, #-140]
	bl	ftell
	mov	r2, r0
	ldr	r3, [fp, #-156]
	cmp	r3, r2
	beq	.L5
	ldr	r3, .L13+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-156]
	ldr	r1, .L13+32
	mov	r0, r3
	bl	fprintf
.L5:
	ldr	r0, [fp, #-144]
	bl	fgetc
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #10
	bne	.L6
	ldr	r3, .L13+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+36
	str	r3, [r2]
.L6:
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	beq	.L12
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-148]
	bl	fputc
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
	b	.L9
.L12:
	nop
	ldr	r0, .L13+40
	bl	puts
	ldr	r0, [fp, #-144]
	bl	fclose
	ldr	r0, [fp, #-140]
	bl	fclose
	ldr	r0, .L13+44
	bl	puts
	ldr	r0, .L13+16
	bl	unlink
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	lines
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
