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

int fastDigit(int n){
  if(n <= 9) return n;
  else fastDigit(n / 10);
}

int main(void){
  int n, i, j, result=0;
  int c[10][10]={0};
  scanf("%d", &n);
  for(i=1;i<=n;i++){
    if(i%10==0){
      continue;
    }else{
      j = fastDigit(i);
      c[j][i%10]++;
    }
  }
  for(i=1;i<=9;i++){
    for(j=1;j<=9;j++){
      result += c[i][j] * c[j][i];
    }
  }
  printf("%d",result);
      
  return 0;
  
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	fastDigit
	.type	fastDigit, @function
fastDigit:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$9, -4(%rbp)
	jg	.L2
	movl	-4(%rbp), %eax
	jmp	.L1
.L2:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	fastDigit
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fastDigit, .-fastDigit
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -420(%rbp)
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -428(%rbp)
	jmp	.L5
.L8:
	movl	-428(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	je	.L15
	movl	-428(%rbp), %eax
	movl	%eax, %edi
	call	fastDigit
	movl	%eax, -424(%rbp)
	movl	-428(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-416(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -416(%rbp,%rax,4)
	jmp	.L7
.L15:
	nop
.L7:
	addl	$1, -428(%rbp)
.L5:
	movl	-432(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L8
	movl	$1, -428(%rbp)
	jmp	.L9
.L12:
	movl	$1, -424(%rbp)
	jmp	.L10
.L11:
	movl	-424(%rbp), %eax
	movslq	%eax, %rcx
	movl	-428(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %ecx
	movl	-428(%rbp), %eax
	movslq	%eax, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-416(%rbp,%rax,4), %eax
	imull	%ecx, %eax
	addl	%eax, -420(%rbp)
	addl	$1, -424(%rbp)
.L10:
	cmpl	$9, -424(%rbp)
	jle	.L11
	addl	$1, -428(%rbp)
.L9:
	cmpl	$9, -428(%rbp)
	jle	.L12
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.p2align 4
	.globl	fastDigit
	.type	fastDigit, @function
fastDigit:
.LFB39:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	$3435973837, %ecx
	cmpl	$9, %edi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%eax, %eax
	movq	%rax, %rdx
	imulq	%rcx, %rax
	shrq	$35, %rax
	cmpl	$99, %edx
	jg	.L2
.L4:
	ret
	.cfi_endproc
.LFE39:
	.size	fastDigit, .-fastDigit
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$50, %ecx
	leaq	.LC0(%rip), %rbp
	subq	$432, %rsp
	.cfi_def_cfa_offset 448
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	12(%rsp), %rsi
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	movl	$1, 60(%rsp)
	cmpl	$1, %eax
	je	.L18
	movl	$1, 104(%rsp)
	cmpl	$2, %eax
	je	.L19
	movl	$1, 148(%rsp)
	cmpl	$3, %eax
	je	.L20
	movl	$1, 192(%rsp)
	cmpl	$4, %eax
	je	.L21
	movl	$1, 236(%rsp)
	cmpl	$5, %eax
	je	.L22
	movl	$1, 280(%rsp)
	cmpl	$6, %eax
	je	.L23
	movl	$1, 324(%rsp)
	cmpl	$7, %eax
	je	.L24
	movl	$1, 368(%rsp)
	cmpl	$8, %eax
	jle	.L25
	movl	$1, 412(%rsp)
	movl	$10, %edi
.L9:
	leal	1(%rax), %r9d
	movl	$3435973837, %r8d
	cmpl	%edi, %eax
	jge	.L13
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	addl	$1, %edi
	cmpl	%edi, %r9d
	je	.L8
.L13:
	movl	%edi, %ecx
	imulq	%r8, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %eax
	movl	%edi, %ecx
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%edi, %eax
	je	.L33
	.p2align 4,,10
	.p2align 3
.L11:
	cltq
	movq	%rax, %rdx
	imulq	$1717986919, %rax, %rax
	movl	%edx, %esi
	sarl	$31, %esi
	sarq	$34, %rax
	subl	%esi, %eax
	cmpl	$99, %edx
	jg	.L11
	cltq
	movslq	%ecx, %rcx
	addl	$1, %edi
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,2), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%edi, %r9d
	jne	.L13
.L8:
	leaq	60(%rsp), %rax
	leaq	420(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rax), %esi
	imull	(%rcx), %esi
	addq	$40, %rax
	addq	$4, %rcx
	addl	%esi, %edx
	movl	-36(%rax), %esi
	imull	36(%rcx), %esi
	addl	%edx, %esi
	movl	-32(%rax), %edx
	imull	76(%rcx), %edx
	addl	%esi, %edx
	movl	-28(%rax), %esi
	imull	116(%rcx), %esi
	addl	%edx, %esi
	movl	-24(%rax), %edx
	imull	156(%rcx), %edx
	addl	%esi, %edx
	movl	-20(%rax), %esi
	imull	196(%rcx), %esi
	addl	%edx, %esi
	movl	-16(%rax), %edx
	imull	236(%rcx), %edx
	addl	%esi, %edx
	movl	-12(%rax), %esi
	imull	276(%rcx), %esi
	addl	%edx, %esi
	movl	-8(%rax), %edx
	imull	316(%rcx), %edx
	addl	%esi, %edx
	cmpq	%rdi, %rax
	jne	.L16
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movl	$6, %edi
	jmp	.L9
.L18:
	movl	$2, %edi
	jmp	.L9
.L19:
	movl	$3, %edi
	jmp	.L9
.L20:
	movl	$4, %edi
	jmp	.L9
.L21:
	movl	$5, %edi
	jmp	.L9
.L23:
	movl	$7, %edi
	jmp	.L9
.L25:
	movl	$9, %edi
	jmp	.L9
.L24:
	movl	$8, %edi
	jmp	.L9
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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
	.p2align 4
	.globl	fastDigit
	.type	fastDigit, @function
fastDigit:
.LFB39:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	$3435973837, %ecx
	cmpl	$9, %edi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%eax, %eax
	movq	%rax, %rdx
	imulq	%rcx, %rax
	shrq	$35, %rax
	cmpl	$99, %edx
	jg	.L2
.L4:
	ret
	.cfi_endproc
.LFE39:
	.size	fastDigit, .-fastDigit
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$50, %ecx
	leaq	.LC0(%rip), %rbp
	subq	$432, %rsp
	.cfi_def_cfa_offset 448
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	12(%rsp), %rsi
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	movl	$1, 60(%rsp)
	cmpl	$1, %eax
	je	.L18
	movl	$1, 104(%rsp)
	cmpl	$2, %eax
	je	.L19
	movl	$1, 148(%rsp)
	cmpl	$3, %eax
	je	.L20
	movl	$1, 192(%rsp)
	cmpl	$4, %eax
	je	.L21
	movl	$1, 236(%rsp)
	cmpl	$5, %eax
	je	.L22
	movl	$1, 280(%rsp)
	cmpl	$6, %eax
	je	.L23
	movl	$1, 324(%rsp)
	cmpl	$7, %eax
	je	.L24
	movl	$1, 368(%rsp)
	cmpl	$8, %eax
	jle	.L25
	movl	$1, 412(%rsp)
	movl	$10, %edi
.L9:
	leal	1(%rax), %r9d
	movl	$3435973837, %r8d
	cmpl	%edi, %eax
	jge	.L13
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	addl	$1, %edi
	cmpl	%edi, %r9d
	je	.L8
.L13:
	movl	%edi, %ecx
	imulq	%r8, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %eax
	movl	%edi, %ecx
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%edi, %eax
	je	.L33
	.p2align 4,,10
	.p2align 3
.L11:
	cltq
	movq	%rax, %rdx
	imulq	$1717986919, %rax, %rax
	movl	%edx, %esi
	sarl	$31, %esi
	sarq	$34, %rax
	subl	%esi, %eax
	cmpl	$99, %edx
	jg	.L11
	cltq
	movslq	%ecx, %rcx
	addl	$1, %edi
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,2), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%edi, %r9d
	jne	.L13
.L8:
	leaq	60(%rsp), %rax
	leaq	420(%rsp), %rdi
	xorl	%edx, %edx
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rax), %esi
	imull	(%rcx), %esi
	addq	$40, %rax
	addq	$4, %rcx
	addl	%esi, %edx
	movl	-36(%rax), %esi
	imull	36(%rcx), %esi
	addl	%edx, %esi
	movl	-32(%rax), %edx
	imull	76(%rcx), %edx
	addl	%esi, %edx
	movl	-28(%rax), %esi
	imull	116(%rcx), %esi
	addl	%edx, %esi
	movl	-24(%rax), %edx
	imull	156(%rcx), %edx
	addl	%esi, %edx
	movl	-20(%rax), %esi
	imull	196(%rcx), %esi
	addl	%edx, %esi
	movl	-16(%rax), %edx
	imull	236(%rcx), %edx
	addl	%esi, %edx
	movl	-12(%rax), %esi
	imull	276(%rcx), %esi
	addl	%edx, %esi
	movl	-8(%rax), %edx
	imull	316(%rcx), %edx
	addl	%esi, %edx
	cmpq	%rdi, %rax
	jne	.L16
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movl	$6, %edi
	jmp	.L9
.L18:
	movl	$2, %edi
	jmp	.L9
.L19:
	movl	$3, %edi
	jmp	.L9
.L20:
	movl	$4, %edi
	jmp	.L9
.L21:
	movl	$5, %edi
	jmp	.L9
.L23:
	movl	$7, %edi
	jmp	.L9
.L25:
	movl	$9, %edi
	jmp	.L9
.L24:
	movl	$8, %edi
	jmp	.L9
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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<stdlib.h>

int fastDigit(int n){
  if(n <= 9) return n;
  else fastDigit(n / 10);
}

int main(void){
  int n, i, j, result=0;
  int c[10][10]={0};
  scanf("%d", &n);
  for(i=1;i<=n;i++){
    if(i%10==0){
      continue;
    }else{
      j = fastDigit(i);
      c[j][i%10]++;
    }
  }
  for(i=1;i<=9;i++){
    for(j=1;j<=9;j++){
      result += c[i][j] * c[j][i];
    }
  }
  printf("%d",result);
      
  return 0;
  
}
73
 3093
 50
 101
 0
 11
 1020
 78
 001
 6

63 95976 33 113 0 12 10412 72 1 6
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<stdlib.h>

int fastDigit(int n){
  if(n <= 9) return n;
  else fastDigit(n / 10);
}

int main(void){
  int n, i, j, result=0;
  int c[10][10]={0};
  scanf("%d", &n);
  for(i=1;i<=n;i++){
    if(i%10==0){
      continue;
    }else{
      j = fastDigit(i);
      c[j][i%10]++;
    }
  }
  for(i=1;i<=9;i++){
    for(j=1;j<=9;j++){
      result += c[i][j] * c[j][i];
    }
  }
  printf("%d",result);
      
  return 0;
  
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	fastDigit
	.type	fastDigit, @function
fastDigit:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$9, -4(%rbp)
	jg	.L2
	movl	-4(%rbp), %eax
	jmp	.L1
.L2:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	fastDigit
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fastDigit, .-fastDigit
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -420(%rbp)
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -428(%rbp)
	jmp	.L5
.L8:
	movl	-428(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	je	.L15
	movl	-428(%rbp), %eax
	movl	%eax, %edi
	call	fastDigit
	movl	%eax, -424(%rbp)
	movl	-428(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-416(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -416(%rbp,%rax,4)
	jmp	.L7
.L15:
	nop
.L7:
	addl	$1, -428(%rbp)
.L5:
	movl	-432(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L8
	movl	$1, -428(%rbp)
	jmp	.L9
.L12:
	movl	$1, -424(%rbp)
	jmp	.L10
.L11:
	movl	-424(%rbp), %eax
	movslq	%eax, %rcx
	movl	-428(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %ecx
	movl	-428(%rbp), %eax
	movslq	%eax, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-416(%rbp,%rax,4), %eax
	imull	%ecx, %eax
	addl	%eax, -420(%rbp)
	addl	$1, -424(%rbp)
.L10:
	cmpl	$9, -424(%rbp)
	jle	.L11
	addl	$1, -428(%rbp)
.L9:
	cmpl	$9, -428(%rbp)
	jle	.L12
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.globl	fastDigit
	.type	fastDigit, @function
fastDigit:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	cmpl	$9, -4(%rbp)
	jg	.L2
	movl	-4(%rbp), %eax
	jmp	.L1
.L2:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	call	fastDigit
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fastDigit, .-fastDigit
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -420(%rbp)
	leaq	-416(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -428(%rbp)
	jmp	.L5
.L8:
	movl	-428(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	je	.L15
	movl	-428(%rbp), %eax
	movl	%eax, %edi
	call	fastDigit
	movl	%eax, -424(%rbp)
	movl	-428(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movslq	%edx, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-416(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -416(%rbp,%rax,4)
	jmp	.L7
.L15:
	nop
.L7:
	addl	$1, -428(%rbp)
.L5:
	movl	-432(%rbp), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L8
	movl	$1, -428(%rbp)
	jmp	.L9
.L12:
	movl	$1, -424(%rbp)
	jmp	.L10
.L11:
	movl	-424(%rbp), %eax
	movslq	%eax, %rcx
	movl	-428(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %ecx
	movl	-428(%rbp), %eax
	movslq	%eax, %rsi
	movl	-424(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-416(%rbp,%rax,4), %eax
	imull	%ecx, %eax
	addl	%eax, -420(%rbp)
	addl	$1, -424(%rbp)
.L10:
	cmpl	$9, -424(%rbp)
	jle	.L11
	addl	$1, -428(%rbp)
.L9:
	cmpl	$9, -428(%rbp)
	jle	.L12
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
