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 main(void){
  int n , m;
  scanf("%d %d",&n ,&m);
  
  int a[m] , b[m];
  for(int i = 0;i < m;i ++){
    scanf("%d %d",&a[i] ,&b[i]);
  }

  int temp , flag = 1 , flag2 = 1;
  int h = m;
  while(flag == 1){
    h /= 1.3;
    if(h < 1){
      h = 1;
      flag = 0;
    }
    for(int i = 0;i + h < m;i ++){
        if(b[i] > b[i+h]){
          flag = 1;
          temp = b[i];
          b[i] = b[i+h];
          b[i+h] = temp;
          temp = a[i];
          a[i] = a[i+h];
          a[i+h] = temp; 
      }
    }
  }

  int count = 0;
  int hasi[100000] = {0};

  for(int i = 0;i < m;i ++){
    flag = 1;
    int x = a[i];
    while(flag == 1 && x < b[i]){
      if(hasi[x] != 0){
        flag = 0;
      }
      x ++;
    }
    if(flag == 1){
      hasi[b[i]-1] = 1;
      count ++;
    }  
  }

  printf("%d\n",count);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2824, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400136(%rbp), %rdx
	leaq	-400140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400136(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400096(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400160(%rbp)
	movq	$0, -400152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400176(%rbp)
	movq	$0, -400168(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400088(%rbp)
	movl	-400136(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400072(%rbp)
	movl	$0, -400132(%rbp)
	jmp	.L8
.L9:
	movl	-400132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400072(%rbp), %rax
	addq	%rax, %rdx
	movl	-400132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-400088(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400132(%rbp)
.L8:
	movl	-400136(%rbp), %eax
	cmpl	%eax, -400132(%rbp)
	jl	.L9
	movl	$1, -400128(%rbp)
	movl	$1, -400104(%rbp)
	movl	-400136(%rbp), %eax
	movl	%eax, -400124(%rbp)
	jmp	.L10
.L15:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-400124(%rbp), %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -400124(%rbp)
	cmpl	$0, -400124(%rbp)
	jg	.L11
	movl	$1, -400124(%rbp)
	movl	$0, -400128(%rbp)
.L11:
	movl	$0, -400120(%rbp)
	jmp	.L12
.L14:
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L13
	movl	$1, -400128(%rbp)
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400100(%rbp)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	-400100(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movq	-400088(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400100(%rbp)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400088(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-400088(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400088(%rbp), %rax
	movslq	%edx, %rdx
	movl	-400100(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L13:
	addl	$1, -400120(%rbp)
.L12:
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movl	-400136(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L14
.L10:
	cmpl	$1, -400128(%rbp)
	je	.L15
	movl	$0, -400116(%rbp)
	leaq	-400064(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400112(%rbp)
	jmp	.L16
.L22:
	movl	$1, -400128(%rbp)
	movq	-400088(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400108(%rbp)
	jmp	.L17
.L20:
	movl	-400108(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -400128(%rbp)
.L18:
	addl	$1, -400108(%rbp)
.L17:
	cmpl	$1, -400128(%rbp)
	jne	.L19
	movq	-400072(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -400108(%rbp)
	jl	.L20
.L19:
	cmpl	$1, -400128(%rbp)
	jne	.L21
	movq	-400072(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	$1, %eax
	cltq
	movl	$1, -400064(%rbp,%rax,4)
	addl	$1, -400116(%rbp)
.L21:
	addl	$1, -400112(%rbp)
.L16:
	movl	-400136(%rbp), %eax
	cmpl	%eax, -400112(%rbp)
	jl	.L22
	movl	-400116(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	-858993459
	.long	1073007820
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2744, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-400068(%rbp), %rdx
	leaq	-400072(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-400068(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r13
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L40:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L40
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L41
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L41:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L42
.L7:
	movq	%rsp, %rbx
	testl	%r13d, %r13d
	jle	.L8
	movq	%r12, %rcx
	movq	%rbx, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rcx, -400088(%rbp)
	addl	$1, %r14d
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movq	-400088(%rbp), %rcx
	movslq	-400068(%rbp), %r13
	addq	$4, %rcx
	cmpl	%r14d, %r13d
	jg	.L9
.L8:
	movsd	.LC1(%rip), %xmm1
	movl	%r13d, %r9d
	.p2align 4,,10
	.p2align 3
.L16:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%r9d, %xmm0
	divsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %r9d
	testl	%r9d, %r9d
	jle	.L10
	movl	$1, %r8d
	cmpl	%r13d, %r9d
	jge	.L16
.L11:
	movslq	%r9d, %rax
	movq	%rax, %rsi
	negq	%rsi
	salq	$2, %rsi
	leaq	(%rbx,%rsi), %rdi
	addq	%r12, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rdi,%rax,4), %edx
	movl	(%rbx,%rax,4), %ecx
	cmpl	%ecx, %edx
	jle	.L14
	movl	%ecx, (%rdi,%rax,4)
	movl	(%r12,%rax,4), %ecx
	movl	$1, %r8d
	movl	%edx, (%rbx,%rax,4)
	movl	(%rsi,%rax,4), %edx
	movl	%ecx, (%rsi,%rax,4)
	movl	%edx, (%r12,%rax,4)
.L14:
	addq	$1, %rax
	cmpl	%eax, %r13d
	jg	.L15
	cmpl	$1, %r8d
	je	.L16
.L13:
	leaq	-400064(%rbp), %r8
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r8, %rdi
	call	memset@PLT
	movq	%rax, %r8
	testl	%r13d, %r13d
	jle	.L24
	xorl	%esi, %esi
	xorl	%r10d, %r10d
	leaq	-400060(%rbp), %r9
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rsi
	cmpq	%r13, %rsi
	je	.L17
.L21:
	movl	(%rbx,%rsi,4), %edx
	movl	(%r12,%rsi,4), %edi
	leal	-1(%rdx), %ecx
	cmpl	%edx, %edi
	jge	.L18
	leal	-1(%rdx), %ecx
	movslq	%edi, %r11
	movl	%ecx, %edx
	leaq	(%r8,%r11,4), %rax
	subl	%edi, %edx
	addq	%r11, %rdx
	leaq	(%r9,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	(%rax), %edi
	testl	%edi, %edi
	jne	.L19
	addq	$4, %rax
	cmpq	%rax, %rdx
	jne	.L20
.L18:
	movslq	%ecx, %rdx
	addq	$1, %rsi
	addl	$1, %r10d
	movl	$1, -400064(%rbp,%rdx,4)
	cmpq	%r13, %rsi
	jne	.L21
.L17:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L43
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmpl	$1, %r13d
	jle	.L13
	movl	$1, %r9d
	xorl	%r8d, %r8d
	jmp	.L11
.L24:
	xorl	%r10d, %r10d
	jmp	.L17
.L42:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-858993459
	.long	1073007820
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2744, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-400068(%rbp), %rdx
	leaq	-400072(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-400068(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r13
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L40:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L40
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L41
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L41:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L42
.L7:
	movq	%rsp, %rbx
	testl	%r13d, %r13d
	jle	.L8
	movq	%r12, %rcx
	movq	%rbx, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rcx, -400088(%rbp)
	addl	$1, %r14d
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movq	-400088(%rbp), %rcx
	movslq	-400068(%rbp), %r13
	addq	$4, %rcx
	cmpl	%r14d, %r13d
	jg	.L9
.L8:
	movsd	.LC1(%rip), %xmm1
	movl	%r13d, %r9d
	.p2align 4,,10
	.p2align 3
.L16:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%r9d, %xmm0
	divsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %r9d
	testl	%r9d, %r9d
	jle	.L10
	movl	$1, %r8d
	cmpl	%r13d, %r9d
	jge	.L16
.L11:
	movslq	%r9d, %rax
	movq	%rax, %rsi
	negq	%rsi
	salq	$2, %rsi
	leaq	(%rbx,%rsi), %rdi
	addq	%r12, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rdi,%rax,4), %edx
	movl	(%rbx,%rax,4), %ecx
	cmpl	%ecx, %edx
	jle	.L14
	movl	%ecx, (%rdi,%rax,4)
	movl	(%r12,%rax,4), %ecx
	movl	$1, %r8d
	movl	%edx, (%rbx,%rax,4)
	movl	(%rsi,%rax,4), %edx
	movl	%ecx, (%rsi,%rax,4)
	movl	%edx, (%r12,%rax,4)
.L14:
	addq	$1, %rax
	cmpl	%eax, %r13d
	jg	.L15
	cmpl	$1, %r8d
	je	.L16
.L13:
	leaq	-400064(%rbp), %r8
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%r8, %rdi
	call	memset@PLT
	movq	%rax, %r8
	testl	%r13d, %r13d
	jle	.L24
	xorl	%esi, %esi
	xorl	%r10d, %r10d
	leaq	-400060(%rbp), %r9
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	addq	$1, %rsi
	cmpq	%r13, %rsi
	je	.L17
.L21:
	movl	(%rbx,%rsi,4), %edx
	movl	(%r12,%rsi,4), %edi
	leal	-1(%rdx), %ecx
	cmpl	%edx, %edi
	jge	.L18
	leal	-1(%rdx), %ecx
	movslq	%edi, %r11
	movl	%ecx, %edx
	leaq	(%r8,%r11,4), %rax
	subl	%edi, %edx
	addq	%r11, %rdx
	leaq	(%r9,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	(%rax), %edi
	testl	%edi, %edi
	jne	.L19
	addq	$4, %rax
	cmpq	%rax, %rdx
	jne	.L20
.L18:
	movslq	%ecx, %rdx
	addq	$1, %rsi
	addl	$1, %r10d
	movl	$1, -400064(%rbp,%rdx,4)
	cmpq	%r13, %rsi
	jne	.L21
.L17:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L43
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmpl	$1, %r13d
	jle	.L13
	movl	$1, %r9d
	xorl	%r8d, %r8d
	jmp	.L11
.L24:
	xorl	%r10d, %r10d
	jmp	.L17
.L42:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-858993459
	.long	1073007820
	.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 main(void){
  int n , m;
  scanf("%d %d",&n ,&m);
  
  int a[m] , b[m];
  for(int i = 0;i < m;i ++){
    scanf("%d %d",&a[i] ,&b[i]);
  }

  int temp , flag = 1 , flag2 = 1;
  int h = m;
  while(flag == 1){
    h /= 1.3;
    if(h < 1){
      h = 1;
      flag = 0;
    }
    for(int i = 0;i + h < m;i ++){
        if(b[i] > b[i+h]){
          flag = 1;
          temp = b[i];
          b[i] = b[i+h];
          b[i+h] = temp;
          temp = a[i];
          a[i] = a[i+h];
          a[i+h] = temp; 
      }
    }
  }

  int count = 0;
  int hasi[100000] = {0};

  for(int i = 0;i < m;i ++){
    flag = 1;
    int x = a[i];
    while(flag == 1 && x < b[i]){
      if(hasi[x] != 0){
        flag = 0;
      }
      x ++;
    }
    if(flag == 1){
      hasi[b[i]-1] = 1;
      count ++;
    }  
  }

  printf("%d\n",count);

  return 0;
}
5 2
2 4
2 5
 9 5
1 8
2 7
3 5
4 6
7 5
 5 10
1 2
1 4
1 4
1 5
2 3
2 4
2 5
3 4
3 5
4 5
 5 10
1 2
1 3
1 4
1 5
2 3
2 4
2 5
3 5
3 5
4 5
 5 2
1 5
2 5
 5 1
1 5
2 5
 5 1
0 5
2 5
 5 2
1 4
2 8
 9 5
2 8
2 7
3 5
4 6
7 5
 5 2
0 5
2 5

1
 2
 4
 3
 1
 1
 1
 1
 2
 1

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 main(void){
  int n , m;
  scanf("%d %d",&n ,&m);
  
  int a[m] , b[m];
  for(int i = 0;i < m;i ++){
    scanf("%d %d",&a[i] ,&b[i]);
  }

  int temp , flag = 1 , flag2 = 1;
  int h = m;
  while(flag == 1){
    h /= 1.3;
    if(h < 1){
      h = 1;
      flag = 0;
    }
    for(int i = 0;i + h < m;i ++){
        if(b[i] > b[i+h]){
          flag = 1;
          temp = b[i];
          b[i] = b[i+h];
          b[i+h] = temp;
          temp = a[i];
          a[i] = a[i+h];
          a[i+h] = temp; 
      }
    }
  }

  int count = 0;
  int hasi[100000] = {0};

  for(int i = 0;i < m;i ++){
    flag = 1;
    int x = a[i];
    while(flag == 1 && x < b[i]){
      if(hasi[x] != 0){
        flag = 0;
      }
      x ++;
    }
    if(flag == 1){
      hasi[b[i]-1] = 1;
      count ++;
    }  
  }

  printf("%d\n",count);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2824, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400136(%rbp), %rdx
	leaq	-400140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400136(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400096(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400160(%rbp)
	movq	$0, -400152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400176(%rbp)
	movq	$0, -400168(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400088(%rbp)
	movl	-400136(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400072(%rbp)
	movl	$0, -400132(%rbp)
	jmp	.L8
.L9:
	movl	-400132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400072(%rbp), %rax
	addq	%rax, %rdx
	movl	-400132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-400088(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400132(%rbp)
.L8:
	movl	-400136(%rbp), %eax
	cmpl	%eax, -400132(%rbp)
	jl	.L9
	movl	$1, -400128(%rbp)
	movl	$1, -400104(%rbp)
	movl	-400136(%rbp), %eax
	movl	%eax, -400124(%rbp)
	jmp	.L10
.L15:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-400124(%rbp), %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -400124(%rbp)
	cmpl	$0, -400124(%rbp)
	jg	.L11
	movl	$1, -400124(%rbp)
	movl	$0, -400128(%rbp)
.L11:
	movl	$0, -400120(%rbp)
	jmp	.L12
.L14:
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L13
	movl	$1, -400128(%rbp)
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400100(%rbp)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	-400100(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movq	-400088(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400100(%rbp)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400088(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-400088(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400088(%rbp), %rax
	movslq	%edx, %rdx
	movl	-400100(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L13:
	addl	$1, -400120(%rbp)
.L12:
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movl	-400136(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L14
.L10:
	cmpl	$1, -400128(%rbp)
	je	.L15
	movl	$0, -400116(%rbp)
	leaq	-400064(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400112(%rbp)
	jmp	.L16
.L22:
	movl	$1, -400128(%rbp)
	movq	-400088(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400108(%rbp)
	jmp	.L17
.L20:
	movl	-400108(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -400128(%rbp)
.L18:
	addl	$1, -400108(%rbp)
.L17:
	cmpl	$1, -400128(%rbp)
	jne	.L19
	movq	-400072(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -400108(%rbp)
	jl	.L20
.L19:
	cmpl	$1, -400128(%rbp)
	jne	.L21
	movq	-400072(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	$1, %eax
	cltq
	movl	$1, -400064(%rbp,%rax,4)
	addl	$1, -400116(%rbp)
.L21:
	addl	$1, -400112(%rbp)
.L16:
	movl	-400136(%rbp), %eax
	cmpl	%eax, -400112(%rbp)
	jl	.L22
	movl	-400116(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	-858993459
	.long	1073007820
	.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
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2824, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400136(%rbp), %rdx
	leaq	-400140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400136(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400096(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400160(%rbp)
	movq	$0, -400152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400176(%rbp)
	movq	$0, -400168(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400088(%rbp)
	movl	-400136(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400072(%rbp)
	movl	$0, -400132(%rbp)
	jmp	.L8
.L9:
	movl	-400132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400072(%rbp), %rax
	addq	%rax, %rdx
	movl	-400132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-400088(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400132(%rbp)
.L8:
	movl	-400136(%rbp), %eax
	cmpl	%eax, -400132(%rbp)
	jl	.L9
	movl	$1, -400128(%rbp)
	movl	$1, -400104(%rbp)
	movl	-400136(%rbp), %eax
	movl	%eax, -400124(%rbp)
	jmp	.L10
.L15:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-400124(%rbp), %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -400124(%rbp)
	cmpl	$0, -400124(%rbp)
	jg	.L11
	movl	$1, -400124(%rbp)
	movl	$0, -400128(%rbp)
.L11:
	movl	$0, -400120(%rbp)
	jmp	.L12
.L14:
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L13
	movl	$1, -400128(%rbp)
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400100(%rbp)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-400072(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400072(%rbp), %rax
	movslq	%edx, %rdx
	movl	-400100(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movq	-400088(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400100(%rbp)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400088(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-400088(%rbp), %rax
	movl	-400120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movq	-400088(%rbp), %rax
	movslq	%edx, %rdx
	movl	-400100(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L13:
	addl	$1, -400120(%rbp)
.L12:
	movl	-400120(%rbp), %edx
	movl	-400124(%rbp), %eax
	addl	%eax, %edx
	movl	-400136(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L14
.L10:
	cmpl	$1, -400128(%rbp)
	je	.L15
	movl	$0, -400116(%rbp)
	leaq	-400064(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400112(%rbp)
	jmp	.L16
.L22:
	movl	$1, -400128(%rbp)
	movq	-400088(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -400108(%rbp)
	jmp	.L17
.L20:
	movl	-400108(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -400128(%rbp)
.L18:
	addl	$1, -400108(%rbp)
.L17:
	cmpl	$1, -400128(%rbp)
	jne	.L19
	movq	-400072(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -400108(%rbp)
	jl	.L20
.L19:
	cmpl	$1, -400128(%rbp)
	jne	.L21
	movq	-400072(%rbp), %rax
	movl	-400112(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	$1, %eax
	cltq
	movl	$1, -400064(%rbp,%rax,4)
	addl	$1, -400116(%rbp)
.L21:
	addl	$1, -400112(%rbp)
.L16:
	movl	-400136(%rbp), %eax
	cmpl	%eax, -400112(%rbp)
	jl	.L22
	movl	-400116(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	-858993459
	.long	1073007820
	.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:
