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

```c
#include <stdio.h>
#include <string.h>

int main(void) {
	int a,b,n,i,t;
	char s[8];
	while(scanf("%d\n",&a) , a != 0){
		t = 0;
		b = -1023;
		for(i = 1;i <= a;i++){
			scanf("%s",s);
			if(!(strcmp("lu",s))) n = 0;
			if(!(strcmp("ru",s))) n = 1;
			if(!(strcmp("ld",s))) n = 2;
			if(!(strcmp("rd",s))) n = 3;
			if(n + b == 1 || n + b == 5) t++;
			b = n;
		}
		printf("%d\n",t);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"lu"
.LC2:
	.string	"ru"
.LC3:
	.string	"ld"
.LC4:
	.string	"rd"
.LC5:
	.string	"%d\n"
	.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
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L17
	movl	$0, %r13d
	movl	$1, %r14d
	movl	$-1023, %ebp
	leaq	32(%rsp), %rbx
	jg	.L16
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%r15d, %ebp
.L16:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$30060, (%rbx)
	jne	.L5
	xorl	%eax, %eax
	cmpb	$0, 2(%rbx)
	cmove	%eax, %r15d
.L5:
	cmpw	$30066, (%rbx)
	jne	.L8
	cmpb	$0, 2(%rbx)
	movl	$1, %eax
	cmove	%eax, %r15d
.L8:
	cmpw	$25708, (%rbx)
	jne	.L11
	cmpb	$0, 2(%rbx)
	movl	$2, %eax
	cmove	%eax, %r15d
.L11:
	cmpw	$25714, (%rbx)
	jne	.L14
	cmpb	$0, 2(%rbx)
	movl	$3, %eax
	cmove	%eax, %r15d
.L14:
	addl	%r15d, %ebp
	xorl	%eax, %eax
	andl	$-5, %ebp
	cmpl	$1, %ebp
	sete	%al
	addl	$1, %r14d
	addl	%eax, %r13d
	cmpl	%r14d, 28(%rsp)
	jge	.L20
.L18:
	movl	%r13d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"lu"
.LC2:
	.string	"ru"
.LC3:
	.string	"ld"
.LC4:
	.string	"rd"
.LC5:
	.string	"%d\n"
	.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
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L17
	movl	$0, %r13d
	movl	$1, %r14d
	movl	$-1023, %ebp
	leaq	32(%rsp), %rbx
	jg	.L16
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%r15d, %ebp
.L16:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$30060, (%rbx)
	jne	.L5
	xorl	%eax, %eax
	cmpb	$0, 2(%rbx)
	cmove	%eax, %r15d
.L5:
	cmpw	$30066, (%rbx)
	jne	.L8
	cmpb	$0, 2(%rbx)
	movl	$1, %eax
	cmove	%eax, %r15d
.L8:
	cmpw	$25708, (%rbx)
	jne	.L11
	cmpb	$0, 2(%rbx)
	movl	$2, %eax
	cmove	%eax, %r15d
.L11:
	cmpw	$25714, (%rbx)
	jne	.L14
	cmpb	$0, 2(%rbx)
	movl	$3, %eax
	cmove	%eax, %r15d
.L14:
	addl	%r15d, %ebp
	xorl	%eax, %eax
	andl	$-5, %ebp
	cmpl	$1, %ebp
	sete	%al
	addl	$1, %r14d
	addl	%eax, %r13d
	cmpl	%r14d, 28(%rsp)
	jge	.L20
.L18:
	movl	%r13d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"lu"
.LC2:
	.string	"ru"
.LC3:
	.string	"ld"
.LC4:
	.string	"rd"
.LC5:
	.string	"%d\n"
	.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
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L17
	movl	$0, %r13d
	movl	$1, %r14d
	movl	$-1023, %ebp
	leaq	32(%rsp), %rbx
	jg	.L16
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%r15d, %ebp
.L16:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$30060, (%rbx)
	jne	.L5
	xorl	%eax, %eax
	cmpb	$0, 2(%rbx)
	cmove	%eax, %r15d
.L5:
	cmpw	$30066, (%rbx)
	jne	.L8
	cmpb	$0, 2(%rbx)
	movl	$1, %eax
	cmove	%eax, %r15d
.L8:
	cmpw	$25708, (%rbx)
	jne	.L11
	cmpb	$0, 2(%rbx)
	movl	$2, %eax
	cmove	%eax, %r15d
.L11:
	cmpw	$25714, (%rbx)
	jne	.L14
	cmpb	$0, 2(%rbx)
	movl	$3, %eax
	cmove	%eax, %r15d
.L14:
	addl	%r15d, %ebp
	xorl	%eax, %eax
	andl	$-5, %ebp
	cmpl	$1, %ebp
	sete	%al
	addl	$1, %r14d
	addl	%eax, %r13d
	cmpl	%r14d, 28(%rsp)
	jge	.L20
.L18:
	movl	%r13d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	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:
```
```c
#include <stdio.h>
#include <string.h>

int main(void) {
	int a,b,n,i,t;
	char s[8];
	while(scanf("%d\n",&a) , a != 0){
		t = 0;
		b = -1023;
		for(i = 1;i <= a;i++){
			scanf("%s",s);
			if(!(strcmp("lu",s))) n = 0;
			if(!(strcmp("ru",s))) n = 1;
			if(!(strcmp("ld",s))) n = 2;
			if(!(strcmp("rd",s))) n = 3;
			if(n + b == 1 || n + b == 5) t++;
			b = n;
		}
		printf("%d\n",t);
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>

int main(void) {
	int a,b,n,i,t;
	char s[8];
	while(scanf("%d\n",&a) , a != 0){
		t = 0;
		b = -1023;
		for(i = 1;i <= a;i++){
			scanf("%s",s);
			if(!(strcmp("lu",s))) n = 0;
			if(!(strcmp("ru",s))) n = 1;
			if(!(strcmp("ld",s))) n = 2;
			if(!(strcmp("rd",s))) n = 3;
			if(n + b == 1 || n + b == 5) t++;
			b = n;
		}
		printf("%d\n",t);
	}
	return 0;
}```

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.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>

int main(void) {
	int a,b,n,i,t;
	char s[8];
	while(scanf("%d\n",&a) , a != 0){
		t = 0;
		b = -1023;
		for(i = 1;i <= a;i++){
			scanf("%s",s);
			if(!(strcmp("lu",s))) n = 0;
			if(!(strcmp("ru",s))) n = 1;
			if(!(strcmp("ld",s))) n = 2;
			if(!(strcmp("rd",s))) n = 3;
			if(n + b == 1 || n + b == 5) t++;
			b = n;
		}
		printf("%d\n",t);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"lu"
.LC2:
	.string	"ru"
.LC3:
	.string	"ld"
.LC4:
	.string	"rd"
.LC5:
	.string	"%d\n"
	.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
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L17
	movl	$0, %r13d
	movl	$1, %r14d
	movl	$-1023, %ebp
	leaq	32(%rsp), %rbx
	jg	.L16
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%r15d, %ebp
.L16:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$30060, (%rbx)
	jne	.L5
	xorl	%eax, %eax
	cmpb	$0, 2(%rbx)
	cmove	%eax, %r15d
.L5:
	cmpw	$30066, (%rbx)
	jne	.L8
	cmpb	$0, 2(%rbx)
	movl	$1, %eax
	cmove	%eax, %r15d
.L8:
	cmpw	$25708, (%rbx)
	jne	.L11
	cmpb	$0, 2(%rbx)
	movl	$2, %eax
	cmove	%eax, %r15d
.L11:
	cmpw	$25714, (%rbx)
	jne	.L14
	cmpb	$0, 2(%rbx)
	movl	$3, %eax
	cmove	%eax, %r15d
.L14:
	addl	%r15d, %ebp
	xorl	%eax, %eax
	andl	$-5, %ebp
	cmpl	$1, %ebp
	sete	%al
	addl	$1, %r14d
	addl	%eax, %r13d
	cmpl	%r14d, 28(%rsp)
	jge	.L20
.L18:
	movl	%r13d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"lu"
.LC2:
	.string	"ru"
.LC3:
	.string	"ld"
.LC4:
	.string	"rd"
.LC5:
	.string	"%d\n"
	.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
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L17
	movl	$0, %r13d
	movl	$1, %r14d
	movl	$-1023, %ebp
	leaq	32(%rsp), %rbx
	jg	.L16
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%r15d, %ebp
.L16:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpw	$30060, (%rbx)
	jne	.L5
	xorl	%eax, %eax
	cmpb	$0, 2(%rbx)
	cmove	%eax, %r15d
.L5:
	cmpw	$30066, (%rbx)
	jne	.L8
	cmpb	$0, 2(%rbx)
	movl	$1, %eax
	cmove	%eax, %r15d
.L8:
	cmpw	$25708, (%rbx)
	jne	.L11
	cmpb	$0, 2(%rbx)
	movl	$2, %eax
	cmove	%eax, %r15d
.L11:
	cmpw	$25714, (%rbx)
	jne	.L14
	cmpb	$0, 2(%rbx)
	movl	$3, %eax
	cmove	%eax, %r15d
.L14:
	addl	%r15d, %ebp
	xorl	%eax, %eax
	andl	$-5, %ebp
	cmpl	$1, %ebp
	sete	%al
	addl	$1, %r14d
	addl	%eax, %r13d
	cmpl	%r14d, 28(%rsp)
	jge	.L20
.L18:
	movl	%r13d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	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:
```