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 main(){
  int A[5000], B[5000], i, j, a, b, ans = 0;
  scanf("%d%d", &a, &b);
  for(i = 0;i < a;i++){
    scanf("%d", A + i);
  }
  for(i = 0;i < b;i++){
    scanf("%d", B + i);
  }
  for(i = 0;i < b;i++){
    int k = 0;
    for(j = 0;j < a;j++){
      if(i + k >= b)break;
      if(B[i + k] == A[j])k++;
    }
    if(k > ans){
      ans = k;
    }
  }
  printf("%d\n", ans);
  return 0;
}```

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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36896
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3168, %rsp
	.cfi_def_cfa_offset 40064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	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
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	20016(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jg	.L5
	testl	%edi, %edi
	jle	.L4
	movl	8(%rsp), %r11d
	leaq	16(%rsp), %r10
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	leal	-1(%r11), %eax
	leaq	(%r10,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r10, %rdx
	movl	%esi, %eax
	xorl	%ecx, %ecx
	testl	%r11d, %r11d
	jg	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	leal	(%rcx,%rsi), %eax
	addq	$4, %rdx
	cmpl	%eax, %edi
	jle	.L7
.L11:
	cltq
	movl	(%rdx), %ebx
	cmpl	%ebx, 20016(%rsp,%rax,4)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %ecx
	cmpq	%rdx, %r8
	jne	.L9
.L7:
	cmpl	%ecx, %r9d
	cmovl	%ecx, %r9d
	addl	$1, %esi
	cmpl	%esi, %edi
	jne	.L6
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$40032, %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
.L4:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L10
.L19:
	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"
.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36896
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3168, %rsp
	.cfi_def_cfa_offset 40064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	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
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	20016(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jg	.L5
	testl	%edi, %edi
	jle	.L4
	movl	8(%rsp), %r11d
	leaq	16(%rsp), %r10
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	leal	-1(%r11), %eax
	leaq	(%r10,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r10, %rdx
	movl	%esi, %eax
	xorl	%ecx, %ecx
	testl	%r11d, %r11d
	jg	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	leal	(%rcx,%rsi), %eax
	addq	$4, %rdx
	cmpl	%eax, %edi
	jle	.L7
.L11:
	cltq
	movl	(%rdx), %ebx
	cmpl	%ebx, 20016(%rsp,%rax,4)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %ecx
	cmpq	%rdx, %r8
	jne	.L9
.L7:
	cmpl	%ecx, %r9d
	cmovl	%ecx, %r9d
	addl	$1, %esi
	cmpl	%esi, %edi
	jne	.L6
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$40032, %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
.L4:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L10
.L19:
	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"
.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36896
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3168, %rsp
	.cfi_def_cfa_offset 40064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	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
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	20016(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jg	.L5
	testl	%edi, %edi
	jle	.L4
	movl	8(%rsp), %r11d
	leaq	16(%rsp), %r10
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	leal	-1(%r11), %eax
	leaq	(%r10,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r10, %rdx
	movl	%esi, %eax
	xorl	%ecx, %ecx
	testl	%r11d, %r11d
	jg	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	leal	(%rcx,%rsi), %eax
	addq	$4, %rdx
	cmpl	%eax, %edi
	jle	.L7
.L11:
	cltq
	movl	(%rdx), %ebx
	cmpl	%ebx, 20016(%rsp,%rax,4)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %ecx
	cmpq	%rdx, %r8
	jne	.L9
.L7:
	cmpl	%ecx, %r9d
	cmovl	%ecx, %r9d
	addl	$1, %esi
	cmpl	%esi, %edi
	jne	.L6
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$40032, %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
.L4:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L10
.L19:
	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>

int main(){
  int A[5000], B[5000], i, j, a, b, ans = 0;
  scanf("%d%d", &a, &b);
  for(i = 0;i < a;i++){
    scanf("%d", A + i);
  }
  for(i = 0;i < b;i++){
    scanf("%d", B + i);
  }
  for(i = 0;i < b;i++){
    int k = 0;
    for(j = 0;j < a;j++){
      if(i + k >= b)break;
      if(B[i + k] == A[j])k++;
    }
    if(k > ans){
      ans = k;
    }
  }
  printf("%d\n", ans);
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int main(){
  int A[5000], B[5000], i, j, a, b, ans = 0;
  scanf("%d%d", &a, &b);
  for(i = 0;i < a;i++){
    scanf("%d", A + i);
  }
  for(i = 0;i < b;i++){
    scanf("%d", B + i);
  }
  for(i = 0;i < b;i++){
    int k = 0;
    for(j = 0;j < a;j++){
      if(i + k >= b)break;
      if(B[i + k] == A[j])k++;
    }
    if(k > ans){
      ans = k;
    }
  }
  printf("%d\n", ans);
  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:

5 4
1 2 3 4 5
3 1 4 1

2

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 main(){
  int A[5000], B[5000], i, j, a, b, ans = 0;
  scanf("%d%d", &a, &b);
  for(i = 0;i < a;i++){
    scanf("%d", A + i);
  }
  for(i = 0;i < b;i++){
    scanf("%d", B + i);
  }
  for(i = 0;i < b;i++){
    int k = 0;
    for(j = 0;j < a;j++){
      if(i + k >= b)break;
      if(B[i + k] == A[j])k++;
    }
    if(k > ans){
      ans = k;
    }
  }
  printf("%d\n", ans);
  return 0;
}```

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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36896
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3168, %rsp
	.cfi_def_cfa_offset 40064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	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
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	20016(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jg	.L5
	testl	%edi, %edi
	jle	.L4
	movl	8(%rsp), %r11d
	leaq	16(%rsp), %r10
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	leal	-1(%r11), %eax
	leaq	(%r10,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r10, %rdx
	movl	%esi, %eax
	xorl	%ecx, %ecx
	testl	%r11d, %r11d
	jg	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	leal	(%rcx,%rsi), %eax
	addq	$4, %rdx
	cmpl	%eax, %edi
	jle	.L7
.L11:
	cltq
	movl	(%rdx), %ebx
	cmpl	%ebx, 20016(%rsp,%rax,4)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %ecx
	cmpq	%rdx, %r8
	jne	.L9
.L7:
	cmpl	%ecx, %r9d
	cmovl	%ecx, %r9d
	addl	$1, %esi
	cmpl	%esi, %edi
	jne	.L6
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$40032, %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
.L4:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L10
.L19:
	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"
.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36896
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3168, %rsp
	.cfi_def_cfa_offset 40064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	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
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	20016(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jg	.L5
	testl	%edi, %edi
	jle	.L4
	movl	8(%rsp), %r11d
	leaq	16(%rsp), %r10
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	leal	-1(%r11), %eax
	leaq	(%r10,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r10, %rdx
	movl	%esi, %eax
	xorl	%ecx, %ecx
	testl	%r11d, %r11d
	jg	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	leal	(%rcx,%rsi), %eax
	addq	$4, %rdx
	cmpl	%eax, %edi
	jle	.L7
.L11:
	cltq
	movl	(%rdx), %ebx
	cmpl	%ebx, 20016(%rsp,%rax,4)
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %ecx
	cmpq	%rdx, %r8
	jne	.L9
.L7:
	cmpl	%ecx, %r9d
	cmovl	%ecx, %r9d
	addl	$1, %esi
	cmpl	%esi, %edi
	jne	.L6
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$40032, %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
.L4:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L10
.L19:
	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:
```