	.file	"611698.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error at malloc/realloc 1"
	.align 8
.LC1:
	.string	"***questa riga \303\250 stata gi\303\240 letta %d righe fa***\n"
.LC2:
	.string	"Error at malloc/realloc 2"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L15:
	cmp	BYTE PTR -37[rbp], 10
	jne	.L3
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L4
	cmp	QWORD PTR -16[rbp], 0
	je	.L5
	mov	edi, 80
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 10
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
.L6:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	add	DWORD PTR -36[rbp], 10
.L4:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	add	DWORD PTR -20[rbp], 1
.L8:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L10
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -32[rbp], 1
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cmp	DWORD PTR -28[rbp], eax
	jg	.L11
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 100
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
.L13:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L14
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L14:
	add	DWORD PTR -28[rbp], 100
.L11:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -37[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -24[rbp], 1
.L2:
	call	getchar@PLT
	mov	BYTE PTR -37[rbp], al
	cmp	BYTE PTR -37[rbp], -1
	jne	.L15
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"611698.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error at malloc/realloc 1\000"
	.align	2
.LC1:
	.ascii	"***questa riga \303\250 stata gi\303\240 letta %d r"
	.ascii	"ighe fa***\012\000"
	.align	2
.LC2:
	.ascii	"Error at malloc/realloc 2\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L16:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L5
	mov	r0, #40
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	b	.L6
.L5:
	ldr	r3, [fp, #-28]
	add	r3, r3, #10
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	realloc
	str	r0, [fp, #-24]
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L17
	bl	puts
	mvn	r0, #0
	bl	exit
.L7:
	ldr	r3, [fp, #-32]
	add	r3, r3, #10
	str	r3, [fp, #-32]
.L4:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L10:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L11
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L12
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	b	.L13
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #100
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	realloc
	str	r0, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L17+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L14:
	ldr	r3, [fp, #-20]
	add	r3, r3, #100
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [fp, #-33]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-33]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	b	.L16
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
