	.file	"148489.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"Error while openging the file.\n"
.LC2:
	.string	"Result part 1 = %d \n\n"
.LC3:
	.string	"Result part 2 = %d \n\n"
	.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8679613459571175017
	mov	edx, 116
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -32[rbp], 0
	mov	BYTE PTR -24[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -104[rbp], -1
	lea	rax, -48[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	jle	.L4
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -88[rbp]
	jge	.L4
	add	DWORD PTR -108[rbp], 1
.L4:
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -104[rbp], eax
.L3:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rcx, -72[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], -1
	jne	.L5
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -108[rbp], 0
	lea	rax, -48[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L6
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rcx, -72[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	rdx, QWORD PTR -64[rbp]
	lea	rcx, -72[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -96[rbp], eax
	mov	rdx, QWORD PTR -64[rbp]
	lea	rcx, -72[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -92[rbp], eax
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -96[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, ecx
	cmp	edx, eax
	jge	.L8
	add	DWORD PTR -108[rbp], 1
.L8:
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -92[rbp], eax
.L7:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rcx, -72[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], -1
	jne	.L9
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"148489.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Error while openging the file.\012\000"
	.align	2
.LC3:
	.ascii	"Result part 1 = %d \012\012\000"
	.align	2
.LC4:
	.ascii	"Result part 2 = %d \012\012\000"
	.align	2
.LC0:
	.ascii	"input.txt\000"
	.space	15
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L12+4
	sub	r3, fp, #36
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #26
	mov	r2, #15
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-52]
	mvn	r3, #0
	str	r3, [fp, #-68]
	sub	r3, fp, #36
	ldr	r1, .L12+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L12+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L4
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bge	.L4
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L4:
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-68]
.L3:
	sub	r1, fp, #76
	sub	r3, fp, #80
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L5
	ldr	r1, [fp, #-72]
	ldr	r0, .L12+16
	bl	printf
	ldr	r0, [fp, #-48]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #36
	ldr	r1, .L12+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L12+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L6:
	sub	r1, fp, #76
	sub	r3, fp, #80
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-64]
	sub	r1, fp, #76
	sub	r3, fp, #80
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-60]
	sub	r1, fp, #76
	sub	r3, fp, #80
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-56]
	b	.L7
.L9:
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	add	r2, r2, r3
	ldr	r1, [fp, #-60]
	ldr	r3, [fp, #-56]
	add	r1, r1, r3
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	cmp	r2, r3
	bge	.L8
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L8:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-56]
.L7:
	sub	r1, fp, #76
	sub	r3, fp, #80
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L9
	ldr	r1, [fp, #-72]
	ldr	r0, .L12+20
	bl	printf
	ldr	r0, [fp, #-48]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
