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 univprime[100000] = {};
int univcnt = 0;
void primemake(){
  int i;
  int j=0;
  int primef = 1;
  for(i=2;i<100000;i++){
    primef = 1;
    for(j=0;j<univcnt;j++){
      if(i % univprime[j] == 0){
        primef = 0;
        break;
      }
    }
    if(primef){
      univprime[univcnt] = i;
      univcnt++;
    }
  }
}

int main(){
  int hoge[50000] = {};
  int q = 0;
  int l[100000] = {};
  int r[100000] = {};
  int i = 0;
  int j = 0;
  int s = 0;
  int scheck = 0;
  int t = 0;
  int tcheck = 0;
  int likeflag = 0;
  int lp = 0;
  int rp = 0;
  int result = 0;
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d %d",&l[i],&r[i]);
  }
  
  primemake();
  
  for(i=0;i<50000;i++){
    s = 2*i + 1;
    t = (s + 1) / 2;
    scheck = 0;
    tcheck = 0;
    for(j=0;j<univcnt;j++){
      if(s == univprime[j]){
        scheck = 1;
      }
      if(t == univprime[j]){
        tcheck = 1;
      }
    }
    
    if(scheck*tcheck){
      //printf("%d/",i);
      for(j=i;j<50000;j++){
        hoge[j]++;
      }
    }
    
  }
  
  for(j=0;j<50000;j++){
    //printf("%d,",hoge[j]);
  }
  
  for(i=0;i<q;i++){
    lp = (l[i]-1)/2;
    rp = (r[i]-1)/2;

    result = hoge[rp] - hoge[lp];
    if(lp != 0 && hoge[lp-1] < hoge[lp]){
      result++;
    }
    printf("%d\n",result);
  }
  
  return 0;
}

    
  
  ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	univprime
	.bss
	.align 32
	.type	univprime, @object
	.size	univprime, 400000
univprime:
	.zero	400000
	.globl	univcnt
	.align 4
	.type	univcnt, @object
	.size	univcnt, 4
univcnt:
	.zero	4
	.text
	.globl	primemake
	.type	primemake, @function
primemake:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L2
.L8:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L3
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, -4(%rbp)
	jmp	.L5
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	univcnt(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L6
.L5:
	cmpl	$0, -4(%rbp)
	je	.L7
	movl	univcnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	univprime(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	univcnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, univcnt(%rip)
.L7:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$99999, -12(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	primemake, .-primemake
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.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	-999424(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1000016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1000060(%rbp)
	leaq	-800016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1000056(%rbp)
	movl	$0, -1000052(%rbp)
	movl	$0, -1000036(%rbp)
	movl	$0, -1000048(%rbp)
	movl	$0, -1000032(%rbp)
	movl	$0, -1000044(%rbp)
	movl	$0, -1000028(%rbp)
	movl	$0, -1000024(%rbp)
	movl	$0, -1000020(%rbp)
	movl	$0, -1000040(%rbp)
	leaq	-1000060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1000056(%rbp)
	jmp	.L10
.L11:
	leaq	-400016(%rbp), %rdx
	movl	-1000056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-800016(%rbp), %rcx
	movl	-1000056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1000056(%rbp)
.L10:
	movl	-1000060(%rbp), %eax
	cmpl	%eax, -1000056(%rbp)
	jl	.L11
	movl	$0, %eax
	call	primemake
	movl	$0, -1000056(%rbp)
	jmp	.L12
.L20:
	movl	-1000056(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -1000036(%rbp)
	movl	-1000036(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000032(%rbp)
	movl	$0, -1000048(%rbp)
	movl	$0, -1000044(%rbp)
	movl	$0, -1000052(%rbp)
	jmp	.L13
.L16:
	movl	-1000052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1000036(%rbp)
	jne	.L14
	movl	$1, -1000048(%rbp)
.L14:
	movl	-1000052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1000032(%rbp)
	jne	.L15
	movl	$1, -1000044(%rbp)
.L15:
	addl	$1, -1000052(%rbp)
.L13:
	movl	univcnt(%rip), %eax
	cmpl	%eax, -1000052(%rbp)
	jl	.L16
	movl	-1000048(%rbp), %eax
	imull	-1000044(%rbp), %eax
	testl	%eax, %eax
	je	.L17
	movl	-1000056(%rbp), %eax
	movl	%eax, -1000052(%rbp)
	jmp	.L18
.L19:
	movl	-1000052(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1000052(%rbp), %eax
	cltq
	movl	%edx, -1000016(%rbp,%rax,4)
	addl	$1, -1000052(%rbp)
.L18:
	cmpl	$49999, -1000052(%rbp)
	jle	.L19
.L17:
	addl	$1, -1000056(%rbp)
.L12:
	cmpl	$49999, -1000056(%rbp)
	jle	.L20
	movl	$0, -1000052(%rbp)
	jmp	.L21
.L22:
	addl	$1, -1000052(%rbp)
.L21:
	cmpl	$49999, -1000052(%rbp)
	jle	.L22
	movl	$0, -1000056(%rbp)
	jmp	.L23
.L25:
	movl	-1000056(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000024(%rbp)
	movl	-1000056(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000020(%rbp)
	movl	-1000020(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %edx
	movl	-1000024(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -1000040(%rbp)
	cmpl	$0, -1000024(%rbp)
	je	.L24
	movl	-1000024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %edx
	movl	-1000024(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L24
	addl	$1, -1000040(%rbp)
.L24:
	movl	-1000040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1000056(%rbp)
.L23:
	movl	-1000060(%rbp), %eax
	cmpl	%eax, -1000056(%rbp)
	jl	.L25
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	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	primemake
	.type	primemake, @function
primemake:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	univprime(%rip), %r11
	movl	univcnt(%rip), %r8d
	xorl	%r10d, %r10d
	movl	$2, %esi
	leaq	4(%r11), %r9
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%r8d, %r8d
	jle	.L5
	leal	-1(%r8), %eax
	leaq	univprime(%rip), %rcx
	leaq	(%r9,%rax,4), %rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$4, %rcx
	cmpq	%rdi, %rcx
	je	.L5
.L4:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	jne	.L17
	addl	$1, %esi
	cmpl	$100000, %esi
	jne	.L2
.L6:
	testb	%r10b, %r10b
	je	.L1
	movl	%r8d, univcnt(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%r8d, %rax
	movl	$1, %r10d
	addl	$1, %r8d
	movl	%esi, (%r11,%rax,4)
	addl	$1, %esi
	cmpl	$100000, %esi
	jne	.L2
	jmp	.L6
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	primemake, .-primemake
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$632, %rsp
	.cfi_def_cfa_offset 1000112
	movl	$200000, %edx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 1000040(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r12
	leaq	200032(%rsp), %rbp
	movq	%r12, %rdi
	call	memset@PLT
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	movl	$0, 28(%rsp)
	movq	%rbp, 8(%rsp)
	call	memset@PLT
	leaq	600032(%rsp), %rax
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	memset@PLT
	leaq	28(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	movq	(%rsp), %r14
	testl	%edx, %edx
	jle	.L22
.L21:
	leaq	(%r14,%rbx,4), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, 28(%rsp)
	jg	.L21
.L22:
	xorl	%eax, %eax
	leaq	univprime(%rip), %rbp
	call	primemake
	movl	univcnt(%rip), %r11d
	xorl	%ecx, %ecx
	movdqa	.LC2(%rip), %xmm3
	movl	$1, %r8d
	movl	$50000, %r9d
	movl	$1, %r10d
	movl	%r11d, %eax
	movl	%r11d, %r14d
	leal	-1(%r11), %r15d
	shrl	$2, %eax
	andl	$-4, %r14d
	leal	-1(%rax), %edi
	leaq	16(%rbp), %rax
	salq	$4, %rdi
	addq	%rax, %rdi
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%ecx, %esi
	addl	$1, %ecx
	testl	%r11d, %r11d
	jle	.L34
	cmpl	$2, %r15d
	jbe	.L43
	movd	%r8d, %xmm7
	pxor	%xmm2, %xmm2
	movq	%rbp, %rax
	pshufd	$0, %xmm7, %xmm6
	movd	%ecx, %xmm7
	movdqa	%xmm2, %xmm1
	pshufd	$0, %xmm7, %xmm5
	.p2align 4,,10
	.p2align 3
.L26:
	movdqa	%xmm6, %xmm0
	movdqa	%xmm3, %xmm4
	addq	$16, %rax
	pcmpeqd	-16(%rax), %xmm0
	pand	%xmm0, %xmm4
	pandn	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	movdqa	%xmm5, %xmm0
	pcmpeqd	-16(%rax), %xmm0
	por	%xmm4, %xmm1
	movdqa	%xmm3, %xmm4
	pand	%xmm0, %xmm4
	pandn	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	por	%xmm4, %xmm2
	cmpq	%rax, %rdi
	jne	.L26
	movdqa	%xmm2, %xmm4
	movl	%r14d, %ebx
	psrldq	$8, %xmm4
	movdqa	%xmm4, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm4
	pandn	%xmm2, %xmm0
	por	%xmm4, %xmm0
	movdqa	%xmm0, %xmm4
	psrldq	$4, %xmm4
	movdqa	%xmm4, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm4
	pandn	%xmm0, %xmm2
	por	%xmm4, %xmm2
	movd	%xmm2, %eax
	movdqa	%xmm1, %xmm2
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%r14d, %r11d
	je	.L27
.L25:
	movslq	%ebx, %r13
	movl	0(%rbp,%r13,4), %r13d
	cmpl	%r8d, %r13d
	cmove	%r10d, %edx
	cmpl	%ecx, %r13d
	leal	1(%rbx), %r13d
	cmove	%r10d, %eax
	cmpl	%r13d, %r11d
	jle	.L27
	movslq	%r13d, %r13
	movl	0(%rbp,%r13,4), %r13d
	cmpl	%r13d, %r8d
	cmove	%r10d, %edx
	cmpl	%r13d, %ecx
	cmove	%r10d, %eax
	addl	$2, %ebx
	cmpl	%ebx, %r11d
	jle	.L27
	movslq	%ebx, %rbx
	movl	0(%rbp,%rbx,4), %ebx
	cmpl	%ebx, %r8d
	cmove	%r10d, %edx
	cmpl	%ebx, %ecx
	cmove	%r10d, %eax
.L27:
	testl	%eax, %edx
	jne	.L72
.L34:
	addq	$4, %r12
	addl	$2, %r8d
	subl	$1, %r9d
	jne	.L20
	movl	28(%rsp), %eax
	movq	(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC3(%rip), %rbx
	movq	8(%rsp), %r13
	testl	%eax, %eax
	jle	.L41
.L39:
	movl	0(%r13,%rbp,4), %eax
	leal	-1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	32(%rsp,%rdx,4), %esi
	movl	(%r12,%rbp,4), %edx
	leal	-1(%rdx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rdx
	movl	32(%rsp,%rdx,4), %edx
	subl	%esi, %edx
	testl	%eax, %eax
	je	.L40
	subl	$1, %eax
	cltq
	cmpl	32(%rsp,%rax,4), %esi
	jle	.L40
	addl	$1, %edx
.L40:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 28(%rsp)
	jg	.L39
.L41:
	movq	1000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L73
	addq	$1000056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L72:
	.cfi_restore_state
	movl	$50000, %eax
	subl	%ecx, %eax
	cmpl	$2, %eax
	jbe	.L35
	movl	%r9d, %eax
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r12,%rax), %rdx
	movq	%r12, %rax
	.p2align 4,,10
	.p2align 3
.L36:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L36
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %esi
	cmpl	%r9d, %eax
	je	.L34
.L35:
	movslq	%esi, %rax
	addl	$1, 32(%rsp,%rax,4)
	leal	1(%rsi), %eax
	cmpl	$49999, %esi
	je	.L34
	cltq
	addl	$1, 32(%rsp,%rax,4)
	leal	2(%rsi), %eax
	cmpl	$49998, %esi
	je	.L34
	cltq
	addl	$1, 32(%rsp,%rax,4)
	jmp	.L34
.L43:
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	.L25
.L73:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	univcnt
	.bss
	.align 4
	.type	univcnt, @object
	.size	univcnt, 4
univcnt:
	.zero	4
	.globl	univprime
	.align 32
	.type	univprime, @object
	.size	univprime, 400000
univprime:
	.zero	400000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	primemake
	.type	primemake, @function
primemake:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	univprime(%rip), %r11
	movl	univcnt(%rip), %r8d
	xorl	%r10d, %r10d
	movl	$2, %esi
	leaq	4(%r11), %r9
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%r8d, %r8d
	jle	.L5
	leal	-1(%r8), %eax
	leaq	univprime(%rip), %rcx
	leaq	(%r9,%rax,4), %rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$4, %rcx
	cmpq	%rdi, %rcx
	je	.L5
.L4:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	jne	.L17
	addl	$1, %esi
	cmpl	$100000, %esi
	jne	.L2
.L6:
	testb	%r10b, %r10b
	je	.L1
	movl	%r8d, univcnt(%rip)
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	%r8d, %rax
	movl	$1, %r10d
	addl	$1, %r8d
	movl	%esi, (%r11,%rax,4)
	addl	$1, %esi
	cmpl	$100000, %esi
	jne	.L2
	jmp	.L6
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	primemake, .-primemake
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-999424(%rsp), %r11
	.cfi_def_cfa 11, 999480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$632, %rsp
	.cfi_def_cfa_offset 1000112
	movl	$200000, %edx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 1000040(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r12
	leaq	200032(%rsp), %rbp
	movq	%r12, %rdi
	call	memset@PLT
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	movl	$0, 28(%rsp)
	movq	%rbp, 8(%rsp)
	call	memset@PLT
	leaq	600032(%rsp), %rax
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	memset@PLT
	leaq	28(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	movq	(%rsp), %r14
	testl	%edx, %edx
	jle	.L22
.L21:
	leaq	(%r14,%rbx,4), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, 28(%rsp)
	jg	.L21
.L22:
	xorl	%eax, %eax
	leaq	univprime(%rip), %rbp
	call	primemake
	movl	univcnt(%rip), %r11d
	xorl	%ecx, %ecx
	movdqa	.LC2(%rip), %xmm3
	movl	$1, %r8d
	movl	$50000, %r9d
	movl	$1, %r10d
	movl	%r11d, %eax
	movl	%r11d, %r14d
	leal	-1(%r11), %r15d
	shrl	$2, %eax
	andl	$-4, %r14d
	leal	-1(%rax), %edi
	leaq	16(%rbp), %rax
	salq	$4, %rdi
	addq	%rax, %rdi
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%ecx, %esi
	addl	$1, %ecx
	testl	%r11d, %r11d
	jle	.L34
	cmpl	$2, %r15d
	jbe	.L43
	movd	%r8d, %xmm7
	pxor	%xmm2, %xmm2
	movq	%rbp, %rax
	pshufd	$0, %xmm7, %xmm6
	movd	%ecx, %xmm7
	movdqa	%xmm2, %xmm1
	pshufd	$0, %xmm7, %xmm5
	.p2align 4,,10
	.p2align 3
.L26:
	movdqa	%xmm6, %xmm0
	movdqa	%xmm3, %xmm4
	addq	$16, %rax
	pcmpeqd	-16(%rax), %xmm0
	pand	%xmm0, %xmm4
	pandn	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	movdqa	%xmm5, %xmm0
	pcmpeqd	-16(%rax), %xmm0
	por	%xmm4, %xmm1
	movdqa	%xmm3, %xmm4
	pand	%xmm0, %xmm4
	pandn	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	por	%xmm4, %xmm2
	cmpq	%rax, %rdi
	jne	.L26
	movdqa	%xmm2, %xmm4
	movl	%r14d, %ebx
	psrldq	$8, %xmm4
	movdqa	%xmm4, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm4
	pandn	%xmm2, %xmm0
	por	%xmm4, %xmm0
	movdqa	%xmm0, %xmm4
	psrldq	$4, %xmm4
	movdqa	%xmm4, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm4
	pandn	%xmm0, %xmm2
	por	%xmm4, %xmm2
	movd	%xmm2, %eax
	movdqa	%xmm1, %xmm2
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	cmpl	%r14d, %r11d
	je	.L27
.L25:
	movslq	%ebx, %r13
	movl	0(%rbp,%r13,4), %r13d
	cmpl	%r8d, %r13d
	cmove	%r10d, %edx
	cmpl	%ecx, %r13d
	leal	1(%rbx), %r13d
	cmove	%r10d, %eax
	cmpl	%r13d, %r11d
	jle	.L27
	movslq	%r13d, %r13
	movl	0(%rbp,%r13,4), %r13d
	cmpl	%r13d, %r8d
	cmove	%r10d, %edx
	cmpl	%r13d, %ecx
	cmove	%r10d, %eax
	addl	$2, %ebx
	cmpl	%ebx, %r11d
	jle	.L27
	movslq	%ebx, %rbx
	movl	0(%rbp,%rbx,4), %ebx
	cmpl	%ebx, %r8d
	cmove	%r10d, %edx
	cmpl	%ebx, %ecx
	cmove	%r10d, %eax
.L27:
	testl	%eax, %edx
	jne	.L72
.L34:
	addq	$4, %r12
	addl	$2, %r8d
	subl	$1, %r9d
	jne	.L20
	movl	28(%rsp), %eax
	movq	(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC3(%rip), %rbx
	movq	8(%rsp), %r13
	testl	%eax, %eax
	jle	.L41
.L39:
	movl	0(%r13,%rbp,4), %eax
	leal	-1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	32(%rsp,%rdx,4), %esi
	movl	(%r12,%rbp,4), %edx
	leal	-1(%rdx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rdx
	movl	32(%rsp,%rdx,4), %edx
	subl	%esi, %edx
	testl	%eax, %eax
	je	.L40
	subl	$1, %eax
	cltq
	cmpl	32(%rsp,%rax,4), %esi
	jle	.L40
	addl	$1, %edx
.L40:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 28(%rsp)
	jg	.L39
.L41:
	movq	1000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L73
	addq	$1000056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L72:
	.cfi_restore_state
	movl	$50000, %eax
	subl	%ecx, %eax
	cmpl	$2, %eax
	jbe	.L35
	movl	%r9d, %eax
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%r12,%rax), %rdx
	movq	%r12, %rax
	.p2align 4,,10
	.p2align 3
.L36:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L36
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %esi
	cmpl	%r9d, %eax
	je	.L34
.L35:
	movslq	%esi, %rax
	addl	$1, 32(%rsp,%rax,4)
	leal	1(%rsi), %eax
	cmpl	$49999, %esi
	je	.L34
	cltq
	addl	$1, 32(%rsp,%rax,4)
	leal	2(%rsi), %eax
	cmpl	$49998, %esi
	je	.L34
	cltq
	addl	$1, 32(%rsp,%rax,4)
	jmp	.L34
.L43:
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	.L25
.L73:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	univcnt
	.bss
	.align 4
	.type	univcnt, @object
	.size	univcnt, 4
univcnt:
	.zero	4
	.globl	univprime
	.align 32
	.type	univprime, @object
	.size	univprime, 400000
univprime:
	.zero	400000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 univprime[100000] = {};
int univcnt = 0;
void primemake(){
  int i;
  int j=0;
  int primef = 1;
  for(i=2;i<100000;i++){
    primef = 1;
    for(j=0;j<univcnt;j++){
      if(i % univprime[j] == 0){
        primef = 0;
        break;
      }
    }
    if(primef){
      univprime[univcnt] = i;
      univcnt++;
    }
  }
}

int main(){
  int hoge[50000] = {};
  int q = 0;
  int l[100000] = {};
  int r[100000] = {};
  int i = 0;
  int j = 0;
  int s = 0;
  int scheck = 0;
  int t = 0;
  int tcheck = 0;
  int likeflag = 0;
  int lp = 0;
  int rp = 0;
  int result = 0;
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d %d",&l[i],&r[i]);
  }
  
  primemake();
  
  for(i=0;i<50000;i++){
    s = 2*i + 1;
    t = (s + 1) / 2;
    scheck = 0;
    tcheck = 0;
    for(j=0;j<univcnt;j++){
      if(s == univprime[j]){
        scheck = 1;
      }
      if(t == univprime[j]){
        tcheck = 1;
      }
    }
    
    if(scheck*tcheck){
      //printf("%d/",i);
      for(j=i;j<50000;j++){
        hoge[j]++;
      }
    }
    
  }
  
  for(j=0;j<50000;j++){
    //printf("%d,",hoge[j]);
  }
  
  for(i=0;i<q;i++){
    lp = (l[i]-1)/2;
    rp = (r[i]-1)/2;

    result = hoge[rp] - hoge[lp];
    if(lp != 0 && hoge[lp-1] < hoge[lp]){
      result++;
    }
    printf("%d\n",result);
  }
  
  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>
int univprime[100000] = {};
int univcnt = 0;
void primemake(){
  int i;
  int j=0;
  int primef = 1;
  for(i=2;i<100000;i++){
    primef = 1;
    for(j=0;j<univcnt;j++){
      if(i % univprime[j] == 0){
        primef = 0;
        break;
      }
    }
    if(primef){
      univprime[univcnt] = i;
      univcnt++;
    }
  }
}

int main(){
  int hoge[50000] = {};
  int q = 0;
  int l[100000] = {};
  int r[100000] = {};
  int i = 0;
  int j = 0;
  int s = 0;
  int scheck = 0;
  int t = 0;
  int tcheck = 0;
  int likeflag = 0;
  int lp = 0;
  int rp = 0;
  int result = 0;
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d %d",&l[i],&r[i]);
  }
  
  primemake();
  
  for(i=0;i<50000;i++){
    s = 2*i + 1;
    t = (s + 1) / 2;
    scheck = 0;
    tcheck = 0;
    for(j=0;j<univcnt;j++){
      if(s == univprime[j]){
        scheck = 1;
      }
      if(t == univprime[j]){
        tcheck = 1;
      }
    }
    
    if(scheck*tcheck){
      //printf("%d/",i);
      for(j=i;j<50000;j++){
        hoge[j]++;
      }
    }
    
  }
  
  for(j=0;j<50000;j++){
    //printf("%d,",hoge[j]);
  }
  
  for(i=0;i<q;i++){
    lp = (l[i]-1)/2;
    rp = (r[i]-1)/2;

    result = hoge[rp] - hoge[lp];
    if(lp != 0 && hoge[lp-1] < hoge[lp]){
      result++;
    }
    printf("%d\n",result);
  }
  
  return 0;
}

    
  
  ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	univprime
	.bss
	.align 32
	.type	univprime, @object
	.size	univprime, 400000
univprime:
	.zero	400000
	.globl	univcnt
	.align 4
	.type	univcnt, @object
	.size	univcnt, 4
univcnt:
	.zero	4
	.text
	.globl	primemake
	.type	primemake, @function
primemake:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L2
.L8:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L3
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, -4(%rbp)
	jmp	.L5
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	univcnt(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L6
.L5:
	cmpl	$0, -4(%rbp)
	je	.L7
	movl	univcnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	univprime(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	univcnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, univcnt(%rip)
.L7:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$99999, -12(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	primemake, .-primemake
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.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	-999424(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1000016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1000060(%rbp)
	leaq	-800016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1000056(%rbp)
	movl	$0, -1000052(%rbp)
	movl	$0, -1000036(%rbp)
	movl	$0, -1000048(%rbp)
	movl	$0, -1000032(%rbp)
	movl	$0, -1000044(%rbp)
	movl	$0, -1000028(%rbp)
	movl	$0, -1000024(%rbp)
	movl	$0, -1000020(%rbp)
	movl	$0, -1000040(%rbp)
	leaq	-1000060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1000056(%rbp)
	jmp	.L10
.L11:
	leaq	-400016(%rbp), %rdx
	movl	-1000056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-800016(%rbp), %rcx
	movl	-1000056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1000056(%rbp)
.L10:
	movl	-1000060(%rbp), %eax
	cmpl	%eax, -1000056(%rbp)
	jl	.L11
	movl	$0, %eax
	call	primemake
	movl	$0, -1000056(%rbp)
	jmp	.L12
.L20:
	movl	-1000056(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -1000036(%rbp)
	movl	-1000036(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000032(%rbp)
	movl	$0, -1000048(%rbp)
	movl	$0, -1000044(%rbp)
	movl	$0, -1000052(%rbp)
	jmp	.L13
.L16:
	movl	-1000052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1000036(%rbp)
	jne	.L14
	movl	$1, -1000048(%rbp)
.L14:
	movl	-1000052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1000032(%rbp)
	jne	.L15
	movl	$1, -1000044(%rbp)
.L15:
	addl	$1, -1000052(%rbp)
.L13:
	movl	univcnt(%rip), %eax
	cmpl	%eax, -1000052(%rbp)
	jl	.L16
	movl	-1000048(%rbp), %eax
	imull	-1000044(%rbp), %eax
	testl	%eax, %eax
	je	.L17
	movl	-1000056(%rbp), %eax
	movl	%eax, -1000052(%rbp)
	jmp	.L18
.L19:
	movl	-1000052(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1000052(%rbp), %eax
	cltq
	movl	%edx, -1000016(%rbp,%rax,4)
	addl	$1, -1000052(%rbp)
.L18:
	cmpl	$49999, -1000052(%rbp)
	jle	.L19
.L17:
	addl	$1, -1000056(%rbp)
.L12:
	cmpl	$49999, -1000056(%rbp)
	jle	.L20
	movl	$0, -1000052(%rbp)
	jmp	.L21
.L22:
	addl	$1, -1000052(%rbp)
.L21:
	cmpl	$49999, -1000052(%rbp)
	jle	.L22
	movl	$0, -1000056(%rbp)
	jmp	.L23
.L25:
	movl	-1000056(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000024(%rbp)
	movl	-1000056(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000020(%rbp)
	movl	-1000020(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %edx
	movl	-1000024(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -1000040(%rbp)
	cmpl	$0, -1000024(%rbp)
	je	.L24
	movl	-1000024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %edx
	movl	-1000024(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L24
	addl	$1, -1000040(%rbp)
.L24:
	movl	-1000040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1000056(%rbp)
.L23:
	movl	-1000060(%rbp), %eax
	cmpl	%eax, -1000056(%rbp)
	jl	.L25
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	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	univprime
	.bss
	.align 32
	.type	univprime, @object
	.size	univprime, 400000
univprime:
	.zero	400000
	.globl	univcnt
	.align 4
	.type	univcnt, @object
	.size	univcnt, 4
univcnt:
	.zero	4
	.text
	.globl	primemake
	.type	primemake, @function
primemake:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	movl	$2, -12(%rbp)
	jmp	.L2
.L8:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L3
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-12(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, -4(%rbp)
	jmp	.L5
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	univcnt(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L6
.L5:
	cmpl	$0, -4(%rbp)
	je	.L7
	movl	univcnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	univprime(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	univcnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, univcnt(%rip)
.L7:
	addl	$1, -12(%rbp)
.L2:
	cmpl	$99999, -12(%rbp)
	jle	.L8
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	primemake, .-primemake
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.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	-999424(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$640, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1000016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1000060(%rbp)
	leaq	-800016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1000056(%rbp)
	movl	$0, -1000052(%rbp)
	movl	$0, -1000036(%rbp)
	movl	$0, -1000048(%rbp)
	movl	$0, -1000032(%rbp)
	movl	$0, -1000044(%rbp)
	movl	$0, -1000028(%rbp)
	movl	$0, -1000024(%rbp)
	movl	$0, -1000020(%rbp)
	movl	$0, -1000040(%rbp)
	leaq	-1000060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1000056(%rbp)
	jmp	.L10
.L11:
	leaq	-400016(%rbp), %rdx
	movl	-1000056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-800016(%rbp), %rcx
	movl	-1000056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1000056(%rbp)
.L10:
	movl	-1000060(%rbp), %eax
	cmpl	%eax, -1000056(%rbp)
	jl	.L11
	movl	$0, %eax
	call	primemake
	movl	$0, -1000056(%rbp)
	jmp	.L12
.L20:
	movl	-1000056(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -1000036(%rbp)
	movl	-1000036(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000032(%rbp)
	movl	$0, -1000048(%rbp)
	movl	$0, -1000044(%rbp)
	movl	$0, -1000052(%rbp)
	jmp	.L13
.L16:
	movl	-1000052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1000036(%rbp)
	jne	.L14
	movl	$1, -1000048(%rbp)
.L14:
	movl	-1000052(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	univprime(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -1000032(%rbp)
	jne	.L15
	movl	$1, -1000044(%rbp)
.L15:
	addl	$1, -1000052(%rbp)
.L13:
	movl	univcnt(%rip), %eax
	cmpl	%eax, -1000052(%rbp)
	jl	.L16
	movl	-1000048(%rbp), %eax
	imull	-1000044(%rbp), %eax
	testl	%eax, %eax
	je	.L17
	movl	-1000056(%rbp), %eax
	movl	%eax, -1000052(%rbp)
	jmp	.L18
.L19:
	movl	-1000052(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-1000052(%rbp), %eax
	cltq
	movl	%edx, -1000016(%rbp,%rax,4)
	addl	$1, -1000052(%rbp)
.L18:
	cmpl	$49999, -1000052(%rbp)
	jle	.L19
.L17:
	addl	$1, -1000056(%rbp)
.L12:
	cmpl	$49999, -1000056(%rbp)
	jle	.L20
	movl	$0, -1000052(%rbp)
	jmp	.L21
.L22:
	addl	$1, -1000052(%rbp)
.L21:
	cmpl	$49999, -1000052(%rbp)
	jle	.L22
	movl	$0, -1000056(%rbp)
	jmp	.L23
.L25:
	movl	-1000056(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000024(%rbp)
	movl	-1000056(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -1000020(%rbp)
	movl	-1000020(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %edx
	movl	-1000024(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -1000040(%rbp)
	cmpl	$0, -1000024(%rbp)
	je	.L24
	movl	-1000024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %edx
	movl	-1000024(%rbp), %eax
	cltq
	movl	-1000016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L24
	addl	$1, -1000040(%rbp)
.L24:
	movl	-1000040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1000056(%rbp)
.L23:
	movl	-1000060(%rbp), %eax
	cmpl	%eax, -1000056(%rbp)
	jl	.L25
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	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:
