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>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int count,i;
    char play[1000];
    while(gets(play))
    {
        count=0;
        int len=strlen(play);
        for(i=0;i<len;i++)
        {
            if(play[i]=='x')
            {
                count++;
            }
        }
        if(count>7)
        {
            printf("NO\n");
        }
        else if(count<=7)
        {
            printf("YES\n");
        }
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$1008, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 1000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	je	.L33
.L24:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %eax
	cmpl	$14, %eax
	jbe	.L26
	movl	%edx, %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm5, %xmm5
	movq	%rbx, %rax
	shrl	$4, %ecx
	pxor	%xmm4, %xmm4
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	16(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rax), %xmm0
	movdqa	%xmm5, %xmm3
	addq	$16, %rax
	pcmpeqb	.LC0(%rip), %xmm0
	pand	.LC1(%rip), %xmm0
	pcmpgtb	%xmm0, %xmm3
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm3, %xmm2
	punpckhbw	%xmm3, %xmm0
	movdqa	%xmm4, %xmm3
	pcmpgtw	%xmm2, %xmm3
	movdqa	%xmm2, %xmm6
	punpcklwd	%xmm3, %xmm6
	punpckhwd	%xmm3, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm6, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm4, %xmm2
	pcmpgtw	%xmm0, %xmm2
	punpcklwd	%xmm2, %xmm3
	punpckhwd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L5
	movdqa	%xmm1, %xmm0
	movl	%edx, %ecx
	psrldq	$8, %xmm0
	andl	$-16, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	testb	$15, %dl
	je	.L6
.L4:
	movslq	%ecx, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L7
	addl	$1, %eax
.L7:
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L8
	addl	$1, %eax
.L8:
	leal	2(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L9
	addl	$1, %eax
.L9:
	leal	3(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L10
	addl	$1, %eax
.L10:
	leal	4(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L11
	addl	$1, %eax
.L11:
	leal	5(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L12
	addl	$1, %eax
.L12:
	leal	6(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L13
	addl	$1, %eax
.L13:
	leal	7(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L14
	addl	$1, %eax
.L14:
	leal	8(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L15
	addl	$1, %eax
.L15:
	leal	9(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L16
	addl	$1, %eax
.L16:
	leal	10(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L17
	addl	$1, %eax
.L17:
	leal	11(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L18
	addl	$1, %eax
.L18:
	leal	12(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L19
	addl	$1, %eax
.L19:
	leal	13(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L20
	addl	$1, %eax
.L20:
	addl	$14, %ecx
	cmpl	%ecx, %edx
	jle	.L6
	movslq	%ecx, %rcx
	cmpb	$120, (%rsp,%rcx)
	jne	.L6
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$7, %eax
	jle	.L3
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	jne	.L24
.L33:
	movq	1000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1008, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.align 16
.LC1:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	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:
```

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
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$1008, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 1000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	je	.L33
.L24:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %eax
	cmpl	$14, %eax
	jbe	.L26
	movl	%edx, %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm5, %xmm5
	movq	%rbx, %rax
	shrl	$4, %ecx
	pxor	%xmm4, %xmm4
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	16(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rax), %xmm0
	movdqa	%xmm5, %xmm3
	addq	$16, %rax
	pcmpeqb	.LC0(%rip), %xmm0
	pand	.LC1(%rip), %xmm0
	pcmpgtb	%xmm0, %xmm3
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm3, %xmm2
	punpckhbw	%xmm3, %xmm0
	movdqa	%xmm4, %xmm3
	pcmpgtw	%xmm2, %xmm3
	movdqa	%xmm2, %xmm6
	punpcklwd	%xmm3, %xmm6
	punpckhwd	%xmm3, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm6, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm4, %xmm2
	pcmpgtw	%xmm0, %xmm2
	punpcklwd	%xmm2, %xmm3
	punpckhwd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L5
	movdqa	%xmm1, %xmm0
	movl	%edx, %ecx
	psrldq	$8, %xmm0
	andl	$-16, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	testb	$15, %dl
	je	.L6
.L4:
	movslq	%ecx, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L7
	addl	$1, %eax
.L7:
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L8
	addl	$1, %eax
.L8:
	leal	2(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L9
	addl	$1, %eax
.L9:
	leal	3(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L10
	addl	$1, %eax
.L10:
	leal	4(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L11
	addl	$1, %eax
.L11:
	leal	5(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L12
	addl	$1, %eax
.L12:
	leal	6(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L13
	addl	$1, %eax
.L13:
	leal	7(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L14
	addl	$1, %eax
.L14:
	leal	8(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L15
	addl	$1, %eax
.L15:
	leal	9(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L16
	addl	$1, %eax
.L16:
	leal	10(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L17
	addl	$1, %eax
.L17:
	leal	11(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L18
	addl	$1, %eax
.L18:
	leal	12(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L19
	addl	$1, %eax
.L19:
	leal	13(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L20
	addl	$1, %eax
.L20:
	addl	$14, %ecx
	cmpl	%ecx, %edx
	jle	.L6
	movslq	%ecx, %rcx
	cmpb	$120, (%rsp,%rcx)
	jne	.L6
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$7, %eax
	jle	.L3
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	jne	.L24
.L33:
	movq	1000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1008, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.align 16
.LC1:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$1008, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 1000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	je	.L33
.L24:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %eax
	cmpl	$14, %eax
	jbe	.L26
	movl	%edx, %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm5, %xmm5
	movq	%rbx, %rax
	shrl	$4, %ecx
	pxor	%xmm4, %xmm4
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	16(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rax), %xmm0
	movdqa	%xmm5, %xmm3
	addq	$16, %rax
	pcmpeqb	.LC0(%rip), %xmm0
	pand	.LC1(%rip), %xmm0
	pcmpgtb	%xmm0, %xmm3
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm3, %xmm2
	punpckhbw	%xmm3, %xmm0
	movdqa	%xmm4, %xmm3
	pcmpgtw	%xmm2, %xmm3
	movdqa	%xmm2, %xmm6
	punpcklwd	%xmm3, %xmm6
	punpckhwd	%xmm3, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm6, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm4, %xmm2
	pcmpgtw	%xmm0, %xmm2
	punpcklwd	%xmm2, %xmm3
	punpckhwd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L5
	movdqa	%xmm1, %xmm0
	movl	%edx, %ecx
	psrldq	$8, %xmm0
	andl	$-16, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	testb	$15, %dl
	je	.L6
.L4:
	movslq	%ecx, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L7
	addl	$1, %eax
.L7:
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L8
	addl	$1, %eax
.L8:
	leal	2(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L9
	addl	$1, %eax
.L9:
	leal	3(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L10
	addl	$1, %eax
.L10:
	leal	4(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L11
	addl	$1, %eax
.L11:
	leal	5(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L12
	addl	$1, %eax
.L12:
	leal	6(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L13
	addl	$1, %eax
.L13:
	leal	7(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L14
	addl	$1, %eax
.L14:
	leal	8(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L15
	addl	$1, %eax
.L15:
	leal	9(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L16
	addl	$1, %eax
.L16:
	leal	10(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L17
	addl	$1, %eax
.L17:
	leal	11(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L18
	addl	$1, %eax
.L18:
	leal	12(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L19
	addl	$1, %eax
.L19:
	leal	13(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L20
	addl	$1, %eax
.L20:
	addl	$14, %ecx
	cmpl	%ecx, %edx
	jle	.L6
	movslq	%ecx, %rcx
	cmpb	$120, (%rsp,%rcx)
	jne	.L6
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$7, %eax
	jle	.L3
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	jne	.L24
.L33:
	movq	1000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1008, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.align 16
.LC1:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	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:
```
```c
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int count,i;
    char play[1000];
    while(gets(play))
    {
        count=0;
        int len=strlen(play);
        for(i=0;i<len;i++)
        {
            if(play[i]=='x')
            {
                count++;
            }
        }
        if(count>7)
        {
            printf("NO\n");
        }
        else if(count<=7)
        {
            printf("YES\n");
        }
    }
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int count,i;
    char play[1000];
    while(gets(play))
    {
        count=0;
        int len=strlen(play);
        for(i=0;i<len;i++)
        {
            if(play[i]=='x')
            {
                count++;
            }
        }
        if(count>7)
        {
            printf("NO\n");
        }
        else if(count<=7)
        {
            printf("YES\n");
        }
    }
    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:

xoxoxoxoxoxoxo
 oxoxowoxoxoxox
 oxoxowoooxoxxx
 xxxoxooowoxoxo
 xoxoxooxwoxoxo
 xoxoyoxoxoxoxo
 xxxoxoooooxwxo
 xoxowooxwoxoxo
 oxoxoxoxoyoxox
 xoxoxoxoxoyoxo

YES
 YES
 YES
 YES
 YES
 YES
 YES
 YES
 YES
 YES

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>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int count,i;
    char play[1000];
    while(gets(play))
    {
        count=0;
        int len=strlen(play);
        for(i=0;i<len;i++)
        {
            if(play[i]=='x')
            {
                count++;
            }
        }
        if(count>7)
        {
            printf("NO\n");
        }
        else if(count<=7)
        {
            printf("YES\n");
        }
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$1008, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 1000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	je	.L33
.L24:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %eax
	cmpl	$14, %eax
	jbe	.L26
	movl	%edx, %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm5, %xmm5
	movq	%rbx, %rax
	shrl	$4, %ecx
	pxor	%xmm4, %xmm4
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	16(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rax), %xmm0
	movdqa	%xmm5, %xmm3
	addq	$16, %rax
	pcmpeqb	.LC0(%rip), %xmm0
	pand	.LC1(%rip), %xmm0
	pcmpgtb	%xmm0, %xmm3
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm3, %xmm2
	punpckhbw	%xmm3, %xmm0
	movdqa	%xmm4, %xmm3
	pcmpgtw	%xmm2, %xmm3
	movdqa	%xmm2, %xmm6
	punpcklwd	%xmm3, %xmm6
	punpckhwd	%xmm3, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm6, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm4, %xmm2
	pcmpgtw	%xmm0, %xmm2
	punpcklwd	%xmm2, %xmm3
	punpckhwd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L5
	movdqa	%xmm1, %xmm0
	movl	%edx, %ecx
	psrldq	$8, %xmm0
	andl	$-16, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	testb	$15, %dl
	je	.L6
.L4:
	movslq	%ecx, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L7
	addl	$1, %eax
.L7:
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L8
	addl	$1, %eax
.L8:
	leal	2(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L9
	addl	$1, %eax
.L9:
	leal	3(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L10
	addl	$1, %eax
.L10:
	leal	4(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L11
	addl	$1, %eax
.L11:
	leal	5(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L12
	addl	$1, %eax
.L12:
	leal	6(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L13
	addl	$1, %eax
.L13:
	leal	7(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L14
	addl	$1, %eax
.L14:
	leal	8(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L15
	addl	$1, %eax
.L15:
	leal	9(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L16
	addl	$1, %eax
.L16:
	leal	10(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L17
	addl	$1, %eax
.L17:
	leal	11(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L18
	addl	$1, %eax
.L18:
	leal	12(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L19
	addl	$1, %eax
.L19:
	leal	13(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L20
	addl	$1, %eax
.L20:
	addl	$14, %ecx
	cmpl	%ecx, %edx
	jle	.L6
	movslq	%ecx, %rcx
	cmpb	$120, (%rsp,%rcx)
	jne	.L6
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$7, %eax
	jle	.L3
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	jne	.L24
.L33:
	movq	1000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1008, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.align 16
.LC1:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	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:
```

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
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$1008, %rsp
	.cfi_def_cfa_offset 1040
	movq	%fs:40, %rax
	movq	%rax, 1000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	je	.L33
.L24:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	testq	%rax, %rax
	je	.L3
	leal	-1(%rax), %eax
	cmpl	$14, %eax
	jbe	.L26
	movl	%edx, %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm5, %xmm5
	movq	%rbx, %rax
	shrl	$4, %ecx
	pxor	%xmm4, %xmm4
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	16(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rax), %xmm0
	movdqa	%xmm5, %xmm3
	addq	$16, %rax
	pcmpeqb	.LC0(%rip), %xmm0
	pand	.LC1(%rip), %xmm0
	pcmpgtb	%xmm0, %xmm3
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm3, %xmm2
	punpckhbw	%xmm3, %xmm0
	movdqa	%xmm4, %xmm3
	pcmpgtw	%xmm2, %xmm3
	movdqa	%xmm2, %xmm6
	punpcklwd	%xmm3, %xmm6
	punpckhwd	%xmm3, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm6, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm4, %xmm2
	pcmpgtw	%xmm0, %xmm2
	punpcklwd	%xmm2, %xmm3
	punpckhwd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L5
	movdqa	%xmm1, %xmm0
	movl	%edx, %ecx
	psrldq	$8, %xmm0
	andl	$-16, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	testb	$15, %dl
	je	.L6
.L4:
	movslq	%ecx, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L7
	addl	$1, %eax
.L7:
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L8
	addl	$1, %eax
.L8:
	leal	2(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L9
	addl	$1, %eax
.L9:
	leal	3(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L10
	addl	$1, %eax
.L10:
	leal	4(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L11
	addl	$1, %eax
.L11:
	leal	5(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L12
	addl	$1, %eax
.L12:
	leal	6(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L13
	addl	$1, %eax
.L13:
	leal	7(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L14
	addl	$1, %eax
.L14:
	leal	8(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L15
	addl	$1, %eax
.L15:
	leal	9(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L16
	addl	$1, %eax
.L16:
	leal	10(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L17
	addl	$1, %eax
.L17:
	leal	11(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L18
	addl	$1, %eax
.L18:
	leal	12(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L19
	addl	$1, %eax
.L19:
	leal	13(%rcx), %esi
	cmpl	%esi, %edx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$120, (%rsp,%rsi)
	jne	.L20
	addl	$1, %eax
.L20:
	addl	$14, %ecx
	cmpl	%ecx, %edx
	jle	.L6
	movslq	%ecx, %rcx
	cmpb	$120, (%rsp,%rcx)
	jne	.L6
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	$7, %eax
	jle	.L3
	movq	%rbp, %rdi
	call	puts@PLT
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	gets@PLT
	testl	%eax, %eax
	jne	.L24
.L33:
	movq	1000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1008, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
.L26:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.byte	120
	.align 16
.LC1:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	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:
```