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 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);
  
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L4:
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -32(%rbp)
	je	.L3
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L4
.L3:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	breakblocks, .-breakblocks
	.section	.rodata
.LC0:
	.string	"%d"
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800032(%rbp)
	jmp	.L7
.L8:
	leaq	-800016(%rbp), %rdx
	movl	-800032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800032(%rbp)
.L7:
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800032(%rbp)
	jl	.L8
	movl	$0, -800028(%rbp)
	movl	$1, -800024(%rbp)
	movl	$1, -800020(%rbp)
	jmp	.L9
.L13:
	movl	-800036(%rbp), %esi
	movl	-800024(%rbp), %ecx
	movl	-800020(%rbp), %edx
	leaq	-800016(%rbp), %rax
	movq	%rax, %rdi
	call	breakblocks
	movl	%eax, -800024(%rbp)
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800024(%rbp)
	jle	.L10
	cmpl	$1, -800020(%rbp)
	jne	.L11
	movl	$-1, -800028(%rbp)
	jmp	.L12
.L11:
	cmpl	$1, -800020(%rbp)
	je	.L10
	movl	-800036(%rbp), %eax
	subl	-800020(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -800028(%rbp)
	jmp	.L12
.L10:
	movl	$0, -800028(%rbp)
	addl	$1, -800020(%rbp)
.L9:
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jle	.L13
.L12:
	movl	-800028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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
	.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
	.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:

#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);
  
}

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 unoptimized 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);
  
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L4:
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -32(%rbp)
	je	.L3
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L4
.L3:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	breakblocks, .-breakblocks
	.section	.rodata
.LC0:
	.string	"%d"
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800032(%rbp)
	jmp	.L7
.L8:
	leaq	-800016(%rbp), %rdx
	movl	-800032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800032(%rbp)
.L7:
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800032(%rbp)
	jl	.L8
	movl	$0, -800028(%rbp)
	movl	$1, -800024(%rbp)
	movl	$1, -800020(%rbp)
	jmp	.L9
.L13:
	movl	-800036(%rbp), %esi
	movl	-800024(%rbp), %ecx
	movl	-800020(%rbp), %edx
	leaq	-800016(%rbp), %rax
	movq	%rax, %rdi
	call	breakblocks
	movl	%eax, -800024(%rbp)
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800024(%rbp)
	jle	.L10
	cmpl	$1, -800020(%rbp)
	jne	.L11
	movl	$-1, -800028(%rbp)
	jmp	.L12
.L11:
	cmpl	$1, -800020(%rbp)
	je	.L10
	movl	-800036(%rbp), %eax
	subl	-800020(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -800028(%rbp)
	jmp	.L12
.L10:
	movl	$0, -800028(%rbp)
	addl	$1, -800020(%rbp)
.L9:
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jle	.L13
.L12:
	movl	-800028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	breakblocks
	.type	breakblocks, @function
breakblocks:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L4:
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -32(%rbp)
	je	.L3
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L4
.L3:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	breakblocks, .-breakblocks
	.section	.rodata
.LC0:
	.string	"%d"
	.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
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800032(%rbp)
	jmp	.L7
.L8:
	leaq	-800016(%rbp), %rdx
	movl	-800032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800032(%rbp)
.L7:
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800032(%rbp)
	jl	.L8
	movl	$0, -800028(%rbp)
	movl	$1, -800024(%rbp)
	movl	$1, -800020(%rbp)
	jmp	.L9
.L13:
	movl	-800036(%rbp), %esi
	movl	-800024(%rbp), %ecx
	movl	-800020(%rbp), %edx
	leaq	-800016(%rbp), %rax
	movq	%rax, %rdi
	call	breakblocks
	movl	%eax, -800024(%rbp)
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800024(%rbp)
	jle	.L10
	cmpl	$1, -800020(%rbp)
	jne	.L11
	movl	$-1, -800028(%rbp)
	jmp	.L12
.L11:
	cmpl	$1, -800020(%rbp)
	je	.L10
	movl	-800036(%rbp), %eax
	subl	-800020(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -800028(%rbp)
	jmp	.L12
.L10:
	movl	$0, -800028(%rbp)
	addl	$1, -800020(%rbp)
.L9:
	movl	-800036(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jle	.L13
.L12:
	movl	-800028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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:
