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<stdlib.h>
#include<string.h>
char K[10][6]={
  {"no"},
  {".,!? "},
  {"abc"},
  {"def"},
  {"ghi"},
  {"jkl"},
  {"mno"},
  {"pqrs"},
  {"tuv"},
  {"wxyz"}};

char Henkan(int, int);
int main()
{
  int N,i,j,sum=0,SSS;
  char S[1025],SS;

  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%s",S);
    for(j=0;j<strlen(S);j++){
      if(S[j]!=48)sum++;
      else if(S[j-1]!=48 && j>0){
        SSS=S[j-1]-'0';
        SS=Henkan(SSS,sum-1);
	printf("%c",SS);
        sum=0;
      }
    }
    printf("\n");
  }
  return 0;
}

char Henkan(int mo,int sum)
{
  if(mo==0)return '0';
  return K[mo][sum%(strlen(K[mo]))];
}
   ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	addl	$1, %r12d
.L5:
	addq	$1, %rbx
.L3:
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L18
	cmpb	$48, 0(%rbp,%rbx)
	jne	.L19
	movsbl	15(%rsp,%rbx), %eax
	testl	%ebx, %ebx
	je	.L5
	cmpb	$48, %al
	je	.L5
	subl	$48, %eax
	leaq	K(%rip), %rcx
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,2), %r15
	movq	%r15, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	leal	-1(%r12), %eax
	xorl	%r12d, %r12d
	cltq
	divq	%r8
	movsbl	(%r15,%rdx), %edi
	call	putchar@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$10, %edi
	addl	$1, %r13d
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L2:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1064, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Henkan
	.type	Henkan, @function
Henkan:
.LFB52:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L25
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdi
	leaq	K(%rip), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	(%rdi,%rdi,2), %rdx
	movl	%esi, %ebx
	leaq	(%rax,%rdx,2), %rbp
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%ebx, %rax
	divq	%r8
	movzbl	0(%rbp,%rdx), %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore 3
	.cfi_restore 6
	movl	$48, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	Henkan, .-Henkan
	.globl	K
	.data
	.align 32
	.type	K, @object
	.size	K, 60
K:
	.string	"no"
	.zero	3
	.string	".,!? "
	.string	"abc"
	.zero	2
	.string	"def"
	.zero	2
	.string	"ghi"
	.zero	2
	.string	"jkl"
	.zero	2
	.string	"mno"
	.zero	2
	.string	"pqrs"
	.zero	1
	.string	"tuv"
	.zero	2
	.string	"wxyz"
	.zero	1
	.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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	addl	$1, %r12d
.L5:
	addq	$1, %rbx
.L3:
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L18
	cmpb	$48, 0(%rbp,%rbx)
	jne	.L19
	movsbl	15(%rsp,%rbx), %eax
	testl	%ebx, %ebx
	je	.L5
	cmpb	$48, %al
	je	.L5
	subl	$48, %eax
	leaq	K(%rip), %rcx
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,2), %r15
	movq	%r15, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	leal	-1(%r12), %eax
	xorl	%r12d, %r12d
	cltq
	divq	%r8
	movsbl	(%r15,%rdx), %edi
	call	putchar@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$10, %edi
	addl	$1, %r13d
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L2:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1064, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Henkan
	.type	Henkan, @function
Henkan:
.LFB52:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L25
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdi
	leaq	K(%rip), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	(%rdi,%rdi,2), %rdx
	movl	%esi, %ebx
	leaq	(%rax,%rdx,2), %rbp
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%ebx, %rax
	divq	%r8
	movzbl	0(%rbp,%rdx), %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore 3
	.cfi_restore 6
	movl	$48, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	Henkan, .-Henkan
	.globl	K
	.data
	.align 32
	.type	K, @object
	.size	K, 60
K:
	.string	"no"
	.zero	3
	.string	".,!? "
	.string	"abc"
	.zero	2
	.string	"def"
	.zero	2
	.string	"ghi"
	.zero	2
	.string	"jkl"
	.zero	2
	.string	"mno"
	.zero	2
	.string	"pqrs"
	.zero	1
	.string	"tuv"
	.zero	2
	.string	"wxyz"
	.zero	1
	.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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	addl	$1, %r12d
.L5:
	addq	$1, %rbx
.L3:
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L18
	cmpb	$48, 0(%rbp,%rbx)
	jne	.L19
	movsbl	15(%rsp,%rbx), %eax
	testl	%ebx, %ebx
	je	.L5
	cmpb	$48, %al
	je	.L5
	subl	$48, %eax
	leaq	K(%rip), %rcx
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,2), %r15
	movq	%r15, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	leal	-1(%r12), %eax
	xorl	%r12d, %r12d
	cltq
	divq	%r8
	movsbl	(%r15,%rdx), %edi
	call	putchar@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$10, %edi
	addl	$1, %r13d
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L2:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1064, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Henkan
	.type	Henkan, @function
Henkan:
.LFB52:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L25
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdi
	leaq	K(%rip), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	(%rdi,%rdi,2), %rdx
	movl	%esi, %ebx
	leaq	(%rax,%rdx,2), %rbp
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%ebx, %rax
	divq	%r8
	movzbl	0(%rbp,%rdx), %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore 3
	.cfi_restore 6
	movl	$48, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	Henkan, .-Henkan
	.globl	K
	.data
	.align 32
	.type	K, @object
	.size	K, 60
K:
	.string	"no"
	.zero	3
	.string	".,!? "
	.string	"abc"
	.zero	2
	.string	"def"
	.zero	2
	.string	"ghi"
	.zero	2
	.string	"jkl"
	.zero	2
	.string	"mno"
	.zero	2
	.string	"pqrs"
	.zero	1
	.string	"tuv"
	.zero	2
	.string	"wxyz"
	.zero	1
	.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<stdlib.h>
#include<string.h>
char K[10][6]={
  {"no"},
  {".,!? "},
  {"abc"},
  {"def"},
  {"ghi"},
  {"jkl"},
  {"mno"},
  {"pqrs"},
  {"tuv"},
  {"wxyz"}};

char Henkan(int, int);
int main()
{
  int N,i,j,sum=0,SSS;
  char S[1025],SS;

  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%s",S);
    for(j=0;j<strlen(S);j++){
      if(S[j]!=48)sum++;
      else if(S[j-1]!=48 && j>0){
        SSS=S[j-1]-'0';
        SS=Henkan(SSS,sum-1);
	printf("%c",SS);
        sum=0;
      }
    }
    printf("\n");
  }
  return 0;
}

char Henkan(int mo,int sum)
{
  if(mo==0)return '0';
  return K[mo][sum%(strlen(K[mo]))];
}
   ```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char K[10][6]={
  {"no"},
  {".,!? "},
  {"abc"},
  {"def"},
  {"ghi"},
  {"jkl"},
  {"mno"},
  {"pqrs"},
  {"tuv"},
  {"wxyz"}};

char Henkan(int, int);
int main()
{
  int N,i,j,sum=0,SSS;
  char S[1025],SS;

  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%s",S);
    for(j=0;j<strlen(S);j++){
      if(S[j]!=48)sum++;
      else if(S[j-1]!=48 && j>0){
        SSS=S[j-1]-'0';
        SS=Henkan(SSS,sum-1);
	printf("%c",SS);
        sum=0;
      }
    }
    printf("\n");
  }
  return 0;
}

char Henkan(int mo,int sum)
{
  if(mo==0)return '0';
  return K[mo][sum%(strlen(K[mo]))];
}
   ```

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:

5
40
220
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
40
30
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
10
220
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
40
40
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
20
40
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
40
50
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
0
220
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
20
300
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
20
10
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
0
300
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000

g
b
b
hello, world!
keitai
 g
d
b
hello, world!
keitai
 .
b
b
hello, world!
keitai
 g
g
b
hello, world!
keitai
 a
g
b
hello, world!
keitai
 g
j
b
hello, world!
keitai
 
b
b
hello, world!
keitai
 a
d
b
hello, world!
keitai
 a
.
b
hello, world!
keitai
 
d
b
hello, world!
keitai

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<stdlib.h>
#include<string.h>
char K[10][6]={
  {"no"},
  {".,!? "},
  {"abc"},
  {"def"},
  {"ghi"},
  {"jkl"},
  {"mno"},
  {"pqrs"},
  {"tuv"},
  {"wxyz"}};

char Henkan(int, int);
int main()
{
  int N,i,j,sum=0,SSS;
  char S[1025],SS;

  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%s",S);
    for(j=0;j<strlen(S);j++){
      if(S[j]!=48)sum++;
      else if(S[j-1]!=48 && j>0){
        SSS=S[j-1]-'0';
        SS=Henkan(SSS,sum-1);
	printf("%c",SS);
        sum=0;
      }
    }
    printf("\n");
  }
  return 0;
}

char Henkan(int mo,int sum)
{
  if(mo==0)return '0';
  return K[mo][sum%(strlen(K[mo]))];
}
   ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	addl	$1, %r12d
.L5:
	addq	$1, %rbx
.L3:
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L18
	cmpb	$48, 0(%rbp,%rbx)
	jne	.L19
	movsbl	15(%rsp,%rbx), %eax
	testl	%ebx, %ebx
	je	.L5
	cmpb	$48, %al
	je	.L5
	subl	$48, %eax
	leaq	K(%rip), %rcx
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,2), %r15
	movq	%r15, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	leal	-1(%r12), %eax
	xorl	%r12d, %r12d
	cltq
	divq	%r8
	movsbl	(%r15,%rdx), %edi
	call	putchar@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$10, %edi
	addl	$1, %r13d
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L2:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1064, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Henkan
	.type	Henkan, @function
Henkan:
.LFB52:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L25
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdi
	leaq	K(%rip), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	(%rdi,%rdi,2), %rdx
	movl	%esi, %ebx
	leaq	(%rax,%rdx,2), %rbp
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%ebx, %rax
	divq	%r8
	movzbl	0(%rbp,%rdx), %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore 3
	.cfi_restore 6
	movl	$48, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	Henkan, .-Henkan
	.globl	K
	.data
	.align 32
	.type	K, @object
	.size	K, 60
K:
	.string	"no"
	.zero	3
	.string	".,!? "
	.string	"abc"
	.zero	2
	.string	"def"
	.zero	2
	.string	"ghi"
	.zero	2
	.string	"jkl"
	.zero	2
	.string	"mno"
	.zero	2
	.string	"pqrs"
	.zero	1
	.string	"tuv"
	.zero	2
	.string	"wxyz"
	.zero	1
	.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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	addl	$1, %r12d
.L5:
	addq	$1, %rbx
.L3:
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L18
	cmpb	$48, 0(%rbp,%rbx)
	jne	.L19
	movsbl	15(%rsp,%rbx), %eax
	testl	%ebx, %ebx
	je	.L5
	cmpb	$48, %al
	je	.L5
	subl	$48, %eax
	leaq	K(%rip), %rcx
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,2), %r15
	movq	%r15, %rdi
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	leal	-1(%r12), %eax
	xorl	%r12d, %r12d
	cltq
	divq	%r8
	movsbl	(%r15,%rdx), %edi
	call	putchar@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$10, %edi
	addl	$1, %r13d
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L7
.L2:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1064, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Henkan
	.type	Henkan, @function
Henkan:
.LFB52:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L25
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movslq	%edi, %rdi
	leaq	K(%rip), %rax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	(%rdi,%rdi,2), %rdx
	movl	%esi, %ebx
	leaq	(%rax,%rdx,2), %rbp
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	xorl	%edx, %edx
	movq	%rax, %r8
	movslq	%ebx, %rax
	divq	%r8
	movzbl	0(%rbp,%rdx), %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore 3
	.cfi_restore 6
	movl	$48, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	Henkan, .-Henkan
	.globl	K
	.data
	.align 32
	.type	K, @object
	.size	K, 60
K:
	.string	"no"
	.zero	3
	.string	".,!? "
	.string	"abc"
	.zero	2
	.string	"def"
	.zero	2
	.string	"ghi"
	.zero	2
	.string	"jkl"
	.zero	2
	.string	"mno"
	.zero	2
	.string	"pqrs"
	.zero	1
	.string	"tuv"
	.zero	2
	.string	"wxyz"
	.zero	1
	.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:
```