Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define PMX ( 1 << 15 )

static
int primes[ PMX ] = { 0 };
static
int primen = 0;

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int i, j;

  for ( j = 2; j < PMX; ++j )
  {
    if ( primes[ j ] )  continue;

    primes[ primen++ ] = j;
    for ( i = j; i < PMX; i += j )
    {
      primes[ i ] = -1;
    }
  }

  for ( ; ; )
  {
    int n;
    int res = 0;

    scanf ( "%d", &n );
    if ( n == 0 ) break ;

    for ( j = 0; j < primen && primes[ j ] < n; ++j )
    for ( i = j; i < primen; ++i )
    {
      int sum = primes[ j ] + primes[ i ];

      if ( sum >= n )
      {
        res += !!( sum == n );
        break;
      }
    }

    printf ( "%d\n", res );
  }

  return ( 0 );
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$2, %edx
	xorl	%ecx, %ecx
	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	primes(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movslq	primen(%rip), %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	cmpq	$32768, %rdx
	je	.L24
.L4:
	movl	(%rbx,%rdx,4), %esi
	testl	%esi, %esi
	jne	.L2
	movl	%edx, (%rbx,%rax,4)
	leal	1(%rax), %ecx
	movq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$-1, (%rbx,%rax,4)
	addq	%rdx, %rax
	cmpl	$32767, %eax
	jle	.L3
	addq	$1, %rdx
	movslq	%ecx, %rax
	movl	$1, %ecx
	cmpq	$32768, %rdx
	jne	.L4
.L24:
	testb	%cl, %cl
	je	.L5
	movl	%eax, primen(%rip)
.L5:
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	je	.L6
	movl	primen(%rip), %edi
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r8,4), %ecx
	cmpl	%ecx, %esi
	jle	.L7
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	addl	%ecx, %edx
	cmpl	%edx, %esi
	jle	.L25
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L8
.L7:
	movl	%r9d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	sete	%al
	addq	$1, %r8
	movzbl	%al, %eax
	addl	%eax, %r9d
	cmpq	%r10, %r8
	jne	.L8
	jmp	.L7
.L6:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$24, %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
.L14:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L7
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	primen
	.comm	primen,4,4
	.local	primes
	.comm	primes,131072,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$2, %edx
	xorl	%ecx, %ecx
	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	primes(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movslq	primen(%rip), %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	cmpq	$32768, %rdx
	je	.L24
.L4:
	movl	(%rbx,%rdx,4), %esi
	testl	%esi, %esi
	jne	.L2
	movl	%edx, (%rbx,%rax,4)
	leal	1(%rax), %ecx
	movq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$-1, (%rbx,%rax,4)
	addq	%rdx, %rax
	cmpl	$32767, %eax
	jle	.L3
	addq	$1, %rdx
	movslq	%ecx, %rax
	movl	$1, %ecx
	cmpq	$32768, %rdx
	jne	.L4
.L24:
	testb	%cl, %cl
	je	.L5
	movl	%eax, primen(%rip)
.L5:
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	je	.L6
	movl	primen(%rip), %edi
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r8,4), %ecx
	cmpl	%ecx, %esi
	jle	.L7
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	addl	%ecx, %edx
	cmpl	%edx, %esi
	jle	.L25
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L8
.L7:
	movl	%r9d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	sete	%al
	addq	$1, %r8
	movzbl	%al, %eax
	addl	%eax, %r9d
	cmpq	%r10, %r8
	jne	.L8
	jmp	.L7
.L6:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$24, %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
.L14:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L7
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	primen
	.comm	primen,4,4
	.local	primes
	.comm	primes,131072,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$2, %edx
	xorl	%ecx, %ecx
	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	primes(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movslq	primen(%rip), %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	cmpq	$32768, %rdx
	je	.L24
.L4:
	movl	(%rbx,%rdx,4), %esi
	testl	%esi, %esi
	jne	.L2
	movl	%edx, (%rbx,%rax,4)
	leal	1(%rax), %ecx
	movq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$-1, (%rbx,%rax,4)
	addq	%rdx, %rax
	cmpl	$32767, %eax
	jle	.L3
	addq	$1, %rdx
	movslq	%ecx, %rax
	movl	$1, %ecx
	cmpq	$32768, %rdx
	jne	.L4
.L24:
	testb	%cl, %cl
	je	.L5
	movl	%eax, primen(%rip)
.L5:
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	je	.L6
	movl	primen(%rip), %edi
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r8,4), %ecx
	cmpl	%ecx, %esi
	jle	.L7
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	addl	%ecx, %edx
	cmpl	%edx, %esi
	jle	.L25
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L8
.L7:
	movl	%r9d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	sete	%al
	addq	$1, %r8
	movzbl	%al, %eax
	addl	%eax, %r9d
	cmpq	%r10, %r8
	jne	.L8
	jmp	.L7
.L6:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$24, %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
.L14:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L7
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	primen
	.comm	primen,4,4
	.local	primes
	.comm	primes,131072,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include <stdio.h>

#define PMX ( 1 << 15 )

static
int primes[ PMX ] = { 0 };
static
int primen = 0;

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int i, j;

  for ( j = 2; j < PMX; ++j )
  {
    if ( primes[ j ] )  continue;

    primes[ primen++ ] = j;
    for ( i = j; i < PMX; i += j )
    {
      primes[ i ] = -1;
    }
  }

  for ( ; ; )
  {
    int n;
    int res = 0;

    scanf ( "%d", &n );
    if ( n == 0 ) break ;

    for ( j = 0; j < primen && primes[ j ] < n; ++j )
    for ( i = j; i < primen; ++i )
    {
      int sum = primes[ j ] + primes[ i ];

      if ( sum >= n )
      {
        res += !!( sum == n );
        break;
      }
    }

    printf ( "%d\n", res );
  }

  return ( 0 );
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define PMX ( 1 << 15 )

static
int primes[ PMX ] = { 0 };
static
int primen = 0;

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int i, j;

  for ( j = 2; j < PMX; ++j )
  {
    if ( primes[ j ] )  continue;

    primes[ primen++ ] = j;
    for ( i = j; i < PMX; i += j )
    {
      primes[ i ] = -1;
    }
  }

  for ( ; ; )
  {
    int n;
    int res = 0;

    scanf ( "%d", &n );
    if ( n == 0 ) break ;

    for ( j = 0; j < primen && primes[ j ] < n; ++j )
    for ( i = j; i < primen; ++i )
    {
      int sum = primes[ j ] + primes[ i ];

      if ( sum >= n )
      {
        res += !!( sum == n );
        break;
      }
    }

    printf ( "%d\n", res );
  }

  return ( 0 );
}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

6
1
12
0
 6
10
8
0
 6
4
12
0
 6
1
3
0
 6
4
2
0
 6
0
2
0
 6
4
0
0
 6
2
14
0
 6
1
0
0
 6
16
0
0

1
0
1
 1
2
1
 1
1
1
 1
0
0
 1
1
0
 1
 1
1
 1
0
2
 1
0
 1
2

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define PMX ( 1 << 15 )

static
int primes[ PMX ] = { 0 };
static
int primen = 0;

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int i, j;

  for ( j = 2; j < PMX; ++j )
  {
    if ( primes[ j ] )  continue;

    primes[ primen++ ] = j;
    for ( i = j; i < PMX; i += j )
    {
      primes[ i ] = -1;
    }
  }

  for ( ; ; )
  {
    int n;
    int res = 0;

    scanf ( "%d", &n );
    if ( n == 0 ) break ;

    for ( j = 0; j < primen && primes[ j ] < n; ++j )
    for ( i = j; i < primen; ++i )
    {
      int sum = primes[ j ] + primes[ i ];

      if ( sum >= n )
      {
        res += !!( sum == n );
        break;
      }
    }

    printf ( "%d\n", res );
  }

  return ( 0 );
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$2, %edx
	xorl	%ecx, %ecx
	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	primes(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movslq	primen(%rip), %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	cmpq	$32768, %rdx
	je	.L24
.L4:
	movl	(%rbx,%rdx,4), %esi
	testl	%esi, %esi
	jne	.L2
	movl	%edx, (%rbx,%rax,4)
	leal	1(%rax), %ecx
	movq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$-1, (%rbx,%rax,4)
	addq	%rdx, %rax
	cmpl	$32767, %eax
	jle	.L3
	addq	$1, %rdx
	movslq	%ecx, %rax
	movl	$1, %ecx
	cmpq	$32768, %rdx
	jne	.L4
.L24:
	testb	%cl, %cl
	je	.L5
	movl	%eax, primen(%rip)
.L5:
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	je	.L6
	movl	primen(%rip), %edi
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r8,4), %ecx
	cmpl	%ecx, %esi
	jle	.L7
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	addl	%ecx, %edx
	cmpl	%edx, %esi
	jle	.L25
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L8
.L7:
	movl	%r9d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	sete	%al
	addq	$1, %r8
	movzbl	%al, %eax
	addl	%eax, %r9d
	cmpq	%r10, %r8
	jne	.L8
	jmp	.L7
.L6:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$24, %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
.L14:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L7
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	primen
	.comm	primen,4,4
	.local	primes
	.comm	primes,131072,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$2, %edx
	xorl	%ecx, %ecx
	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	primes(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movslq	primen(%rip), %rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rdx
	cmpq	$32768, %rdx
	je	.L24
.L4:
	movl	(%rbx,%rdx,4), %esi
	testl	%esi, %esi
	jne	.L2
	movl	%edx, (%rbx,%rax,4)
	leal	1(%rax), %ecx
	movq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$-1, (%rbx,%rax,4)
	addq	%rdx, %rax
	cmpl	$32767, %eax
	jle	.L3
	addq	$1, %rdx
	movslq	%ecx, %rax
	movl	$1, %ecx
	cmpq	$32768, %rdx
	jne	.L4
.L24:
	testb	%cl, %cl
	je	.L5
	movl	%eax, primen(%rip)
.L5:
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	je	.L6
	movl	primen(%rip), %edi
	testl	%edi, %edi
	jle	.L14
	movslq	%edi, %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r8,4), %ecx
	cmpl	%ecx, %esi
	jle	.L7
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	addl	%ecx, %edx
	cmpl	%edx, %esi
	jle	.L25
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L8
.L7:
	movl	%r9d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	sete	%al
	addq	$1, %r8
	movzbl	%al, %eax
	addl	%eax, %r9d
	cmpq	%r10, %r8
	jne	.L8
	jmp	.L7
.L6:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$24, %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
.L14:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L7
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.local	primen
	.comm	primen,4,4
	.local	primes
	.comm	primes,131072,32
	.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:
```