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 breakblocks(int a[], int N, int i, int x)
{
  int j=x;
  while(a[j-1]!=i && j<=N){j++;}
  return j;
}

int main()
{
  int N;
  scanf("%d",&N);
  int a[200001];
  for(int i=0;i<N;i++){
    scanf("%d",&a[i]);
  }
  
  int count=0,temp=1;
  
  for(int i=1;i<=N;i++)
  {
    temp = breakblocks(a,N,i,temp);
    if(temp>=N+1){
      if(i==1){count=-1; break;}
      if(i!=1){count=N-i+1; break;}
    }
    count = 0;
  }
  
  printf("%d",count);
  
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%ecx, %rax
	movq	%rdi, %r9
	cmpl	%edx, -4(%rdi,%rax,4)
	je	.L4
	cmpl	%esi, %ecx
	jg	.L4
	addl	$1, %ecx
	movslq	%ecx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	%edx, -4(%r9,%rax,4)
	movl	%eax, %r8d
	setne	%dil
	cmpl	%eax, %esi
	setge	%cl
	addq	$1, %rax
	testb	%cl, %dil
	jne	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ecx, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	breakblocks, .-breakblocks
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.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
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800080
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L15
	testl	%esi, %esi
	jle	.L14
	movl	$1, %edi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%r8d, %rax
	cmpl	%edi, 12(%rsp,%rax,4)
	je	.L22
	cmpl	%r8d, %esi
	leal	1(%r8), %eax
	setge	%dl
	cltq
	testb	%dl, %dl
	je	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%edi, -4(%rbx,%rax,4)
	movl	%eax, %r8d
	setne	%cl
	cmpl	%eax, %esi
	setge	%dl
	addq	$1, %rax
	testb	%dl, %cl
	jne	.L17
.L22:
	cmpl	%r8d, %esi
	jl	.L33
	addl	$1, %edi
	cmpl	%edi, %esi
	jge	.L16
.L14:
	xorl	%edx, %edx
.L19:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$800040, %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
.L33:
	.cfi_restore_state
	cmpl	$1, %edi
	je	.L25
	subl	%edi, %esi
	leal	1(%rsi), %edx
	jmp	.L19
.L25:
	orl	$-1, %edx
	jmp	.L19
.L34:
	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	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%ecx, %rax
	movq	%rdi, %r9
	cmpl	%edx, -4(%rdi,%rax,4)
	je	.L4
	cmpl	%esi, %ecx
	jg	.L4
	addl	$1, %ecx
	movslq	%ecx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	%edx, -4(%r9,%rax,4)
	movl	%eax, %r8d
	setne	%dil
	cmpl	%eax, %esi
	setge	%cl
	addq	$1, %rax
	testb	%cl, %dil
	jne	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ecx, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	breakblocks, .-breakblocks
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.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
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800080
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L15
	testl	%esi, %esi
	jle	.L14
	movl	$1, %edi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%r8d, %rax
	cmpl	%edi, 12(%rsp,%rax,4)
	je	.L22
	cmpl	%r8d, %esi
	leal	1(%r8), %eax
	setge	%dl
	cltq
	testb	%dl, %dl
	je	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%edi, -4(%rbx,%rax,4)
	movl	%eax, %r8d
	setne	%cl
	cmpl	%eax, %esi
	setge	%dl
	addq	$1, %rax
	testb	%dl, %cl
	jne	.L17
.L22:
	cmpl	%r8d, %esi
	jl	.L33
	addl	$1, %edi
	cmpl	%edi, %esi
	jge	.L16
.L14:
	xorl	%edx, %edx
.L19:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$800040, %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
.L33:
	.cfi_restore_state
	cmpl	$1, %edi
	je	.L25
	subl	%edi, %esi
	leal	1(%rsi), %edx
	jmp	.L19
.L25:
	orl	$-1, %edx
	jmp	.L19
.L34:
	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	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%ecx, %rax
	movq	%rdi, %r9
	cmpl	%edx, -4(%rdi,%rax,4)
	je	.L4
	cmpl	%esi, %ecx
	jg	.L4
	addl	$1, %ecx
	movslq	%ecx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	%edx, -4(%r9,%rax,4)
	movl	%eax, %r8d
	setne	%dil
	cmpl	%eax, %esi
	setge	%cl
	addq	$1, %rax
	testb	%cl, %dil
	jne	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ecx, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	breakblocks, .-breakblocks
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.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
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800080
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L15
	testl	%esi, %esi
	jle	.L14
	movl	$1, %edi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%r8d, %rax
	cmpl	%edi, 12(%rsp,%rax,4)
	je	.L22
	cmpl	%r8d, %esi
	leal	1(%r8), %eax
	setge	%dl
	cltq
	testb	%dl, %dl
	je	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%edi, -4(%rbx,%rax,4)
	movl	%eax, %r8d
	setne	%cl
	cmpl	%eax, %esi
	setge	%dl
	addq	$1, %rax
	testb	%dl, %cl
	jne	.L17
.L22:
	cmpl	%r8d, %esi
	jl	.L33
	addl	$1, %edi
	cmpl	%edi, %esi
	jge	.L16
.L14:
	xorl	%edx, %edx
.L19:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$800040, %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
.L33:
	.cfi_restore_state
	cmpl	$1, %edi
	je	.L25
	subl	%edi, %esi
	leal	1(%rsi), %edx
	jmp	.L19
.L25:
	orl	$-1, %edx
	jmp	.L19
.L34:
	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 breakblocks(int a[], int N, int i, int x)
{
  int j=x;
  while(a[j-1]!=i && j<=N){j++;}
  return j;
}

int main()
{
  int N;
  scanf("%d",&N);
  int a[200001];
  for(int i=0;i<N;i++){
    scanf("%d",&a[i]);
  }
  
  int count=0,temp=1;
  
  for(int i=1;i<=N;i++)
  {
    temp = breakblocks(a,N,i,temp);
    if(temp>=N+1){
      if(i==1){count=-1; break;}
      if(i!=1){count=N-i+1; break;}
    }
    count = 0;
  }
  
  printf("%d",count);
  
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int breakblocks(int a[], int N, int i, int x)
{
  int j=x;
  while(a[j-1]!=i && j<=N){j++;}
  return j;
}

int main()
{
  int N;
  scanf("%d",&N);
  int a[200001];
  for(int i=0;i<N;i++){
    scanf("%d",&a[i]);
  }
  
  int count=0,temp=1;
  
  for(int i=1;i<=N;i++)
  {
    temp = breakblocks(a,N,i,temp);
    if(temp>=N+1){
      if(i==1){count=-1; break;}
      if(i!=1){count=N-i+1; break;}
    }
    count = 0;
  }
  
  printf("%d",count);
  
}
```

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:

3
0 2 2
 10
3 1 4 1 5 9 2 6 3 3
 3
1 1 2
 3
1 1 3
 10
3 1 4 1 5 17 1 11 0 3
 10
3 1 9 1 20 0 2 1 -1 6
 1
001
 1
2
 3
-1 2 2
 10
3 1 4 1 5 9 2 6 4 3

-1 7 1 2 9 8 0 -1 -1 7
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 breakblocks(int a[], int N, int i, int x)
{
  int j=x;
  while(a[j-1]!=i && j<=N){j++;}
  return j;
}

int main()
{
  int N;
  scanf("%d",&N);
  int a[200001];
  for(int i=0;i<N;i++){
    scanf("%d",&a[i]);
  }
  
  int count=0,temp=1;
  
  for(int i=1;i<=N;i++)
  {
    temp = breakblocks(a,N,i,temp);
    if(temp>=N+1){
      if(i==1){count=-1; break;}
      if(i!=1){count=N-i+1; break;}
    }
    count = 0;
  }
  
  printf("%d",count);
  
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%ecx, %rax
	movq	%rdi, %r9
	cmpl	%edx, -4(%rdi,%rax,4)
	je	.L4
	cmpl	%esi, %ecx
	jg	.L4
	addl	$1, %ecx
	movslq	%ecx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	%edx, -4(%r9,%rax,4)
	movl	%eax, %r8d
	setne	%dil
	cmpl	%eax, %esi
	setge	%cl
	addq	$1, %rax
	testb	%cl, %dil
	jne	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ecx, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	breakblocks, .-breakblocks
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.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
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800080
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L15
	testl	%esi, %esi
	jle	.L14
	movl	$1, %edi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%r8d, %rax
	cmpl	%edi, 12(%rsp,%rax,4)
	je	.L22
	cmpl	%r8d, %esi
	leal	1(%r8), %eax
	setge	%dl
	cltq
	testb	%dl, %dl
	je	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%edi, -4(%rbx,%rax,4)
	movl	%eax, %r8d
	setne	%cl
	cmpl	%eax, %esi
	setge	%dl
	addq	$1, %rax
	testb	%dl, %cl
	jne	.L17
.L22:
	cmpl	%r8d, %esi
	jl	.L33
	addl	$1, %edi
	cmpl	%edi, %esi
	jge	.L16
.L14:
	xorl	%edx, %edx
.L19:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$800040, %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
.L33:
	.cfi_restore_state
	cmpl	$1, %edi
	je	.L25
	subl	%edi, %esi
	leal	1(%rsi), %edx
	jmp	.L19
.L25:
	orl	$-1, %edx
	jmp	.L19
.L34:
	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	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%ecx, %rax
	movq	%rdi, %r9
	cmpl	%edx, -4(%rdi,%rax,4)
	je	.L4
	cmpl	%esi, %ecx
	jg	.L4
	addl	$1, %ecx
	movslq	%ecx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	%edx, -4(%r9,%rax,4)
	movl	%eax, %r8d
	setne	%dil
	cmpl	%eax, %esi
	setge	%cl
	addq	$1, %rax
	testb	%cl, %dil
	jne	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ecx, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	breakblocks, .-breakblocks
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.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
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800080
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L14
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%ebp, %esi
	jg	.L15
	testl	%esi, %esi
	jle	.L14
	movl	$1, %edi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%r8d, %rax
	cmpl	%edi, 12(%rsp,%rax,4)
	je	.L22
	cmpl	%r8d, %esi
	leal	1(%r8), %eax
	setge	%dl
	cltq
	testb	%dl, %dl
	je	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%edi, -4(%rbx,%rax,4)
	movl	%eax, %r8d
	setne	%cl
	cmpl	%eax, %esi
	setge	%dl
	addq	$1, %rax
	testb	%dl, %cl
	jne	.L17
.L22:
	cmpl	%r8d, %esi
	jl	.L33
	addl	$1, %edi
	cmpl	%edi, %esi
	jge	.L16
.L14:
	xorl	%edx, %edx
.L19:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$800040, %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
.L33:
	.cfi_restore_state
	cmpl	$1, %edi
	je	.L25
	subl	%edi, %esi
	leal	1(%rsi), %edx
	jmp	.L19
.L25:
	orl	$-1, %edx
	jmp	.L19
.L34:
	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:
```