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>

/* ???????£???????????\¨??°???????????????????????????????§??????? */
typedef struct hyou {
	char alpha;
	int count;
}hyou;

int main(void)
{
	int n;	/* ????\¨??° 100??\??? */
	char c;	/* ????\¨??????????????????, A???Z */
	int i = 0;	/* ??\????????°??????????????? */
	int j;
	hyou hyou1[26];

	/* ????£?????????¢??????????????????????¨???? */
	hyou1[0].alpha = 'A'; hyou1[1].alpha = 'B';
	hyou1[2].alpha = 'C'; hyou1[3].alpha = 'D';
	hyou1[4].alpha = 'E'; hyou1[5].alpha = 'F';
	hyou1[6].alpha = 'G'; hyou1[7].alpha = 'H';
	hyou1[8].alpha = 'I'; hyou1[9].alpha = 'J';
	hyou1[10].alpha = 'K'; hyou1[11].alpha = 'L';
	hyou1[12].alpha = 'M'; hyou1[13].alpha = 'N';
	hyou1[14].alpha = 'O'; hyou1[15].alpha = 'P';
	hyou1[16].alpha = 'Q'; hyou1[17].alpha = 'R';
	hyou1[18].alpha = 'S'; hyou1[19].alpha = 'T';
	hyou1[20].alpha = 'U'; hyou1[21].alpha = 'V';
	hyou1[22].alpha = 'W'; hyou1[23].alpha = 'X';
	hyou1[24].alpha = 'Y'; hyou1[25].alpha = 'Z';

	/* ????\¨??°???????????? */
	for (j = 0; j < 26; j++) {
		hyou1[j].count = 0;
	}

	int max = 0;	/* ?????¨????????§????\¨??° */
	char max_man;	/* ?????§??????????????? */
	int dimax = 0;	/* ????\¨??°????¬???? */
	int check = 0;	/* ????\¨??????????????? */

	while (1) {
		scanf("%d", &n);	/* ?????°??\??? */
		getchar();	/* 1??????????????????????????? */
		if (n == 0) {
			break;
		}
		else {
			while (i != n) {
				c = getchar();	/* ?\¨??\??? */
				getchar();	/* ?\¨??\??????????????????????????? */

				/* ????????????????¢?????????????????????´??? */
				if (check == 0) {
					/* ??????????£????????\¨?????\??£???????????\ */
					if (c == 'A')
						hyou1[0].count++;
					else if (c == 'B')
						hyou1[1].count++;
					else if (c == 'C')
						hyou1[2].count++;
					else if (c == 'D')
						hyou1[3].count++;
					else if (c == 'E')
						hyou1[4].count++;
					else if (c == 'F')
						hyou1[5].count++;
					else if (c == 'G')
						hyou1[6].count++;
					else if (c == 'H')
						hyou1[7].count++;
					else if (c == 'I')
						hyou1[8].count++;
					else if (c == 'J')
						hyou1[9].count++;
					else if (c == 'K')
						hyou1[10].count++;
					else if (c == 'L')
						hyou1[11].count++;
					else if (c == 'M')
						hyou1[12].count++;
					else if (c == 'N')
						hyou1[13].count++;
					else if (c == 'O')
						hyou1[14].count++;
					else if (c == 'P')
						hyou1[15].count++;
					else if (c == 'Q')
						hyou1[16].count++;
					else if (c == 'R')
						hyou1[17].count++;
					else if (c == 'S')
						hyou1[18].count++;
					else if (c == 'T')
						hyou1[19].count++;
					else if (c == 'U')
						hyou1[20].count++;
					else if (c == 'V')
						hyou1[21].count++;
					else if (c == 'W')
						hyou1[22].count++;
					else if (c == 'X')
						hyou1[23].count++;
					else if (c == 'Y')
						hyou1[24].count++;
					else if (c == 'Z')
						hyou1[25].count++;


					for (j = 0; j < 26; j++) {
						/* ?????¨???????\¨??°????????§??¨?????????????£????????±??????? */
						if (hyou1[j].count > max) {
							max = hyou1[j].count;
							max_man = hyou1[j].alpha;
						}
						/* ?????¨???????\¨??°????¬????????±??????? */
						else if ((hyou1[j].count > dimax) && (hyou1[j].alpha != max_man)) {
							dimax = hyou1[j].count;
						}
					}

					/* printf("max = %d, dimax = %d, ????????? = %d", max, dimax, (max - dimax));
					printf("?????? = %d\n", n - (i + 1)); */

					/* ????\¨??°???????????°????¶?????????´??? */
					if (max > (n / 2)) {
						printf("%c %d\n", max_man, i + 1);
						check = 1;
					}
					/* ??????????¢????????????´??? */
					else if ((max - dimax) > (n - (i + 1))) {
						printf("%c %d\n", max_man, i + 1);
						check = 1;
					}
				}
				i++;
			}
		}
		if (check == 0) {
			printf("TIE\n");
		}

		/* ????????? */
		check = 0;
		max = 0;
		dimax = 0;
		i = 0;
		for (j = 0; j < 26; j++) {
			hyou1[j].count = 0;
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c %d\n"
.LC2:
	.string	"TIE"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -244(%rbp)
	movb	$65, -224(%rbp)
	movb	$66, -216(%rbp)
	movb	$67, -208(%rbp)
	movb	$68, -200(%rbp)
	movb	$69, -192(%rbp)
	movb	$70, -184(%rbp)
	movb	$71, -176(%rbp)
	movb	$72, -168(%rbp)
	movb	$73, -160(%rbp)
	movb	$74, -152(%rbp)
	movb	$75, -144(%rbp)
	movb	$76, -136(%rbp)
	movb	$77, -128(%rbp)
	movb	$78, -120(%rbp)
	movb	$79, -112(%rbp)
	movb	$80, -104(%rbp)
	movb	$81, -96(%rbp)
	movb	$82, -88(%rbp)
	movb	$83, -80(%rbp)
	movb	$84, -72(%rbp)
	movb	$85, -64(%rbp)
	movb	$86, -56(%rbp)
	movb	$87, -48(%rbp)
	movb	$88, -40(%rbp)
	movb	$89, -32(%rbp)
	movb	$90, -24(%rbp)
	movl	$0, -240(%rbp)
	jmp	.L2
.L3:
	movl	-240(%rbp), %eax
	cltq
	movl	$0, -220(%rbp,%rax,8)
	addl	$1, -240(%rbp)
.L2:
	cmpl	$25, -240(%rbp)
	jle	.L3
	movl	$0, -236(%rbp)
	movl	$0, -232(%rbp)
	movl	$0, -228(%rbp)
.L43:
	leaq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	-248(%rbp), %eax
	testl	%eax, %eax
	je	.L47
	jmp	.L6
.L39:
	call	getchar@PLT
	movb	%al, -249(%rbp)
	call	getchar@PLT
	cmpl	$0, -228(%rbp)
	jne	.L7
	cmpb	$65, -249(%rbp)
	jne	.L8
	movl	-220(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -220(%rbp)
	jmp	.L9
.L8:
	cmpb	$66, -249(%rbp)
	jne	.L10
	movl	-212(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -212(%rbp)
	jmp	.L9
.L10:
	cmpb	$67, -249(%rbp)
	jne	.L11
	movl	-204(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -204(%rbp)
	jmp	.L9
.L11:
	cmpb	$68, -249(%rbp)
	jne	.L12
	movl	-196(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -196(%rbp)
	jmp	.L9
.L12:
	cmpb	$69, -249(%rbp)
	jne	.L13
	movl	-188(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -188(%rbp)
	jmp	.L9
.L13:
	cmpb	$70, -249(%rbp)
	jne	.L14
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -180(%rbp)
	jmp	.L9
.L14:
	cmpb	$71, -249(%rbp)
	jne	.L15
	movl	-172(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -172(%rbp)
	jmp	.L9
.L15:
	cmpb	$72, -249(%rbp)
	jne	.L16
	movl	-164(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -164(%rbp)
	jmp	.L9
.L16:
	cmpb	$73, -249(%rbp)
	jne	.L17
	movl	-156(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -156(%rbp)
	jmp	.L9
.L17:
	cmpb	$74, -249(%rbp)
	jne	.L18
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -148(%rbp)
	jmp	.L9
.L18:
	cmpb	$75, -249(%rbp)
	jne	.L19
	movl	-140(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -140(%rbp)
	jmp	.L9
.L19:
	cmpb	$76, -249(%rbp)
	jne	.L20
	movl	-132(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L9
.L20:
	cmpb	$77, -249(%rbp)
	jne	.L21
	movl	-124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -124(%rbp)
	jmp	.L9
.L21:
	cmpb	$78, -249(%rbp)
	jne	.L22
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	jmp	.L9
.L22:
	cmpb	$79, -249(%rbp)
	jne	.L23
	movl	-108(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -108(%rbp)
	jmp	.L9
.L23:
	cmpb	$80, -249(%rbp)
	jne	.L24
	movl	-100(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -100(%rbp)
	jmp	.L9
.L24:
	cmpb	$81, -249(%rbp)
	jne	.L25
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	jmp	.L9
.L25:
	cmpb	$82, -249(%rbp)
	jne	.L26
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -84(%rbp)
	jmp	.L9
.L26:
	cmpb	$83, -249(%rbp)
	jne	.L27
	movl	-76(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -76(%rbp)
	jmp	.L9
.L27:
	cmpb	$84, -249(%rbp)
	jne	.L28
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -68(%rbp)
	jmp	.L9
.L28:
	cmpb	$85, -249(%rbp)
	jne	.L29
	movl	-60(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -60(%rbp)
	jmp	.L9
.L29:
	cmpb	$86, -249(%rbp)
	jne	.L30
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -52(%rbp)
	jmp	.L9
.L30:
	cmpb	$87, -249(%rbp)
	jne	.L31
	movl	-44(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L9
.L31:
	cmpb	$88, -249(%rbp)
	jne	.L32
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L32:
	cmpb	$89, -249(%rbp)
	jne	.L33
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -28(%rbp)
	jmp	.L9
.L33:
	cmpb	$90, -249(%rbp)
	jne	.L9
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
.L9:
	movl	$0, -240(%rbp)
	jmp	.L34
.L37:
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	cmpl	%eax, -236(%rbp)
	jge	.L35
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	movl	%eax, -236(%rbp)
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax,8), %eax
	movb	%al, -250(%rbp)
	jmp	.L36
.L35:
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	cmpl	%eax, -232(%rbp)
	jge	.L36
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax,8), %eax
	cmpb	%al, -250(%rbp)
	je	.L36
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	movl	%eax, -232(%rbp)
.L36:
	addl	$1, -240(%rbp)
.L34:
	cmpl	$25, -240(%rbp)
	jle	.L37
	movl	-248(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -236(%rbp)
	jle	.L38
	movl	-244(%rbp), %eax
	leal	1(%rax), %edx
	movsbl	-250(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -228(%rbp)
	jmp	.L7
.L38:
	movl	-236(%rbp), %eax
	subl	-232(%rbp), %eax
	movl	-248(%rbp), %edx
	movl	-244(%rbp), %ecx
	addl	$1, %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L7
	movl	-244(%rbp), %eax
	leal	1(%rax), %edx
	movsbl	-250(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -228(%rbp)
.L7:
	addl	$1, -244(%rbp)
.L6:
	movl	-248(%rbp), %eax
	cmpl	%eax, -244(%rbp)
	jne	.L39
	cmpl	$0, -228(%rbp)
	jne	.L40
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L40:
	movl	$0, -228(%rbp)
	movl	$0, -236(%rbp)
	movl	$0, -232(%rbp)
	movl	$0, -244(%rbp)
	movl	$0, -240(%rbp)
	jmp	.L41
.L42:
	movl	-240(%rbp), %eax
	cltq
	movl	$0, -220(%rbp,%rax,8)
	addl	$1, -240(%rbp)
.L41:
	cmpl	$25, -240(%rbp)
	jle	.L42
	jmp	.L43
.L47:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c %d\n"
.LC2:
	.string	"TIE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$296, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rax
	movb	$65, 64(%rsp)
	leaq	276(%rsp), %r15
	movb	$66, 72(%rsp)
	movb	$67, 80(%rsp)
	movb	$68, 88(%rsp)
	movb	$69, 96(%rsp)
	movb	$70, 104(%rsp)
	movb	$71, 112(%rsp)
	movb	$72, 120(%rsp)
	movb	$73, 128(%rsp)
	movb	$74, 136(%rsp)
	movb	$75, 144(%rsp)
	movb	$76, 152(%rsp)
	movb	$77, 160(%rsp)
	movb	$78, 168(%rsp)
	movb	$79, 176(%rsp)
	movb	$80, 184(%rsp)
	movb	$81, 192(%rsp)
	movb	$82, 200(%rsp)
	movb	$83, 208(%rsp)
	movb	$84, 216(%rsp)
	movb	$85, 224(%rsp)
	movb	$86, 232(%rsp)
	movb	$87, 240(%rsp)
	movb	$88, 248(%rsp)
	movq	%rax, 16(%rsp)
	leaq	68(%rsp), %rax
	movb	$89, 256(%rsp)
	movb	$90, 264(%rsp)
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$0, (%rax)
	addq	$8, %rax
	cmpq	%rax, %r15
	jne	.L2
	leaq	60(%rsp), %rax
	movq	%rax, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L41:
	movq	32(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	60(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L3
	movq	16(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r8d, %r8d
	movq	%r15, 24(%rsp)
	movl	$0, 12(%rsp)
	movl	%r12d, %r15d
	xorl	%ebx, %ebx
	movl	%r8d, %ebp
	leaq	208(%rax), %r13
	movl	%r14d, %r12d
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L52:
	movl	60(%rsp), %eax
.L5:
	cmpl	%r15d, %eax
	je	.L51
.L38:
	movq	stdin(%rip), %rdi
	addl	$1, %r15d
	call	getc@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %r14d
	call	getc@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jne	.L52
	subl	$65, %r14d
	movl	68(%rsp), %edx
	cmpb	$25, %r14b
	ja	.L6
	leaq	.L8(%rip), %rcx
	movzbl	%r14b, %r14d
	movslq	(%rcx,%r14,4), %rax
	addq	%rcx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L33-.L8
	.long	.L32-.L8
	.long	.L31-.L8
	.long	.L30-.L8
	.long	.L29-.L8
	.long	.L28-.L8
	.long	.L27-.L8
	.long	.L26-.L8
	.long	.L25-.L8
	.long	.L24-.L8
	.long	.L23-.L8
	.long	.L22-.L8
	.long	.L21-.L8
	.long	.L20-.L8
	.long	.L19-.L8
	.long	.L18-.L8
	.long	.L17-.L8
	.long	.L16-.L8
	.long	.L15-.L8
	.long	.L14-.L8
	.long	.L13-.L8
	.long	.L12-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.section	.text.startup
.L9:
	addl	$1, 260(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	16(%rsp), %rax
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L54:
	movzbl	(%rax), %r12d
	movl	%edx, %ebx
.L35:
	addq	$8, %rax
	cmpq	%rax, %r13
	je	.L53
.L36:
	movl	4(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L54
	cmpl	%ebp, %edx
	jle	.L35
	cmpb	%r12b, (%rax)
	cmovne	%edx, %ebp
	addq	$8, %rax
	cmpq	%rax, %r13
	jne	.L36
.L53:
	movl	60(%rsp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	cmpl	%ebx, %edx
	jl	.L49
	movl	%ebx, %esi
	movl	%eax, %edx
	subl	%ebp, %esi
	subl	%r15d, %edx
	cmpl	%edx, %esi
	jle	.L5
.L49:
	movsbl	%r12b, %edx
	movl	%r15d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	60(%rsp), %eax
	movl	$1, 12(%rsp)
	cmpl	%r15d, %eax
	jne	.L38
	.p2align 4,,10
	.p2align 3
.L51:
	movl	12(%rsp), %eax
	movq	24(%rsp), %r15
	movl	%r12d, %r14d
	testl	%eax, %eax
	je	.L55
.L39:
	movq	40(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$0, (%rax)
	addq	$8, %rax
	cmpq	%rax, %r15
	jne	.L40
	jmp	.L41
.L10:
	addl	$1, 252(%rsp)
	jmp	.L6
.L11:
	addl	$1, 244(%rsp)
	jmp	.L6
.L12:
	addl	$1, 236(%rsp)
	jmp	.L6
.L13:
	addl	$1, 228(%rsp)
	jmp	.L6
.L14:
	addl	$1, 220(%rsp)
	jmp	.L6
.L15:
	addl	$1, 212(%rsp)
	jmp	.L6
.L16:
	addl	$1, 204(%rsp)
	jmp	.L6
.L17:
	addl	$1, 196(%rsp)
	jmp	.L6
.L18:
	addl	$1, 188(%rsp)
	jmp	.L6
.L19:
	addl	$1, 180(%rsp)
	jmp	.L6
.L20:
	addl	$1, 172(%rsp)
	jmp	.L6
.L21:
	addl	$1, 164(%rsp)
	jmp	.L6
.L22:
	addl	$1, 156(%rsp)
	jmp	.L6
.L23:
	addl	$1, 148(%rsp)
	jmp	.L6
.L24:
	addl	$1, 140(%rsp)
	jmp	.L6
.L25:
	addl	$1, 132(%rsp)
	jmp	.L6
.L26:
	addl	$1, 124(%rsp)
	jmp	.L6
.L27:
	addl	$1, 116(%rsp)
	jmp	.L6
.L28:
	addl	$1, 108(%rsp)
	jmp	.L6
.L29:
	addl	$1, 100(%rsp)
	jmp	.L6
.L30:
	addl	$1, 92(%rsp)
	jmp	.L6
.L31:
	addl	$1, 84(%rsp)
	jmp	.L6
.L7:
	addl	$1, 268(%rsp)
	jmp	.L6
.L32:
	addl	$1, 76(%rsp)
	jmp	.L6
.L33:
	addl	$1, %edx
	movl	%edx, 68(%rsp)
	jmp	.L6
.L55:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L39
.L3:
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L56
	addq	$296, %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
.L56:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c %d\n"
.LC2:
	.string	"TIE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$296, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rax
	movb	$65, 64(%rsp)
	leaq	276(%rsp), %r15
	movb	$66, 72(%rsp)
	movb	$67, 80(%rsp)
	movb	$68, 88(%rsp)
	movb	$69, 96(%rsp)
	movb	$70, 104(%rsp)
	movb	$71, 112(%rsp)
	movb	$72, 120(%rsp)
	movb	$73, 128(%rsp)
	movb	$74, 136(%rsp)
	movb	$75, 144(%rsp)
	movb	$76, 152(%rsp)
	movb	$77, 160(%rsp)
	movb	$78, 168(%rsp)
	movb	$79, 176(%rsp)
	movb	$80, 184(%rsp)
	movb	$81, 192(%rsp)
	movb	$82, 200(%rsp)
	movb	$83, 208(%rsp)
	movb	$84, 216(%rsp)
	movb	$85, 224(%rsp)
	movb	$86, 232(%rsp)
	movb	$87, 240(%rsp)
	movb	$88, 248(%rsp)
	movq	%rax, 16(%rsp)
	leaq	68(%rsp), %rax
	movb	$89, 256(%rsp)
	movb	$90, 264(%rsp)
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$0, (%rax)
	addq	$8, %rax
	cmpq	%rax, %r15
	jne	.L2
	leaq	60(%rsp), %rax
	movq	%rax, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L41:
	movq	32(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	60(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L3
	movq	16(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r8d, %r8d
	movq	%r15, 24(%rsp)
	movl	$0, 12(%rsp)
	movl	%r12d, %r15d
	xorl	%ebx, %ebx
	movl	%r8d, %ebp
	leaq	208(%rax), %r13
	movl	%r14d, %r12d
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L52:
	movl	60(%rsp), %eax
.L5:
	cmpl	%r15d, %eax
	je	.L51
.L38:
	movq	stdin(%rip), %rdi
	addl	$1, %r15d
	call	getc@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %r14d
	call	getc@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jne	.L52
	subl	$65, %r14d
	movl	68(%rsp), %edx
	cmpb	$25, %r14b
	ja	.L6
	leaq	.L8(%rip), %rcx
	movzbl	%r14b, %r14d
	movslq	(%rcx,%r14,4), %rax
	addq	%rcx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L33-.L8
	.long	.L32-.L8
	.long	.L31-.L8
	.long	.L30-.L8
	.long	.L29-.L8
	.long	.L28-.L8
	.long	.L27-.L8
	.long	.L26-.L8
	.long	.L25-.L8
	.long	.L24-.L8
	.long	.L23-.L8
	.long	.L22-.L8
	.long	.L21-.L8
	.long	.L20-.L8
	.long	.L19-.L8
	.long	.L18-.L8
	.long	.L17-.L8
	.long	.L16-.L8
	.long	.L15-.L8
	.long	.L14-.L8
	.long	.L13-.L8
	.long	.L12-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.section	.text.startup
.L9:
	addl	$1, 260(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	16(%rsp), %rax
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L54:
	movzbl	(%rax), %r12d
	movl	%edx, %ebx
.L35:
	addq	$8, %rax
	cmpq	%rax, %r13
	je	.L53
.L36:
	movl	4(%rax), %edx
	cmpl	%ebx, %edx
	jg	.L54
	cmpl	%ebp, %edx
	jle	.L35
	cmpb	%r12b, (%rax)
	cmovne	%edx, %ebp
	addq	$8, %rax
	cmpq	%rax, %r13
	jne	.L36
.L53:
	movl	60(%rsp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	cmpl	%ebx, %edx
	jl	.L49
	movl	%ebx, %esi
	movl	%eax, %edx
	subl	%ebp, %esi
	subl	%r15d, %edx
	cmpl	%edx, %esi
	jle	.L5
.L49:
	movsbl	%r12b, %edx
	movl	%r15d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	60(%rsp), %eax
	movl	$1, 12(%rsp)
	cmpl	%r15d, %eax
	jne	.L38
	.p2align 4,,10
	.p2align 3
.L51:
	movl	12(%rsp), %eax
	movq	24(%rsp), %r15
	movl	%r12d, %r14d
	testl	%eax, %eax
	je	.L55
.L39:
	movq	40(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$0, (%rax)
	addq	$8, %rax
	cmpq	%rax, %r15
	jne	.L40
	jmp	.L41
.L10:
	addl	$1, 252(%rsp)
	jmp	.L6
.L11:
	addl	$1, 244(%rsp)
	jmp	.L6
.L12:
	addl	$1, 236(%rsp)
	jmp	.L6
.L13:
	addl	$1, 228(%rsp)
	jmp	.L6
.L14:
	addl	$1, 220(%rsp)
	jmp	.L6
.L15:
	addl	$1, 212(%rsp)
	jmp	.L6
.L16:
	addl	$1, 204(%rsp)
	jmp	.L6
.L17:
	addl	$1, 196(%rsp)
	jmp	.L6
.L18:
	addl	$1, 188(%rsp)
	jmp	.L6
.L19:
	addl	$1, 180(%rsp)
	jmp	.L6
.L20:
	addl	$1, 172(%rsp)
	jmp	.L6
.L21:
	addl	$1, 164(%rsp)
	jmp	.L6
.L22:
	addl	$1, 156(%rsp)
	jmp	.L6
.L23:
	addl	$1, 148(%rsp)
	jmp	.L6
.L24:
	addl	$1, 140(%rsp)
	jmp	.L6
.L25:
	addl	$1, 132(%rsp)
	jmp	.L6
.L26:
	addl	$1, 124(%rsp)
	jmp	.L6
.L27:
	addl	$1, 116(%rsp)
	jmp	.L6
.L28:
	addl	$1, 108(%rsp)
	jmp	.L6
.L29:
	addl	$1, 100(%rsp)
	jmp	.L6
.L30:
	addl	$1, 92(%rsp)
	jmp	.L6
.L31:
	addl	$1, 84(%rsp)
	jmp	.L6
.L7:
	addl	$1, 268(%rsp)
	jmp	.L6
.L32:
	addl	$1, 76(%rsp)
	jmp	.L6
.L33:
	addl	$1, %edx
	movl	%edx, 68(%rsp)
	jmp	.L6
.L55:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L39
.L3:
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L56
	addq	$296, %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
.L56:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include<stdio.h>

/* ???????£???????????\¨??°???????????????????????????????§??????? */
typedef struct hyou {
	char alpha;
	int count;
}hyou;

int main(void)
{
	int n;	/* ????\¨??° 100??\??? */
	char c;	/* ????\¨??????????????????, A???Z */
	int i = 0;	/* ??\????????°??????????????? */
	int j;
	hyou hyou1[26];

	/* ????£?????????¢??????????????????????¨???? */
	hyou1[0].alpha = 'A'; hyou1[1].alpha = 'B';
	hyou1[2].alpha = 'C'; hyou1[3].alpha = 'D';
	hyou1[4].alpha = 'E'; hyou1[5].alpha = 'F';
	hyou1[6].alpha = 'G'; hyou1[7].alpha = 'H';
	hyou1[8].alpha = 'I'; hyou1[9].alpha = 'J';
	hyou1[10].alpha = 'K'; hyou1[11].alpha = 'L';
	hyou1[12].alpha = 'M'; hyou1[13].alpha = 'N';
	hyou1[14].alpha = 'O'; hyou1[15].alpha = 'P';
	hyou1[16].alpha = 'Q'; hyou1[17].alpha = 'R';
	hyou1[18].alpha = 'S'; hyou1[19].alpha = 'T';
	hyou1[20].alpha = 'U'; hyou1[21].alpha = 'V';
	hyou1[22].alpha = 'W'; hyou1[23].alpha = 'X';
	hyou1[24].alpha = 'Y'; hyou1[25].alpha = 'Z';

	/* ????\¨??°???????????? */
	for (j = 0; j < 26; j++) {
		hyou1[j].count = 0;
	}

	int max = 0;	/* ?????¨????????§????\¨??° */
	char max_man;	/* ?????§??????????????? */
	int dimax = 0;	/* ????\¨??°????¬???? */
	int check = 0;	/* ????\¨??????????????? */

	while (1) {
		scanf("%d", &n);	/* ?????°??\??? */
		getchar();	/* 1??????????????????????????? */
		if (n == 0) {
			break;
		}
		else {
			while (i != n) {
				c = getchar();	/* ?\¨??\??? */
				getchar();	/* ?\¨??\??????????????????????????? */

				/* ????????????????¢?????????????????????´??? */
				if (check == 0) {
					/* ??????????£????????\¨?????\??£???????????\ */
					if (c == 'A')
						hyou1[0].count++;
					else if (c == 'B')
						hyou1[1].count++;
					else if (c == 'C')
						hyou1[2].count++;
					else if (c == 'D')
						hyou1[3].count++;
					else if (c == 'E')
						hyou1[4].count++;
					else if (c == 'F')
						hyou1[5].count++;
					else if (c == 'G')
						hyou1[6].count++;
					else if (c == 'H')
						hyou1[7].count++;
					else if (c == 'I')
						hyou1[8].count++;
					else if (c == 'J')
						hyou1[9].count++;
					else if (c == 'K')
						hyou1[10].count++;
					else if (c == 'L')
						hyou1[11].count++;
					else if (c == 'M')
						hyou1[12].count++;
					else if (c == 'N')
						hyou1[13].count++;
					else if (c == 'O')
						hyou1[14].count++;
					else if (c == 'P')
						hyou1[15].count++;
					else if (c == 'Q')
						hyou1[16].count++;
					else if (c == 'R')
						hyou1[17].count++;
					else if (c == 'S')
						hyou1[18].count++;
					else if (c == 'T')
						hyou1[19].count++;
					else if (c == 'U')
						hyou1[20].count++;
					else if (c == 'V')
						hyou1[21].count++;
					else if (c == 'W')
						hyou1[22].count++;
					else if (c == 'X')
						hyou1[23].count++;
					else if (c == 'Y')
						hyou1[24].count++;
					else if (c == 'Z')
						hyou1[25].count++;


					for (j = 0; j < 26; j++) {
						/* ?????¨???????\¨??°????????§??¨?????????????£????????±??????? */
						if (hyou1[j].count > max) {
							max = hyou1[j].count;
							max_man = hyou1[j].alpha;
						}
						/* ?????¨???????\¨??°????¬????????±??????? */
						else if ((hyou1[j].count > dimax) && (hyou1[j].alpha != max_man)) {
							dimax = hyou1[j].count;
						}
					}

					/* printf("max = %d, dimax = %d, ????????? = %d", max, dimax, (max - dimax));
					printf("?????? = %d\n", n - (i + 1)); */

					/* ????\¨??°???????????°????¶?????????´??? */
					if (max > (n / 2)) {
						printf("%c %d\n", max_man, i + 1);
						check = 1;
					}
					/* ??????????¢????????????´??? */
					else if ((max - dimax) > (n - (i + 1))) {
						printf("%c %d\n", max_man, i + 1);
						check = 1;
					}
				}
				i++;
			}
		}
		if (check == 0) {
			printf("TIE\n");
		}

		/* ????????? */
		check = 0;
		max = 0;
		dimax = 0;
		i = 0;
		for (j = 0; j < 26; j++) {
			hyou1[j].count = 0;
		}
	}
	return 0;
}
1
A
4
A A B B
5
L M N L N
6
K K K K K K
6
X X X Y Z X
10
A A A B A C A C C B
10
V U U U U V V W W W
0
 1
A
4
A A B B
5
L M N L N
6
K K K K K K
6
X X X Y Z X
10
A A A B A C A C C B
10
V U U U U V V W V W
0
 1
A
4
A A B B
5
L M N L N
6
K K K K K K
6
X X X Y Z X
10
B A A B A C A C C B
10
V U U U U V V W V W
0
 1
A
4
A A B B
5
L M N L N
6
K K K K K K
6
X X X Y Z X
10
B A A B A C A C C B
10
V U U U U W V W V W
0
 1
A
4
A A B B
5
L M N L N
6
K K K K K K
6
X X X Y Z X
10
B A A B A B A C C B
10
V U U U U W V W V W
0
 1
A
4
A A B B
5
L M N L N
6
K J K K K K
6
X X X Y Z X
10
A A A B A C A C C B
10
V U U U U V V W W W
0

A 1
TIE
TIE
K 4
X 5
A 7
U 10
 A 1
TIE
TIE
K 4
X 5
A 7
TIE
 A 1
TIE
TIE
K 4
X 5
A 10
TIE
 A 1
TIE
TIE
K 4
X 5
A 10
U 10
 A 1
TIE
TIE
K 4
X 5
TIE
U 10
 A 1
TIE
TIE
K 5
X 5
A 7
U 10

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>

/* ???????£???????????\¨??°???????????????????????????????§??????? */
typedef struct hyou {
	char alpha;
	int count;
}hyou;

int main(void)
{
	int n;	/* ????\¨??° 100??\??? */
	char c;	/* ????\¨??????????????????, A???Z */
	int i = 0;	/* ??\????????°??????????????? */
	int j;
	hyou hyou1[26];

	/* ????£?????????¢??????????????????????¨???? */
	hyou1[0].alpha = 'A'; hyou1[1].alpha = 'B';
	hyou1[2].alpha = 'C'; hyou1[3].alpha = 'D';
	hyou1[4].alpha = 'E'; hyou1[5].alpha = 'F';
	hyou1[6].alpha = 'G'; hyou1[7].alpha = 'H';
	hyou1[8].alpha = 'I'; hyou1[9].alpha = 'J';
	hyou1[10].alpha = 'K'; hyou1[11].alpha = 'L';
	hyou1[12].alpha = 'M'; hyou1[13].alpha = 'N';
	hyou1[14].alpha = 'O'; hyou1[15].alpha = 'P';
	hyou1[16].alpha = 'Q'; hyou1[17].alpha = 'R';
	hyou1[18].alpha = 'S'; hyou1[19].alpha = 'T';
	hyou1[20].alpha = 'U'; hyou1[21].alpha = 'V';
	hyou1[22].alpha = 'W'; hyou1[23].alpha = 'X';
	hyou1[24].alpha = 'Y'; hyou1[25].alpha = 'Z';

	/* ????\¨??°???????????? */
	for (j = 0; j < 26; j++) {
		hyou1[j].count = 0;
	}

	int max = 0;	/* ?????¨????????§????\¨??° */
	char max_man;	/* ?????§??????????????? */
	int dimax = 0;	/* ????\¨??°????¬???? */
	int check = 0;	/* ????\¨??????????????? */

	while (1) {
		scanf("%d", &n);	/* ?????°??\??? */
		getchar();	/* 1??????????????????????????? */
		if (n == 0) {
			break;
		}
		else {
			while (i != n) {
				c = getchar();	/* ?\¨??\??? */
				getchar();	/* ?\¨??\??????????????????????????? */

				/* ????????????????¢?????????????????????´??? */
				if (check == 0) {
					/* ??????????£????????\¨?????\??£???????????\ */
					if (c == 'A')
						hyou1[0].count++;
					else if (c == 'B')
						hyou1[1].count++;
					else if (c == 'C')
						hyou1[2].count++;
					else if (c == 'D')
						hyou1[3].count++;
					else if (c == 'E')
						hyou1[4].count++;
					else if (c == 'F')
						hyou1[5].count++;
					else if (c == 'G')
						hyou1[6].count++;
					else if (c == 'H')
						hyou1[7].count++;
					else if (c == 'I')
						hyou1[8].count++;
					else if (c == 'J')
						hyou1[9].count++;
					else if (c == 'K')
						hyou1[10].count++;
					else if (c == 'L')
						hyou1[11].count++;
					else if (c == 'M')
						hyou1[12].count++;
					else if (c == 'N')
						hyou1[13].count++;
					else if (c == 'O')
						hyou1[14].count++;
					else if (c == 'P')
						hyou1[15].count++;
					else if (c == 'Q')
						hyou1[16].count++;
					else if (c == 'R')
						hyou1[17].count++;
					else if (c == 'S')
						hyou1[18].count++;
					else if (c == 'T')
						hyou1[19].count++;
					else if (c == 'U')
						hyou1[20].count++;
					else if (c == 'V')
						hyou1[21].count++;
					else if (c == 'W')
						hyou1[22].count++;
					else if (c == 'X')
						hyou1[23].count++;
					else if (c == 'Y')
						hyou1[24].count++;
					else if (c == 'Z')
						hyou1[25].count++;


					for (j = 0; j < 26; j++) {
						/* ?????¨???????\¨??°????????§??¨?????????????£????????±??????? */
						if (hyou1[j].count > max) {
							max = hyou1[j].count;
							max_man = hyou1[j].alpha;
						}
						/* ?????¨???????\¨??°????¬????????±??????? */
						else if ((hyou1[j].count > dimax) && (hyou1[j].alpha != max_man)) {
							dimax = hyou1[j].count;
						}
					}

					/* printf("max = %d, dimax = %d, ????????? = %d", max, dimax, (max - dimax));
					printf("?????? = %d\n", n - (i + 1)); */

					/* ????\¨??°???????????°????¶?????????´??? */
					if (max > (n / 2)) {
						printf("%c %d\n", max_man, i + 1);
						check = 1;
					}
					/* ??????????¢????????????´??? */
					else if ((max - dimax) > (n - (i + 1))) {
						printf("%c %d\n", max_man, i + 1);
						check = 1;
					}
				}
				i++;
			}
		}
		if (check == 0) {
			printf("TIE\n");
		}

		/* ????????? */
		check = 0;
		max = 0;
		dimax = 0;
		i = 0;
		for (j = 0; j < 26; j++) {
			hyou1[j].count = 0;
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c %d\n"
.LC2:
	.string	"TIE"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -244(%rbp)
	movb	$65, -224(%rbp)
	movb	$66, -216(%rbp)
	movb	$67, -208(%rbp)
	movb	$68, -200(%rbp)
	movb	$69, -192(%rbp)
	movb	$70, -184(%rbp)
	movb	$71, -176(%rbp)
	movb	$72, -168(%rbp)
	movb	$73, -160(%rbp)
	movb	$74, -152(%rbp)
	movb	$75, -144(%rbp)
	movb	$76, -136(%rbp)
	movb	$77, -128(%rbp)
	movb	$78, -120(%rbp)
	movb	$79, -112(%rbp)
	movb	$80, -104(%rbp)
	movb	$81, -96(%rbp)
	movb	$82, -88(%rbp)
	movb	$83, -80(%rbp)
	movb	$84, -72(%rbp)
	movb	$85, -64(%rbp)
	movb	$86, -56(%rbp)
	movb	$87, -48(%rbp)
	movb	$88, -40(%rbp)
	movb	$89, -32(%rbp)
	movb	$90, -24(%rbp)
	movl	$0, -240(%rbp)
	jmp	.L2
.L3:
	movl	-240(%rbp), %eax
	cltq
	movl	$0, -220(%rbp,%rax,8)
	addl	$1, -240(%rbp)
.L2:
	cmpl	$25, -240(%rbp)
	jle	.L3
	movl	$0, -236(%rbp)
	movl	$0, -232(%rbp)
	movl	$0, -228(%rbp)
.L43:
	leaq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	-248(%rbp), %eax
	testl	%eax, %eax
	je	.L47
	jmp	.L6
.L39:
	call	getchar@PLT
	movb	%al, -249(%rbp)
	call	getchar@PLT
	cmpl	$0, -228(%rbp)
	jne	.L7
	cmpb	$65, -249(%rbp)
	jne	.L8
	movl	-220(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -220(%rbp)
	jmp	.L9
.L8:
	cmpb	$66, -249(%rbp)
	jne	.L10
	movl	-212(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -212(%rbp)
	jmp	.L9
.L10:
	cmpb	$67, -249(%rbp)
	jne	.L11
	movl	-204(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -204(%rbp)
	jmp	.L9
.L11:
	cmpb	$68, -249(%rbp)
	jne	.L12
	movl	-196(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -196(%rbp)
	jmp	.L9
.L12:
	cmpb	$69, -249(%rbp)
	jne	.L13
	movl	-188(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -188(%rbp)
	jmp	.L9
.L13:
	cmpb	$70, -249(%rbp)
	jne	.L14
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -180(%rbp)
	jmp	.L9
.L14:
	cmpb	$71, -249(%rbp)
	jne	.L15
	movl	-172(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -172(%rbp)
	jmp	.L9
.L15:
	cmpb	$72, -249(%rbp)
	jne	.L16
	movl	-164(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -164(%rbp)
	jmp	.L9
.L16:
	cmpb	$73, -249(%rbp)
	jne	.L17
	movl	-156(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -156(%rbp)
	jmp	.L9
.L17:
	cmpb	$74, -249(%rbp)
	jne	.L18
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -148(%rbp)
	jmp	.L9
.L18:
	cmpb	$75, -249(%rbp)
	jne	.L19
	movl	-140(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -140(%rbp)
	jmp	.L9
.L19:
	cmpb	$76, -249(%rbp)
	jne	.L20
	movl	-132(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L9
.L20:
	cmpb	$77, -249(%rbp)
	jne	.L21
	movl	-124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -124(%rbp)
	jmp	.L9
.L21:
	cmpb	$78, -249(%rbp)
	jne	.L22
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	jmp	.L9
.L22:
	cmpb	$79, -249(%rbp)
	jne	.L23
	movl	-108(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -108(%rbp)
	jmp	.L9
.L23:
	cmpb	$80, -249(%rbp)
	jne	.L24
	movl	-100(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -100(%rbp)
	jmp	.L9
.L24:
	cmpb	$81, -249(%rbp)
	jne	.L25
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	jmp	.L9
.L25:
	cmpb	$82, -249(%rbp)
	jne	.L26
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -84(%rbp)
	jmp	.L9
.L26:
	cmpb	$83, -249(%rbp)
	jne	.L27
	movl	-76(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -76(%rbp)
	jmp	.L9
.L27:
	cmpb	$84, -249(%rbp)
	jne	.L28
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -68(%rbp)
	jmp	.L9
.L28:
	cmpb	$85, -249(%rbp)
	jne	.L29
	movl	-60(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -60(%rbp)
	jmp	.L9
.L29:
	cmpb	$86, -249(%rbp)
	jne	.L30
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -52(%rbp)
	jmp	.L9
.L30:
	cmpb	$87, -249(%rbp)
	jne	.L31
	movl	-44(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L9
.L31:
	cmpb	$88, -249(%rbp)
	jne	.L32
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L32:
	cmpb	$89, -249(%rbp)
	jne	.L33
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -28(%rbp)
	jmp	.L9
.L33:
	cmpb	$90, -249(%rbp)
	jne	.L9
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
.L9:
	movl	$0, -240(%rbp)
	jmp	.L34
.L37:
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	cmpl	%eax, -236(%rbp)
	jge	.L35
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	movl	%eax, -236(%rbp)
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax,8), %eax
	movb	%al, -250(%rbp)
	jmp	.L36
.L35:
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	cmpl	%eax, -232(%rbp)
	jge	.L36
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax,8), %eax
	cmpb	%al, -250(%rbp)
	je	.L36
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	movl	%eax, -232(%rbp)
.L36:
	addl	$1, -240(%rbp)
.L34:
	cmpl	$25, -240(%rbp)
	jle	.L37
	movl	-248(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -236(%rbp)
	jle	.L38
	movl	-244(%rbp), %eax
	leal	1(%rax), %edx
	movsbl	-250(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -228(%rbp)
	jmp	.L7
.L38:
	movl	-236(%rbp), %eax
	subl	-232(%rbp), %eax
	movl	-248(%rbp), %edx
	movl	-244(%rbp), %ecx
	addl	$1, %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L7
	movl	-244(%rbp), %eax
	leal	1(%rax), %edx
	movsbl	-250(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -228(%rbp)
.L7:
	addl	$1, -244(%rbp)
.L6:
	movl	-248(%rbp), %eax
	cmpl	%eax, -244(%rbp)
	jne	.L39
	cmpl	$0, -228(%rbp)
	jne	.L40
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L40:
	movl	$0, -228(%rbp)
	movl	$0, -236(%rbp)
	movl	$0, -232(%rbp)
	movl	$0, -244(%rbp)
	movl	$0, -240(%rbp)
	jmp	.L41
.L42:
	movl	-240(%rbp), %eax
	cltq
	movl	$0, -220(%rbp,%rax,8)
	addl	$1, -240(%rbp)
.L41:
	cmpl	$25, -240(%rbp)
	jle	.L42
	jmp	.L43
.L47:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c %d\n"
.LC2:
	.string	"TIE"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -244(%rbp)
	movb	$65, -224(%rbp)
	movb	$66, -216(%rbp)
	movb	$67, -208(%rbp)
	movb	$68, -200(%rbp)
	movb	$69, -192(%rbp)
	movb	$70, -184(%rbp)
	movb	$71, -176(%rbp)
	movb	$72, -168(%rbp)
	movb	$73, -160(%rbp)
	movb	$74, -152(%rbp)
	movb	$75, -144(%rbp)
	movb	$76, -136(%rbp)
	movb	$77, -128(%rbp)
	movb	$78, -120(%rbp)
	movb	$79, -112(%rbp)
	movb	$80, -104(%rbp)
	movb	$81, -96(%rbp)
	movb	$82, -88(%rbp)
	movb	$83, -80(%rbp)
	movb	$84, -72(%rbp)
	movb	$85, -64(%rbp)
	movb	$86, -56(%rbp)
	movb	$87, -48(%rbp)
	movb	$88, -40(%rbp)
	movb	$89, -32(%rbp)
	movb	$90, -24(%rbp)
	movl	$0, -240(%rbp)
	jmp	.L2
.L3:
	movl	-240(%rbp), %eax
	cltq
	movl	$0, -220(%rbp,%rax,8)
	addl	$1, -240(%rbp)
.L2:
	cmpl	$25, -240(%rbp)
	jle	.L3
	movl	$0, -236(%rbp)
	movl	$0, -232(%rbp)
	movl	$0, -228(%rbp)
.L43:
	leaq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	-248(%rbp), %eax
	testl	%eax, %eax
	je	.L47
	jmp	.L6
.L39:
	call	getchar@PLT
	movb	%al, -249(%rbp)
	call	getchar@PLT
	cmpl	$0, -228(%rbp)
	jne	.L7
	cmpb	$65, -249(%rbp)
	jne	.L8
	movl	-220(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -220(%rbp)
	jmp	.L9
.L8:
	cmpb	$66, -249(%rbp)
	jne	.L10
	movl	-212(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -212(%rbp)
	jmp	.L9
.L10:
	cmpb	$67, -249(%rbp)
	jne	.L11
	movl	-204(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -204(%rbp)
	jmp	.L9
.L11:
	cmpb	$68, -249(%rbp)
	jne	.L12
	movl	-196(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -196(%rbp)
	jmp	.L9
.L12:
	cmpb	$69, -249(%rbp)
	jne	.L13
	movl	-188(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -188(%rbp)
	jmp	.L9
.L13:
	cmpb	$70, -249(%rbp)
	jne	.L14
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -180(%rbp)
	jmp	.L9
.L14:
	cmpb	$71, -249(%rbp)
	jne	.L15
	movl	-172(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -172(%rbp)
	jmp	.L9
.L15:
	cmpb	$72, -249(%rbp)
	jne	.L16
	movl	-164(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -164(%rbp)
	jmp	.L9
.L16:
	cmpb	$73, -249(%rbp)
	jne	.L17
	movl	-156(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -156(%rbp)
	jmp	.L9
.L17:
	cmpb	$74, -249(%rbp)
	jne	.L18
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -148(%rbp)
	jmp	.L9
.L18:
	cmpb	$75, -249(%rbp)
	jne	.L19
	movl	-140(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -140(%rbp)
	jmp	.L9
.L19:
	cmpb	$76, -249(%rbp)
	jne	.L20
	movl	-132(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L9
.L20:
	cmpb	$77, -249(%rbp)
	jne	.L21
	movl	-124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -124(%rbp)
	jmp	.L9
.L21:
	cmpb	$78, -249(%rbp)
	jne	.L22
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	jmp	.L9
.L22:
	cmpb	$79, -249(%rbp)
	jne	.L23
	movl	-108(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -108(%rbp)
	jmp	.L9
.L23:
	cmpb	$80, -249(%rbp)
	jne	.L24
	movl	-100(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -100(%rbp)
	jmp	.L9
.L24:
	cmpb	$81, -249(%rbp)
	jne	.L25
	movl	-92(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	jmp	.L9
.L25:
	cmpb	$82, -249(%rbp)
	jne	.L26
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -84(%rbp)
	jmp	.L9
.L26:
	cmpb	$83, -249(%rbp)
	jne	.L27
	movl	-76(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -76(%rbp)
	jmp	.L9
.L27:
	cmpb	$84, -249(%rbp)
	jne	.L28
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -68(%rbp)
	jmp	.L9
.L28:
	cmpb	$85, -249(%rbp)
	jne	.L29
	movl	-60(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -60(%rbp)
	jmp	.L9
.L29:
	cmpb	$86, -249(%rbp)
	jne	.L30
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -52(%rbp)
	jmp	.L9
.L30:
	cmpb	$87, -249(%rbp)
	jne	.L31
	movl	-44(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L9
.L31:
	cmpb	$88, -249(%rbp)
	jne	.L32
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L9
.L32:
	cmpb	$89, -249(%rbp)
	jne	.L33
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -28(%rbp)
	jmp	.L9
.L33:
	cmpb	$90, -249(%rbp)
	jne	.L9
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
.L9:
	movl	$0, -240(%rbp)
	jmp	.L34
.L37:
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	cmpl	%eax, -236(%rbp)
	jge	.L35
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	movl	%eax, -236(%rbp)
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax,8), %eax
	movb	%al, -250(%rbp)
	jmp	.L36
.L35:
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	cmpl	%eax, -232(%rbp)
	jge	.L36
	movl	-240(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax,8), %eax
	cmpb	%al, -250(%rbp)
	je	.L36
	movl	-240(%rbp), %eax
	cltq
	movl	-220(%rbp,%rax,8), %eax
	movl	%eax, -232(%rbp)
.L36:
	addl	$1, -240(%rbp)
.L34:
	cmpl	$25, -240(%rbp)
	jle	.L37
	movl	-248(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -236(%rbp)
	jle	.L38
	movl	-244(%rbp), %eax
	leal	1(%rax), %edx
	movsbl	-250(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -228(%rbp)
	jmp	.L7
.L38:
	movl	-236(%rbp), %eax
	subl	-232(%rbp), %eax
	movl	-248(%rbp), %edx
	movl	-244(%rbp), %ecx
	addl	$1, %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L7
	movl	-244(%rbp), %eax
	leal	1(%rax), %edx
	movsbl	-250(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -228(%rbp)
.L7:
	addl	$1, -244(%rbp)
.L6:
	movl	-248(%rbp), %eax
	cmpl	%eax, -244(%rbp)
	jne	.L39
	cmpl	$0, -228(%rbp)
	jne	.L40
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L40:
	movl	$0, -228(%rbp)
	movl	$0, -236(%rbp)
	movl	$0, -232(%rbp)
	movl	$0, -244(%rbp)
	movl	$0, -240(%rbp)
	jmp	.L41
.L42:
	movl	-240(%rbp), %eax
	cltq
	movl	$0, -220(%rbp,%rax,8)
	addl	$1, -240(%rbp)
.L41:
	cmpl	$25, -240(%rbp)
	jle	.L42
	jmp	.L43
.L47:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
