	.file	"923313.c"
	.intel_syntax noprefix
	.text
	.globl	nums
	.bss
	.align 32
	.type	nums, @object
	.size	nums, 400
nums:
	.zero	400
	.globl	sum
	.align 4
	.type	sum, @object
	.size	sum, 4
sum:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Error: that's not a valid input."
	.align 8
.LC1:
	.string	"Error: your input string was too long."
	.text
	.globl	get_num
	.type	get_num, @function
get_num:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 31
	jbe	.L4
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_num, .-get_num
	.globl	sum_array
	.type	sum_array, @function
sum_array:
.LFB7:
	.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], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, nums[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR sum[rip]
	add	eax, edx
	mov	DWORD PTR sum[rip], eax
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 399
	jbe	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sum_array, .-sum_array
	.section	.rodata
	.align 8
.LC2:
	.string	"Error: you have exceeded the allocated buffer."
.LC3:
	.string	"Your 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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L9
.L12:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	get_num
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -56[rbp], 99
	jle	.L10
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L11
.L10:
	cmp	DWORD PTR -52[rbp], -1
	je	.L9
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, nums[rip]
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -56[rbp], 1
.L9:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L12
.L11:
	mov	eax, 0
	call	sum_array
	mov	eax, DWORD PTR sum[rip]
	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	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"923313.c"
	.text
	.comm	nums,400,4
	.global	sum
	.bss
	.align	2
	.type	sum, %object
	.size	sum, 4
sum:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: that's not a valid input.\000"
	.align	2
.LC1:
	.ascii	"Error: your input string was too long.\000"
	.text
	.align	2
	.global	get_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_num, %function
get_num:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L2
	ldr	r0, .L5
	bl	puts
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	cmp	r3, #31
	bls	.L4
	ldr	r0, .L5+4
	bl	printf
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	get_num, .-get_num
	.align	2
	.global	sum_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_array, %function
sum_array:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r2, .L10
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #400
	bcc	.L9
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	nums
	.word	sum
	.size	sum_array, .-sum_array
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Error: you have exceeded the allocated buffer.\000"
	.align	2
.LC3:
	.ascii	"Your sum is %i\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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L13
.L16:
	sub	r3, fp, #40
	mov	r0, r3
	bl	get_num
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-48]
	cmp	r3, #99
	ble	.L14
	ldr	r0, .L19+4
	bl	puts
	b	.L15
.L14:
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	beq	.L13
	ldr	r1, .L19+8
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L13:
	ldr	r3, .L19+12
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r1, #32
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L15:
	bl	sum_array
	ldr	r3, .L19+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	.LC2
	.word	nums
	.word	stdin
	.word	sum
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
