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 <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y)((x)>(y)?(x):(y))
#define mi(x,y)((x)<(y)?(x):(y))

int main() {
	int n, k, t, all[6] = { 0 }, d[10] = { 0 };
	scanf("%d%d", &n, &k);
	rep(i, k) { scanf("%d", &t); d[t]++; }
	if (n == 1 && d[1] != 1) { printf("1"); return 0; }
	t++;
	Rep(i, 2 < n ? n : 2, 1e5) {
		rep(j, log10(i) + 1) {
			all[j] = (i % (int)pow(10, j + 1)) / (int)pow(10, j);
			rep(x, 10)if (d[all[j]])t = 0;
		}
		if (t) { printf("%d", i); return 0; }
		t++;
	}
}```

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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	leaq	28(%rsp), %r12
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 24(%rsp)
	jg	.L2
.L5:
	movl	20(%rsp), %eax
	cmpl	$1, %eax
	je	.L25
	movl	$2, %r12d
	addl	$1, 28(%rsp)
	cmpl	%r12d, %eax
	cmovge	%eax, %r12d
	cmpl	$99999, %eax
	jg	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	pxor	%xmm3, %xmm3
	xorl	%ebx, %ebx
	cvtsi2sdl	%r12d, %xmm3
	movq	%xmm3, %r14
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r14, %xmm0
	call	log10@PLT
	addsd	.LC3(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%ebx, %eax
	jle	.L26
	leal	1(%rbx), %ebp
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebp, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebx, %xmm1
	movsd	%xmm0, 8(%rsp)
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm2
	movl	%r12d, %eax
	cltd
	cvttsd2sil	%xmm2, %ecx
	idivl	%ecx
	cvttsd2sil	%xmm0, %ecx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	cltq
	movl	32(%rsp,%rax,4), %edx
	testl	%edx, %edx
	je	.L10
	movl	$0, 28(%rsp)
.L10:
	movl	%ebp, %ebx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L27
	addl	$1, %r12d
	movl	$1, 28(%rsp)
	cmpl	$100000, %r12d
	jne	.L13
.L7:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L25:
	cmpl	$1, 36(%rsp)
	jne	.L29
	addl	$1, 28(%rsp)
	movl	$2, %r12d
	jmp	.L13
.L29:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L7
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	leaq	28(%rsp), %r12
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 24(%rsp)
	jg	.L2
.L5:
	movl	20(%rsp), %eax
	cmpl	$1, %eax
	je	.L25
	movl	$2, %r12d
	addl	$1, 28(%rsp)
	cmpl	%r12d, %eax
	cmovge	%eax, %r12d
	cmpl	$99999, %eax
	jg	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	pxor	%xmm3, %xmm3
	xorl	%ebx, %ebx
	cvtsi2sdl	%r12d, %xmm3
	movq	%xmm3, %r14
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r14, %xmm0
	call	log10@PLT
	addsd	.LC3(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%ebx, %eax
	jle	.L26
	leal	1(%rbx), %ebp
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebp, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebx, %xmm1
	movsd	%xmm0, 8(%rsp)
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm2
	movl	%r12d, %eax
	cltd
	cvttsd2sil	%xmm2, %ecx
	idivl	%ecx
	cvttsd2sil	%xmm0, %ecx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	cltq
	movl	32(%rsp,%rax,4), %edx
	testl	%edx, %edx
	je	.L10
	movl	$0, 28(%rsp)
.L10:
	movl	%ebp, %ebx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L27
	addl	$1, %r12d
	movl	$1, 28(%rsp)
	cmpl	$100000, %r12d
	jne	.L13
.L7:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L25:
	cmpl	$1, 36(%rsp)
	jne	.L29
	addl	$1, 28(%rsp)
	movl	$2, %r12d
	jmp	.L13
.L29:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L7
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	leaq	28(%rsp), %r12
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 24(%rsp)
	jg	.L2
.L5:
	movl	20(%rsp), %eax
	cmpl	$1, %eax
	je	.L25
	movl	$2, %r12d
	addl	$1, 28(%rsp)
	cmpl	%r12d, %eax
	cmovge	%eax, %r12d
	cmpl	$99999, %eax
	jg	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	pxor	%xmm3, %xmm3
	xorl	%ebx, %ebx
	cvtsi2sdl	%r12d, %xmm3
	movq	%xmm3, %r14
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r14, %xmm0
	call	log10@PLT
	addsd	.LC3(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%ebx, %eax
	jle	.L26
	leal	1(%rbx), %ebp
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebp, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebx, %xmm1
	movsd	%xmm0, 8(%rsp)
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm2
	movl	%r12d, %eax
	cltd
	cvttsd2sil	%xmm2, %ecx
	idivl	%ecx
	cvttsd2sil	%xmm0, %ecx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	cltq
	movl	32(%rsp,%rax,4), %edx
	testl	%edx, %edx
	je	.L10
	movl	$0, 28(%rsp)
.L10:
	movl	%ebp, %ebx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L27
	addl	$1, %r12d
	movl	$1, 28(%rsp)
	cmpl	$100000, %r12d
	jne	.L13
.L7:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L25:
	cmpl	$1, 36(%rsp)
	jne	.L29
	addl	$1, 28(%rsp)
	movl	$2, %r12d
	jmp	.L13
.L29:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L7
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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 <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y)((x)>(y)?(x):(y))
#define mi(x,y)((x)<(y)?(x):(y))

int main() {
	int n, k, t, all[6] = { 0 }, d[10] = { 0 };
	scanf("%d%d", &n, &k);
	rep(i, k) { scanf("%d", &t); d[t]++; }
	if (n == 1 && d[1] != 1) { printf("1"); return 0; }
	t++;
	Rep(i, 2 < n ? n : 2, 1e5) {
		rep(j, log10(i) + 1) {
			all[j] = (i % (int)pow(10, j + 1)) / (int)pow(10, j);
			rep(x, 10)if (d[all[j]])t = 0;
		}
		if (t) { printf("%d", i); return 0; }
		t++;
	}
}```
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 <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y)((x)>(y)?(x):(y))
#define mi(x,y)((x)<(y)?(x):(y))

int main() {
	int n, k, t, all[6] = { 0 }, d[10] = { 0 };
	scanf("%d%d", &n, &k);
	rep(i, k) { scanf("%d", &t); d[t]++; }
	if (n == 1 && d[1] != 1) { printf("1"); return 0; }
	t++;
	Rep(i, 2 < n ? n : 2, 1e5) {
		rep(j, log10(i) + 1) {
			all[j] = (i % (int)pow(10, j + 1)) / (int)pow(10, j);
			rep(x, 10)if (d[all[j]])t = 0;
		}
		if (t) { printf("%d", i); return 0; }
		t++;
	}
}```

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 <stdlib.h>
#include <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y)((x)>(y)?(x):(y))
#define mi(x,y)((x)<(y)?(x):(y))

int main() {
	int n, k, t, all[6] = { 0 }, d[10] = { 0 };
	scanf("%d%d", &n, &k);
	rep(i, k) { scanf("%d", &t); d[t]++; }
	if (n == 1 && d[1] != 1) { printf("1"); return 0; }
	t++;
	Rep(i, 2 < n ? n : 2, 1e5) {
		rep(j, log10(i) + 1) {
			all[j] = (i % (int)pow(10, j + 1)) / (int)pow(10, j);
			rep(x, 10)if (d[all[j]])t = 0;
		}
		if (t) { printf("%d", i); return 0; }
		t++;
	}
}```

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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	leaq	28(%rsp), %r12
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 24(%rsp)
	jg	.L2
.L5:
	movl	20(%rsp), %eax
	cmpl	$1, %eax
	je	.L25
	movl	$2, %r12d
	addl	$1, 28(%rsp)
	cmpl	%r12d, %eax
	cmovge	%eax, %r12d
	cmpl	$99999, %eax
	jg	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	pxor	%xmm3, %xmm3
	xorl	%ebx, %ebx
	cvtsi2sdl	%r12d, %xmm3
	movq	%xmm3, %r14
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r14, %xmm0
	call	log10@PLT
	addsd	.LC3(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%ebx, %eax
	jle	.L26
	leal	1(%rbx), %ebp
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebp, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebx, %xmm1
	movsd	%xmm0, 8(%rsp)
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm2
	movl	%r12d, %eax
	cltd
	cvttsd2sil	%xmm2, %ecx
	idivl	%ecx
	cvttsd2sil	%xmm0, %ecx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	cltq
	movl	32(%rsp,%rax,4), %edx
	testl	%edx, %edx
	je	.L10
	movl	$0, 28(%rsp)
.L10:
	movl	%ebp, %ebx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L27
	addl	$1, %r12d
	movl	$1, 28(%rsp)
	cmpl	$100000, %r12d
	jne	.L13
.L7:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L25:
	cmpl	$1, 36(%rsp)
	jne	.L29
	addl	$1, 28(%rsp)
	movl	$2, %r12d
	jmp	.L13
.L29:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L7
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	leaq	28(%rsp), %r12
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	28(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 24(%rsp)
	jg	.L2
.L5:
	movl	20(%rsp), %eax
	cmpl	$1, %eax
	je	.L25
	movl	$2, %r12d
	addl	$1, 28(%rsp)
	cmpl	%r12d, %eax
	cmovge	%eax, %r12d
	cmpl	$99999, %eax
	jg	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	pxor	%xmm3, %xmm3
	xorl	%ebx, %ebx
	cvtsi2sdl	%r12d, %xmm3
	movq	%xmm3, %r14
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r14, %xmm0
	call	log10@PLT
	addsd	.LC3(%rip), %xmm0
	cvttsd2sil	%xmm0, %eax
	cmpl	%ebx, %eax
	jle	.L26
	leal	1(%rbx), %ebp
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebp, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	pxor	%xmm1, %xmm1
	movq	.LC2(%rip), %rax
	cvtsi2sdl	%ebx, %xmm1
	movsd	%xmm0, 8(%rsp)
	movq	%rax, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm2
	movl	%r12d, %eax
	cltd
	cvttsd2sil	%xmm2, %ecx
	idivl	%ecx
	cvttsd2sil	%xmm0, %ecx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	cltq
	movl	32(%rsp,%rax,4), %edx
	testl	%edx, %edx
	je	.L10
	movl	$0, 28(%rsp)
.L10:
	movl	%ebp, %ebx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L27
	addl	$1, %r12d
	movl	$1, 28(%rsp)
	cmpl	$100000, %r12d
	jne	.L13
.L7:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L25:
	cmpl	$1, 36(%rsp)
	jne	.L29
	addl	$1, 28(%rsp)
	movl	$2, %r12d
	jmp	.L13
.L29:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L7
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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:
```