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 <ctype.h>

int main(void) {
	char sikibetushi[200];
	char kisoku[2];
	char* sbp;
	while(1) {
		scanf("%s%s",sikibetushi,kisoku);
		if(kisoku[0]=='X')break;
		if(kisoku[0]=='U') {
			putchar(toupper(sikibetushi[0]));
		} else {
			putchar(tolower(sikibetushi[0]));
		}
		for(sbp=sikibetushi+1;*sbp!=0;sbp++) {
			if(isupper(*sbp)) {
				if(kisoku[0]=='D') {
					putchar('_');
					putchar(tolower(*sbp));
				} else putchar(toupper(*sbp));
			} else if(*sbp=='_') {
				*sbp++;
				if(*sbp==0)break;
				if(kisoku[0]=='D') {
					putchar('_');
					putchar(tolower(*sbp));
				} else putchar(toupper(*sbp));
			} else putchar(*sbp);
		}
		putchar('\n');
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s%s"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L15:
	leaq	-210(%rbp), %rdx
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-210(%rbp), %eax
	cmpb	$88, %al
	je	.L19
	movzbl	-210(%rbp), %eax
	cmpb	$85, %al
	jne	.L4
	movzbl	-208(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L5
.L4:
	movzbl	-208(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
.L5:
	leaq	-208(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -224(%rbp)
	jmp	.L6
.L14:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$256, %eax
	testl	%eax, %eax
	je	.L7
	movzbl	-210(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	$95, %edi
	call	putchar@PLT
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L8:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L7:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$95, %al
	jne	.L10
	movq	-224(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -224(%rbp)
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L20
	movzbl	-210(%rbp), %eax
	cmpb	$68, %al
	jne	.L13
	movl	$95, %edi
	call	putchar@PLT
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L13:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L10:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L9:
	addq	$1, -224(%rbp)
.L6:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L14
	jmp	.L12
.L20:
	nop
.L12:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L15
.L19:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%s%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	46(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	49(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	8(%rsp), %rdx
	movq	16(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	46(%rsp), %eax
	cmpb	$88, %al
	je	.L2
	movsbq	48(%rsp), %rbx
	movq	stdout(%rip), %r15
	cmpb	$85, %al
	je	.L22
	call	__ctype_tolower_loc@PLT
	movq	%r15, %rsi
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	call	putc@PLT
.L6:
	movzbl	49(%rsp), %ebx
	testb	%bl, %bl
	je	.L20
	call	__ctype_b_loc@PLT
	movq	24(%rsp), %rbp
	movq	%rax, %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmpb	$68, 46(%rsp)
	je	.L23
	call	__ctype_toupper_loc@PLT
	movq	%r14, %rsi
	movq	%rbp, %r15
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	call	putc@PLT
.L9:
	movzbl	1(%r15), %ebx
	leaq	1(%r15), %rbp
	testb	%bl, %bl
	je	.L20
.L13:
	movq	(%r12), %rax
	movsbq	%bl, %r13
	movq	stdout(%rip), %r14
	leaq	1(%rbp), %r15
	testb	$1, 1(%rax,%r13,2)
	jne	.L24
	cmpb	$95, %bl
	jne	.L10
	movsbq	1(%rbp), %rbx
	testb	%bl, %bl
	je	.L11
	cmpb	$68, 46(%rsp)
	je	.L25
	call	__ctype_toupper_loc@PLT
	movq	%r14, %rsi
	leaq	1(%r15), %rbp
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	call	putc@PLT
	movzbl	1(%r15), %ebx
	testb	%bl, %bl
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	movq	stdout(%rip), %r14
.L11:
	movq	%r14, %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	%bl, %edi
	movq	%r14, %rsi
	movq	%rbp, %r15
	call	putc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r14, %rsi
	movl	$95, %edi
	movq	%rbp, %r15
	call	putc@PLT
	call	__ctype_tolower_loc@PLT
	movsbq	0(%rbp), %rcx
	movq	stdout(%rip), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %edi
	call	putc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%r14, %rsi
	movl	$95, %edi
	call	putc@PLT
	call	__ctype_tolower_loc@PLT
	movsbq	1(%rbp), %rdx
	movq	stdout(%rip), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edi
	call	putc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	call	__ctype_toupper_loc@PLT
	movq	%r15, %rsi
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	call	putc@PLT
	jmp	.L6
.L2:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$264, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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	"%s%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	46(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	49(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	8(%rsp), %rdx
	movq	16(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	46(%rsp), %eax
	cmpb	$88, %al
	je	.L2
	movsbq	48(%rsp), %rbx
	movq	stdout(%rip), %r15
	cmpb	$85, %al
	je	.L22
	call	__ctype_tolower_loc@PLT
	movq	%r15, %rsi
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	call	putc@PLT
.L6:
	movzbl	49(%rsp), %ebx
	testb	%bl, %bl
	je	.L20
	call	__ctype_b_loc@PLT
	movq	24(%rsp), %rbp
	movq	%rax, %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	cmpb	$68, 46(%rsp)
	je	.L23
	call	__ctype_toupper_loc@PLT
	movq	%r14, %rsi
	movq	%rbp, %r15
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	call	putc@PLT
.L9:
	movzbl	1(%r15), %ebx
	leaq	1(%r15), %rbp
	testb	%bl, %bl
	je	.L20
.L13:
	movq	(%r12), %rax
	movsbq	%bl, %r13
	movq	stdout(%rip), %r14
	leaq	1(%rbp), %r15
	testb	$1, 1(%rax,%r13,2)
	jne	.L24
	cmpb	$95, %bl
	jne	.L10
	movsbq	1(%rbp), %rbx
	testb	%bl, %bl
	je	.L11
	cmpb	$68, 46(%rsp)
	je	.L25
	call	__ctype_toupper_loc@PLT
	movq	%r14, %rsi
	leaq	1(%r15), %rbp
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	call	putc@PLT
	movzbl	1(%r15), %ebx
	testb	%bl, %bl
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	movq	stdout(%rip), %r14
.L11:
	movq	%r14, %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	%bl, %edi
	movq	%r14, %rsi
	movq	%rbp, %r15
	call	putc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r14, %rsi
	movl	$95, %edi
	movq	%rbp, %r15
	call	putc@PLT
	call	__ctype_tolower_loc@PLT
	movsbq	0(%rbp), %rcx
	movq	stdout(%rip), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %edi
	call	putc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%r14, %rsi
	movl	$95, %edi
	call	putc@PLT
	call	__ctype_tolower_loc@PLT
	movsbq	1(%rbp), %rdx
	movq	stdout(%rip), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edi
	call	putc@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	call	__ctype_toupper_loc@PLT
	movq	%r15, %rsi
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	call	putc@PLT
	jmp	.L6
.L2:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$264, %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
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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 <ctype.h>

int main(void) {
	char sikibetushi[200];
	char kisoku[2];
	char* sbp;
	while(1) {
		scanf("%s%s",sikibetushi,kisoku);
		if(kisoku[0]=='X')break;
		if(kisoku[0]=='U') {
			putchar(toupper(sikibetushi[0]));
		} else {
			putchar(tolower(sikibetushi[0]));
		}
		for(sbp=sikibetushi+1;*sbp!=0;sbp++) {
			if(isupper(*sbp)) {
				if(kisoku[0]=='D') {
					putchar('_');
					putchar(tolower(*sbp));
				} else putchar(toupper(*sbp));
			} else if(*sbp=='_') {
				*sbp++;
				if(*sbp==0)break;
				if(kisoku[0]=='D') {
					putchar('_');
					putchar(tolower(*sbp));
				} else putchar(toupper(*sbp));
			} else putchar(*sbp);
		}
		putchar('\n');
	}
	return 0;
}
get_user_name L
getUserOame U
GetUserName D
EndOfInput X
 get_user_name L
getUserName U
GrtUseeName D
EndOfInput X
 get_user_nbme L
getUserOame U
GetUserName D
EndOfInput X
 embn_resu_teg L
getUserOame U
GetUserName D
EndOfInput X
 get_user_name L
getUserNamd U
GetUserName D
EndOfInput X
 get_user_name L
gatUserNeme U
GrtUseeName D
EndOfInput X
 get_user_name L
getUsdrNamd U
GetUserName D
EndOfInput X
 get_user_name L
getUsfrName U
GetUserName D
EndOfInput X
 get_user_name L
getUserName U
GrtUseeNale D
EndOfInput X
 get_user_nbme L
getUserOame U
emaNresUteG D
EndOfInput X

getUserName
GetUserOame
get_user_name
 getUserName
GetUserName
grt_usee_name
 getUserNbme
GetUserOame
get_user_name
 embnResuTeg
GetUserOame
get_user_name
 getUserName
GetUserNamd
get_user_name
 getUserName
GatUserNeme
grt_usee_name
 getUserName
GetUsdrNamd
get_user_name
 getUserName
GetUsfrName
get_user_name
 getUserName
GetUserName
grt_usee_nale
 getUserNbme
GetUserOame
ema_nres_ute_g

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 <ctype.h>

int main(void) {
	char sikibetushi[200];
	char kisoku[2];
	char* sbp;
	while(1) {
		scanf("%s%s",sikibetushi,kisoku);
		if(kisoku[0]=='X')break;
		if(kisoku[0]=='U') {
			putchar(toupper(sikibetushi[0]));
		} else {
			putchar(tolower(sikibetushi[0]));
		}
		for(sbp=sikibetushi+1;*sbp!=0;sbp++) {
			if(isupper(*sbp)) {
				if(kisoku[0]=='D') {
					putchar('_');
					putchar(tolower(*sbp));
				} else putchar(toupper(*sbp));
			} else if(*sbp=='_') {
				*sbp++;
				if(*sbp==0)break;
				if(kisoku[0]=='D') {
					putchar('_');
					putchar(tolower(*sbp));
				} else putchar(toupper(*sbp));
			} else putchar(*sbp);
		}
		putchar('\n');
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s%s"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L15:
	leaq	-210(%rbp), %rdx
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-210(%rbp), %eax
	cmpb	$88, %al
	je	.L19
	movzbl	-210(%rbp), %eax
	cmpb	$85, %al
	jne	.L4
	movzbl	-208(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L5
.L4:
	movzbl	-208(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
.L5:
	leaq	-208(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -224(%rbp)
	jmp	.L6
.L14:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$256, %eax
	testl	%eax, %eax
	je	.L7
	movzbl	-210(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	$95, %edi
	call	putchar@PLT
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L8:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L7:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$95, %al
	jne	.L10
	movq	-224(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -224(%rbp)
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L20
	movzbl	-210(%rbp), %eax
	cmpb	$68, %al
	jne	.L13
	movl	$95, %edi
	call	putchar@PLT
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L13:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L10:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L9:
	addq	$1, -224(%rbp)
.L6:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L14
	jmp	.L12
.L20:
	nop
.L12:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L15
.L19:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"%s%s"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L15:
	leaq	-210(%rbp), %rdx
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-210(%rbp), %eax
	cmpb	$88, %al
	je	.L19
	movzbl	-210(%rbp), %eax
	cmpb	$85, %al
	jne	.L4
	movzbl	-208(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L5
.L4:
	movzbl	-208(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
.L5:
	leaq	-208(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -224(%rbp)
	jmp	.L6
.L14:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$256, %eax
	testl	%eax, %eax
	je	.L7
	movzbl	-210(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	$95, %edi
	call	putchar@PLT
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L8:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L7:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	$95, %al
	jne	.L10
	movq	-224(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -224(%rbp)
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L20
	movzbl	-210(%rbp), %eax
	cmpb	$68, %al
	jne	.L13
	movl	$95, %edi
	call	putchar@PLT
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	tolower@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L13:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	toupper@PLT
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L9
.L10:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L9:
	addq	$1, -224(%rbp)
.L6:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L14
	jmp	.L12
.L20:
	nop
.L12:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L15
.L19:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
