Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int counter = 0;
int currTable[10000];
int currTableSize = 0;

int getFactors(int num)
{
	counter++;
	int flag = 1;
	int flag2 = 1;
	int t = 0;
	if ((num - 1) % 7 == 0)
		t = (num - 1) / 7;
	if ((num + 1) % 7 == 0)
	{
		t = (num + 1) / 7;
		flag2 = 0;
	}

	for (int m = 1; m < t; m++)
	{
		for (int n = m; n < t; n++)
		{
			if (flag2)
			{
				if (t == (7 * m * n + m + n))
				{
					getFactors(7 * m + 1);
					getFactors(7 * n + 1);
					flag = 0;
				}
				else if (t == (7 * m * n - m - n))
				{
					getFactors(7 * m - 1);
					getFactors(7 * n - 1);
					flag = 0;
				}
			}
			else
			{
				if (t == (7 * m * n - m + n))
				{
					getFactors(7 * m + 1);
					getFactors(7 * n - 1);
					flag = 0;
				}
				else if (t == (7 * m * n + m - n))
				{
					getFactors(7 * m - 1);
					getFactors(7 * n + 1);
					flag = 0;
				}
			}
		}
		if (m * m * 7 > t)
			break;
	}

	if (flag)
	{
		int i = 0;
		for (i = 0; currTable[i] != 0; i++)
		{
			if (num == currTable[i])
				return 0;
		}
		currTable[i] = num;
		currTableSize = i;
	}
}

int main()
{
	for (int num; (scanf("%d", &num)) && num != 1; printf("\n"))
	{
		printf("%d:", num);
		getFactors(num);
		int flag = 1;
		while (flag)
		{
			flag = 0;
			for (int i = 0; i < currTableSize; i++)
			{
				if (currTable[i] > currTable[i + 1])
				{
					int temp = currTable[i + 1];
					currTable[i + 1] = currTable[i];
					currTable[i] = temp;
					flag = 1;
				}
			}
		}
		for (int i = 0; i <= currTableSize; i++)
		{
			printf(" %d", currTable[i]);
			currTable[i] = 0;
		}
		currTableSize = 0;
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	counter
	.bss
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	currTable
	.align 32
	.type	currTable, @object
	.size	currTable, 40000
currTable:
	.zero	40000
	.globl	currTableSize
	.align 4
	.type	currTableSize, @object
	.size	currTableSize, 4
currTableSize:
	.zero	4
	.text
	.globl	getFactors
	.type	getFactors, @function
getFactors:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	counter(%rip), %eax
	addl	$1, %eax
	movl	%eax, counter(%rip)
	movl	$1, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rax
	imulq	$-1840700269, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$3, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L2
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-1840700269, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
.L2:
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	imulq	$-1840700269, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$3, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L3
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-1840700269, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
	movl	$0, -20(%rbp)
.L3:
	movl	$1, -12(%rbp)
	jmp	.L4
.L13:
	movl	-12(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L5
.L10:
	cmpl	$0, -20(%rbp)
	je	.L6
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	leal	(%rcx,%rax), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jne	.L7
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L7:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jne	.L8
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L6:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jne	.L9
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	addl	%ecx, %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jne	.L8
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
.L8:
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L10
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jl	.L19
	addl	$1, -12(%rbp)
.L4:
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L13
	jmp	.L12
.L19:
	nop
.L12:
	cmpl	$0, -24(%rbp)
	je	.L14
	movl	$0, -4(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L15
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	movl	$0, %eax
	jmp	.L1
.L16:
	addl	$1, -4(%rbp)
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, currTableSize(%rip)
.L14:
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getFactors, .-getFactors
	.section	.rodata
.LC0:
	.string	"%d:"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L21
.L30:
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	getFactors
	movl	$1, -24(%rbp)
	jmp	.L22
.L26:
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L23
.L25:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L24
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, -24(%rbp)
.L24:
	addl	$1, -20(%rbp)
.L23:
	movl	currTableSize(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L25
.L22:
	cmpl	$0, -24(%rbp)
	jne	.L26
	movl	$0, -16(%rbp)
	jmp	.L27
.L28:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L27:
	movl	currTableSize(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L28
	movl	$0, currTableSize(%rip)
	movl	$10, %edi
	call	putchar@PLT
.L21:
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L29
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jne	.L30
.L29:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	getFactors
	.type	getFactors, @function
getFactors:
.LFB23:
	.cfi_startproc
	endbr64
	leal	1(%rdi), %ecx
	leal	-1(%rdi), %r8d
	movl	%edi, %edx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%ecx, %rsi
	movl	%ecx, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	imulq	$-1840700269, %rsi, %rax
	sarl	$31, %edi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrq	$32, %rax
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addl	%ecx, %eax
	sarl	$2, %eax
	subl	%edi, %eax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	addl	$1, counter(%rip)
	leal	0(,%rax,8), %edi
	subl	%eax, %edi
	movl	%ecx, %eax
	subl	%edi, %eax
	imull	$-1227133513, %r8d, %edi
	addl	$306783378, %edi
	cmpl	$613566756, %edi
	jbe	.L2
	testl	%eax, %eax
	jne	.L7
.L3:
	imulq	$-1840700269, %rsi, %rbx
	shrq	$32, %rbx
	addl	%ecx, %ebx
	sarl	$31, %ecx
	sarl	$2, %ebx
	subl	%ecx, %ebx
	xorl	%ecx, %ecx
.L6:
	cmpl	$1, %ebx
	jle	.L7
	movl	$6, %r14d
	movl	$8, %r13d
	movl	$1, %ebp
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ebp, %esi
	imull	%ebp, %esi
	leal	0(,%rsi,8), %r12d
	subl	%esi, %r12d
	testl	%ecx, %ecx
	jne	.L8
	movl	%r12d, %esi
	movl	%r13d, %r8d
	movl	%ebp, %r15d
.L11:
	cmpl	%r12d, %ebx
	je	.L9
	cmpl	%esi, %ebx
	je	.L35
.L10:
	addl	$1, %r15d
	addl	%r13d, %r12d
	addl	$7, %r8d
	addl	%r14d, %esi
	cmpl	%r15d, %ebx
	jg	.L11
.L12:
	movl	%ebp, %edi
	imull	%ebp, %edi
	leal	0(,%rdi,8), %esi
	subl	%edi, %esi
	cmpl	%ebx, %esi
	jg	.L16
	addl	$1, %ebp
	addl	$7, %r13d
	addl	$7, %r14d
	cmpl	%ebp, %ebx
	jne	.L17
.L16:
	testl	%eax, %eax
	jne	.L7
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movl	currTable(%rip), %ecx
	movl	$1, %eax
	leaq	-4+currTable(%rip), %rdi
	xorl	%esi, %esi
	testl	%ecx, %ecx
	jne	.L4
.L5:
	leaq	currTable(%rip), %rax
	movslq	%esi, %rcx
	movl	%esi, currTableSize(%rip)
	movl	%edx, (%rax,%rcx,4)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	movl	%eax, %esi
	addq	$1, %rax
	movl	(%rdi,%rax,4), %ecx
	testl	%ecx, %ecx
	je	.L5
.L4:
	cmpl	%edx, %ecx
	jne	.L19
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	leal	(%r12,%rbp,2), %esi
	subl	%ebp, %r12d
	movl	%r14d, %r8d
	movl	%ebp, %r15d
	subl	%ebp, %r12d
	cmpl	%esi, %ebx
	je	.L36
.L13:
	cmpl	%r12d, %ebx
	je	.L37
.L14:
	addl	$1, %r15d
	addl	%r13d, %esi
	addl	$7, %r8d
	addl	%r14d, %r12d
	cmpl	%r15d, %ebx
	jle	.L12
	cmpl	%esi, %ebx
	jne	.L13
.L36:
	movl	%r13d, %edi
	movl	%edx, 12(%rsp)
	movl	%esi, 8(%rsp)
	movl	%ecx, 4(%rsp)
	movl	%r8d, (%rsp)
	call	getFactors
	movl	(%rsp), %r8d
	leal	2(%r8), %edi
	call	getFactors
	movl	(%rsp), %r8d
	movl	4(%rsp), %ecx
	xorl	%eax, %eax
	movl	8(%rsp), %esi
	movl	12(%rsp), %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%eax, %eax
	je	.L3
	movslq	%r8d, %rbx
	movl	$1, %ecx
	imulq	$-1840700269, %rbx, %rbx
	shrq	$32, %rbx
	addl	%r8d, %ebx
	sarl	$31, %r8d
	sarl	$2, %ebx
	subl	%r8d, %ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L37:
	movl	%r14d, %edi
	movl	%edx, 12(%rsp)
	movl	%r8d, (%rsp)
	movl	%esi, 8(%rsp)
	movl	%ecx, 4(%rsp)
	call	getFactors
	movl	(%rsp), %edi
	call	getFactors
	movl	12(%rsp), %edx
	movl	8(%rsp), %esi
	xorl	%eax, %eax
	movl	4(%rsp), %ecx
	movl	(%rsp), %r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L35:
	movl	%r14d, %edi
	movl	%edx, 12(%rsp)
	movl	%ecx, 8(%rsp)
	movl	%r8d, (%rsp)
	movl	%esi, 4(%rsp)
	call	getFactors
	movl	(%rsp), %edi
	call	getFactors
	movl	(%rsp), %r8d
	movl	4(%rsp), %esi
	xorl	%eax, %eax
	movl	8(%rsp), %ecx
	movl	12(%rsp), %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r13d, %edi
	movl	%edx, 12(%rsp)
	movl	%ecx, 8(%rsp)
	movl	%esi, 4(%rsp)
	movl	%r8d, (%rsp)
	call	getFactors
	movl	(%rsp), %r8d
	leal	-2(%r8), %edi
	call	getFactors
	movl	12(%rsp), %edx
	movl	8(%rsp), %ecx
	xorl	%eax, %eax
	movl	4(%rsp), %esi
	movl	(%rsp), %r8d
	jmp	.L10
	.cfi_endproc
.LFE23:
	.size	getFactors, .-getFactors
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d:"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	currTable(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L39:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L47
	movl	4(%rsp), %edx
	cmpl	$1, %edx
	je	.L47
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %edi
	call	getFactors
	movl	currTableSize(%rip), %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	%edx, %edi
	jle	.L60
.L43:
	movslq	%edx, %rax
	leaq	(%r14,%rax,4), %rcx
.L41:
	movq	(%rcx), %xmm0
	addl	$1, %edx
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %esi
	jge	.L40
	movq	%xmm1, (%rcx)
	movl	$1, %r8d
	addq	$4, %rcx
	cmpl	%edi, %edx
	jl	.L41
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	testl	%edi, %edi
	jg	.L43
.L46:
	xorl	%r15d, %r15d
	testl	%edi, %edi
	js	.L45
.L44:
	movl	(%r14,%r15,4), %edx
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	$0, (%r14,%r15,4)
	addq	$1, %r15
	cmpl	%r15d, currTableSize(%rip)
	jge	.L44
.L45:
	movl	$0, currTableSize(%rip)
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L60:
	testl	%r8d, %r8d
	je	.L46
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	testl	%edi, %edi
	jg	.L43
	jmp	.L46
.L47:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L61
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L61:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	currTableSize
	.bss
	.align 4
	.type	currTableSize, @object
	.size	currTableSize, 4
currTableSize:
	.zero	4
	.globl	currTable
	.align 32
	.type	currTable, @object
	.size	currTable, 40000
currTable:
	.zero	40000
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	getFactors
	.type	getFactors, @function
getFactors:
.LFB23:
	.cfi_startproc
	endbr64
	leal	1(%rdi), %ecx
	leal	-1(%rdi), %r8d
	movl	%edi, %edx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%ecx, %rsi
	movl	%ecx, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	imulq	$-1840700269, %rsi, %rax
	sarl	$31, %edi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrq	$32, %rax
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addl	%ecx, %eax
	sarl	$2, %eax
	subl	%edi, %eax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	addl	$1, counter(%rip)
	leal	0(,%rax,8), %edi
	subl	%eax, %edi
	movl	%ecx, %eax
	subl	%edi, %eax
	imull	$-1227133513, %r8d, %edi
	addl	$306783378, %edi
	cmpl	$613566756, %edi
	jbe	.L2
	testl	%eax, %eax
	jne	.L7
.L3:
	imulq	$-1840700269, %rsi, %rbx
	shrq	$32, %rbx
	addl	%ecx, %ebx
	sarl	$31, %ecx
	sarl	$2, %ebx
	subl	%ecx, %ebx
	xorl	%ecx, %ecx
.L6:
	cmpl	$1, %ebx
	jle	.L7
	movl	$6, %r14d
	movl	$8, %r13d
	movl	$1, %ebp
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ebp, %esi
	imull	%ebp, %esi
	leal	0(,%rsi,8), %r12d
	subl	%esi, %r12d
	testl	%ecx, %ecx
	jne	.L8
	movl	%r12d, %esi
	movl	%r13d, %r8d
	movl	%ebp, %r15d
.L11:
	cmpl	%r12d, %ebx
	je	.L9
	cmpl	%esi, %ebx
	je	.L35
.L10:
	addl	$1, %r15d
	addl	%r13d, %r12d
	addl	$7, %r8d
	addl	%r14d, %esi
	cmpl	%r15d, %ebx
	jg	.L11
.L12:
	movl	%ebp, %edi
	imull	%ebp, %edi
	leal	0(,%rdi,8), %esi
	subl	%edi, %esi
	cmpl	%ebx, %esi
	jg	.L16
	addl	$1, %ebp
	addl	$7, %r13d
	addl	$7, %r14d
	cmpl	%ebp, %ebx
	jne	.L17
.L16:
	testl	%eax, %eax
	jne	.L7
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movl	currTable(%rip), %ecx
	movl	$1, %eax
	leaq	-4+currTable(%rip), %rdi
	xorl	%esi, %esi
	testl	%ecx, %ecx
	jne	.L4
.L5:
	leaq	currTable(%rip), %rax
	movslq	%esi, %rcx
	movl	%esi, currTableSize(%rip)
	movl	%edx, (%rax,%rcx,4)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	movl	%eax, %esi
	addq	$1, %rax
	movl	(%rdi,%rax,4), %ecx
	testl	%ecx, %ecx
	je	.L5
.L4:
	cmpl	%edx, %ecx
	jne	.L19
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	leal	(%r12,%rbp,2), %esi
	subl	%ebp, %r12d
	movl	%r14d, %r8d
	movl	%ebp, %r15d
	subl	%ebp, %r12d
	cmpl	%esi, %ebx
	je	.L36
.L13:
	cmpl	%r12d, %ebx
	je	.L37
.L14:
	addl	$1, %r15d
	addl	%r13d, %esi
	addl	$7, %r8d
	addl	%r14d, %r12d
	cmpl	%r15d, %ebx
	jle	.L12
	cmpl	%esi, %ebx
	jne	.L13
.L36:
	movl	%r13d, %edi
	movl	%edx, 12(%rsp)
	movl	%esi, 8(%rsp)
	movl	%ecx, 4(%rsp)
	movl	%r8d, (%rsp)
	call	getFactors
	movl	(%rsp), %r8d
	leal	2(%r8), %edi
	call	getFactors
	movl	(%rsp), %r8d
	movl	4(%rsp), %ecx
	xorl	%eax, %eax
	movl	8(%rsp), %esi
	movl	12(%rsp), %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%eax, %eax
	je	.L3
	movslq	%r8d, %rbx
	movl	$1, %ecx
	imulq	$-1840700269, %rbx, %rbx
	shrq	$32, %rbx
	addl	%r8d, %ebx
	sarl	$31, %r8d
	sarl	$2, %ebx
	subl	%r8d, %ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L37:
	movl	%r14d, %edi
	movl	%edx, 12(%rsp)
	movl	%r8d, (%rsp)
	movl	%esi, 8(%rsp)
	movl	%ecx, 4(%rsp)
	call	getFactors
	movl	(%rsp), %edi
	call	getFactors
	movl	12(%rsp), %edx
	movl	8(%rsp), %esi
	xorl	%eax, %eax
	movl	4(%rsp), %ecx
	movl	(%rsp), %r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L35:
	movl	%r14d, %edi
	movl	%edx, 12(%rsp)
	movl	%ecx, 8(%rsp)
	movl	%r8d, (%rsp)
	movl	%esi, 4(%rsp)
	call	getFactors
	movl	(%rsp), %edi
	call	getFactors
	movl	(%rsp), %r8d
	movl	4(%rsp), %esi
	xorl	%eax, %eax
	movl	8(%rsp), %ecx
	movl	12(%rsp), %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r13d, %edi
	movl	%edx, 12(%rsp)
	movl	%ecx, 8(%rsp)
	movl	%esi, 4(%rsp)
	movl	%r8d, (%rsp)
	call	getFactors
	movl	(%rsp), %r8d
	leal	-2(%r8), %edi
	call	getFactors
	movl	12(%rsp), %edx
	movl	8(%rsp), %ecx
	xorl	%eax, %eax
	movl	4(%rsp), %esi
	movl	(%rsp), %r8d
	jmp	.L10
	.cfi_endproc
.LFE23:
	.size	getFactors, .-getFactors
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d:"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	currTable(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L39:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L47
	movl	4(%rsp), %edx
	cmpl	$1, %edx
	je	.L47
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %edi
	call	getFactors
	movl	currTableSize(%rip), %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	%edx, %edi
	jle	.L60
.L43:
	movslq	%edx, %rax
	leaq	(%r14,%rax,4), %rcx
.L41:
	movq	(%rcx), %xmm0
	addl	$1, %edx
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %esi
	jge	.L40
	movq	%xmm1, (%rcx)
	movl	$1, %r8d
	addq	$4, %rcx
	cmpl	%edi, %edx
	jl	.L41
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	testl	%edi, %edi
	jg	.L43
.L46:
	xorl	%r15d, %r15d
	testl	%edi, %edi
	js	.L45
.L44:
	movl	(%r14,%r15,4), %edx
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	$0, (%r14,%r15,4)
	addq	$1, %r15
	cmpl	%r15d, currTableSize(%rip)
	jge	.L44
.L45:
	movl	$0, currTableSize(%rip)
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L60:
	testl	%r8d, %r8d
	je	.L46
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	testl	%edi, %edi
	jg	.L43
	jmp	.L46
.L47:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L61
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L61:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	currTableSize
	.bss
	.align 4
	.type	currTableSize, @object
	.size	currTableSize, 4
currTableSize:
	.zero	4
	.globl	currTable
	.align 32
	.type	currTable, @object
	.size	currTable, 40000
currTable:
	.zero	40000
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

#include <stdio.h>

int counter = 0;
int currTable[10000];
int currTableSize = 0;

int getFactors(int num)
{
	counter++;
	int flag = 1;
	int flag2 = 1;
	int t = 0;
	if ((num - 1) % 7 == 0)
		t = (num - 1) / 7;
	if ((num + 1) % 7 == 0)
	{
		t = (num + 1) / 7;
		flag2 = 0;
	}

	for (int m = 1; m < t; m++)
	{
		for (int n = m; n < t; n++)
		{
			if (flag2)
			{
				if (t == (7 * m * n + m + n))
				{
					getFactors(7 * m + 1);
					getFactors(7 * n + 1);
					flag = 0;
				}
				else if (t == (7 * m * n - m - n))
				{
					getFactors(7 * m - 1);
					getFactors(7 * n - 1);
					flag = 0;
				}
			}
			else
			{
				if (t == (7 * m * n - m + n))
				{
					getFactors(7 * m + 1);
					getFactors(7 * n - 1);
					flag = 0;
				}
				else if (t == (7 * m * n + m - n))
				{
					getFactors(7 * m - 1);
					getFactors(7 * n + 1);
					flag = 0;
				}
			}
		}
		if (m * m * 7 > t)
			break;
	}

	if (flag)
	{
		int i = 0;
		for (i = 0; currTable[i] != 0; i++)
		{
			if (num == currTable[i])
				return 0;
		}
		currTable[i] = num;
		currTableSize = i;
	}
}

int main()
{
	for (int num; (scanf("%d", &num)) && num != 1; printf("\n"))
	{
		printf("%d:", num);
		getFactors(num);
		int flag = 1;
		while (flag)
		{
			flag = 0;
			for (int i = 0; i < currTableSize; i++)
			{
				if (currTable[i] > currTable[i + 1])
				{
					int temp = currTable[i + 1];
					currTable[i + 1] = currTable[i];
					currTable[i] = temp;
					flag = 1;
				}
			}
		}
		for (int i = 0; i <= currTableSize; i++)
		{
			printf(" %d", currTable[i]);
			currTable[i] = 0;
		}
		currTableSize = 0;
	}
	return 0;
}


205920
262144
262200
279936
152244
1
 205920
262144
299662
279936
152244
1
 205920
262144
262200
259214
152244
1
 205920
262144
299662
279936
101746
1
 205920
262144
299662
279936
112663
1
 205920
52578
299662
279936
112663
1
 205920
52578
299662
83962
112663
1
 205920
52578
299662
83962
69749
1
 205920
27226
299662
279936
112663
1
 205920
262144
194758
279936
299998
1

205920: 6 8 13 15 20 22 55 99
262144: 8
262200: 6 8 15 20 50 57 69 76 92 190 230 475 575 874 2185
279936: 6 8 27
152244: 6 4229
 205920: 6 8 13 15 20 22 55 99
262144: 8
299662: 22 106 2827 13621
279936: 6 8 27
152244: 6 4229
 205920: 6 8 13 15 20 22 55 99
262144: 8
262200: 6 8 15 20 50 57 69 76 92 190 230 475 575 874 2185
259214: 259214
152244: 6 4229
 205920: 6 8 13 15 20 22 55 99
262144: 8
299662: 22 106 2827 13621
279936: 6 8 27
101746: 101746
 205920: 6 8 13 15 20 22 55 99
262144: 8
299662: 22 106 2827 13621
279936: 6 8 27
112663: 112663
 205920: 6 8 13 15 20 22 55 99
52578: 6 69 127
299662: 22 106 2827 13621
279936: 6 8 27
112663: 112663
 205920: 6 8 13 15 20 22 55 99
52578: 6 69 127
299662: 22 106 2827 13621
83962: 83962
112663: 112663
 205920: 6 8 13 15 20 22 55 99
52578: 6 69 127
299662: 22 106 2827 13621
83962: 83962
69749: 69749
 205920: 6 8 13 15 20 22 55 99
27226: 27226
299662: 22 106 2827 13621
279936: 6 8 27
112663: 112663
 205920: 6 8 13 15 20 22 55 99
262144: 8
194758: 194758
279936: 6 8 27
299998: 299998

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int counter = 0;
int currTable[10000];
int currTableSize = 0;

int getFactors(int num)
{
	counter++;
	int flag = 1;
	int flag2 = 1;
	int t = 0;
	if ((num - 1) % 7 == 0)
		t = (num - 1) / 7;
	if ((num + 1) % 7 == 0)
	{
		t = (num + 1) / 7;
		flag2 = 0;
	}

	for (int m = 1; m < t; m++)
	{
		for (int n = m; n < t; n++)
		{
			if (flag2)
			{
				if (t == (7 * m * n + m + n))
				{
					getFactors(7 * m + 1);
					getFactors(7 * n + 1);
					flag = 0;
				}
				else if (t == (7 * m * n - m - n))
				{
					getFactors(7 * m - 1);
					getFactors(7 * n - 1);
					flag = 0;
				}
			}
			else
			{
				if (t == (7 * m * n - m + n))
				{
					getFactors(7 * m + 1);
					getFactors(7 * n - 1);
					flag = 0;
				}
				else if (t == (7 * m * n + m - n))
				{
					getFactors(7 * m - 1);
					getFactors(7 * n + 1);
					flag = 0;
				}
			}
		}
		if (m * m * 7 > t)
			break;
	}

	if (flag)
	{
		int i = 0;
		for (i = 0; currTable[i] != 0; i++)
		{
			if (num == currTable[i])
				return 0;
		}
		currTable[i] = num;
		currTableSize = i;
	}
}

int main()
{
	for (int num; (scanf("%d", &num)) && num != 1; printf("\n"))
	{
		printf("%d:", num);
		getFactors(num);
		int flag = 1;
		while (flag)
		{
			flag = 0;
			for (int i = 0; i < currTableSize; i++)
			{
				if (currTable[i] > currTable[i + 1])
				{
					int temp = currTable[i + 1];
					currTable[i + 1] = currTable[i];
					currTable[i] = temp;
					flag = 1;
				}
			}
		}
		for (int i = 0; i <= currTableSize; i++)
		{
			printf(" %d", currTable[i]);
			currTable[i] = 0;
		}
		currTableSize = 0;
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	counter
	.bss
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	currTable
	.align 32
	.type	currTable, @object
	.size	currTable, 40000
currTable:
	.zero	40000
	.globl	currTableSize
	.align 4
	.type	currTableSize, @object
	.size	currTableSize, 4
currTableSize:
	.zero	4
	.text
	.globl	getFactors
	.type	getFactors, @function
getFactors:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	counter(%rip), %eax
	addl	$1, %eax
	movl	%eax, counter(%rip)
	movl	$1, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rax
	imulq	$-1840700269, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$3, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L2
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-1840700269, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
.L2:
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	imulq	$-1840700269, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$3, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L3
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-1840700269, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
	movl	$0, -20(%rbp)
.L3:
	movl	$1, -12(%rbp)
	jmp	.L4
.L13:
	movl	-12(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L5
.L10:
	cmpl	$0, -20(%rbp)
	je	.L6
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	leal	(%rcx,%rax), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jne	.L7
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L7:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jne	.L8
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L6:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jne	.L9
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	addl	%ecx, %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jne	.L8
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
.L8:
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L10
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jl	.L19
	addl	$1, -12(%rbp)
.L4:
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L13
	jmp	.L12
.L19:
	nop
.L12:
	cmpl	$0, -24(%rbp)
	je	.L14
	movl	$0, -4(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L15
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	movl	$0, %eax
	jmp	.L1
.L16:
	addl	$1, -4(%rbp)
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, currTableSize(%rip)
.L14:
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getFactors, .-getFactors
	.section	.rodata
.LC0:
	.string	"%d:"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L21
.L30:
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	getFactors
	movl	$1, -24(%rbp)
	jmp	.L22
.L26:
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L23
.L25:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L24
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, -24(%rbp)
.L24:
	addl	$1, -20(%rbp)
.L23:
	movl	currTableSize(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L25
.L22:
	cmpl	$0, -24(%rbp)
	jne	.L26
	movl	$0, -16(%rbp)
	jmp	.L27
.L28:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L27:
	movl	currTableSize(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L28
	movl	$0, currTableSize(%rip)
	movl	$10, %edi
	call	putchar@PLT
.L21:
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L29
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jne	.L30
.L29:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	counter
	.bss
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	currTable
	.align 32
	.type	currTable, @object
	.size	currTable, 40000
currTable:
	.zero	40000
	.globl	currTableSize
	.align 4
	.type	currTableSize, @object
	.size	currTableSize, 4
currTableSize:
	.zero	4
	.text
	.globl	getFactors
	.type	getFactors, @function
getFactors:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	counter(%rip), %eax
	addl	$1, %eax
	movl	%eax, counter(%rip)
	movl	$1, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rax
	imulq	$-1840700269, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$3, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L2
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-1840700269, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
.L2:
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	imulq	$-1840700269, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$2, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$3, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L3
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-1840700269, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -16(%rbp)
	movl	$0, -20(%rbp)
.L3:
	movl	$1, -12(%rbp)
	jmp	.L4
.L13:
	movl	-12(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L5
.L10:
	cmpl	$0, -20(%rbp)
	je	.L6
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	leal	(%rcx,%rax), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jne	.L7
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L7:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jne	.L8
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L6:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jne	.L9
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	imull	-8(%rbp), %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	addl	%ecx, %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jne	.L8
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	getFactors
	movl	$0, -24(%rbp)
.L8:
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L10
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$3, %eax
	subl	%edx, %eax
	cmpl	%eax, -16(%rbp)
	jl	.L19
	addl	$1, -12(%rbp)
.L4:
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L13
	jmp	.L12
.L19:
	nop
.L12:
	cmpl	$0, -24(%rbp)
	je	.L14
	movl	$0, -4(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L15
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	movl	$0, %eax
	jmp	.L1
.L16:
	addl	$1, -4(%rbp)
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, currTableSize(%rip)
.L14:
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getFactors, .-getFactors
	.section	.rodata
.LC0:
	.string	"%d:"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L21
.L30:
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	getFactors
	movl	$1, -24(%rbp)
	jmp	.L22
.L26:
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L23
.L25:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L24
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	currTable(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, -24(%rbp)
.L24:
	addl	$1, -20(%rbp)
.L23:
	movl	currTableSize(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L25
.L22:
	cmpl	$0, -24(%rbp)
	jne	.L26
	movl	$0, -16(%rbp)
	jmp	.L27
.L28:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	currTable(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L27:
	movl	currTableSize(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L28
	movl	$0, currTableSize(%rip)
	movl	$10, %edi
	call	putchar@PLT
.L21:
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L29
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jne	.L30
.L29:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
