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 <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;
}```

Assembly Code:

```assembly
	.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:
```

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%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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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%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:
```