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

bool check(int checks,int *D,int K);

int main(void){
  int N,K,D[10];
  int i,j,now;
  bool flg=true;

  scanf("%d%d",&N,&K);
  for(i=0;i<K;i++) scanf("%d",D+i);

  for(i=N;flg;i++){
    flg=false;
    for(now=1;now<=i;now*=10){
      if(check((i%(10*now))/now,D,K)){
	flg=true;
	break;
      }
    }
  }
  printf("%d\n",i-1);    
  return 0;
}

bool check(int checks,int *D,int K){
  int i;
  for(i=0;i<K;i++) if(checks==D[i]) return true;
  return false;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	addq	$4, %rbp
	cmpl	%ebx, %r10d
	jg	.L3
.L2:
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L4
	leal	-1(%r10), %eax
	leaq	16(%rsp), %r11
	movl	$1, %ecx
	leaq	20(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r8d, %eax
	leal	(%rcx,%rcx,4), %edi
	addl	%edi, %edi
	cltd
	idivl	%edi
	movl	%edi, %r9d
	movl	%edx, %eax
	cltd
	idivl	%ecx
	testl	%r10d, %r10d
	jle	.L5
	movq	%r11, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rcx
	cmpq	%rsi, %rcx
	je	.L5
.L7:
	cmpl	(%rcx), %eax
	jne	.L16
	addl	$1, %r8d
	movl	$1, %r9d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r9d, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%r8d, %edi
	jle	.L9
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	jle	.L21
	leal	-1(%rdx), %eax
	leaq	4(%rsi,%rax,4), %rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$4, %rsi
	cmpq	%rax, %rsi
	je	.L21
.L20:
	cmpl	%edi, (%rsi)
	jne	.L24
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	check, .-check
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	addq	$4, %rbp
	cmpl	%ebx, %r10d
	jg	.L3
.L2:
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L4
	leal	-1(%r10), %eax
	leaq	16(%rsp), %r11
	movl	$1, %ecx
	leaq	20(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r8d, %eax
	leal	(%rcx,%rcx,4), %edi
	addl	%edi, %edi
	cltd
	idivl	%edi
	movl	%edi, %r9d
	movl	%edx, %eax
	cltd
	idivl	%ecx
	testl	%r10d, %r10d
	jle	.L5
	movq	%r11, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rcx
	cmpq	%rsi, %rcx
	je	.L5
.L7:
	cmpl	(%rcx), %eax
	jne	.L16
	addl	$1, %r8d
	movl	$1, %r9d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r9d, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%r8d, %edi
	jle	.L9
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	jle	.L21
	leal	-1(%rdx), %eax
	leaq	4(%rsi,%rax,4), %rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$4, %rsi
	cmpq	%rax, %rsi
	je	.L21
.L20:
	cmpl	%edi, (%rsi)
	jne	.L24
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	check, .-check
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	addq	$4, %rbp
	cmpl	%ebx, %r10d
	jg	.L3
.L2:
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L4
	leal	-1(%r10), %eax
	leaq	16(%rsp), %r11
	movl	$1, %ecx
	leaq	20(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r8d, %eax
	leal	(%rcx,%rcx,4), %edi
	addl	%edi, %edi
	cltd
	idivl	%edi
	movl	%edi, %r9d
	movl	%edx, %eax
	cltd
	idivl	%ecx
	testl	%r10d, %r10d
	jle	.L5
	movq	%r11, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rcx
	cmpq	%rsi, %rcx
	je	.L5
.L7:
	cmpl	(%rcx), %eax
	jne	.L16
	addl	$1, %r8d
	movl	$1, %r9d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r9d, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%r8d, %edi
	jle	.L9
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	jle	.L21
	leal	-1(%rdx), %eax
	leaq	4(%rsi,%rax,4), %rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$4, %rsi
	cmpq	%rax, %rsi
	je	.L21
.L20:
	cmpl	%edi, (%rsi)
	jne	.L24
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	check, .-check
	.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<stdbool.h>

bool check(int checks,int *D,int K);

int main(void){
  int N,K,D[10];
  int i,j,now;
  bool flg=true;

  scanf("%d%d",&N,&K);
  for(i=0;i<K;i++) scanf("%d",D+i);

  for(i=N;flg;i++){
    flg=false;
    for(now=1;now<=i;now*=10){
      if(check((i%(10*now))/now,D,K)){
	flg=true;
	break;
      }
    }
  }
  printf("%d\n",i-1);    
  return 0;
}

bool check(int checks,int *D,int K){
  int i;
  for(i=0;i<K;i++) if(checks==D[i]) return true;
  return false;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdbool.h>

bool check(int checks,int *D,int K);

int main(void){
  int N,K,D[10];
  int i,j,now;
  bool flg=true;

  scanf("%d%d",&N,&K);
  for(i=0;i<K;i++) scanf("%d",D+i);

  for(i=N;flg;i++){
    flg=false;
    for(now=1;now<=i;now*=10){
      if(check((i%(10*now))/now,D,K)){
	flg=true;
	break;
      }
    }
  }
  printf("%d\n",i-1);    
  return 0;
}

bool check(int checks,int *D,int K){
  int i;
  for(i=0;i<K;i++) if(checks==D[i]) return true;
  return false;
}
```

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:

67 1
0
 34 1
0
 3 1
0
 6 1
0
 10 1
0
 5 1
0
 39 1
0
 10 1
1
 4 1
1
 56 1
0

67
 34
 3
 6
 11
 5
 39
 20
 4
 56

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

bool check(int checks,int *D,int K);

int main(void){
  int N,K,D[10];
  int i,j,now;
  bool flg=true;

  scanf("%d%d",&N,&K);
  for(i=0;i<K;i++) scanf("%d",D+i);

  for(i=N;flg;i++){
    flg=false;
    for(now=1;now<=i;now*=10){
      if(check((i%(10*now))/now,D,K)){
	flg=true;
	break;
      }
    }
  }
  printf("%d\n",i-1);    
  return 0;
}

bool check(int checks,int *D,int K){
  int i;
  for(i=0;i<K;i++) if(checks==D[i]) return true;
  return false;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	addq	$4, %rbp
	cmpl	%ebx, %r10d
	jg	.L3
.L2:
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L4
	leal	-1(%r10), %eax
	leaq	16(%rsp), %r11
	movl	$1, %ecx
	leaq	20(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r8d, %eax
	leal	(%rcx,%rcx,4), %edi
	addl	%edi, %edi
	cltd
	idivl	%edi
	movl	%edi, %r9d
	movl	%edx, %eax
	cltd
	idivl	%ecx
	testl	%r10d, %r10d
	jle	.L5
	movq	%r11, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rcx
	cmpq	%rsi, %rcx
	je	.L5
.L7:
	cmpl	(%rcx), %eax
	jne	.L16
	addl	$1, %r8d
	movl	$1, %r9d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r9d, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%r8d, %edi
	jle	.L9
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	jle	.L21
	leal	-1(%rdx), %eax
	leaq	4(%rsi,%rax,4), %rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$4, %rsi
	cmpq	%rax, %rsi
	je	.L21
.L20:
	cmpl	%edi, (%rsi)
	jne	.L24
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	check, .-check
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	addq	$4, %rbp
	cmpl	%ebx, %r10d
	jg	.L3
.L2:
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L4
	leal	-1(%r10), %eax
	leaq	16(%rsp), %r11
	movl	$1, %ecx
	leaq	20(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r8d, %eax
	leal	(%rcx,%rcx,4), %edi
	addl	%edi, %edi
	cltd
	idivl	%edi
	movl	%edi, %r9d
	movl	%edx, %eax
	cltd
	idivl	%ecx
	testl	%r10d, %r10d
	jle	.L5
	movq	%r11, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rcx
	cmpq	%rsi, %rcx
	je	.L5
.L7:
	cmpl	(%rcx), %eax
	jne	.L16
	addl	$1, %r8d
	movl	$1, %r9d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r9d, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%r8d, %edi
	jle	.L9
.L4:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%edx, %edx
	jle	.L21
	leal	-1(%rdx), %eax
	leaq	4(%rsi,%rax,4), %rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$4, %rsi
	cmpq	%rax, %rsi
	je	.L21
.L20:
	cmpl	%edi, (%rsi)
	jne	.L24
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	check, .-check
	.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:
```