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>
#include<string.h>
int main()
{
	int n,i,j;
	char w[100][11];

	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",w[i]);
	}

	for(i=0;i<n-1;i++)
		for(j=i+1;j<n;j++){
			if(strcmp(w[i],w[j])==0){
				printf("No\n");
				return 0;
			}
		}
	for(i=0;i<n-1;i++){
		if(w[i][strlen(w[i])-1]!=w[i+1][0]){
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1128(%rbp)
	jmp	.L2
.L3:
	leaq	-1120(%rbp), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1128(%rbp)
.L2:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L3
	movl	$0, -1128(%rbp)
	jmp	.L4
.L9:
	movl	-1128(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1124(%rbp)
	jmp	.L5
.L8:
	leaq	-1120(%rbp), %rcx
	movl	-1124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1120(%rbp), %rsi
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L6:
	addl	$1, -1124(%rbp)
.L5:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1124(%rbp)
	jl	.L8
	addl	$1, -1128(%rbp)
.L4:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L9
	movl	$0, -1128(%rbp)
	jmp	.L10
.L12:
	leaq	-1120(%rbp), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1120, %rax
	movzbl	(%rax), %ecx
	movl	-1128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$1120, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L11:
	addl	$1, -1128(%rbp)
.L10:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$1176, %rsp
	.cfi_def_cfa_offset 1232
	movq	%fs:40, %rax
	movq	%rax, 1160(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %ebx
	addq	$11, %r12
	cmpl	%ebp, %ebx
	jg	.L3
.L2:
	leal	-1(%rbx), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L4
	leaq	70(%rsp), %rax
	leaq	59(%rsp), %r14
	xorl	%r13d, %r13d
	movq	$0, 16(%rsp)
	movq	%rax, 24(%rsp)
.L9:
	addl	$1, %r13d
	cmpl	%ebx, %r13d
	jge	.L5
	movl	12(%rsp), %eax
	leaq	-11(%r14), %r12
	movq	%r14, %r15
	subl	%r13d, %eax
	addq	16(%rsp), %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rbp
	addq	24(%rsp), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$11, %r15
	cmpq	%rbp, %r15
	je	.L5
.L8:
	movq	%r15, %rsi
	movq	%r12, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L7:
	movq	1160(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$1176, %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
.L5:
	.cfi_restore_state
	addq	$1, 16(%rsp)
	addq	$11, %r14
	cmpl	%r13d, 12(%rsp)
	jne	.L9
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	12(%rsp), %ebp
	je	.L4
.L13:
	movq	%rbx, %rdi
	addq	$11, %rbx
	call	strlen@PLT
	movzbl	(%rbx), %ecx
	movq	%rax, %r8
	movslq	%ebp, %rax
	addl	$1, %ebp
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	addq	$1168, %rax
	addq	%rsp, %rax
	cmpb	%cl, -1121(%rax,%r8)
	je	.L20
	jmp	.L11
.L4:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$1176, %rsp
	.cfi_def_cfa_offset 1232
	movq	%fs:40, %rax
	movq	%rax, 1160(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L2
	leaq	48(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %ebx
	addq	$11, %r12
	cmpl	%ebp, %ebx
	jg	.L3
.L2:
	leal	-1(%rbx), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L4
	leaq	70(%rsp), %rax
	leaq	59(%rsp), %r14
	xorl	%r13d, %r13d
	movq	$0, 16(%rsp)
	movq	%rax, 24(%rsp)
.L9:
	addl	$1, %r13d
	cmpl	%ebx, %r13d
	jge	.L5
	movl	12(%rsp), %eax
	leaq	-11(%r14), %r12
	movq	%r14, %r15
	subl	%r13d, %eax
	addq	16(%rsp), %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rbp
	addq	24(%rsp), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$11, %r15
	cmpq	%rbp, %r15
	je	.L5
.L8:
	movq	%r15, %rsi
	movq	%r12, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L7:
	movq	1160(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$1176, %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
.L5:
	.cfi_restore_state
	addq	$1, 16(%rsp)
	addq	$11, %r14
	cmpl	%r13d, 12(%rsp)
	jne	.L9
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	12(%rsp), %ebp
	je	.L4
.L13:
	movq	%rbx, %rdi
	addq	$11, %rbx
	call	strlen@PLT
	movzbl	(%rbx), %ecx
	movq	%rax, %r8
	movslq	%ebp, %rax
	addl	$1, %ebp
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	addq	$1168, %rax
	addq	%rsp, %rax
	cmpb	%cl, -1121(%rax,%r8)
	je	.L20
	jmp	.L11
.L4:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include<string.h>
int main()
{
	int n,i,j;
	char w[100][11];

	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",w[i]);
	}

	for(i=0;i<n-1;i++)
		for(j=i+1;j<n;j++){
			if(strcmp(w[i],w[j])==0){
				printf("No\n");
				return 0;
			}
		}
	for(i=0;i<n-1;i++){
		if(w[i][strlen(w[i])-1]!=w[i+1][0]){
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
	return 0;
}
4
hoge
english
hnge
enigma
 9
basic
c
pcp
php
python
nadesico
ocaml
lua
assembly
 3
aac
arc
agc
 8
a
aa
aaa
aaaa
aaaaa
aaa`aa
aaa
aaaaaaa
 4
hoge
english
hnge
emigma
 9
b`sic
c
pcp
php
python
nadesico
ocaml
lua
assembly
 3
aac
cra
agc
 8
a
aa
aaa
aaaa
aaaaa
aaa`aa
aa`
aaaaaaa
 4
egoh
english
hnge
emigma
 9
b`sic
c
pcp
php
python
nadesico
ocaml
mua
assembly

Yes
 No
 No
 No
 Yes
 No
 Yes
 No
 No
 No

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>
#include<string.h>
int main()
{
	int n,i,j;
	char w[100][11];

	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%s",w[i]);
	}

	for(i=0;i<n-1;i++)
		for(j=i+1;j<n;j++){
			if(strcmp(w[i],w[j])==0){
				printf("No\n");
				return 0;
			}
		}
	for(i=0;i<n-1;i++){
		if(w[i][strlen(w[i])-1]!=w[i+1][0]){
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1128(%rbp)
	jmp	.L2
.L3:
	leaq	-1120(%rbp), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1128(%rbp)
.L2:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L3
	movl	$0, -1128(%rbp)
	jmp	.L4
.L9:
	movl	-1128(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1124(%rbp)
	jmp	.L5
.L8:
	leaq	-1120(%rbp), %rcx
	movl	-1124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1120(%rbp), %rsi
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L6:
	addl	$1, -1124(%rbp)
.L5:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1124(%rbp)
	jl	.L8
	addl	$1, -1128(%rbp)
.L4:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L9
	movl	$0, -1128(%rbp)
	jmp	.L10
.L12:
	leaq	-1120(%rbp), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1120, %rax
	movzbl	(%rax), %ecx
	movl	-1128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$1120, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L11:
	addl	$1, -1128(%rbp)
.L10:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"%s"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.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	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1128(%rbp)
	jmp	.L2
.L3:
	leaq	-1120(%rbp), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1128(%rbp)
.L2:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L3
	movl	$0, -1128(%rbp)
	jmp	.L4
.L9:
	movl	-1128(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1124(%rbp)
	jmp	.L5
.L8:
	leaq	-1120(%rbp), %rcx
	movl	-1124(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-1120(%rbp), %rsi
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L6:
	addl	$1, -1124(%rbp)
.L5:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1124(%rbp)
	jl	.L8
	addl	$1, -1128(%rbp)
.L4:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L9
	movl	$0, -1128(%rbp)
	jmp	.L10
.L12:
	leaq	-1120(%rbp), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rcx
	movl	-1128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$1120, %rax
	movzbl	(%rax), %ecx
	movl	-1128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$1120, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L11:
	addl	$1, -1128(%rbp)
.L10:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1128(%rbp)
	jl	.L12
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L13:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
