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 <math.h>
int main(void){
    int N, K, D[10], fase[6], keta=0, kane=0;
    scanf("%d%d", &N, &K);
    for(int i=0; i<K; i++) scanf("%d", &D[i]);
    kane = N;
    for(;N;N/=10){
        fase[keta] = N%10;
        for(int i=0; i<K; i++){
            if(fase[keta]==D[i]) {
                kane++;
                N = 10*kane;
                keta=-1;
                break;
            }
        }
        keta++;
    }
    printf("%d", kane);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	32(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	addq	$4, %r12
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	64(%rsp), %edx
	movl	32(%rsp), %esi
	movl	%eax, %r8d
	movl	36(%rsp), %edi
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	movl	48(%rsp), %r11d
	movl	%edx, 8(%rsp)
	movl	68(%rsp), %edx
	movl	52(%rsp), %ebx
	movl	56(%rsp), %r12d
	movl	60(%rsp), %r13d
	movl	%edx, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%eax, %r14
	movl	%eax, %r15d
	imulq	$1717986919, %r14, %rdx
	sarl	$31, %r15d
	sarq	$34, %rdx
	subl	%r15d, %edx
	leal	(%rdx,%rdx,4), %r15d
	movl	%eax, %edx
	addl	%r15d, %r15d
	subl	%r15d, %edx
	testl	%ecx, %ecx
	jle	.L5
	cmpl	%esi, %edx
	je	.L6
	cmpl	$1, %ecx
	je	.L7
	cmpl	%edi, %edx
	je	.L6
	cmpl	$2, %ecx
	je	.L7
	cmpl	%r9d, %edx
	je	.L6
	cmpl	$3, %ecx
	je	.L7
	cmpl	%r10d, %edx
	je	.L6
	cmpl	$4, %ecx
	je	.L7
	cmpl	%r11d, %edx
	je	.L6
	cmpl	$5, %ecx
	je	.L7
	cmpl	%ebx, %edx
	je	.L6
	cmpl	$6, %ecx
	je	.L7
	cmpl	%r12d, %edx
	je	.L6
	cmpl	$7, %ecx
	je	.L7
	cmpl	%r13d, %edx
	je	.L6
	cmpl	$8, %ecx
	je	.L7
	cmpl	8(%rsp), %edx
	je	.L6
	cmpl	$9, %ecx
	je	.L7
	cmpl	12(%rsp), %edx
	je	.L6
.L7:
	imulq	$1717986919, %r14, %r14
	cltd
	sarq	$34, %r14
	movl	%r14d, %eax
	subl	%edx, %eax
.L8:
	testl	%eax, %eax
	jne	.L9
	movl	$0, 24(%rsp)
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addl	$1, %r8d
	movl	%r8d, %eax
	jmp	.L8
.L5:
	movl	$10, %r14d
	cltd
	idivl	%r14d
	jmp	.L8
.L11:
	xorl	%r8d, %r8d
	jmp	.L4
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	32(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	addq	$4, %r12
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	64(%rsp), %edx
	movl	32(%rsp), %esi
	movl	%eax, %r8d
	movl	36(%rsp), %edi
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	movl	48(%rsp), %r11d
	movl	%edx, 8(%rsp)
	movl	68(%rsp), %edx
	movl	52(%rsp), %ebx
	movl	56(%rsp), %r12d
	movl	60(%rsp), %r13d
	movl	%edx, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%eax, %r14
	movl	%eax, %r15d
	imulq	$1717986919, %r14, %rdx
	sarl	$31, %r15d
	sarq	$34, %rdx
	subl	%r15d, %edx
	leal	(%rdx,%rdx,4), %r15d
	movl	%eax, %edx
	addl	%r15d, %r15d
	subl	%r15d, %edx
	testl	%ecx, %ecx
	jle	.L5
	cmpl	%esi, %edx
	je	.L6
	cmpl	$1, %ecx
	je	.L7
	cmpl	%edi, %edx
	je	.L6
	cmpl	$2, %ecx
	je	.L7
	cmpl	%r9d, %edx
	je	.L6
	cmpl	$3, %ecx
	je	.L7
	cmpl	%r10d, %edx
	je	.L6
	cmpl	$4, %ecx
	je	.L7
	cmpl	%r11d, %edx
	je	.L6
	cmpl	$5, %ecx
	je	.L7
	cmpl	%ebx, %edx
	je	.L6
	cmpl	$6, %ecx
	je	.L7
	cmpl	%r12d, %edx
	je	.L6
	cmpl	$7, %ecx
	je	.L7
	cmpl	%r13d, %edx
	je	.L6
	cmpl	$8, %ecx
	je	.L7
	cmpl	8(%rsp), %edx
	je	.L6
	cmpl	$9, %ecx
	je	.L7
	cmpl	12(%rsp), %edx
	je	.L6
.L7:
	imulq	$1717986919, %r14, %r14
	cltd
	sarq	$34, %r14
	movl	%r14d, %eax
	subl	%edx, %eax
.L8:
	testl	%eax, %eax
	jne	.L9
	movl	$0, 24(%rsp)
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addl	$1, %r8d
	movl	%r8d, %eax
	jmp	.L8
.L5:
	movl	$10, %r14d
	cltd
	idivl	%r14d
	jmp	.L8
.L11:
	xorl	%r8d, %r8d
	jmp	.L4
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	32(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	addq	$4, %r12
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	64(%rsp), %edx
	movl	32(%rsp), %esi
	movl	%eax, %r8d
	movl	36(%rsp), %edi
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	movl	48(%rsp), %r11d
	movl	%edx, 8(%rsp)
	movl	68(%rsp), %edx
	movl	52(%rsp), %ebx
	movl	56(%rsp), %r12d
	movl	60(%rsp), %r13d
	movl	%edx, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%eax, %r14
	movl	%eax, %r15d
	imulq	$1717986919, %r14, %rdx
	sarl	$31, %r15d
	sarq	$34, %rdx
	subl	%r15d, %edx
	leal	(%rdx,%rdx,4), %r15d
	movl	%eax, %edx
	addl	%r15d, %r15d
	subl	%r15d, %edx
	testl	%ecx, %ecx
	jle	.L5
	cmpl	%esi, %edx
	je	.L6
	cmpl	$1, %ecx
	je	.L7
	cmpl	%edi, %edx
	je	.L6
	cmpl	$2, %ecx
	je	.L7
	cmpl	%r9d, %edx
	je	.L6
	cmpl	$3, %ecx
	je	.L7
	cmpl	%r10d, %edx
	je	.L6
	cmpl	$4, %ecx
	je	.L7
	cmpl	%r11d, %edx
	je	.L6
	cmpl	$5, %ecx
	je	.L7
	cmpl	%ebx, %edx
	je	.L6
	cmpl	$6, %ecx
	je	.L7
	cmpl	%r12d, %edx
	je	.L6
	cmpl	$7, %ecx
	je	.L7
	cmpl	%r13d, %edx
	je	.L6
	cmpl	$8, %ecx
	je	.L7
	cmpl	8(%rsp), %edx
	je	.L6
	cmpl	$9, %ecx
	je	.L7
	cmpl	12(%rsp), %edx
	je	.L6
.L7:
	imulq	$1717986919, %r14, %r14
	cltd
	sarq	$34, %r14
	movl	%r14d, %eax
	subl	%edx, %eax
.L8:
	testl	%eax, %eax
	jne	.L9
	movl	$0, 24(%rsp)
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addl	$1, %r8d
	movl	%r8d, %eax
	jmp	.L8
.L5:
	movl	$10, %r14d
	cltd
	idivl	%r14d
	jmp	.L8
.L11:
	xorl	%r8d, %r8d
	jmp	.L4
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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 <math.h>
int main(void){
    int N, K, D[10], fase[6], keta=0, kane=0;
    scanf("%d%d", &N, &K);
    for(int i=0; i<K; i++) scanf("%d", &D[i]);
    kane = N;
    for(;N;N/=10){
        fase[keta] = N%10;
        for(int i=0; i<K; i++){
            if(fase[keta]==D[i]) {
                kane++;
                N = 10*kane;
                keta=-1;
                break;
            }
        }
        keta++;
    }
    printf("%d", kane);
    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 <math.h>
int main(void){
    int N, K, D[10], fase[6], keta=0, kane=0;
    scanf("%d%d", &N, &K);
    for(int i=0; i<K; i++) scanf("%d", &D[i]);
    kane = N;
    for(;N;N/=10){
        fase[keta] = N%10;
        for(int i=0; i<K; i++){
            if(fase[keta]==D[i]) {
                kane++;
                N = 10*kane;
                keta=-1;
                break;
            }
        }
        keta++;
    }
    printf("%d", kane);
    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:

1000 8
1 3 4 5 6 7 8 9

2000
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 <math.h>
int main(void){
    int N, K, D[10], fase[6], keta=0, kane=0;
    scanf("%d%d", &N, &K);
    for(int i=0; i<K; i++) scanf("%d", &D[i]);
    kane = N;
    for(;N;N/=10){
        fase[keta] = N%10;
        for(int i=0; i<K; i++){
            if(fase[keta]==D[i]) {
                kane++;
                N = 10*kane;
                keta=-1;
                break;
            }
        }
        keta++;
    }
    printf("%d", kane);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	32(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	addq	$4, %r12
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	64(%rsp), %edx
	movl	32(%rsp), %esi
	movl	%eax, %r8d
	movl	36(%rsp), %edi
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	movl	48(%rsp), %r11d
	movl	%edx, 8(%rsp)
	movl	68(%rsp), %edx
	movl	52(%rsp), %ebx
	movl	56(%rsp), %r12d
	movl	60(%rsp), %r13d
	movl	%edx, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%eax, %r14
	movl	%eax, %r15d
	imulq	$1717986919, %r14, %rdx
	sarl	$31, %r15d
	sarq	$34, %rdx
	subl	%r15d, %edx
	leal	(%rdx,%rdx,4), %r15d
	movl	%eax, %edx
	addl	%r15d, %r15d
	subl	%r15d, %edx
	testl	%ecx, %ecx
	jle	.L5
	cmpl	%esi, %edx
	je	.L6
	cmpl	$1, %ecx
	je	.L7
	cmpl	%edi, %edx
	je	.L6
	cmpl	$2, %ecx
	je	.L7
	cmpl	%r9d, %edx
	je	.L6
	cmpl	$3, %ecx
	je	.L7
	cmpl	%r10d, %edx
	je	.L6
	cmpl	$4, %ecx
	je	.L7
	cmpl	%r11d, %edx
	je	.L6
	cmpl	$5, %ecx
	je	.L7
	cmpl	%ebx, %edx
	je	.L6
	cmpl	$6, %ecx
	je	.L7
	cmpl	%r12d, %edx
	je	.L6
	cmpl	$7, %ecx
	je	.L7
	cmpl	%r13d, %edx
	je	.L6
	cmpl	$8, %ecx
	je	.L7
	cmpl	8(%rsp), %edx
	je	.L6
	cmpl	$9, %ecx
	je	.L7
	cmpl	12(%rsp), %edx
	je	.L6
.L7:
	imulq	$1717986919, %r14, %r14
	cltd
	sarq	$34, %r14
	movl	%r14d, %eax
	subl	%edx, %eax
.L8:
	testl	%eax, %eax
	jne	.L9
	movl	$0, 24(%rsp)
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addl	$1, %r8d
	movl	%r8d, %eax
	jmp	.L8
.L5:
	movl	$10, %r14d
	cltd
	idivl	%r14d
	jmp	.L8
.L11:
	xorl	%r8d, %r8d
	jmp	.L4
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	32(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	addq	$4, %r12
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	64(%rsp), %edx
	movl	32(%rsp), %esi
	movl	%eax, %r8d
	movl	36(%rsp), %edi
	movl	40(%rsp), %r9d
	movl	44(%rsp), %r10d
	movl	48(%rsp), %r11d
	movl	%edx, 8(%rsp)
	movl	68(%rsp), %edx
	movl	52(%rsp), %ebx
	movl	56(%rsp), %r12d
	movl	60(%rsp), %r13d
	movl	%edx, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%eax, %r14
	movl	%eax, %r15d
	imulq	$1717986919, %r14, %rdx
	sarl	$31, %r15d
	sarq	$34, %rdx
	subl	%r15d, %edx
	leal	(%rdx,%rdx,4), %r15d
	movl	%eax, %edx
	addl	%r15d, %r15d
	subl	%r15d, %edx
	testl	%ecx, %ecx
	jle	.L5
	cmpl	%esi, %edx
	je	.L6
	cmpl	$1, %ecx
	je	.L7
	cmpl	%edi, %edx
	je	.L6
	cmpl	$2, %ecx
	je	.L7
	cmpl	%r9d, %edx
	je	.L6
	cmpl	$3, %ecx
	je	.L7
	cmpl	%r10d, %edx
	je	.L6
	cmpl	$4, %ecx
	je	.L7
	cmpl	%r11d, %edx
	je	.L6
	cmpl	$5, %ecx
	je	.L7
	cmpl	%ebx, %edx
	je	.L6
	cmpl	$6, %ecx
	je	.L7
	cmpl	%r12d, %edx
	je	.L6
	cmpl	$7, %ecx
	je	.L7
	cmpl	%r13d, %edx
	je	.L6
	cmpl	$8, %ecx
	je	.L7
	cmpl	8(%rsp), %edx
	je	.L6
	cmpl	$9, %ecx
	je	.L7
	cmpl	12(%rsp), %edx
	je	.L6
.L7:
	imulq	$1717986919, %r14, %r14
	cltd
	sarq	$34, %r14
	movl	%r14d, %eax
	subl	%edx, %eax
.L8:
	testl	%eax, %eax
	jne	.L9
	movl	$0, 24(%rsp)
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addl	$1, %r8d
	movl	%r8d, %eax
	jmp	.L8
.L5:
	movl	$10, %r14d
	cltd
	idivl	%r14d
	jmp	.L8
.L11:
	xorl	%r8d, %r8d
	jmp	.L4
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```