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 main() {

	int n;
	int i;
	int flag,count;
	char c[400];
	int Answer[200],a=0;

	for(;;) {
		scanf("%d",&n);
		if(n==0) break;

		for(i=0;i<3*n;i++)
			scanf("%c",&c[i]);

		flag=0,count=0;
		for(i=1;i<3*n;i+=3) {
			if(c[i+1]=='u') {
				if(flag==0) flag++;
				else if(flag==1) {
					count++;
					flag=0;
				}
				else if(flag==-1) flag++;
			}

			else {
				if(flag==0) flag--;
				else if(flag==-1) {
					count++;
					flag=0;
				}
				else if(flag==1) flag--;
			}
		}
		Answer[a]=count;
		a++;
	}

	for(i=0;i<a;i++)
		printf("%d\n",Answer[i]);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1220(%rbp)
.L14:
	leaq	-1236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1236(%rbp), %eax
	testl	%eax, %eax
	je	.L20
	movl	$0, -1232(%rbp)
	jmp	.L4
.L5:
	leaq	-416(%rbp), %rdx
	movl	-1232(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1232(%rbp)
.L4:
	movl	-1236(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L5
	movl	$0, -1228(%rbp)
	movl	$0, -1224(%rbp)
	movl	$1, -1232(%rbp)
	jmp	.L6
.L13:
	movl	-1232(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-416(%rbp,%rax), %eax
	cmpb	$117, %al
	jne	.L7
	cmpl	$0, -1228(%rbp)
	jne	.L8
	addl	$1, -1228(%rbp)
	jmp	.L9
.L8:
	cmpl	$1, -1228(%rbp)
	jne	.L10
	addl	$1, -1224(%rbp)
	movl	$0, -1228(%rbp)
	jmp	.L9
.L10:
	cmpl	$-1, -1228(%rbp)
	jne	.L9
	addl	$1, -1228(%rbp)
	jmp	.L9
.L7:
	cmpl	$0, -1228(%rbp)
	jne	.L11
	subl	$1, -1228(%rbp)
	jmp	.L9
.L11:
	cmpl	$-1, -1228(%rbp)
	jne	.L12
	addl	$1, -1224(%rbp)
	movl	$0, -1228(%rbp)
	jmp	.L9
.L12:
	cmpl	$1, -1228(%rbp)
	jne	.L9
	subl	$1, -1228(%rbp)
.L9:
	addl	$3, -1232(%rbp)
.L6:
	movl	-1236(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L13
	movl	-1220(%rbp), %eax
	cltq
	movl	-1224(%rbp), %edx
	movl	%edx, -1216(%rbp,%rax,4)
	addl	$1, -1220(%rbp)
	jmp	.L14
.L20:
	nop
	movl	$0, -1232(%rbp)
	jmp	.L15
.L16:
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1232(%rbp)
.L15:
	movl	-1232(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1240, %rsp
	.cfi_def_cfa_offset 1296
	movq	%fs:40, %rax
	movq	%rax, 1224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r15
	leaq	816(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, %ebx
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r12,%rbx), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax,2), %edx
	cmpl	%ebx, %edx
	jg	.L3
	cmpl	$1, %edx
	jle	.L14
	movl	$1, %eax
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	leaq	817(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L9:
	cmpb	$117, (%rsi,%rax)
	je	.L26
	testl	%ecx, %ecx
	je	.L17
	cmpl	$-1, %ecx
	je	.L24
.L18:
	xorl	%ecx, %ecx
.L8:
	addq	$3, %rax
	cmpl	%eax, %edx
	jg	.L9
	movl	%edi, 16(%rsp,%r13,4)
	addq	$1, %r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	testl	%ecx, %ecx
	je	.L15
	cmpl	$1, %ecx
	jne	.L18
.L24:
	addl	$1, %edi
	xorl	%ecx, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	$-1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	movl	$1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%r13d, %r13d
	je	.L6
	leal	-1(%r13), %eax
	leaq	16(%rsp), %rbp
	leaq	20(%rsp,%rax,4), %r12
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%r12, %rbp
	jne	.L11
.L6:
	movq	1224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1240, %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
.L14:
	.cfi_restore_state
	xorl	%edi, %edi
	movl	%edi, 16(%rsp,%r13,4)
	addq	$1, %r13
	jmp	.L10
.L27:
	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"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1240, %rsp
	.cfi_def_cfa_offset 1296
	movq	%fs:40, %rax
	movq	%rax, 1224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r15
	leaq	816(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, %ebx
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r12,%rbx), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax,2), %edx
	cmpl	%ebx, %edx
	jg	.L3
	cmpl	$1, %edx
	jle	.L14
	movl	$1, %eax
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	leaq	817(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L9:
	cmpb	$117, (%rsi,%rax)
	je	.L26
	testl	%ecx, %ecx
	je	.L17
	cmpl	$-1, %ecx
	je	.L24
.L18:
	xorl	%ecx, %ecx
.L8:
	addq	$3, %rax
	cmpl	%eax, %edx
	jg	.L9
	movl	%edi, 16(%rsp,%r13,4)
	addq	$1, %r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	testl	%ecx, %ecx
	je	.L15
	cmpl	$1, %ecx
	jne	.L18
.L24:
	addl	$1, %edi
	xorl	%ecx, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	movl	$-1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	movl	$1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%r13d, %r13d
	je	.L6
	leal	-1(%r13), %eax
	leaq	16(%rsp), %rbp
	leaq	20(%rsp,%rax,4), %r12
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	0(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%r12, %rbp
	jne	.L11
.L6:
	movq	1224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$1240, %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
.L14:
	.cfi_restore_state
	xorl	%edi, %edi
	movl	%edi, 16(%rsp,%r13,4)
	addq	$1, %r13
	jmp	.L10
.L27:
	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>

int main() {

	int n;
	int i;
	int flag,count;
	char c[400];
	int Answer[200],a=0;

	for(;;) {
		scanf("%d",&n);
		if(n==0) break;

		for(i=0;i<3*n;i++)
			scanf("%c",&c[i]);

		flag=0,count=0;
		for(i=1;i<3*n;i+=3) {
			if(c[i+1]=='u') {
				if(flag==0) flag++;
				else if(flag==1) {
					count++;
					flag=0;
				}
				else if(flag==-1) flag++;
			}

			else {
				if(flag==0) flag--;
				else if(flag==-1) {
					count++;
					flag=0;
				}
				else if(flag==1) flag--;
			}
		}
		Answer[a]=count;
		a++;
	}

	for(i=0;i<a;i++)
		printf("%d\n",Answer[i]);

	return 0;
}
4
lu ru ld rd
4
lu ld lu ru
0
lu
10
ru lu ld rd ru rd ru lu rd ld
0
 4
lu ru ld rd
0
lu ld lu ru
0
ul
10
vr lu ld rd rv rd ru lu rc kd
0
 4
lu ru ld rd
4
lu ld lu ru
0
ul
10
ru lu ld rd ru rd ru lu rd ld
0
 4
lu ru ld rd
4
lu ld lu ru
0
lu
10
ru lu ld rd su rd ru lu rd ld
0
 4
lu ru ld rd
4
lu ld lu ru
0
ul
10
ru lu ld rd rt rd ru lu rd ld
0
 4
lu ru ld rd
4
lu ld lu ru
0
lu
10
ru lu ld rd su rd ru lu sd ld
0
 4
lu ru ld rd
4
lu ld lu ru
0
ul
10
ru lu ld rd rt dr ru lu rd ld
0
 4
lu ru ld rd
4
lu ld lu ru
0
lu
10
ru lu ld dr su rd ru lu sd ld
0
 4
lu ru ld rd
4
lu ld lu ru
0
ul
10
ru lu ld rd rt dr ru lu rd dl
0
 4
lu ru ld rd
4
lu ld lu ru
0
lu
10
ru lu ld rd ru rd ru lu rc ld
0

2
1
 2
 2
1
 2
1
 2
1
 2
1
 2
1
 2
1
 2
1
 2
1

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 main() {

	int n;
	int i;
	int flag,count;
	char c[400];
	int Answer[200],a=0;

	for(;;) {
		scanf("%d",&n);
		if(n==0) break;

		for(i=0;i<3*n;i++)
			scanf("%c",&c[i]);

		flag=0,count=0;
		for(i=1;i<3*n;i+=3) {
			if(c[i+1]=='u') {
				if(flag==0) flag++;
				else if(flag==1) {
					count++;
					flag=0;
				}
				else if(flag==-1) flag++;
			}

			else {
				if(flag==0) flag--;
				else if(flag==-1) {
					count++;
					flag=0;
				}
				else if(flag==1) flag--;
			}
		}
		Answer[a]=count;
		a++;
	}

	for(i=0;i<a;i++)
		printf("%d\n",Answer[i]);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1220(%rbp)
.L14:
	leaq	-1236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1236(%rbp), %eax
	testl	%eax, %eax
	je	.L20
	movl	$0, -1232(%rbp)
	jmp	.L4
.L5:
	leaq	-416(%rbp), %rdx
	movl	-1232(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1232(%rbp)
.L4:
	movl	-1236(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L5
	movl	$0, -1228(%rbp)
	movl	$0, -1224(%rbp)
	movl	$1, -1232(%rbp)
	jmp	.L6
.L13:
	movl	-1232(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-416(%rbp,%rax), %eax
	cmpb	$117, %al
	jne	.L7
	cmpl	$0, -1228(%rbp)
	jne	.L8
	addl	$1, -1228(%rbp)
	jmp	.L9
.L8:
	cmpl	$1, -1228(%rbp)
	jne	.L10
	addl	$1, -1224(%rbp)
	movl	$0, -1228(%rbp)
	jmp	.L9
.L10:
	cmpl	$-1, -1228(%rbp)
	jne	.L9
	addl	$1, -1228(%rbp)
	jmp	.L9
.L7:
	cmpl	$0, -1228(%rbp)
	jne	.L11
	subl	$1, -1228(%rbp)
	jmp	.L9
.L11:
	cmpl	$-1, -1228(%rbp)
	jne	.L12
	addl	$1, -1224(%rbp)
	movl	$0, -1228(%rbp)
	jmp	.L9
.L12:
	cmpl	$1, -1228(%rbp)
	jne	.L9
	subl	$1, -1228(%rbp)
.L9:
	addl	$3, -1232(%rbp)
.L6:
	movl	-1236(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L13
	movl	-1220(%rbp), %eax
	cltq
	movl	-1224(%rbp), %edx
	movl	%edx, -1216(%rbp,%rax,4)
	addl	$1, -1220(%rbp)
	jmp	.L14
.L20:
	nop
	movl	$0, -1232(%rbp)
	jmp	.L15
.L16:
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1232(%rbp)
.L15:
	movl	-1232(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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"
.LC2:
	.string	"%d\n"
	.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	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1220(%rbp)
.L14:
	leaq	-1236(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1236(%rbp), %eax
	testl	%eax, %eax
	je	.L20
	movl	$0, -1232(%rbp)
	jmp	.L4
.L5:
	leaq	-416(%rbp), %rdx
	movl	-1232(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1232(%rbp)
.L4:
	movl	-1236(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L5
	movl	$0, -1228(%rbp)
	movl	$0, -1224(%rbp)
	movl	$1, -1232(%rbp)
	jmp	.L6
.L13:
	movl	-1232(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-416(%rbp,%rax), %eax
	cmpb	$117, %al
	jne	.L7
	cmpl	$0, -1228(%rbp)
	jne	.L8
	addl	$1, -1228(%rbp)
	jmp	.L9
.L8:
	cmpl	$1, -1228(%rbp)
	jne	.L10
	addl	$1, -1224(%rbp)
	movl	$0, -1228(%rbp)
	jmp	.L9
.L10:
	cmpl	$-1, -1228(%rbp)
	jne	.L9
	addl	$1, -1228(%rbp)
	jmp	.L9
.L7:
	cmpl	$0, -1228(%rbp)
	jne	.L11
	subl	$1, -1228(%rbp)
	jmp	.L9
.L11:
	cmpl	$-1, -1228(%rbp)
	jne	.L12
	addl	$1, -1224(%rbp)
	movl	$0, -1228(%rbp)
	jmp	.L9
.L12:
	cmpl	$1, -1228(%rbp)
	jne	.L9
	subl	$1, -1228(%rbp)
.L9:
	addl	$3, -1232(%rbp)
.L6:
	movl	-1236(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -1232(%rbp)
	jl	.L13
	movl	-1220(%rbp), %eax
	cltq
	movl	-1224(%rbp), %edx
	movl	%edx, -1216(%rbp,%rax,4)
	addl	$1, -1220(%rbp)
	jmp	.L14
.L20:
	nop
	movl	$0, -1232(%rbp)
	jmp	.L15
.L16:
	movl	-1232(%rbp), %eax
	cltq
	movl	-1216(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1232(%rbp)
.L15:
	movl	-1232(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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:
