	.file	"932385.c"
	.intel_syntax noprefix
	.text
	.local	last_said_length
	.comm	last_said_length,4,4
	.local	last_said
	.comm	last_said,8,8
	.section	.rodata
.LC0:
	.string	","
.LC1:
	.string	"%d\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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	mov	BYTE PTR -45[rbp], 1
	jmp	.L2
.L5:
	cmp	BYTE PTR -45[rbp], 0
	je	.L3
	mov	BYTE PTR -45[rbp], 0
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setLastSaid
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atol@PLT
	mov	DWORD PTR -44[rbp], eax
	add	DWORD PTR -40[rbp], 1
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
.L2:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	getLastSaid
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setLastSaid
	cmp	DWORD PTR -36[rbp], 0
	jns	.L7
	mov	DWORD PTR -44[rbp], 0
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -36[rbp]
	cdq
	xor	eax, edx
	mov	DWORD PTR -44[rbp], eax
	sub	DWORD PTR -44[rbp], edx
.L8:
	add	DWORD PTR -40[rbp], 1
.L6:
	cmp	DWORD PTR -40[rbp], 29999999
	jle	.L9
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, 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
	.globl	setLastSaid
	.type	setLastSaid, @function
setLastSaid:
.LFB7:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR last_said_length[rip]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L13
	mov	rdx, QWORD PTR last_said[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L20
.L13:
	mov	eax, DWORD PTR last_said_length[rip]
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	DWORD PTR last_said_length[rip], eax
	mov	eax, DWORD PTR last_said_length[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR last_said[rip], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	rdx, QWORD PTR last_said[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	eax, DWORD PTR last_said_length[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	rdx, QWORD PTR last_said[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L20
.L15:
	mov	eax, DWORD PTR last_said_length[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR last_said_length[rip]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR last_said_length[rip], eax
	mov	eax, DWORD PTR last_said_length[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR last_said[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR last_said[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR last_said[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -8[rbp], 1
.L18:
	mov	eax, DWORD PTR last_said_length[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L19
	mov	rdx, QWORD PTR last_said[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setLastSaid, .-setLastSaid
	.globl	getLastSaid
	.type	getLastSaid, @function
getLastSaid:
.LFB8:
	.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	eax, DWORD PTR last_said_length[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L22
	mov	rdx, QWORD PTR last_said[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	jmp	.L23
.L22:
	mov	eax, -1
.L23:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getLastSaid, .-getLastSaid
	.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	"932385.c"
	.text
	.local	last_said_length
	.comm	last_said_length,4,4
	.local	last_said
	.comm	last_said,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	",\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L12+4
	ldr	r2, [r3]
	sub	r1, fp, #28
	sub	r3, fp, #32
	mov	r0, r3
	bl	getline
	ldr	r3, [fp, #-32]
	ldr	r1, .L12+8
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	strb	r3, [fp, #-33]
	b	.L2
.L5:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	strb	r3, [fp, #-33]
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	setLastSaid
.L4:
	ldr	r0, [fp, #-24]
	bl	atol
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r1, .L12+8
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L5
	b	.L6
.L9:
	ldr	r0, [fp, #-20]
	bl	getLastSaid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	setLastSaid
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L7
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L8
.L7:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-16]
	ldr	r2, .L12+12
	cmp	r3, r2
	ble	.L9
	ldr	r1, [fp, #-20]
	ldr	r0, .L12+16
	bl	printf
	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	.LC2
	.word	stdin
	.word	.LC0
	.word	29999999
	.word	.LC1
	.size	main, .-main
	.align	2
	.global	setLastSaid
	.syntax unified
	.arm
	.fpu softvfp
	.type	setLastSaid, %function
setLastSaid:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L15
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	b	.L22
.L15:
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, .L23
	str	r3, [r2]
	ldr	r3, .L23
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L23+4
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L18
.L19:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L19
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	b	.L22
.L17:
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, .L23
	str	r3, [r2]
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, .L23
	ldr	r2, [r2]
	lsl	r2, r2, #2
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L23+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L20
.L21:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	last_said_length
	.word	last_said
	.size	setLastSaid, .-setLastSaid
	.align	2
	.global	getLastSaid
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLastSaid, %function
getLastSaid:
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L26
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L27
.L26:
	mvn	r3, #0
.L27:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L29:
	.align	2
.L28:
	.word	last_said_length
	.word	last_said
	.size	getLastSaid, .-getLastSaid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
