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

```c
#include <stdio.h>

int main()
{
    int n, m;
    char str[10];
    int x;
    int i, j;
    

    
    scanf("%d %d", &m, &n);
    while (n != 0 && m != 0) {
        int p = 1, q = m;
        int players[1005] = {};
        int print[1005];
        int size = 0;
        
        for (i = 1; i <= n; i++) {
            scanf("%s", str);
            
            if ( q > 1) {
                if ( i % 3 == 0 && i % 5 == 0) {
                    if (strcmp(str, "FizzBuzz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 3 == 0 && i % 5 != 0) {
                    if (strcmp(str, "Fizz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 3 != 0 && i % 5 == 0) {
                    if (strcmp(str, "Buzz") != 0) {
                        players[p] = 1;
                    }
                } else {
                    x = 0;
                    for (j = 0; j < strlen(str); j++) {
                        x *= 10;
                        x += str[j] - '0';
                    }

                    if (x != i || 
                        strcmp(str, "Fizz") == 0 ||
                        strcmp(str, "Buzz") == 0 ||
                        strcmp(str, "FizzBuzz") == 0) {
                        players[p] = 1;
                    }
                }

                if (players[p] == 1) q--;
                do {
                    p++;
                    if (p > m) p = 1;
                } while(players[p] == 1);

            }

        }

        for (i = 1; i <= m; i++) {
            if (players[i] == 0) {
                print[size] = i;
                size++;
            }
        }

        for (i = 0; i < size; i++) {
            if (i) printf(" ");
            printf("%d", print[i]);
        }
        putchar('\n');

        scanf("%d %d", &m, &n);
    }

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"FizzBuzz"
.LC3:
	.string	"Fizz"
.LC4:
	.string	"Buzz"
.LC5:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-8128(%rbp), %rdx
	leaq	-8124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L26:
	movl	$1, -8108(%rbp)
	movl	-8124(%rbp), %eax
	movl	%eax, -8104(%rbp)
	leaq	-8096(%rbp), %rdx
	movl	$0, %eax
	movl	$502, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$0, -8100(%rbp)
	movl	$1, -8116(%rbp)
	jmp	.L3
.L18:
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, -8104(%rbp)
	jle	.L4
	movl	-8116(%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
	movl	-8116(%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	.L5
	leaq	-34(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L29
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L29
.L5:
	movl	-8116(%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	.L8
	movl	-8116(%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
	je	.L8
	leaq	-34(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L30
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L30
.L8:
	movl	-8116(%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
	je	.L10
	movl	-8116(%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	.L10
	leaq	-34(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L31
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L31
.L10:
	movl	$0, -8120(%rbp)
	movl	$0, -8112(%rbp)
	jmp	.L12
.L13:
	movl	-8120(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -8120(%rbp)
	movl	-8112(%rbp), %eax
	cltq
	movzbl	-34(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%eax, -8120(%rbp)
	addl	$1, -8112(%rbp)
.L12:
	movl	-8112(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-34(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L13
	movl	-8120(%rbp), %eax
	cmpl	-8116(%rbp), %eax
	jne	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
.L14:
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L7
.L29:
	nop
	jmp	.L7
.L30:
	nop
	jmp	.L7
.L31:
	nop
.L7:
	movl	-8108(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	subl	$1, -8104(%rbp)
.L17:
	addl	$1, -8108(%rbp)
	movl	-8124(%rbp), %eax
	cmpl	%eax, -8108(%rbp)
	jle	.L16
	movl	$1, -8108(%rbp)
.L16:
	movl	-8108(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L17
.L4:
	addl	$1, -8116(%rbp)
.L3:
	movl	-8128(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jle	.L18
	movl	$1, -8116(%rbp)
	jmp	.L19
.L21:
	movl	-8116(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L20
	movl	-8100(%rbp), %eax
	cltq
	movl	-8116(%rbp), %edx
	movl	%edx, -4064(%rbp,%rax,4)
	addl	$1, -8100(%rbp)
.L20:
	addl	$1, -8116(%rbp)
.L19:
	movl	-8124(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jle	.L21
	movl	$0, -8116(%rbp)
	jmp	.L22
.L24:
	cmpl	$0, -8116(%rbp)
	je	.L23
	movl	$32, %edi
	call	putchar@PLT
.L23:
	movl	-8116(%rbp), %eax
	cltq
	movl	-4064(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -8116(%rbp)
.L22:
	movl	-8116(%rbp), %eax
	cmpl	-8100(%rbp), %eax
	jl	.L24
	movl	$10, %edi
	call	putchar@PLT
	leaq	-8128(%rbp), %rdx
	leaq	-8124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-8128(%rbp), %eax
	testl	%eax, %eax
	je	.L25
	movl	-8124(%rbp), %eax
	testl	%eax, %eax
	jne	.L26
.L25:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	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 %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"FizzBuzz"
.LC3:
	.string	"Fizz"
.LC4:
	.string	"Buzz"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$4024, %rsp
	.cfi_def_cfa_offset 8176
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 8104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	movq	%rdx, (%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	je	.L20
	.p2align 4,,10
	.p2align 3
.L2:
	movl	28(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L20
	leaq	32(%rsp), %r13
	movl	$502, %ecx
	xorl	%eax, %eax
	movq	%r13, %rdi
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	movl	$1, %r14d
	movl	$1, %ebx
	leaq	8094(%rsp), %rbp
.L28:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %r12d
	jg	.L86
	addl	$1, %ebx
	cmpl	%ebx, 24(%rsp)
	jl	.L83
.L18:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	cmpl	24(%rsp), %ebx
	jle	.L18
.L83:
	movl	28(%rsp), %eax
.L17:
	movl	%eax, %r12d
.L3:
	testl	%r12d, %r12d
	jle	.L23
	leal	1(%r12), %ecx
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L22:
	movl	0(%r13,%rax,4), %esi
	testl	%esi, %esi
	jne	.L21
	movslq	%edx, %rsi
	addl	$1, %edx
	movl	%eax, 4064(%rsp,%rsi,4)
.L21:
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L22
	testl	%edx, %edx
	je	.L23
	leal	-1(%rdx), %eax
	leaq	4064(%rsp), %rbx
	leaq	4068(%rsp,%rax,4), %r12
	leaq	.LC5(%rip), %rbp
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	movl	$32, %edi
	call	putchar@PLT
.L24:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L25
.L23:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jne	.L2
.L20:
	movq	8104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L87
	addq	$8120, %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
.L86:
	.cfi_restore_state
	movl	%ebx, %eax
	movl	$3435973837, %ecx
	imulq	%rcx, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	imull	$-1431655765, %ebx, %edx
	cmpl	$1431655765, %edx
	jbe	.L88
	testl	%eax, %eax
	jne	.L89
	leaq	.LC4(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L7
.L11:
	movslq	%r14d, %rax
	movl	$1, 32(%rsp,%rax,4)
.L8:
	subl	$1, %r12d
.L27:
	movl	28(%rsp), %eax
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %r14d
	cmpl	%r14d, %eax
	jge	.L13
	movl	36(%rsp), %r14d
	cmpl	$1, %r14d
	je	.L16
	movl	$1, %r14d
.L15:
	addl	$1, %ebx
	cmpl	24(%rsp), %ebx
	jle	.L28
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	%r14d, %rdx
	cmpl	$1, 32(%rsp,%rdx,4)
	je	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	.LC3(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
.L7:
	movslq	%r14d, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L27
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L88:
	testl	%eax, %eax
	jne	.L6
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movslq	%r14d, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L27
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L89:
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	testq	%rax, %rax
	je	.L11
	movsbl	8094(%rsp), %eax
	subl	$48, %eax
	cmpq	$1, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8095(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$2, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8096(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$3, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8097(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$4, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8098(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$5, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8099(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$6, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8100(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$7, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8101(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$9, %rdx
	jne	.L12
	leal	(%rax,%rax,4), %edx
	movsbl	8102(%rsp), %eax
	leal	-48(%rax,%rdx,2), %eax
.L12:
	cmpl	%eax, %ebx
	jne	.L11
	leaq	.LC3(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	leaq	.LC4(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	jmp	.L11
.L87:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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 %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"FizzBuzz"
.LC3:
	.string	"Fizz"
.LC4:
	.string	"Buzz"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$4024, %rsp
	.cfi_def_cfa_offset 8176
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r15
	movq	%fs:40, %rax
	movq	%rax, 8104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	movq	%rdx, (%rsp)
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	je	.L20
	.p2align 4,,10
	.p2align 3
.L2:
	movl	28(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L20
	leaq	32(%rsp), %r13
	movl	$502, %ecx
	xorl	%eax, %eax
	movq	%r13, %rdi
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	movl	$1, %r14d
	movl	$1, %ebx
	leaq	8094(%rsp), %rbp
.L28:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %r12d
	jg	.L86
	addl	$1, %ebx
	cmpl	%ebx, 24(%rsp)
	jl	.L83
.L18:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	cmpl	24(%rsp), %ebx
	jle	.L18
.L83:
	movl	28(%rsp), %eax
.L17:
	movl	%eax, %r12d
.L3:
	testl	%r12d, %r12d
	jle	.L23
	leal	1(%r12), %ecx
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L22:
	movl	0(%r13,%rax,4), %esi
	testl	%esi, %esi
	jne	.L21
	movslq	%edx, %rsi
	addl	$1, %edx
	movl	%eax, 4064(%rsp,%rsi,4)
.L21:
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L22
	testl	%edx, %edx
	je	.L23
	leal	-1(%rdx), %eax
	leaq	4064(%rsp), %rbx
	leaq	4068(%rsp,%rax,4), %r12
	leaq	.LC5(%rip), %rbp
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	movl	$32, %edi
	call	putchar@PLT
.L24:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L25
.L23:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	movq	(%rsp), %rdx
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jne	.L2
.L20:
	movq	8104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L87
	addq	$8120, %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
.L86:
	.cfi_restore_state
	movl	%ebx, %eax
	movl	$3435973837, %ecx
	imulq	%rcx, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	imull	$-1431655765, %ebx, %edx
	cmpl	$1431655765, %edx
	jbe	.L88
	testl	%eax, %eax
	jne	.L89
	leaq	.LC4(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L7
.L11:
	movslq	%r14d, %rax
	movl	$1, 32(%rsp,%rax,4)
.L8:
	subl	$1, %r12d
.L27:
	movl	28(%rsp), %eax
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %r14d
	cmpl	%r14d, %eax
	jge	.L13
	movl	36(%rsp), %r14d
	cmpl	$1, %r14d
	je	.L16
	movl	$1, %r14d
.L15:
	addl	$1, %ebx
	cmpl	24(%rsp), %ebx
	jle	.L28
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	%r14d, %rdx
	cmpl	$1, 32(%rsp,%rdx,4)
	je	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	.LC3(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
.L7:
	movslq	%r14d, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L27
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L88:
	testl	%eax, %eax
	jne	.L6
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movslq	%r14d, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L27
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L89:
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	testq	%rax, %rax
	je	.L11
	movsbl	8094(%rsp), %eax
	subl	$48, %eax
	cmpq	$1, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8095(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$2, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8096(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$3, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8097(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$4, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8098(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$5, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8099(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$6, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8100(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$7, %rdx
	je	.L12
	leal	(%rax,%rax,4), %ecx
	movsbl	8101(%rsp), %eax
	leal	-48(%rax,%rcx,2), %eax
	cmpq	$9, %rdx
	jne	.L12
	leal	(%rax,%rax,4), %edx
	movsbl	8102(%rsp), %eax
	leal	-48(%rax,%rdx,2), %eax
.L12:
	cmpl	%eax, %ebx
	jne	.L11
	leaq	.LC3(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	leaq	.LC4(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
	jmp	.L11
.L87:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main()
{
    int n, m;
    char str[10];
    int x;
    int i, j;
    

    
    scanf("%d %d", &m, &n);
    while (n != 0 && m != 0) {
        int p = 1, q = m;
        int players[1005] = {};
        int print[1005];
        int size = 0;
        
        for (i = 1; i <= n; i++) {
            scanf("%s", str);
            
            if ( q > 1) {
                if ( i % 3 == 0 && i % 5 == 0) {
                    if (strcmp(str, "FizzBuzz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 3 == 0 && i % 5 != 0) {
                    if (strcmp(str, "Fizz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 3 != 0 && i % 5 == 0) {
                    if (strcmp(str, "Buzz") != 0) {
                        players[p] = 1;
                    }
                } else {
                    x = 0;
                    for (j = 0; j < strlen(str); j++) {
                        x *= 10;
                        x += str[j] - '0';
                    }

                    if (x != i || 
                        strcmp(str, "Fizz") == 0 ||
                        strcmp(str, "Buzz") == 0 ||
                        strcmp(str, "FizzBuzz") == 0) {
                        players[p] = 1;
                    }
                }

                if (players[p] == 1) q--;
                do {
                    p++;
                    if (p > m) p = 1;
                } while(players[p] == 1);

            }

        }

        for (i = 1; i <= m; i++) {
            if (players[i] == 0) {
                print[size] = i;
                size++;
            }
        }

        for (i = 0; i < size; i++) {
            if (i) printf(" ");
            printf("%d", print[i]);
        }
        putchar('\n');

        scanf("%d %d", &m, &n);
    }

    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>

int main()
{
    int n, m;
    char str[10];
    int x;
    int i, j;
    

    
    scanf("%d %d", &m, &n);
    while (n != 0 && m != 0) {
        int p = 1, q = m;
        int players[1005] = {};
        int print[1005];
        int size = 0;
        
        for (i = 1; i <= n; i++) {
            scanf("%s", str);
            
            if ( q > 1) {
                if ( i % 3 == 0 && i % 5 == 0) {
                    if (strcmp(str, "FizzBuzz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 3 == 0 && i % 5 != 0) {
                    if (strcmp(str, "Fizz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 3 != 0 && i % 5 == 0) {
                    if (strcmp(str, "Buzz") != 0) {
                        players[p] = 1;
                    }
                } else {
                    x = 0;
                    for (j = 0; j < strlen(str); j++) {
                        x *= 10;
                        x += str[j] - '0';
                    }

                    if (x != i || 
                        strcmp(str, "Fizz") == 0 ||
                        strcmp(str, "Buzz") == 0 ||
                        strcmp(str, "FizzBuzz") == 0) {
                        players[p] = 1;
                    }
                }

                if (players[p] == 1) q--;
                do {
                    p++;
                    if (p > m) p = 1;
                } while(players[p] == 1);

            }

        }

        for (i = 1; i <= m; i++) {
            if (players[i] == 0) {
                print[size] = i;
                size++;
            }
        }

        for (i = 0; i < size; i++) {
            if (i) printf(" ");
            printf("%d", print[i]);
        }
        putchar('\n');

        scanf("%d %d", &m, &n);
    }

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"FizzBuzz"
.LC3:
	.string	"Fizz"
.LC4:
	.string	"Buzz"
.LC5:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-8128(%rbp), %rdx
	leaq	-8124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L26:
	movl	$1, -8108(%rbp)
	movl	-8124(%rbp), %eax
	movl	%eax, -8104(%rbp)
	leaq	-8096(%rbp), %rdx
	movl	$0, %eax
	movl	$502, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$0, -8100(%rbp)
	movl	$1, -8116(%rbp)
	jmp	.L3
.L18:
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, -8104(%rbp)
	jle	.L4
	movl	-8116(%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
	movl	-8116(%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	.L5
	leaq	-34(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L29
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L29
.L5:
	movl	-8116(%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	.L8
	movl	-8116(%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
	je	.L8
	leaq	-34(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L30
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L30
.L8:
	movl	-8116(%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
	je	.L10
	movl	-8116(%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	.L10
	leaq	-34(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L31
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L31
.L10:
	movl	$0, -8120(%rbp)
	movl	$0, -8112(%rbp)
	jmp	.L12
.L13:
	movl	-8120(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -8120(%rbp)
	movl	-8112(%rbp), %eax
	cltq
	movzbl	-34(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%eax, -8120(%rbp)
	addl	$1, -8112(%rbp)
.L12:
	movl	-8112(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-34(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L13
	movl	-8120(%rbp), %eax
	cmpl	-8116(%rbp), %eax
	jne	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
.L14:
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L7
.L29:
	nop
	jmp	.L7
.L30:
	nop
	jmp	.L7
.L31:
	nop
.L7:
	movl	-8108(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	subl	$1, -8104(%rbp)
.L17:
	addl	$1, -8108(%rbp)
	movl	-8124(%rbp), %eax
	cmpl	%eax, -8108(%rbp)
	jle	.L16
	movl	$1, -8108(%rbp)
.L16:
	movl	-8108(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L17
.L4:
	addl	$1, -8116(%rbp)
.L3:
	movl	-8128(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jle	.L18
	movl	$1, -8116(%rbp)
	jmp	.L19
.L21:
	movl	-8116(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L20
	movl	-8100(%rbp), %eax
	cltq
	movl	-8116(%rbp), %edx
	movl	%edx, -4064(%rbp,%rax,4)
	addl	$1, -8100(%rbp)
.L20:
	addl	$1, -8116(%rbp)
.L19:
	movl	-8124(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jle	.L21
	movl	$0, -8116(%rbp)
	jmp	.L22
.L24:
	cmpl	$0, -8116(%rbp)
	je	.L23
	movl	$32, %edi
	call	putchar@PLT
.L23:
	movl	-8116(%rbp), %eax
	cltq
	movl	-4064(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -8116(%rbp)
.L22:
	movl	-8116(%rbp), %eax
	cmpl	-8100(%rbp), %eax
	jl	.L24
	movl	$10, %edi
	call	putchar@PLT
	leaq	-8128(%rbp), %rdx
	leaq	-8124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-8128(%rbp), %eax
	testl	%eax, %eax
	je	.L25
	movl	-8124(%rbp), %eax
	testl	%eax, %eax
	jne	.L26
.L25:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	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 %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"FizzBuzz"
.LC3:
	.string	"Fizz"
.LC4:
	.string	"Buzz"
.LC5:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-8128(%rbp), %rdx
	leaq	-8124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L26:
	movl	$1, -8108(%rbp)
	movl	-8124(%rbp), %eax
	movl	%eax, -8104(%rbp)
	leaq	-8096(%rbp), %rdx
	movl	$0, %eax
	movl	$502, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$0, -8100(%rbp)
	movl	$1, -8116(%rbp)
	jmp	.L3
.L18:
	leaq	-34(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, -8104(%rbp)
	jle	.L4
	movl	-8116(%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
	movl	-8116(%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	.L5
	leaq	-34(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L29
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L29
.L5:
	movl	-8116(%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	.L8
	movl	-8116(%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
	je	.L8
	leaq	-34(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L30
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L30
.L8:
	movl	-8116(%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
	je	.L10
	movl	-8116(%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	.L10
	leaq	-34(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L31
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L31
.L10:
	movl	$0, -8120(%rbp)
	movl	$0, -8112(%rbp)
	jmp	.L12
.L13:
	movl	-8120(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -8120(%rbp)
	movl	-8112(%rbp), %eax
	cltq
	movzbl	-34(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%eax, -8120(%rbp)
	addl	$1, -8112(%rbp)
.L12:
	movl	-8112(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-34(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L13
	movl	-8120(%rbp), %eax
	cmpl	-8116(%rbp), %eax
	jne	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L14
	leaq	-34(%rbp), %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
.L14:
	movl	-8108(%rbp), %eax
	cltq
	movl	$1, -8096(%rbp,%rax,4)
	jmp	.L7
.L29:
	nop
	jmp	.L7
.L30:
	nop
	jmp	.L7
.L31:
	nop
.L7:
	movl	-8108(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	subl	$1, -8104(%rbp)
.L17:
	addl	$1, -8108(%rbp)
	movl	-8124(%rbp), %eax
	cmpl	%eax, -8108(%rbp)
	jle	.L16
	movl	$1, -8108(%rbp)
.L16:
	movl	-8108(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L17
.L4:
	addl	$1, -8116(%rbp)
.L3:
	movl	-8128(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jle	.L18
	movl	$1, -8116(%rbp)
	jmp	.L19
.L21:
	movl	-8116(%rbp), %eax
	cltq
	movl	-8096(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L20
	movl	-8100(%rbp), %eax
	cltq
	movl	-8116(%rbp), %edx
	movl	%edx, -4064(%rbp,%rax,4)
	addl	$1, -8100(%rbp)
.L20:
	addl	$1, -8116(%rbp)
.L19:
	movl	-8124(%rbp), %eax
	cmpl	%eax, -8116(%rbp)
	jle	.L21
	movl	$0, -8116(%rbp)
	jmp	.L22
.L24:
	cmpl	$0, -8116(%rbp)
	je	.L23
	movl	$32, %edi
	call	putchar@PLT
.L23:
	movl	-8116(%rbp), %eax
	cltq
	movl	-4064(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -8116(%rbp)
.L22:
	movl	-8116(%rbp), %eax
	cmpl	-8100(%rbp), %eax
	jl	.L24
	movl	$10, %edi
	call	putchar@PLT
	leaq	-8128(%rbp), %rdx
	leaq	-8124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-8128(%rbp), %eax
	testl	%eax, %eax
	je	.L25
	movl	-8124(%rbp), %eax
	testl	%eax, %eax
	jne	.L26
.L25:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	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:
