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>
#include<string.h>

#define MAX 100000

struct num_t {
  int l;
  int r;
};

int main() {
  int q, i, j;
  struct num_t num[MAX];
  char prime[MAX + 1];
  char neer[MAX + 1];
  int count[MAX + 1];
  
  
  scanf("%d", &q);
  for (i = 0; i < q; ++ i) {
    scanf("%d %d", &(num[i].l), &(num[i].r));
  }

  memset(prime, 1, MAX + 1);
  prime[1] = 0;
  for (i = 2; i <= MAX; ++ i) {
    if (prime[i]) {
      for (j = i * 2; j <= MAX; j += i) {
        prime[j] = 0;
      }
    }
  }
  
  memset(neer, 0, MAX + 1);
  for (i = 1; i <= MAX; i += 2) {
    if (prime[i]) {
      j = (i + 1) >> 1;
      if (prime[j]) {
        neer[i] = 1;
      }
    }
  }
  
  count[0] = 0;
  for (i = 0; i < MAX; ++ i) {
    count[i + 1] = count[i] + (int)neer[i + 1];
  }
  
  for (i = 0; i < q; ++ i) {
    printf("%d\n", count[num[i].r] - count[num[i].l - 1]);
  }
  fflush(stdout);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	leaq	-1396736(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1400060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1400056(%rbp)
	jmp	.L2
.L3:
	leaq	-1000032(%rbp), %rdx
	movl	-1400056(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-1000032(%rbp), %rcx
	movl	-1400056(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1400056(%rbp)
.L2:
	movl	-1400060(%rbp), %eax
	cmpl	%eax, -1400056(%rbp)
	jl	.L3
	leaq	-200032(%rbp), %rax
	movl	$100001, %edx
	movl	$1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movb	$0, -200031(%rbp)
	movl	$2, -1400056(%rbp)
	jmp	.L4
.L8:
	movl	-1400056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L5
	movl	-1400056(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -1400052(%rbp)
	jmp	.L6
.L7:
	movl	-1400052(%rbp), %eax
	cltq
	movb	$0, -200032(%rbp,%rax)
	movl	-1400056(%rbp), %eax
	addl	%eax, -1400052(%rbp)
.L6:
	cmpl	$100000, -1400052(%rbp)
	jle	.L7
.L5:
	addl	$1, -1400056(%rbp)
.L4:
	cmpl	$100000, -1400056(%rbp)
	jle	.L8
	leaq	-100016(%rbp), %rax
	movl	$100001, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -1400056(%rbp)
	jmp	.L9
.L11:
	movl	-1400056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L10
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	sarl	%eax
	movl	%eax, -1400052(%rbp)
	movl	-1400052(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L10
	movl	-1400056(%rbp), %eax
	cltq
	movb	$1, -100016(%rbp,%rax)
.L10:
	addl	$2, -1400056(%rbp)
.L9:
	cmpl	$100000, -1400056(%rbp)
	jle	.L11
	movl	$0, -1400048(%rbp)
	movl	$0, -1400056(%rbp)
	jmp	.L12
.L13:
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %ecx
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %edx
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -1400048(%rbp,%rax,4)
	addl	$1, -1400056(%rbp)
.L12:
	cmpl	$99999, -1400056(%rbp)
	jle	.L13
	movl	$0, -1400056(%rbp)
	jmp	.L14
.L15:
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1000028(%rbp,%rax,8), %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %edx
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,8), %eax
	subl	$1, %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1400056(%rbp)
.L14:
	movl	-1400060(%rbp), %eax
	cmpl	%eax, -1400056(%rbp)
	jl	.L15
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-1396736(%rsp), %r11
	.cfi_def_cfa 11, 1396776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3336, %rsp
	.cfi_def_cfa_offset 1400112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1400056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	400032(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, %ebp
	jg	.L3
.L2:
	leaq	1200032(%rsp), %rbx
	movl	$100001, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movl	$4, %ecx
	movl	$2, %edx
	movb	$0, 1200033(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$100001, %rdx
	je	.L27
.L5:
	cmpb	$0, (%rbx,%rdx)
	je	.L7
	cmpq	$100000, %rcx
	ja	.L7
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movb	$0, (%rbx,%rax)
	addq	%rdx, %rax
	cmpl	$100000, %eax
	jle	.L8
	jmp	.L7
.L27:
	leaq	1300048(%rsp), %rdi
	movl	$100001, %edx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rdi
	movl	$3, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$0, (%rbx,%rax)
	je	.L9
	leal	1(%rax), %edx
	sarl	%edx
	movslq	%edx, %rdx
	cmpb	$0, 1200032(%rsp,%rdx)
	je	.L9
	movb	$1, (%rdi,%rax)
.L9:
	addq	$2, %rax
	cmpq	$100001, %rax
	jne	.L10
	movl	$0, 16(%rsp)
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movsbl	(%rdi,%rax), %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	$100001, %rax
	jne	.L11
	leaq	400036(%rsp), %rbx
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r12
	testl	%ebp, %ebp
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%rbx), %eax
	movslq	(%rbx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	addl	$1, %r13d
	addq	$8, %rbx
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L13
.L14:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	1400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$1400072, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	-1396736(%rsp), %r11
	.cfi_def_cfa 11, 1396776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3336, %rsp
	.cfi_def_cfa_offset 1400112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1400056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	400032(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addl	$1, %r12d
	addq	$8, %rbx
	cmpl	%r12d, %ebp
	jg	.L3
.L2:
	leaq	1200032(%rsp), %rbx
	movl	$100001, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movl	$4, %ecx
	movl	$2, %edx
	movb	$0, 1200033(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$100001, %rdx
	je	.L27
.L5:
	cmpb	$0, (%rbx,%rdx)
	je	.L7
	cmpq	$100000, %rcx
	ja	.L7
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L8:
	movb	$0, (%rbx,%rax)
	addq	%rdx, %rax
	cmpl	$100000, %eax
	jle	.L8
	jmp	.L7
.L27:
	leaq	1300048(%rsp), %rdi
	movl	$100001, %edx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rdi
	movl	$3, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$0, (%rbx,%rax)
	je	.L9
	leal	1(%rax), %edx
	sarl	%edx
	movslq	%edx, %rdx
	cmpb	$0, 1200032(%rsp,%rdx)
	je	.L9
	movb	$1, (%rdi,%rax)
.L9:
	addq	$2, %rax
	cmpq	$100001, %rax
	jne	.L10
	movl	$0, 16(%rsp)
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movsbl	(%rdi,%rax), %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	$100001, %rax
	jne	.L11
	leaq	400036(%rsp), %rbx
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r12
	testl	%ebp, %ebp
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%rbx), %eax
	movslq	(%rbx), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	addl	$1, %r13d
	addq	$8, %rbx
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L13
.L14:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	1400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$1400072, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include<string.h>

#define MAX 100000

struct num_t {
  int l;
  int r;
};

int main() {
  int q, i, j;
  struct num_t num[MAX];
  char prime[MAX + 1];
  char neer[MAX + 1];
  int count[MAX + 1];
  
  
  scanf("%d", &q);
  for (i = 0; i < q; ++ i) {
    scanf("%d %d", &(num[i].l), &(num[i].r));
  }

  memset(prime, 1, MAX + 1);
  prime[1] = 0;
  for (i = 2; i <= MAX; ++ i) {
    if (prime[i]) {
      for (j = i * 2; j <= MAX; j += i) {
        prime[j] = 0;
      }
    }
  }
  
  memset(neer, 0, MAX + 1);
  for (i = 1; i <= MAX; i += 2) {
    if (prime[i]) {
      j = (i + 1) >> 1;
      if (prime[j]) {
        neer[i] = 1;
      }
    }
  }
  
  count[0] = 0;
  for (i = 0; i < MAX; ++ i) {
    count[i + 1] = count[i] + (int)neer[i + 1];
  }
  
  for (i = 0; i < q; ++ i) {
    printf("%d\n", count[num[i].r] - count[num[i].l - 1]);
  }
  fflush(stdout);
  return 0;
}
1
3 9
 1
5 9
 1
9 9
 4
13 13
7 0
7 11
2017 2017
 6
1 53
7 91
37 55
19 51
73 91
13 49
 4
11 13
7 1
7 13
2017 2017
 6
1 53
7 91
37 55
19 51
73 169
13 49
 4
11 13
7 0
7 13
1181 2017
 6
1 53
13 91
37 55
19 51
11 91
13 49
 1
3 13

2
 1
 0
 1
-2
0
1
 4
4
1
1
1
2
 1
-2
1
1
 4
4
1
1
2
2
 1
-2
1
13
 4
4
1
1
4
2
 3

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>
#include<string.h>

#define MAX 100000

struct num_t {
  int l;
  int r;
};

int main() {
  int q, i, j;
  struct num_t num[MAX];
  char prime[MAX + 1];
  char neer[MAX + 1];
  int count[MAX + 1];
  
  
  scanf("%d", &q);
  for (i = 0; i < q; ++ i) {
    scanf("%d %d", &(num[i].l), &(num[i].r));
  }

  memset(prime, 1, MAX + 1);
  prime[1] = 0;
  for (i = 2; i <= MAX; ++ i) {
    if (prime[i]) {
      for (j = i * 2; j <= MAX; j += i) {
        prime[j] = 0;
      }
    }
  }
  
  memset(neer, 0, MAX + 1);
  for (i = 1; i <= MAX; i += 2) {
    if (prime[i]) {
      j = (i + 1) >> 1;
      if (prime[j]) {
        neer[i] = 1;
      }
    }
  }
  
  count[0] = 0;
  for (i = 0; i < MAX; ++ i) {
    count[i + 1] = count[i] + (int)neer[i + 1];
  }
  
  for (i = 0; i < q; ++ i) {
    printf("%d\n", count[num[i].r] - count[num[i].l - 1]);
  }
  fflush(stdout);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	leaq	-1396736(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1400060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1400056(%rbp)
	jmp	.L2
.L3:
	leaq	-1000032(%rbp), %rdx
	movl	-1400056(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-1000032(%rbp), %rcx
	movl	-1400056(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1400056(%rbp)
.L2:
	movl	-1400060(%rbp), %eax
	cmpl	%eax, -1400056(%rbp)
	jl	.L3
	leaq	-200032(%rbp), %rax
	movl	$100001, %edx
	movl	$1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movb	$0, -200031(%rbp)
	movl	$2, -1400056(%rbp)
	jmp	.L4
.L8:
	movl	-1400056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L5
	movl	-1400056(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -1400052(%rbp)
	jmp	.L6
.L7:
	movl	-1400052(%rbp), %eax
	cltq
	movb	$0, -200032(%rbp,%rax)
	movl	-1400056(%rbp), %eax
	addl	%eax, -1400052(%rbp)
.L6:
	cmpl	$100000, -1400052(%rbp)
	jle	.L7
.L5:
	addl	$1, -1400056(%rbp)
.L4:
	cmpl	$100000, -1400056(%rbp)
	jle	.L8
	leaq	-100016(%rbp), %rax
	movl	$100001, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -1400056(%rbp)
	jmp	.L9
.L11:
	movl	-1400056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L10
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	sarl	%eax
	movl	%eax, -1400052(%rbp)
	movl	-1400052(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L10
	movl	-1400056(%rbp), %eax
	cltq
	movb	$1, -100016(%rbp,%rax)
.L10:
	addl	$2, -1400056(%rbp)
.L9:
	cmpl	$100000, -1400056(%rbp)
	jle	.L11
	movl	$0, -1400048(%rbp)
	movl	$0, -1400056(%rbp)
	jmp	.L12
.L13:
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %ecx
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %edx
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -1400048(%rbp,%rax,4)
	addl	$1, -1400056(%rbp)
.L12:
	cmpl	$99999, -1400056(%rbp)
	jle	.L13
	movl	$0, -1400056(%rbp)
	jmp	.L14
.L15:
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1000028(%rbp,%rax,8), %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %edx
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,8), %eax
	subl	$1, %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1400056(%rbp)
.L14:
	movl	-1400060(%rbp), %eax
	cmpl	%eax, -1400056(%rbp)
	jl	.L15
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	leaq	-1396736(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1400060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1400056(%rbp)
	jmp	.L2
.L3:
	leaq	-1000032(%rbp), %rdx
	movl	-1400056(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-1000032(%rbp), %rcx
	movl	-1400056(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1400056(%rbp)
.L2:
	movl	-1400060(%rbp), %eax
	cmpl	%eax, -1400056(%rbp)
	jl	.L3
	leaq	-200032(%rbp), %rax
	movl	$100001, %edx
	movl	$1, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movb	$0, -200031(%rbp)
	movl	$2, -1400056(%rbp)
	jmp	.L4
.L8:
	movl	-1400056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L5
	movl	-1400056(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -1400052(%rbp)
	jmp	.L6
.L7:
	movl	-1400052(%rbp), %eax
	cltq
	movb	$0, -200032(%rbp,%rax)
	movl	-1400056(%rbp), %eax
	addl	%eax, -1400052(%rbp)
.L6:
	cmpl	$100000, -1400052(%rbp)
	jle	.L7
.L5:
	addl	$1, -1400056(%rbp)
.L4:
	cmpl	$100000, -1400056(%rbp)
	jle	.L8
	leaq	-100016(%rbp), %rax
	movl	$100001, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -1400056(%rbp)
	jmp	.L9
.L11:
	movl	-1400056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L10
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	sarl	%eax
	movl	%eax, -1400052(%rbp)
	movl	-1400052(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L10
	movl	-1400056(%rbp), %eax
	cltq
	movb	$1, -100016(%rbp,%rax)
.L10:
	addl	$2, -1400056(%rbp)
.L9:
	cmpl	$100000, -1400056(%rbp)
	jle	.L11
	movl	$0, -1400048(%rbp)
	movl	$0, -1400056(%rbp)
	jmp	.L12
.L13:
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %ecx
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %edx
	movl	-1400056(%rbp), %eax
	addl	$1, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -1400048(%rbp,%rax,4)
	addl	$1, -1400056(%rbp)
.L12:
	cmpl	$99999, -1400056(%rbp)
	jle	.L13
	movl	$0, -1400056(%rbp)
	jmp	.L14
.L15:
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1000028(%rbp,%rax,8), %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %edx
	movl	-1400056(%rbp), %eax
	cltq
	movl	-1000032(%rbp,%rax,8), %eax
	subl	$1, %eax
	cltq
	movl	-1400048(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1400056(%rbp)
.L14:
	movl	-1400060(%rbp), %eax
	cmpl	%eax, -1400056(%rbp)
	jl	.L15
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
