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>

char CheckWeather(char* a_acWeather);

int main(void) {
	char acWeather[7];
	//天気を入力
	scanf("%s", acWeather);
	
	//明日の天気を出力
	switch (CheckWeather(acWeather)){
	case 1:
		printf("Cloudy\n");
		break;
	case 2:
		printf("Rainy\n");
		break;
	default:
		printf("Sunny\n");
		break;
	}
	return 0;
}

/*********
*	今日の天気に応じて明日の天気のフラグを返す関数
*	a_acWeather	入力された今日の天気
*/
char CheckWeather(char* a_acWeather) {
	char cWeatherFlag = 0;
	if (strcmp(a_acWeather, "Sunny") == 0) {
		cWeatherFlag = 1;
	}
	else if (strcmp(a_acWeather, "Cloudy") == 0) {
		cWeatherFlag = 2;
	}
	else {}
	return (cWeatherFlag);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Sunny"
.LC1:
	.string	"Cloudy"
	.text
	.p2align 4
	.globl	CheckWeather
	.type	CheckWeather, @function
CheckWeather:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movq	%rdi, %rbp
	call	strcmp@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	testl	%r8d, %r8d
	je	.L1
	leaq	.LC1(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	addl	%eax, %eax
.L1:
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	CheckWeather, .-CheckWeather
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC3:
	.string	"Rainy"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	1(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	CheckWeather
	cmpb	$1, %al
	je	.L9
	cmpb	$2, %al
	je	.L10
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L10:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L16:
	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	"Sunny"
.LC1:
	.string	"Cloudy"
	.text
	.p2align 4
	.globl	CheckWeather
	.type	CheckWeather, @function
CheckWeather:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movq	%rdi, %rbp
	call	strcmp@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	testl	%r8d, %r8d
	je	.L1
	leaq	.LC1(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	addl	%eax, %eax
.L1:
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	CheckWeather, .-CheckWeather
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC3:
	.string	"Rainy"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	1(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	CheckWeather
	cmpb	$1, %al
	je	.L9
	cmpb	$2, %al
	je	.L10
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L10:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L16:
	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	"Sunny"
.LC1:
	.string	"Cloudy"
	.text
	.p2align 4
	.globl	CheckWeather
	.type	CheckWeather, @function
CheckWeather:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movq	%rdi, %rbp
	call	strcmp@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	testl	%r8d, %r8d
	je	.L1
	leaq	.LC1(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	addl	%eax, %eax
.L1:
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	CheckWeather, .-CheckWeather
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC3:
	.string	"Rainy"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	1(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	CheckWeather
	cmpb	$1, %al
	je	.L9
	cmpb	$2, %al
	je	.L10
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L10:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L16:
	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>

char CheckWeather(char* a_acWeather);

int main(void) {
	char acWeather[7];
	//天気を入力
	scanf("%s", acWeather);
	
	//明日の天気を出力
	switch (CheckWeather(acWeather)){
	case 1:
		printf("Cloudy\n");
		break;
	case 2:
		printf("Rainy\n");
		break;
	default:
		printf("Sunny\n");
		break;
	}
	return 0;
}

/*********
*	今日の天気に応じて明日の天気のフラグを返す関数
*	a_acWeather	入力された今日の天気
*/
char CheckWeather(char* a_acWeather) {
	char cWeatherFlag = 0;
	if (strcmp(a_acWeather, "Sunny") == 0) {
		cWeatherFlag = 1;
	}
	else if (strcmp(a_acWeather, "Cloudy") == 0) {
		cWeatherFlag = 2;
	}
	else {}
	return (cWeatherFlag);
}
```
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>

char CheckWeather(char* a_acWeather);

int main(void) {
	char acWeather[7];
	//天気を入力
	scanf("%s", acWeather);
	
	//明日の天気を出力
	switch (CheckWeather(acWeather)){
	case 1:
		printf("Cloudy\n");
		break;
	case 2:
		printf("Rainy\n");
		break;
	default:
		printf("Sunny\n");
		break;
	}
	return 0;
}

/*********
*	今日の天気に応じて明日の天気のフラグを返す関数
*	a_acWeather	入力された今日の天気
*/
char CheckWeather(char* a_acWeather) {
	char cWeatherFlag = 0;
	if (strcmp(a_acWeather, "Sunny") == 0) {
		cWeatherFlag = 1;
	}
	else if (strcmp(a_acWeather, "Cloudy") == 0) {
		cWeatherFlag = 2;
	}
	else {}
	return (cWeatherFlag);
}
```

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:

Rainy
 Sunny
 Sunny

Sunny
 Cloudy
 Cloudy

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>

char CheckWeather(char* a_acWeather);

int main(void) {
	char acWeather[7];
	//天気を入力
	scanf("%s", acWeather);
	
	//明日の天気を出力
	switch (CheckWeather(acWeather)){
	case 1:
		printf("Cloudy\n");
		break;
	case 2:
		printf("Rainy\n");
		break;
	default:
		printf("Sunny\n");
		break;
	}
	return 0;
}

/*********
*	今日の天気に応じて明日の天気のフラグを返す関数
*	a_acWeather	入力された今日の天気
*/
char CheckWeather(char* a_acWeather) {
	char cWeatherFlag = 0;
	if (strcmp(a_acWeather, "Sunny") == 0) {
		cWeatherFlag = 1;
	}
	else if (strcmp(a_acWeather, "Cloudy") == 0) {
		cWeatherFlag = 2;
	}
	else {}
	return (cWeatherFlag);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Sunny"
.LC1:
	.string	"Cloudy"
	.text
	.p2align 4
	.globl	CheckWeather
	.type	CheckWeather, @function
CheckWeather:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movq	%rdi, %rbp
	call	strcmp@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	testl	%r8d, %r8d
	je	.L1
	leaq	.LC1(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	addl	%eax, %eax
.L1:
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	CheckWeather, .-CheckWeather
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC3:
	.string	"Rainy"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	1(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	CheckWeather
	cmpb	$1, %al
	je	.L9
	cmpb	$2, %al
	je	.L10
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L10:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L16:
	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	"Sunny"
.LC1:
	.string	"Cloudy"
	.text
	.p2align 4
	.globl	CheckWeather
	.type	CheckWeather, @function
CheckWeather:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movq	%rdi, %rbp
	call	strcmp@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	testl	%r8d, %r8d
	je	.L1
	leaq	.LC1(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	addl	%eax, %eax
.L1:
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	CheckWeather, .-CheckWeather
	.section	.rodata.str1.1
.LC2:
	.string	"%s"
.LC3:
	.string	"Rainy"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	1(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	CheckWeather
	cmpb	$1, %al
	je	.L9
	cmpb	$2, %al
	je	.L10
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L10:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L16:
	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:
```