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>

int search(int n,int k,int *hate){
  int i;
  for(i=0;i<k;i++){
    if(n==hate[i]){
      return 1;
    }
  }
  return 0;
}

int main(){
  int hate[9];
  int n,k,i,ok=0,tmp;
  
  scanf("%d %d",&n,&k);
  for(i=0;i<k;i++){
    scanf("%d",&hate[i]);
  }
  
  while(ok==0){
    ok=1;
    tmp=n;
    while(0<tmp){
      if(search(tmp%10,k,hate)==1){
        ok=0;
        n++;
        break;
      }
      tmp=tmp/10;
    }
  }
  
  printf("%d",n);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	search
	.type	search, @function
search:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	leaq	4(%rdx,%rax,4), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$4, %rdx
	cmpq	%rax, %rdx
	je	.L4
.L3:
	cmpl	%edi, (%rdx)
	jne	.L8
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	search, .-search
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L10
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L11
.L10:
	movl	8(%rsp), %r10d
	leal	-1(%r8), %eax
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leaq	20(%rsp,%rax,4), %rcx
	testl	%r10d, %r10d
	jle	.L33
.L20:
	movl	%r10d, %edi
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%edi, %esi
	movq	%rsi, %rdx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %eax
	movl	%edi, %edx
	addl	%eax, %eax
	subl	%eax, %edx
	testl	%r8d, %r8d
	jle	.L14
	movq	%rbx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$4, %rax
	cmpq	%rax, %rcx
	je	.L14
.L16:
	cmpl	(%rax), %edx
	jne	.L36
	addl	$1, %r10d
	movl	$1, %r11d
	testl	%r10d, %r10d
	jg	.L20
.L33:
	testb	%r11b, %r11b
	je	.L13
	movl	%r10d, 8(%rsp)
.L13:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$72, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	imulq	%r9, %rsi
	shrq	$35, %rsi
	cmpl	$9, %edi
	jle	.L33
	movl	%esi, %edi
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	search
	.type	search, @function
search:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	leaq	4(%rdx,%rax,4), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$4, %rdx
	cmpq	%rax, %rdx
	je	.L4
.L3:
	cmpl	%edi, (%rdx)
	jne	.L8
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	search, .-search
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L10
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L11
.L10:
	movl	8(%rsp), %r10d
	leal	-1(%r8), %eax
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leaq	20(%rsp,%rax,4), %rcx
	testl	%r10d, %r10d
	jle	.L33
.L20:
	movl	%r10d, %edi
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%edi, %esi
	movq	%rsi, %rdx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %eax
	movl	%edi, %edx
	addl	%eax, %eax
	subl	%eax, %edx
	testl	%r8d, %r8d
	jle	.L14
	movq	%rbx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$4, %rax
	cmpq	%rax, %rcx
	je	.L14
.L16:
	cmpl	(%rax), %edx
	jne	.L36
	addl	$1, %r10d
	movl	$1, %r11d
	testl	%r10d, %r10d
	jg	.L20
.L33:
	testb	%r11b, %r11b
	je	.L13
	movl	%r10d, 8(%rsp)
.L13:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$72, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	imulq	%r9, %rsi
	shrq	$35, %rsi
	cmpl	$9, %edi
	jle	.L33
	movl	%esi, %edi
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	search
	.type	search, @function
search:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	leaq	4(%rdx,%rax,4), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$4, %rdx
	cmpq	%rax, %rdx
	je	.L4
.L3:
	cmpl	%edi, (%rdx)
	jne	.L8
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	search, .-search
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L10
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L11
.L10:
	movl	8(%rsp), %r10d
	leal	-1(%r8), %eax
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leaq	20(%rsp,%rax,4), %rcx
	testl	%r10d, %r10d
	jle	.L33
.L20:
	movl	%r10d, %edi
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%edi, %esi
	movq	%rsi, %rdx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %eax
	movl	%edi, %edx
	addl	%eax, %eax
	subl	%eax, %edx
	testl	%r8d, %r8d
	jle	.L14
	movq	%rbx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$4, %rax
	cmpq	%rax, %rcx
	je	.L14
.L16:
	cmpl	(%rax), %edx
	jne	.L36
	addl	$1, %r10d
	movl	$1, %r11d
	testl	%r10d, %r10d
	jg	.L20
.L33:
	testb	%r11b, %r11b
	je	.L13
	movl	%r10d, 8(%rsp)
.L13:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$72, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	imulq	%r9, %rsi
	shrq	$35, %rsi
	cmpl	$9, %edi
	jle	.L33
	movl	%esi, %edi
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>

int search(int n,int k,int *hate){
  int i;
  for(i=0;i<k;i++){
    if(n==hate[i]){
      return 1;
    }
  }
  return 0;
}

int main(){
  int hate[9];
  int n,k,i,ok=0,tmp;
  
  scanf("%d %d",&n,&k);
  for(i=0;i<k;i++){
    scanf("%d",&hate[i]);
  }
  
  while(ok==0){
    ok=1;
    tmp=n;
    while(0<tmp){
      if(search(tmp%10,k,hate)==1){
        ok=0;
        n++;
        break;
      }
      tmp=tmp/10;
    }
  }
  
  printf("%d",n);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int search(int n,int k,int *hate){
  int i;
  for(i=0;i<k;i++){
    if(n==hate[i]){
      return 1;
    }
  }
  return 0;
}

int main(){
  int hate[9];
  int n,k,i,ok=0,tmp;
  
  scanf("%d %d",&n,&k);
  for(i=0;i<k;i++){
    scanf("%d",&hate[i]);
  }
  
  while(ok==0){
    ok=1;
    tmp=n;
    while(0<tmp){
      if(search(tmp%10,k,hate)==1){
        ok=0;
        n++;
        break;
      }
      tmp=tmp/10;
    }
  }
  
  printf("%d",n);
}```

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>

int search(int n,int k,int *hate){
  int i;
  for(i=0;i<k;i++){
    if(n==hate[i]){
      return 1;
    }
  }
  return 0;
}

int main(){
  int hate[9];
  int n,k,i,ok=0,tmp;
  
  scanf("%d %d",&n,&k);
  for(i=0;i<k;i++){
    scanf("%d",&hate[i]);
  }
  
  while(ok==0){
    ok=1;
    tmp=n;
    while(0<tmp){
      if(search(tmp%10,k,hate)==1){
        ok=0;
        n++;
        break;
      }
      tmp=tmp/10;
    }
  }
  
  printf("%d",n);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	search
	.type	search, @function
search:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	leaq	4(%rdx,%rax,4), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$4, %rdx
	cmpq	%rax, %rdx
	je	.L4
.L3:
	cmpl	%edi, (%rdx)
	jne	.L8
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	search, .-search
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L10
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L11
.L10:
	movl	8(%rsp), %r10d
	leal	-1(%r8), %eax
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leaq	20(%rsp,%rax,4), %rcx
	testl	%r10d, %r10d
	jle	.L33
.L20:
	movl	%r10d, %edi
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%edi, %esi
	movq	%rsi, %rdx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %eax
	movl	%edi, %edx
	addl	%eax, %eax
	subl	%eax, %edx
	testl	%r8d, %r8d
	jle	.L14
	movq	%rbx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$4, %rax
	cmpq	%rax, %rcx
	je	.L14
.L16:
	cmpl	(%rax), %edx
	jne	.L36
	addl	$1, %r10d
	movl	$1, %r11d
	testl	%r10d, %r10d
	jg	.L20
.L33:
	testb	%r11b, %r11b
	je	.L13
	movl	%r10d, 8(%rsp)
.L13:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$72, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	imulq	%r9, %rsi
	shrq	$35, %rsi
	cmpl	$9, %edi
	jle	.L33
	movl	%esi, %edi
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	search
	.type	search, @function
search:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	leaq	4(%rdx,%rax,4), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$4, %rdx
	cmpq	%rax, %rdx
	je	.L4
.L3:
	cmpl	%edi, (%rdx)
	jne	.L8
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	search, .-search
	.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:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L10
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L11
.L10:
	movl	8(%rsp), %r10d
	leal	-1(%r8), %eax
	xorl	%r11d, %r11d
	movl	$3435973837, %r9d
	leaq	20(%rsp,%rax,4), %rcx
	testl	%r10d, %r10d
	jle	.L33
.L20:
	movl	%r10d, %edi
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%edi, %esi
	movq	%rsi, %rdx
	imulq	%r9, %rdx
	shrq	$35, %rdx
	leal	(%rdx,%rdx,4), %eax
	movl	%edi, %edx
	addl	%eax, %eax
	subl	%eax, %edx
	testl	%r8d, %r8d
	jle	.L14
	movq	%rbx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$4, %rax
	cmpq	%rax, %rcx
	je	.L14
.L16:
	cmpl	(%rax), %edx
	jne	.L36
	addl	$1, %r10d
	movl	$1, %r11d
	testl	%r10d, %r10d
	jg	.L20
.L33:
	testb	%r11b, %r11b
	je	.L13
	movl	%r10d, 8(%rsp)
.L13:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$72, %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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	imulq	%r9, %rsi
	shrq	$35, %rsi
	cmpl	$9, %edi
	jle	.L33
	movl	%esi, %edi
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```