	.file	"106977.c"
	.intel_syntax noprefix
	.text
	.globl	sum_three
	.type	sum_three, @function
sum_three:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sum_three, .-sum_three
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input_2"
.LC2:
	.string	"Failed to open the file"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 856
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -9044[rbp], 0
	mov	DWORD PTR -9040[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -9032[rbp], rax
	cmp	QWORD PTR -9032[rbp], 0
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L7:
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1024[rbp+rax], 0
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, DWORD PTR -9040[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -9024[rbp+rdx*4], eax
	add	DWORD PTR -9040[rbp], 1
.L6:
	mov	rdx, QWORD PTR -9032[rbp]
	lea	rax, -1024[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR -9040[rbp]
	mov	DWORD PTR -9036[rbp], eax
	mov	DWORD PTR -9040[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -9040[rbp]
	add	eax, 2
	cdqe
	mov	edx, DWORD PTR -9024[rbp+rax*4]
	mov	eax, DWORD PTR -9040[rbp]
	add	eax, 1
	cdqe
	mov	ecx, DWORD PTR -9024[rbp+rax*4]
	mov	eax, DWORD PTR -9040[rbp]
	cdqe
	mov	eax, DWORD PTR -9024[rbp+rax*4]
	mov	esi, ecx
	mov	edi, eax
	call	sum_three
	mov	ebx, eax
	mov	eax, DWORD PTR -9040[rbp]
	add	eax, 3
	cdqe
	mov	edx, DWORD PTR -9024[rbp+rax*4]
	mov	eax, DWORD PTR -9040[rbp]
	add	eax, 2
	cdqe
	mov	ecx, DWORD PTR -9024[rbp+rax*4]
	mov	eax, DWORD PTR -9040[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -9024[rbp+rax*4]
	mov	esi, ecx
	mov	edi, eax
	call	sum_three
	cmp	ebx, eax
	jge	.L9
	add	DWORD PTR -9044[rbp], 1
.L9:
	add	DWORD PTR -9040[rbp], 1
.L8:
	mov	eax, DWORD PTR -9036[rbp]
	sub	eax, 3
	cmp	DWORD PTR -9040[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR -9044[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -9032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L11:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"106977.c"
	.text
	.align	2
	.global	sum_three
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_three, %function
sum_three:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sum_three, .-sum_three
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input_2\000"
	.align	2
.LC2:
	.ascii	"Failed to open the file\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 9024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #9024
	sub	sp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-828]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-824]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [r4, #-820]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-820]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L13+12
	bl	perror
	mov	r3, #1
	b	.L11
.L7:
	sub	r3, fp, #1016
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1004]
	sub	r3, fp, #1016
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-812]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	add	r3, r3, #1
	str	r3, [r2, #-824]
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1016
	ldr	r2, [r2, #-820]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	str	r3, [r2, #-816]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-824]
	b	.L8
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3, #-812]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-812]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	add	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-812]
	mov	r2, r3
	bl	sum_three
	mov	r4, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3, #-812]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	add	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-812]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	add	r3, r3, #3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-812]
	mov	r2, r3
	bl	sum_three
	mov	r3, r0
	cmp	r4, r3
	bge	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-828]
	add	r3, r3, #1
	str	r3, [r2, #-828]
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	add	r3, r3, #1
	str	r3, [r2, #-824]
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-816]
	sub	r3, r3, #3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-824]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-828]
	ldr	r0, .L13+16
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-820]
	bl	fclose
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
