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>
int n,ans=100000;
int ok[10]={0};

void dfs(int a){
  if(a>=n){
    ans=ans>a?a:ans;
    return;
  }
  for(int i=0;i<=9;i++){
    if(a==0&&i==0)continue;
    if(ok[i]==0) dfs(a*10+i);
  }
  return;
}

int main(){
  int k,i;
	scanf("%d%d",&n,&k);
	for(int j=1;j<=k;j++){
		scanf("%d",&i);
		ok[i]=1;
	}
  dfs(0);
  printf("%d\n",ans);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	ans
	.data
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.long	100000
	.globl	ok
	.bss
	.align 32
	.type	ok, @object
	.size	ok, 40
ok:
	.zero	40
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L2
	movl	ans(%rip), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, ans(%rip)
	jmp	.L1
.L2:
	movl	$0, -4(%rbp)
	jmp	.L4
.L7:
	cmpl	$0, -20(%rbp)
	jne	.L5
	cmpl	$0, -4(%rbp)
	je	.L8
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ok(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-20(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edi
	call	dfs
	jmp	.L6
.L8:
	nop
.L6:
	addl	$1, -4(%rbp)
.L4:
	cmpl	$9, -4(%rbp)
	jle	.L7
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L10
.L11:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ok(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L10:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L11
	movl	$0, %edi
	call	dfs
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.type	dfs.part.0, @function
dfs.part.0:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	(%rdi,%rdi,4), %eax
	xorl	%r8d, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leal	(%rax,%rax), %r11d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	imull	$100, %edi, %eax
	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	$72, %rsp
	.cfi_def_cfa_offset 128
	movl	%eax, 16(%rsp)
	leaq	ok(%rip), %rax
	movl	%edi, 20(%rsp)
	movq	%rax, 8(%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$10, %r8d
	je	.L51
.L45:
	addl	$10, 16(%rsp)
	addl	$1, %r11d
	addq	$4, 8(%rsp)
.L3:
	movl	20(%rsp), %eax
	orl	%r8d, %eax
	addl	$1, %r8d
	testl	%eax, %eax
	je	.L45
	movq	8(%rsp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L7
	cmpl	n(%rip), %r11d
	jge	.L5
	movl	16(%rsp), %ecx
	movl	%r8d, 24(%rsp)
	leaq	ok(%rip), %r9
	leal	(%rcx,%rcx,4), %edx
	leal	(%rdx,%rdx), %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$10, %eax
	je	.L52
.L44:
	addl	$1, %ecx
	addl	$10, %r10d
	addq	$4, %r9
.L6:
	movl	%r11d, %edx
	orl	%eax, %edx
	addl	$1, %eax
	testl	%edx, %edx
	je	.L44
	movl	(%r9), %ebp
	testl	%ebp, %ebp
	jne	.L12
	cmpl	n(%rip), %ecx
	jge	.L10
	leal	(%r10,%r10,4), %esi
	leaq	ok(%rip), %rdx
	movl	%r10d, %r13d
	addl	%esi, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	$10, %ebp
	je	.L12
.L43:
	addl	$1, %r13d
	addl	$10, %esi
	addq	$4, %rdx
.L11:
	movl	%ecx, %edi
	orl	%ebp, %edi
	addl	$1, %ebp
	testl	%edi, %edi
	je	.L43
	movl	(%rdx), %ebx
	testl	%ebx, %ebx
	jne	.L17
	cmpl	n(%rip), %r13d
	jge	.L15
	leal	(%rsi,%rsi,4), %r14d
	leaq	ok(%rip), %r12
	movl	%esi, %r15d
	addl	%r14d, %r14d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	$10, %ebx
	je	.L17
.L42:
	addl	$10, %r14d
	addl	$1, %r15d
	addq	$4, %r12
.L16:
	movl	%r13d, %edi
	orl	%ebx, %edi
	addl	$1, %ebx
	testl	%edi, %edi
	je	.L42
	movl	(%r12), %edi
	testl	%edi, %edi
	jne	.L20
	movl	n(%rip), %edi
	cmpl	%edi, %r15d
	jge	.L53
	testl	%r15d, %r15d
	je	.L22
	leaq	ok(%rip), %r8
	movl	(%r8), %r8d
	testl	%r8d, %r8d
	je	.L54
.L22:
	movl	4+ok(%rip), %edi
	testl	%edi, %edi
	je	.L55
.L24:
	movl	8+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L56
.L26:
	movl	12+ok(%rip), %edi
	testl	%edi, %edi
	je	.L57
.L28:
	movl	16+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L58
.L30:
	movl	20+ok(%rip), %edi
	testl	%edi, %edi
	je	.L59
.L32:
	movl	24+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L60
.L34:
	movl	28+ok(%rip), %edi
	testl	%edi, %edi
	je	.L61
.L36:
	movl	32+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L62
.L38:
	movl	36+ok(%rip), %edi
	testl	%edi, %edi
	jne	.L20
	leal	9(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L41
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L53:
	movl	ans(%rip), %edi
	cmpl	%r15d, %edi
	cmovg	%r15d, %edi
	movl	%edi, ans(%rip)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L15:
	movl	ans(%rip), %edi
	cmpl	%r13d, %edi
	cmovg	%r13d, %edi
	movl	%edi, ans(%rip)
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L52:
	movl	24(%rsp), %r8d
	cmpl	$10, %r8d
	jne	.L45
.L51:
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	movl	ans(%rip), %edx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movl	%edx, ans(%rip)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L54:
	cmpl	%r14d, %edi
	jle	.L23
	movl	%r14d, %edi
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L59:
	leal	5(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L33
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L58:
	leal	4(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L31
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L57:
	leal	3(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L29
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L56:
	leal	2(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L27
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L61:
	leal	7(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L37
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L60:
	leal	6(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L35
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L62:
	leal	8(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L39
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L55:
	leal	1(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L25
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L5:
	movl	ans(%rip), %eax
	cmpl	%r11d, %eax
	cmovg	%r11d, %eax
	movl	%eax, ans(%rip)
	jmp	.L7
.L41:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L20
.L25:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L24
.L39:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L38
.L35:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L34
.L37:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L36
.L27:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L26
.L29:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L28
.L31:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L30
.L33:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L32
.L23:
	movl	ans(%rip), %edi
	cmpl	%r14d, %edi
	cmovg	%r14d, %edi
	movl	%edi, ans(%rip)
	jmp	.L22
	.cfi_endproc
.LFE25:
	.size	dfs.part.0, .-dfs.part.0
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB23:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	cmpl	%edi, %eax
	jle	.L64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leal	(%rdi,%rdi,4), %ebx
	addl	%ebx, %ebx
	testl	%edi, %edi
	je	.L65
	movl	ok(%rip), %edx
	testl	%edx, %edx
	je	.L104
.L65:
	movl	4+ok(%rip), %r11d
	testl	%r11d, %r11d
	je	.L69
.L73:
	movl	8+ok(%rip), %r10d
	testl	%r10d, %r10d
	je	.L105
.L71:
	movl	12+ok(%rip), %r9d
	testl	%r9d, %r9d
	je	.L106
.L75:
	movl	16+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L107
.L78:
	movl	20+ok(%rip), %edi
	testl	%edi, %edi
	je	.L108
.L81:
	movl	24+ok(%rip), %esi
	testl	%esi, %esi
	je	.L109
.L84:
	movl	28+ok(%rip), %ecx
	testl	%ecx, %ecx
	je	.L110
.L87:
	movl	32+ok(%rip), %edx
	testl	%edx, %edx
	je	.L111
.L90:
	movl	36+ok(%rip), %eax
	testl	%eax, %eax
	je	.L112
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore 3
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L69:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leal	1(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L72
	call	dfs.part.0
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L105:
	leal	2(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L76
	call	dfs.part.0
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L104:
	cmpl	%ebx, %eax
	jle	.L67
	movl	%ebx, %edi
	call	dfs.part.0
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L111:
	leal	8(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L94
	call	dfs.part.0
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L112:
	leal	9(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L96
	popq	%rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	dfs.part.0
	.p2align 4,,10
	.p2align 3
.L106:
	.cfi_restore_state
	leal	3(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L79
	call	dfs.part.0
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L107:
	leal	4(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L82
	call	dfs.part.0
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L108:
	leal	5(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L85
	call	dfs.part.0
	jmp	.L81
	.p2align 4,,10
	.p2align 3
.L109:
	leal	6(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L88
	call	dfs.part.0
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L110:
	leal	7(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L91
	call	dfs.part.0
	jmp	.L87
.L91:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L87
.L94:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L90
.L96:
	movl	ans(%rip), %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	ret
.L67:
	.cfi_restore_state
	movl	ans(%rip), %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	movl	%eax, ans(%rip)
	jmp	.L65
.L72:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L73
.L76:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L71
.L79:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L75
.L82:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L78
.L85:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L81
.L88:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L84
	.cfi_endproc
.LFE23:
	.size	dfs, .-dfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	n(%rip), %rsi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	testl	%edx, %edx
	jle	.L114
	movl	$1, %ebx
	leaq	4(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	ok(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L115:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movl	$1, 0(%rbp,%rax,4)
	cmpl	%ebx, (%rsp)
	jge	.L115
.L114:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L121
	xorl	%edi, %edi
	call	dfs.part.0
	movl	ans(%rip), %edx
.L117:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L122
	addq	$24, %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	%r13
	.cfi_def_cfa_offset 8
	ret
.L121:
	.cfi_restore_state
	movl	ans(%rip), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	cmovg	%eax, %edx
	movl	%edx, ans(%rip)
	jmp	.L117
.L122:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	ok
	.bss
	.align 32
	.type	ok, @object
	.size	ok, 40
ok:
	.zero	40
	.globl	ans
	.data
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.long	100000
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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
	.type	dfs.part.0, @function
dfs.part.0:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	(%rdi,%rdi,4), %eax
	xorl	%r8d, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leal	(%rax,%rax), %r11d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	imull	$100, %edi, %eax
	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	$72, %rsp
	.cfi_def_cfa_offset 128
	movl	%eax, 16(%rsp)
	leaq	ok(%rip), %rax
	movl	%edi, 20(%rsp)
	movq	%rax, 8(%rsp)
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$10, %r8d
	je	.L51
.L45:
	addl	$10, 16(%rsp)
	addl	$1, %r11d
	addq	$4, 8(%rsp)
.L3:
	movl	20(%rsp), %eax
	orl	%r8d, %eax
	addl	$1, %r8d
	testl	%eax, %eax
	je	.L45
	movq	8(%rsp), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L7
	cmpl	n(%rip), %r11d
	jge	.L5
	movl	16(%rsp), %ecx
	movl	%r8d, 24(%rsp)
	leaq	ok(%rip), %r9
	leal	(%rcx,%rcx,4), %edx
	leal	(%rdx,%rdx), %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$10, %eax
	je	.L52
.L44:
	addl	$1, %ecx
	addl	$10, %r10d
	addq	$4, %r9
.L6:
	movl	%r11d, %edx
	orl	%eax, %edx
	addl	$1, %eax
	testl	%edx, %edx
	je	.L44
	movl	(%r9), %ebp
	testl	%ebp, %ebp
	jne	.L12
	cmpl	n(%rip), %ecx
	jge	.L10
	leal	(%r10,%r10,4), %esi
	leaq	ok(%rip), %rdx
	movl	%r10d, %r13d
	addl	%esi, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	$10, %ebp
	je	.L12
.L43:
	addl	$1, %r13d
	addl	$10, %esi
	addq	$4, %rdx
.L11:
	movl	%ecx, %edi
	orl	%ebp, %edi
	addl	$1, %ebp
	testl	%edi, %edi
	je	.L43
	movl	(%rdx), %ebx
	testl	%ebx, %ebx
	jne	.L17
	cmpl	n(%rip), %r13d
	jge	.L15
	leal	(%rsi,%rsi,4), %r14d
	leaq	ok(%rip), %r12
	movl	%esi, %r15d
	addl	%r14d, %r14d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	$10, %ebx
	je	.L17
.L42:
	addl	$10, %r14d
	addl	$1, %r15d
	addq	$4, %r12
.L16:
	movl	%r13d, %edi
	orl	%ebx, %edi
	addl	$1, %ebx
	testl	%edi, %edi
	je	.L42
	movl	(%r12), %edi
	testl	%edi, %edi
	jne	.L20
	movl	n(%rip), %edi
	cmpl	%edi, %r15d
	jge	.L53
	testl	%r15d, %r15d
	je	.L22
	leaq	ok(%rip), %r8
	movl	(%r8), %r8d
	testl	%r8d, %r8d
	je	.L54
.L22:
	movl	4+ok(%rip), %edi
	testl	%edi, %edi
	je	.L55
.L24:
	movl	8+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L56
.L26:
	movl	12+ok(%rip), %edi
	testl	%edi, %edi
	je	.L57
.L28:
	movl	16+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L58
.L30:
	movl	20+ok(%rip), %edi
	testl	%edi, %edi
	je	.L59
.L32:
	movl	24+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L60
.L34:
	movl	28+ok(%rip), %edi
	testl	%edi, %edi
	je	.L61
.L36:
	movl	32+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L62
.L38:
	movl	36+ok(%rip), %edi
	testl	%edi, %edi
	jne	.L20
	leal	9(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L41
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L53:
	movl	ans(%rip), %edi
	cmpl	%r15d, %edi
	cmovg	%r15d, %edi
	movl	%edi, ans(%rip)
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L15:
	movl	ans(%rip), %edi
	cmpl	%r13d, %edi
	cmovg	%r13d, %edi
	movl	%edi, ans(%rip)
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L52:
	movl	24(%rsp), %r8d
	cmpl	$10, %r8d
	jne	.L45
.L51:
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	movl	ans(%rip), %edx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movl	%edx, ans(%rip)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L54:
	cmpl	%r14d, %edi
	jle	.L23
	movl	%r14d, %edi
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L59:
	leal	5(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L33
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L58:
	leal	4(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L31
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L57:
	leal	3(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L29
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L56:
	leal	2(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L27
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L61:
	leal	7(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L37
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L60:
	leal	6(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L35
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L62:
	leal	8(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L39
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L55:
	leal	1(%r14), %edi
	cmpl	%edi, n(%rip)
	jle	.L25
	movl	%esi, 60(%rsp)
	movq	%rdx, 48(%rsp)
	movl	%ecx, 56(%rsp)
	movl	%r10d, 44(%rsp)
	movq	%r9, 32(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%eax, 28(%rsp)
	call	dfs.part.0
	movl	28(%rsp), %eax
	movl	40(%rsp), %r11d
	movq	32(%rsp), %r9
	movl	44(%rsp), %r10d
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	movl	60(%rsp), %esi
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L5:
	movl	ans(%rip), %eax
	cmpl	%r11d, %eax
	cmovg	%r11d, %eax
	movl	%eax, ans(%rip)
	jmp	.L7
.L41:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L20
.L25:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L24
.L39:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L38
.L35:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L34
.L37:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L36
.L27:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L26
.L29:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L28
.L31:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L30
.L33:
	movl	ans(%rip), %r8d
	cmpl	%edi, %r8d
	cmovg	%edi, %r8d
	movl	%r8d, ans(%rip)
	jmp	.L32
.L23:
	movl	ans(%rip), %edi
	cmpl	%r14d, %edi
	cmovg	%r14d, %edi
	movl	%edi, ans(%rip)
	jmp	.L22
	.cfi_endproc
.LFE25:
	.size	dfs.part.0, .-dfs.part.0
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB23:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	cmpl	%edi, %eax
	jle	.L64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leal	(%rdi,%rdi,4), %ebx
	addl	%ebx, %ebx
	testl	%edi, %edi
	je	.L65
	movl	ok(%rip), %edx
	testl	%edx, %edx
	je	.L104
.L65:
	movl	4+ok(%rip), %r11d
	testl	%r11d, %r11d
	je	.L69
.L73:
	movl	8+ok(%rip), %r10d
	testl	%r10d, %r10d
	je	.L105
.L71:
	movl	12+ok(%rip), %r9d
	testl	%r9d, %r9d
	je	.L106
.L75:
	movl	16+ok(%rip), %r8d
	testl	%r8d, %r8d
	je	.L107
.L78:
	movl	20+ok(%rip), %edi
	testl	%edi, %edi
	je	.L108
.L81:
	movl	24+ok(%rip), %esi
	testl	%esi, %esi
	je	.L109
.L84:
	movl	28+ok(%rip), %ecx
	testl	%ecx, %ecx
	je	.L110
.L87:
	movl	32+ok(%rip), %edx
	testl	%edx, %edx
	je	.L111
.L90:
	movl	36+ok(%rip), %eax
	testl	%eax, %eax
	je	.L112
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore 3
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L69:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leal	1(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L72
	call	dfs.part.0
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L105:
	leal	2(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L76
	call	dfs.part.0
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L104:
	cmpl	%ebx, %eax
	jle	.L67
	movl	%ebx, %edi
	call	dfs.part.0
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L111:
	leal	8(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L94
	call	dfs.part.0
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L112:
	leal	9(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L96
	popq	%rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	dfs.part.0
	.p2align 4,,10
	.p2align 3
.L106:
	.cfi_restore_state
	leal	3(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L79
	call	dfs.part.0
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L107:
	leal	4(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L82
	call	dfs.part.0
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L108:
	leal	5(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L85
	call	dfs.part.0
	jmp	.L81
	.p2align 4,,10
	.p2align 3
.L109:
	leal	6(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L88
	call	dfs.part.0
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L110:
	leal	7(%rbx), %edi
	cmpl	n(%rip), %edi
	jge	.L91
	call	dfs.part.0
	jmp	.L87
.L91:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L87
.L94:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L90
.L96:
	movl	ans(%rip), %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	ret
.L67:
	.cfi_restore_state
	movl	ans(%rip), %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	movl	%eax, ans(%rip)
	jmp	.L65
.L72:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L73
.L76:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L71
.L79:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L75
.L82:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L78
.L85:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L81
.L88:
	movl	ans(%rip), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	%eax, ans(%rip)
	jmp	.L84
	.cfi_endproc
.LFE23:
	.size	dfs, .-dfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	n(%rip), %rsi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	testl	%edx, %edx
	jle	.L114
	movl	$1, %ebx
	leaq	4(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	ok(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L115:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	movl	$1, 0(%rbp,%rax,4)
	cmpl	%ebx, (%rsp)
	jge	.L115
.L114:
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L121
	xorl	%edi, %edi
	call	dfs.part.0
	movl	ans(%rip), %edx
.L117:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L122
	addq	$24, %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	%r13
	.cfi_def_cfa_offset 8
	ret
.L121:
	.cfi_restore_state
	movl	ans(%rip), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	cmovg	%eax, %edx
	movl	%edx, ans(%rip)
	jmp	.L117
.L122:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	ok
	.bss
	.align 32
	.type	ok, @object
	.size	ok, 40
ok:
	.zero	40
	.globl	ans
	.data
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.long	100000
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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>
int n,ans=100000;
int ok[10]={0};

void dfs(int a){
  if(a>=n){
    ans=ans>a?a:ans;
    return;
  }
  for(int i=0;i<=9;i++){
    if(a==0&&i==0)continue;
    if(ok[i]==0) dfs(a*10+i);
  }
  return;
}

int main(){
  int k,i;
	scanf("%d%d",&n,&k);
	for(int j=1;j<=k;j++){
		scanf("%d",&i);
		ok[i]=1;
	}
  dfs(0);
  printf("%d\n",ans);
  return 0;
}
1000 8
1 3 4 5 6 7 8 9

2000

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>
int n,ans=100000;
int ok[10]={0};

void dfs(int a){
  if(a>=n){
    ans=ans>a?a:ans;
    return;
  }
  for(int i=0;i<=9;i++){
    if(a==0&&i==0)continue;
    if(ok[i]==0) dfs(a*10+i);
  }
  return;
}

int main(){
  int k,i;
	scanf("%d%d",&n,&k);
	for(int j=1;j<=k;j++){
		scanf("%d",&i);
		ok[i]=1;
	}
  dfs(0);
  printf("%d\n",ans);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	ans
	.data
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.long	100000
	.globl	ok
	.bss
	.align 32
	.type	ok, @object
	.size	ok, 40
ok:
	.zero	40
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L2
	movl	ans(%rip), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, ans(%rip)
	jmp	.L1
.L2:
	movl	$0, -4(%rbp)
	jmp	.L4
.L7:
	cmpl	$0, -20(%rbp)
	jne	.L5
	cmpl	$0, -4(%rbp)
	je	.L8
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ok(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-20(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edi
	call	dfs
	jmp	.L6
.L8:
	nop
.L6:
	addl	$1, -4(%rbp)
.L4:
	cmpl	$9, -4(%rbp)
	jle	.L7
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L10
.L11:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ok(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L10:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L11
	movl	$0, %edi
	call	dfs
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	ans
	.data
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.long	100000
	.globl	ok
	.bss
	.align 32
	.type	ok, @object
	.size	ok, 40
ok:
	.zero	40
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L2
	movl	ans(%rip), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, ans(%rip)
	jmp	.L1
.L2:
	movl	$0, -4(%rbp)
	jmp	.L4
.L7:
	cmpl	$0, -20(%rbp)
	jne	.L5
	cmpl	$0, -4(%rbp)
	je	.L8
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ok(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-20(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edi
	call	dfs
	jmp	.L6
.L8:
	nop
.L6:
	addl	$1, -4(%rbp)
.L4:
	cmpl	$9, -4(%rbp)
	jle	.L7
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L10
.L11:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ok(%rip), %rax
	movl	$1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L10:
	movl	-20(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L11
	movl	$0, %edi
	call	dfs
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
