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 M 1000

static int
openyan (
  const char * s,
  int n
  )
{
  const char * it;

  if ( !( n % 15 ) )  return ( !strcmp ( s, "FizzBuzz" ) );
  if ( !( n % 5 ) )   return ( !strcmp ( s, "Buzz" ) );
  if ( !( n % 3 ) )   return ( !strcmp ( s, "Fizz" ) );

  for ( it = s + strlen ( s ); ( it-- ) != s; )
  {
    if ( *it - '0' != ( n % 10 ) )  return ( 0 );
    n /= 10;
  }

  return ( !( n ) );
}

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

  for ( ; ; )
  {
    int d[ M ], p, pp, t;
    int m, n;

    scanf ( " %d %d", &m, &n );
    if ( !( m | n ) ) break ;

    for ( i = 0; i < m; ++i )
    {
      d[ i ] = i + 1;
    }
    d[ pp = m - 1 ] = 0;

    p = 0; t = 1;
    while ( n-- )
    {
      char s[ 1024 ];

      scanf ( " %s", s );
      if ( d[ p ] == p ) continue ;

      if ( !openyan ( s, t++ ) )
      {
        const int tp = p;
        d[ pp ] = d[ p ];
        p       = d[ p ];
        d[ tp ] = -1;
      }
      else
      {
        pp  = p;
        p   = d[ p ];
      }
    }

    p = 1;
    for ( i = 0; i < m; ++i )
    {
      if ( d[ i ] != -1 )
      {
        if ( p )  p = 0;
        else      putchar ( ' ' );
        printf ( "%d", i + 1 );
      }
    }
    puts ( "" );
  }

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"FizzBuzz"
.LC1:
	.string	"Buzz"
.LC2:
	.string	"Fizz"
	.text
	.type	openyan, @function
openyan:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$-2004318071, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$4, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L2
	movq	-24(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L2:
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	%eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$2, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L4
	movq	-24(%rbp), %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L4:
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movq	-24(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L5:
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-24(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L6
.L8:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %esi
	movl	-28(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	%edx, %esi
	je	.L7
	movl	$0, %eax
	jmp	.L3
.L7:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -28(%rbp)
.L6:
	movq	-8(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -8(%rbp)
	cmpq	%rax, -24(%rbp)
	jne	.L8
	cmpl	$0, -28(%rbp)
	sete	%al
	movzbl	%al, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	openyan, .-openyan
	.section	.rodata
.LC3:
	.string	" %d %d"
.LC4:
	.string	" %s"
.LC5:
	.string	"%d"
.LC6:
	.string	""
	.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$992, %rsp
	movl	%edi, -5076(%rbp)
	movq	%rsi, -5088(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L24:
	leaq	-5064(%rbp), %rdx
	leaq	-5068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5068(%rbp), %edx
	movl	-5064(%rbp), %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	jmp	.L26
.L10:
	movl	$0, -5060(%rbp)
	jmp	.L12
.L13:
	movl	-5060(%rbp), %eax
	leal	1(%rax), %edx
	movl	-5060(%rbp), %eax
	cltq
	movl	%edx, -5040(%rbp,%rax,4)
	addl	$1, -5060(%rbp)
.L12:
	movl	-5068(%rbp), %eax
	cmpl	%eax, -5060(%rbp)
	jl	.L13
	movl	-5068(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -5052(%rbp)
	movl	-5052(%rbp), %eax
	cltq
	movl	$0, -5040(%rbp,%rax,4)
	movl	$0, -5056(%rbp)
	movl	$1, -5048(%rbp)
	jmp	.L14
.L18:
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	cmpl	%eax, -5056(%rbp)
	jne	.L15
	jmp	.L14
.L15:
	movl	-5048(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -5048(%rbp)
	leaq	-1040(%rbp), %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	openyan
	testl	%eax, %eax
	jne	.L16
	movl	-5056(%rbp), %eax
	movl	%eax, -5044(%rbp)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %edx
	movl	-5052(%rbp), %eax
	cltq
	movl	%edx, -5040(%rbp,%rax,4)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	movl	%eax, -5056(%rbp)
	movl	-5044(%rbp), %eax
	cltq
	movl	$-1, -5040(%rbp,%rax,4)
	jmp	.L14
.L16:
	movl	-5056(%rbp), %eax
	movl	%eax, -5052(%rbp)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	movl	%eax, -5056(%rbp)
.L14:
	movl	-5064(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -5064(%rbp)
	testl	%eax, %eax
	jne	.L18
	movl	$1, -5056(%rbp)
	movl	$0, -5060(%rbp)
	jmp	.L19
.L23:
	movl	-5060(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L20
	cmpl	$0, -5056(%rbp)
	je	.L21
	movl	$0, -5056(%rbp)
	jmp	.L22
.L21:
	movl	$32, %edi
	call	putchar@PLT
.L22:
	movl	-5060(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	addl	$1, -5060(%rbp)
.L19:
	movl	-5068(%rbp), %eax
	cmpl	%eax, -5060(%rbp)
	jl	.L23
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L26:
	call	__stack_chk_fail@PLT
.L25:
	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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	" %d %d"
.LC4:
	.string	" %s"
.LC5:
	.string	"FizzBuzz"
.LC6:
	.string	"Buzz"
.LC7:
	.string	"Fizz"
.LC8:
	.string	""
.LC9:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1000, %rsp
	.cfi_def_cfa_offset 5152
	movq	%fs:40, %rax
	movq	%rax, 5080(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movq	16(%rsp), %rsi
	movq	24(%rsp), %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	movl	44(%rsp), %esi
	movl	%eax, %edi
	orl	%esi, %edi
	je	.L2
	leal	-1(%rax), %r13d
	leal	-1(%rsi), %r8d
	testl	%eax, %eax
	jle	.L3
	cmpl	$2, %r13d
	jbe	.L27
	movl	%eax, %ecx
	movdqa	.LC0(%rip), %xmm1
	leaq	48(%rsp), %rdx
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	64(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm1, %xmm0
	paddd	.LC3(%rip), %xmm0
	addq	$16, %rdx
	paddd	.LC2(%rip), %xmm1
	movaps	%xmm0, -16(%rdx)
	cmpq	%rcx, %rdx
	jne	.L5
	movl	%eax, %edx
	andl	$-4, %edx
	testb	$3, %al
	je	.L6
.L4:
	leal	1(%rdx), %ecx
	movslq	%edx, %rdi
	movl	%ecx, 48(%rsp,%rdi,4)
	cmpl	%ecx, %eax
	jle	.L6
	leal	2(%rdx), %edi
	movslq	%ecx, %rcx
	movl	%edi, 48(%rsp,%rcx,4)
	cmpl	%edi, %eax
	jle	.L6
	movslq	%edi, %rdi
	addl	$3, %edx
	movl	%edx, 48(%rsp,%rdi,4)
.L6:
	movslq	%r13d, %rdx
	movl	%r8d, 44(%rsp)
	movl	$0, 48(%rsp,%rdx,4)
	testl	%esi, %esi
	je	.L7
.L25:
	leaq	4048(%rsp), %r15
	movl	%r13d, 4(%rsp)
	movl	$1, %r14d
	xorl	%ebx, %ebx
	movq	%r15, %rax
	leaq	.LC4(%rip), %r12
	movl	%r14d, %r15d
	movl	$3435973837, %ebp
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	%ebx, %r8
	movl	48(%rsp,%r8,4), %r13d
	cmpl	%ebx, %r13d
	je	.L8
	leal	1(%r15), %eax
	movl	%eax, (%rsp)
	imull	$-286331153, %r15d, %eax
	cmpl	$286331153, %eax
	jbe	.L48
	imull	$-858993459, %r15d, %eax
	cmpl	$858993459, %eax
	jbe	.L49
	imull	$-1431655765, %r15d, %eax
	movq	%r8, 8(%rsp)
	cmpl	$1431655765, %eax
	jbe	.L50
	movq	%r14, %rdi
	call	strlen@PLT
	movq	8(%rsp), %r8
	leaq	(%r14,%rax), %rsi
	cmpq	%r14, %rsi
	jne	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L51:
	subq	$1, %rsi
	movl	%eax, %r15d
	cmpq	%rsi, %r14
	je	.L15
.L16:
	movl	%r15d, %eax
	movsbl	-1(%rsi), %edx
	imulq	%rbp, %rax
	subl	$48, %edx
	shrq	$35, %rax
	leal	(%rax,%rax,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %r15d
	cmpl	%r15d, %edx
	je	.L51
.L10:
	movslq	4(%rsp), %rax
	movl	%r13d, 48(%rsp,%rax,4)
	movl	48(%rsp,%r8,4), %r13d
	movq	%rax, %rbx
	movl	$-1, 48(%rsp,%r8,4)
.L11:
	movl	44(%rsp), %eax
	leal	-1(%rax), %esi
	movl	%esi, 44(%rsp)
	testl	%eax, %eax
	je	.L18
	movl	%ebx, 4(%rsp)
	movl	(%rsp), %r15d
	movl	%r13d, %ebx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	leaq	.LC5(%rip), %rsi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
.L45:
	movq	8(%rsp), %r8
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %r15
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L52:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
.L46:
	movl	44(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 44(%rsp)
	testl	%eax, %eax
	jne	.L52
.L18:
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L24
.L7:
	xorl	%ebx, %ebx
	movl	$1, %edx
	leaq	48(%rsp), %rbp
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r12d, %edx
	leaq	.LC9(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	40(%rsp), %eax
	xorl	%edx, %edx
.L21:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jle	.L24
.L23:
	cmpl	$-1, 0(%rbp,%rbx,4)
	leal	1(%rbx), %r12d
	je	.L21
	testl	%edx, %edx
	jne	.L22
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L49:
	leaq	.LC6(%rip), %rsi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	jmp	.L45
.L3:
	movslq	%r13d, %rax
	movl	%r8d, 44(%rsp)
	movl	$0, 48(%rsp,%rax,4)
	testl	%esi, %esi
	jne	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	leaq	.LC8(%rip), %rdi
	call	puts@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	.LC7(%rip), %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	movq	8(%rsp), %r8
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
.L14:
	testl	%eax, %eax
	jne	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	jmp	.L14
.L2:
	movq	5080(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$5096, %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
.L27:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L4
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	" %d %d"
.LC4:
	.string	" %s"
.LC5:
	.string	"FizzBuzz"
.LC6:
	.string	"Buzz"
.LC7:
	.string	"Fizz"
.LC8:
	.string	""
.LC9:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1000, %rsp
	.cfi_def_cfa_offset 5152
	movq	%fs:40, %rax
	movq	%rax, 5080(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movq	16(%rsp), %rsi
	movq	24(%rsp), %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	movl	44(%rsp), %esi
	movl	%eax, %edi
	orl	%esi, %edi
	je	.L2
	leal	-1(%rax), %r13d
	leal	-1(%rsi), %r8d
	testl	%eax, %eax
	jle	.L3
	cmpl	$2, %r13d
	jbe	.L27
	movl	%eax, %ecx
	movdqa	.LC0(%rip), %xmm1
	leaq	48(%rsp), %rdx
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	64(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm1, %xmm0
	paddd	.LC3(%rip), %xmm0
	addq	$16, %rdx
	paddd	.LC2(%rip), %xmm1
	movaps	%xmm0, -16(%rdx)
	cmpq	%rcx, %rdx
	jne	.L5
	movl	%eax, %edx
	andl	$-4, %edx
	testb	$3, %al
	je	.L6
.L4:
	leal	1(%rdx), %ecx
	movslq	%edx, %rdi
	movl	%ecx, 48(%rsp,%rdi,4)
	cmpl	%ecx, %eax
	jle	.L6
	leal	2(%rdx), %edi
	movslq	%ecx, %rcx
	movl	%edi, 48(%rsp,%rcx,4)
	cmpl	%edi, %eax
	jle	.L6
	movslq	%edi, %rdi
	addl	$3, %edx
	movl	%edx, 48(%rsp,%rdi,4)
.L6:
	movslq	%r13d, %rdx
	movl	%r8d, 44(%rsp)
	movl	$0, 48(%rsp,%rdx,4)
	testl	%esi, %esi
	je	.L7
.L25:
	leaq	4048(%rsp), %r15
	movl	%r13d, 4(%rsp)
	movl	$1, %r14d
	xorl	%ebx, %ebx
	movq	%r15, %rax
	leaq	.LC4(%rip), %r12
	movl	%r14d, %r15d
	movl	$3435973837, %ebp
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	%ebx, %r8
	movl	48(%rsp,%r8,4), %r13d
	cmpl	%ebx, %r13d
	je	.L8
	leal	1(%r15), %eax
	movl	%eax, (%rsp)
	imull	$-286331153, %r15d, %eax
	cmpl	$286331153, %eax
	jbe	.L48
	imull	$-858993459, %r15d, %eax
	cmpl	$858993459, %eax
	jbe	.L49
	imull	$-1431655765, %r15d, %eax
	movq	%r8, 8(%rsp)
	cmpl	$1431655765, %eax
	jbe	.L50
	movq	%r14, %rdi
	call	strlen@PLT
	movq	8(%rsp), %r8
	leaq	(%r14,%rax), %rsi
	cmpq	%r14, %rsi
	jne	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L51:
	subq	$1, %rsi
	movl	%eax, %r15d
	cmpq	%rsi, %r14
	je	.L15
.L16:
	movl	%r15d, %eax
	movsbl	-1(%rsi), %edx
	imulq	%rbp, %rax
	subl	$48, %edx
	shrq	$35, %rax
	leal	(%rax,%rax,4), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %r15d
	cmpl	%r15d, %edx
	je	.L51
.L10:
	movslq	4(%rsp), %rax
	movl	%r13d, 48(%rsp,%rax,4)
	movl	48(%rsp,%r8,4), %r13d
	movq	%rax, %rbx
	movl	$-1, 48(%rsp,%r8,4)
.L11:
	movl	44(%rsp), %eax
	leal	-1(%rax), %esi
	movl	%esi, 44(%rsp)
	testl	%eax, %eax
	je	.L18
	movl	%ebx, 4(%rsp)
	movl	(%rsp), %r15d
	movl	%r13d, %ebx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L48:
	leaq	.LC5(%rip), %rsi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
.L45:
	movq	8(%rsp), %r8
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %r15
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L52:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
.L46:
	movl	44(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 44(%rsp)
	testl	%eax, %eax
	jne	.L52
.L18:
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L24
.L7:
	xorl	%ebx, %ebx
	movl	$1, %edx
	leaq	48(%rsp), %rbp
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r12d, %edx
	leaq	.LC9(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	40(%rsp), %eax
	xorl	%edx, %edx
.L21:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jle	.L24
.L23:
	cmpl	$-1, 0(%rbp,%rbx,4)
	leal	1(%rbx), %r12d
	je	.L21
	testl	%edx, %edx
	jne	.L22
	movq	stdout(%rip), %rsi
	movl	$32, %edi
	call	putc@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L49:
	leaq	.LC6(%rip), %rsi
	movq	%r14, %rdi
	movq	%r8, 8(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	jmp	.L45
.L3:
	movslq	%r13d, %rax
	movl	%r8d, 44(%rsp)
	movl	$0, 48(%rsp,%rax,4)
	testl	%esi, %esi
	jne	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	leaq	.LC8(%rip), %rdi
	call	puts@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	.LC7(%rip), %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	movq	8(%rsp), %r8
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
.L14:
	testl	%eax, %eax
	jne	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	jmp	.L14
.L2:
	movq	5080(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$5096, %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
.L27:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L4
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.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>
#include <string.h>

#define M 1000

static int
openyan (
  const char * s,
  int n
  )
{
  const char * it;

  if ( !( n % 15 ) )  return ( !strcmp ( s, "FizzBuzz" ) );
  if ( !( n % 5 ) )   return ( !strcmp ( s, "Buzz" ) );
  if ( !( n % 3 ) )   return ( !strcmp ( s, "Fizz" ) );

  for ( it = s + strlen ( s ); ( it-- ) != s; )
  {
    if ( *it - '0' != ( n % 10 ) )  return ( 0 );
    n /= 10;
  }

  return ( !( n ) );
}

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

  for ( ; ; )
  {
    int d[ M ], p, pp, t;
    int m, n;

    scanf ( " %d %d", &m, &n );
    if ( !( m | n ) ) break ;

    for ( i = 0; i < m; ++i )
    {
      d[ i ] = i + 1;
    }
    d[ pp = m - 1 ] = 0;

    p = 0; t = 1;
    while ( n-- )
    {
      char s[ 1024 ];

      scanf ( " %s", s );
      if ( d[ p ] == p ) continue ;

      if ( !openyan ( s, t++ ) )
      {
        const int tp = p;
        d[ pp ] = d[ p ];
        p       = d[ p ];
        d[ tp ] = -1;
      }
      else
      {
        pp  = p;
        p   = d[ p ];
      }
    }

    p = 1;
    for ( i = 0; i < m; ++i )
    {
      if ( d[ i ] != -1 )
      {
        if ( p )  p = 0;
        else      putchar ( ' ' );
        printf ( "%d", i + 1 );
      }
    }
    puts ( "" );
  }

  return ( 0 );
}
5 7
1
0
Fizz
4
Buzz
6
7
3 5
1
2
3
4
5
0 0
 5 7
1
0
Fizz
4
Buzz
6
2
3 5
1
2
3
4
5
0 0
 5 7
1
0
Fizz
2
Buzz
6
2
3 5
1
2
4
4
8
0 0
 5 7
1
0
Fizz
2
zuzB
6
2
3 5
1
2
4
4
8
0 0
 5 7
1
2
Fizz
4
Buzz
6
7
3 5
1
1
3
4
5
0 0
 5 7
1
0
Fizz
2
zuzB
6
2
3 5
1
2
4
5
8
0 0
 5 7
1
0
Fizz
2
zuzB
2
2
3 5
2
1
4
4
8
0 0
 5 7
1
1
Fizz
4
Bu{z
6
7
3 5
1
2
3
4
5
0 0
 7 7
1
0
Fizz
4
Buzz
6
0
3 5
1
2
4
4
8
0 0
 5 7
1
0
zziF
2
zuzB
6
2
3 5
1
2
4
5
8
0 0

3 4 5
1
 4 5
1
 5
1
 3
1
 2 3 4 5
1
 3
2
 3
3
 3 4
1
 1 3 4 5
1
 1
2

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 M 1000

static int
openyan (
  const char * s,
  int n
  )
{
  const char * it;

  if ( !( n % 15 ) )  return ( !strcmp ( s, "FizzBuzz" ) );
  if ( !( n % 5 ) )   return ( !strcmp ( s, "Buzz" ) );
  if ( !( n % 3 ) )   return ( !strcmp ( s, "Fizz" ) );

  for ( it = s + strlen ( s ); ( it-- ) != s; )
  {
    if ( *it - '0' != ( n % 10 ) )  return ( 0 );
    n /= 10;
  }

  return ( !( n ) );
}

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

  for ( ; ; )
  {
    int d[ M ], p, pp, t;
    int m, n;

    scanf ( " %d %d", &m, &n );
    if ( !( m | n ) ) break ;

    for ( i = 0; i < m; ++i )
    {
      d[ i ] = i + 1;
    }
    d[ pp = m - 1 ] = 0;

    p = 0; t = 1;
    while ( n-- )
    {
      char s[ 1024 ];

      scanf ( " %s", s );
      if ( d[ p ] == p ) continue ;

      if ( !openyan ( s, t++ ) )
      {
        const int tp = p;
        d[ pp ] = d[ p ];
        p       = d[ p ];
        d[ tp ] = -1;
      }
      else
      {
        pp  = p;
        p   = d[ p ];
      }
    }

    p = 1;
    for ( i = 0; i < m; ++i )
    {
      if ( d[ i ] != -1 )
      {
        if ( p )  p = 0;
        else      putchar ( ' ' );
        printf ( "%d", i + 1 );
      }
    }
    puts ( "" );
  }

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"FizzBuzz"
.LC1:
	.string	"Buzz"
.LC2:
	.string	"Fizz"
	.text
	.type	openyan, @function
openyan:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$-2004318071, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$4, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L2
	movq	-24(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L2:
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	%eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$2, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L4
	movq	-24(%rbp), %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L4:
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movq	-24(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L5:
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-24(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L6
.L8:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %esi
	movl	-28(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	%edx, %esi
	je	.L7
	movl	$0, %eax
	jmp	.L3
.L7:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -28(%rbp)
.L6:
	movq	-8(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -8(%rbp)
	cmpq	%rax, -24(%rbp)
	jne	.L8
	cmpl	$0, -28(%rbp)
	sete	%al
	movzbl	%al, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	openyan, .-openyan
	.section	.rodata
.LC3:
	.string	" %d %d"
.LC4:
	.string	" %s"
.LC5:
	.string	"%d"
.LC6:
	.string	""
	.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$992, %rsp
	movl	%edi, -5076(%rbp)
	movq	%rsi, -5088(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L24:
	leaq	-5064(%rbp), %rdx
	leaq	-5068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5068(%rbp), %edx
	movl	-5064(%rbp), %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	jmp	.L26
.L10:
	movl	$0, -5060(%rbp)
	jmp	.L12
.L13:
	movl	-5060(%rbp), %eax
	leal	1(%rax), %edx
	movl	-5060(%rbp), %eax
	cltq
	movl	%edx, -5040(%rbp,%rax,4)
	addl	$1, -5060(%rbp)
.L12:
	movl	-5068(%rbp), %eax
	cmpl	%eax, -5060(%rbp)
	jl	.L13
	movl	-5068(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -5052(%rbp)
	movl	-5052(%rbp), %eax
	cltq
	movl	$0, -5040(%rbp,%rax,4)
	movl	$0, -5056(%rbp)
	movl	$1, -5048(%rbp)
	jmp	.L14
.L18:
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	cmpl	%eax, -5056(%rbp)
	jne	.L15
	jmp	.L14
.L15:
	movl	-5048(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -5048(%rbp)
	leaq	-1040(%rbp), %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	openyan
	testl	%eax, %eax
	jne	.L16
	movl	-5056(%rbp), %eax
	movl	%eax, -5044(%rbp)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %edx
	movl	-5052(%rbp), %eax
	cltq
	movl	%edx, -5040(%rbp,%rax,4)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	movl	%eax, -5056(%rbp)
	movl	-5044(%rbp), %eax
	cltq
	movl	$-1, -5040(%rbp,%rax,4)
	jmp	.L14
.L16:
	movl	-5056(%rbp), %eax
	movl	%eax, -5052(%rbp)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	movl	%eax, -5056(%rbp)
.L14:
	movl	-5064(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -5064(%rbp)
	testl	%eax, %eax
	jne	.L18
	movl	$1, -5056(%rbp)
	movl	$0, -5060(%rbp)
	jmp	.L19
.L23:
	movl	-5060(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L20
	cmpl	$0, -5056(%rbp)
	je	.L21
	movl	$0, -5056(%rbp)
	jmp	.L22
.L21:
	movl	$32, %edi
	call	putchar@PLT
.L22:
	movl	-5060(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	addl	$1, -5060(%rbp)
.L19:
	movl	-5068(%rbp), %eax
	cmpl	%eax, -5060(%rbp)
	jl	.L23
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L26:
	call	__stack_chk_fail@PLT
.L25:
	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
	.section	.rodata
.LC0:
	.string	"FizzBuzz"
.LC1:
	.string	"Buzz"
.LC2:
	.string	"Fizz"
	.text
	.type	openyan, @function
openyan:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$-2004318071, %rax, %rax
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$4, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L2
	movq	-24(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L2:
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	%eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$2, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L4
	movq	-24(%rbp), %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L4:
	movl	-28(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movq	-24(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	jmp	.L3
.L5:
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	-24(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L6
.L8:
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %esi
	movl	-28(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	%edx, %esi
	je	.L7
	movl	$0, %eax
	jmp	.L3
.L7:
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -28(%rbp)
.L6:
	movq	-8(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -8(%rbp)
	cmpq	%rax, -24(%rbp)
	jne	.L8
	cmpl	$0, -28(%rbp)
	sete	%al
	movzbl	%al, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	openyan, .-openyan
	.section	.rodata
.LC3:
	.string	" %d %d"
.LC4:
	.string	" %s"
.LC5:
	.string	"%d"
.LC6:
	.string	""
	.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$992, %rsp
	movl	%edi, -5076(%rbp)
	movq	%rsi, -5088(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L24:
	leaq	-5064(%rbp), %rdx
	leaq	-5068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5068(%rbp), %edx
	movl	-5064(%rbp), %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	jmp	.L26
.L10:
	movl	$0, -5060(%rbp)
	jmp	.L12
.L13:
	movl	-5060(%rbp), %eax
	leal	1(%rax), %edx
	movl	-5060(%rbp), %eax
	cltq
	movl	%edx, -5040(%rbp,%rax,4)
	addl	$1, -5060(%rbp)
.L12:
	movl	-5068(%rbp), %eax
	cmpl	%eax, -5060(%rbp)
	jl	.L13
	movl	-5068(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -5052(%rbp)
	movl	-5052(%rbp), %eax
	cltq
	movl	$0, -5040(%rbp,%rax,4)
	movl	$0, -5056(%rbp)
	movl	$1, -5048(%rbp)
	jmp	.L14
.L18:
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	cmpl	%eax, -5056(%rbp)
	jne	.L15
	jmp	.L14
.L15:
	movl	-5048(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -5048(%rbp)
	leaq	-1040(%rbp), %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	openyan
	testl	%eax, %eax
	jne	.L16
	movl	-5056(%rbp), %eax
	movl	%eax, -5044(%rbp)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %edx
	movl	-5052(%rbp), %eax
	cltq
	movl	%edx, -5040(%rbp,%rax,4)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	movl	%eax, -5056(%rbp)
	movl	-5044(%rbp), %eax
	cltq
	movl	$-1, -5040(%rbp,%rax,4)
	jmp	.L14
.L16:
	movl	-5056(%rbp), %eax
	movl	%eax, -5052(%rbp)
	movl	-5056(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	movl	%eax, -5056(%rbp)
.L14:
	movl	-5064(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -5064(%rbp)
	testl	%eax, %eax
	jne	.L18
	movl	$1, -5056(%rbp)
	movl	$0, -5060(%rbp)
	jmp	.L19
.L23:
	movl	-5060(%rbp), %eax
	cltq
	movl	-5040(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L20
	cmpl	$0, -5056(%rbp)
	je	.L21
	movl	$0, -5056(%rbp)
	jmp	.L22
.L21:
	movl	$32, %edi
	call	putchar@PLT
.L22:
	movl	-5060(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	addl	$1, -5060(%rbp)
.L19:
	movl	-5068(%rbp), %eax
	cmpl	%eax, -5060(%rbp)
	jl	.L23
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L26:
	call	__stack_chk_fail@PLT
.L25:
	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:
