	.file	"835231.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter your number: "
.LC1:
	.string	"your number was too large"
	.align 8
.LC2:
	.string	"Value must be an an integer larger than 0."
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -18[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L4
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 10
	jne	.L3
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L4
.L3:
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L5
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L8
.L5:
	mov	eax, 1
	jmp	.L8
.L4:
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.globl	array_sum
	.type	array_sum, @function
array_sum:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L12
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	array_sum, .-array_sum
	.section	.rodata
.LC3:
	.string	"The sum is: %i\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 432
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -420[rbp], 0
	jmp	.L15
.L18:
	lea	rax, -424[rbp]
	mov	rdi, rax
	call	get_int
	mov	BYTE PTR -425[rbp], al
	cmp	BYTE PTR -425[rbp], 0
	je	.L21
	mov	edx, DWORD PTR -424[rbp]
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	add	DWORD PTR -420[rbp], 1
.L15:
	cmp	DWORD PTR -420[rbp], 99
	jle	.L18
	jmp	.L17
.L21:
	nop
.L17:
	mov	eax, DWORD PTR -420[rbp]
	lea	edx, 1[rax]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	array_sum
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"835231.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter your number: \000"
	.align	2
.LC1:
	.ascii	"your number was too large\000"
	.align	2
.LC2:
	.ascii	"Value must be an an integer larger than 0.\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_int, %function
get_int:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	puts
	nop
	ldr	r3, .L10+8
	ldr	r2, [r3]
	sub	r3, fp, #20
	mov	r1, #10
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r0, .L10+12
	bl	printf
	ldr	r3, .L10+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L4
.L3:
	sub	r3, fp, #20
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L10+16
	bl	printf
	mov	r3, #0
	b	.L8
.L5:
	mov	r3, #1
	b	.L8
.L4:
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.size	get_int, .-get_int
	.align	2
	.global	array_sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	array_sum, %function
array_sum:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L14:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	array_sum, .-array_sum
	.section	.rodata
	.align	2
.LC4:
	.ascii	"The sum is: %i\012\000"
	.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 = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #416
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L17
.L20:
	sub	r3, fp, #416
	mov	r0, r3
	bl	get_int
	mov	r3, r0
	strb	r3, [fp, #-417]
	ldrb	r3, [fp, #-417]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
.L17:
	ldr	r3, [fp, #-412]
	cmp	r3, #99
	ble	.L20
	b	.L19
.L23:
	nop
.L19:
	ldr	r3, [fp, #-412]
	add	r2, r3, #1
	sub	r3, fp, #408
	mov	r1, r2
	mov	r0, r3
	bl	array_sum
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
