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(void){
	char str[1000];
	int eight,ten;
	int x = -1;
	
	fgets(str,sizeof(str),stdin);
	sscanf(str,"%d %d",&eight,&ten);
	
	for(int i = 1000; i > 0; i--){
		if(i * 8/100 == eight && i * 10/100 == ten){
			x = i;
		}
	}
	
	printf("%d\n",x);
	
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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
	subq	$1024, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -1016(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-1008(%rbp), %rax
	movl	$1000, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1020(%rbp), %rcx
	leaq	-1024(%rbp), %rdx
	leaq	-1008(%rbp), %rax
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$1000, -1012(%rbp)
	jmp	.L2
.L4:
	movl	-1012(%rbp), %eax
	sall	$3, %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-1024(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-1012(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-1020(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-1012(%rbp), %eax
	movl	%eax, -1016(%rbp)
.L3:
	subl	$1, -1012(%rbp)
.L2:
	cmpl	$0, -1012(%rbp)
	jg	.L4
	movl	-1016(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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
.LC2:
	.string	"%d %d"
.LC6:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$1000, %esi
	subq	$1024, %rsp
	.cfi_def_cfa_offset 1040
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 1016(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	leaq	12(%rsp), %rcx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	.LC2(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movd	8(%rsp), %xmm6
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	movdqa	.LC4(%rip), %xmm5
	movdqa	%xmm3, %xmm9
	movdqa	.LC5(%rip), %xmm4
	movdqa	%xmm3, %xmm8
	pshufd	$0, %xmm6, %xmm12
	movd	12(%rsp), %xmm6
	movdqa	.LC1(%rip), %xmm7
	pcmpgtd	%xmm5, %xmm9
	pcmpgtd	%xmm4, %xmm8
	movdqa	.LC3(%rip), %xmm10
	pshufd	$0, %xmm6, %xmm11
	movdqa	.LC0(%rip), %xmm6
	.p2align 4,,10
	.p2align 3
.L2:
	movdqa	%xmm6, %xmm2
	movdqa	%xmm3, %xmm13
	movdqa	%xmm9, %xmm14
	addl	$1, %eax
	movdqa	%xmm2, %xmm1
	movdqa	%xmm8, %xmm15
	paddd	%xmm10, %xmm6
	pslld	$3, %xmm1
	movdqa	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm0
	punpckhdq	%xmm1, %xmm1
	pcmpgtd	%xmm0, %xmm13
	pmuludq	%xmm0, %xmm14
	pmuludq	%xmm5, %xmm0
	pmuludq	%xmm5, %xmm13
	paddq	%xmm14, %xmm13
	movdqa	%xmm9, %xmm14
	psllq	$32, %xmm13
	pmuludq	%xmm1, %xmm14
	paddq	%xmm13, %xmm0
	movdqa	%xmm3, %xmm13
	pcmpgtd	%xmm1, %xmm13
	pmuludq	%xmm5, %xmm1
	pmuludq	%xmm5, %xmm13
	paddq	%xmm14, %xmm13
	movdqa	%xmm8, %xmm14
	psllq	$32, %xmm13
	paddq	%xmm13, %xmm1
	movdqa	%xmm3, %xmm13
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	psrad	$5, %xmm0
	punpckldq	%xmm2, %xmm1
	pcmpeqd	%xmm12, %xmm0
	pcmpgtd	%xmm1, %xmm13
	pmuludq	%xmm1, %xmm14
	pmuludq	%xmm4, %xmm1
	pmuludq	%xmm4, %xmm13
	paddq	%xmm14, %xmm13
	movdqa	%xmm3, %xmm14
	psllq	$32, %xmm13
	paddq	%xmm13, %xmm1
	movdqa	%xmm2, %xmm13
	punpckhdq	%xmm2, %xmm13
	pcmpgtd	%xmm13, %xmm14
	pmuludq	%xmm13, %xmm15
	pmuludq	%xmm4, %xmm13
	pmuludq	%xmm4, %xmm14
	paddq	%xmm15, %xmm14
	psllq	$32, %xmm14
	paddq	%xmm14, %xmm13
	shufps	$221, %xmm13, %xmm1
	psrad	$2, %xmm1
	pcmpeqd	%xmm11, %xmm1
	pand	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm7, %xmm0
	movdqa	%xmm0, %xmm7
	por	%xmm2, %xmm7
	cmpl	$250, %eax
	jne	.L2
	movdqa	%xmm7, %xmm0
	movl	$-1, %edx
	movl	$1, %edi
	psrldq	$8, %xmm0
	leaq	.LC6(%rip), %rsi
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm7, %xmm1
	pand	%xmm1, %xmm7
	pandn	%xmm0, %xmm1
	por	%xmm7, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	$1001, %eax
	cmovne	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	1016(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	addq	$1024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1000
	.long	999
	.long	998
	.long	997
	.align 16
.LC1:
	.long	1001
	.long	1001
	.long	1001
	.long	1001
	.align 16
.LC3:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.align 16
.LC4:
	.long	1374389535
	.long	1374389535
	.long	1374389535
	.long	1374389535
	.align 16
.LC5:
	.long	1717986919
	.long	1717986919
	.long	1717986919
	.long	1717986919
	.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
.LC2:
	.string	"%d %d"
.LC6:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$1000, %esi
	subq	$1024, %rsp
	.cfi_def_cfa_offset 1040
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 1016(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	leaq	12(%rsp), %rcx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	.LC2(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movd	8(%rsp), %xmm6
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	movdqa	.LC4(%rip), %xmm5
	movdqa	%xmm3, %xmm9
	movdqa	.LC5(%rip), %xmm4
	movdqa	%xmm3, %xmm8
	pshufd	$0, %xmm6, %xmm12
	movd	12(%rsp), %xmm6
	movdqa	.LC1(%rip), %xmm7
	pcmpgtd	%xmm5, %xmm9
	pcmpgtd	%xmm4, %xmm8
	movdqa	.LC3(%rip), %xmm10
	pshufd	$0, %xmm6, %xmm11
	movdqa	.LC0(%rip), %xmm6
	.p2align 4,,10
	.p2align 3
.L2:
	movdqa	%xmm6, %xmm2
	movdqa	%xmm3, %xmm13
	movdqa	%xmm9, %xmm14
	addl	$1, %eax
	movdqa	%xmm2, %xmm1
	movdqa	%xmm8, %xmm15
	paddd	%xmm10, %xmm6
	pslld	$3, %xmm1
	movdqa	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm0
	punpckhdq	%xmm1, %xmm1
	pcmpgtd	%xmm0, %xmm13
	pmuludq	%xmm0, %xmm14
	pmuludq	%xmm5, %xmm0
	pmuludq	%xmm5, %xmm13
	paddq	%xmm14, %xmm13
	movdqa	%xmm9, %xmm14
	psllq	$32, %xmm13
	pmuludq	%xmm1, %xmm14
	paddq	%xmm13, %xmm0
	movdqa	%xmm3, %xmm13
	pcmpgtd	%xmm1, %xmm13
	pmuludq	%xmm5, %xmm1
	pmuludq	%xmm5, %xmm13
	paddq	%xmm14, %xmm13
	movdqa	%xmm8, %xmm14
	psllq	$32, %xmm13
	paddq	%xmm13, %xmm1
	movdqa	%xmm3, %xmm13
	shufps	$221, %xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	psrad	$5, %xmm0
	punpckldq	%xmm2, %xmm1
	pcmpeqd	%xmm12, %xmm0
	pcmpgtd	%xmm1, %xmm13
	pmuludq	%xmm1, %xmm14
	pmuludq	%xmm4, %xmm1
	pmuludq	%xmm4, %xmm13
	paddq	%xmm14, %xmm13
	movdqa	%xmm3, %xmm14
	psllq	$32, %xmm13
	paddq	%xmm13, %xmm1
	movdqa	%xmm2, %xmm13
	punpckhdq	%xmm2, %xmm13
	pcmpgtd	%xmm13, %xmm14
	pmuludq	%xmm13, %xmm15
	pmuludq	%xmm4, %xmm13
	pmuludq	%xmm4, %xmm14
	paddq	%xmm15, %xmm14
	psllq	$32, %xmm14
	paddq	%xmm14, %xmm13
	shufps	$221, %xmm13, %xmm1
	psrad	$2, %xmm1
	pcmpeqd	%xmm11, %xmm1
	pand	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm7, %xmm0
	movdqa	%xmm0, %xmm7
	por	%xmm2, %xmm7
	cmpl	$250, %eax
	jne	.L2
	movdqa	%xmm7, %xmm0
	movl	$-1, %edx
	movl	$1, %edi
	psrldq	$8, %xmm0
	leaq	.LC6(%rip), %rsi
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm7, %xmm1
	pand	%xmm1, %xmm7
	pandn	%xmm0, %xmm1
	por	%xmm7, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	$1001, %eax
	cmovne	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	1016(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	addq	$1024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1000
	.long	999
	.long	998
	.long	997
	.align 16
.LC1:
	.long	1001
	.long	1001
	.long	1001
	.long	1001
	.align 16
.LC3:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.align 16
.LC4:
	.long	1374389535
	.long	1374389535
	.long	1374389535
	.long	1374389535
	.align 16
.LC5:
	.long	1717986919
	.long	1717986919
	.long	1717986919
	.long	1717986919
	.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(void){
	char str[1000];
	int eight,ten;
	int x = -1;
	
	fgets(str,sizeof(str),stdin);
	sscanf(str,"%d %d",&eight,&ten);
	
	for(int i = 1000; i > 0; i--){
		if(i * 8/100 == eight && i * 10/100 == ten){
			x = i;
		}
	}
	
	printf("%d\n",x);
	
	return 0;
}

19 54
 1 2
 1 1
 0 1
 9 12
 10 12
 2 3
 10 13
 3 4
 7 8

-1
 20
 13
 10
 120
 125
 30
 130
 40
 88

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(void){
	char str[1000];
	int eight,ten;
	int x = -1;
	
	fgets(str,sizeof(str),stdin);
	sscanf(str,"%d %d",&eight,&ten);
	
	for(int i = 1000; i > 0; i--){
		if(i * 8/100 == eight && i * 10/100 == ten){
			x = i;
		}
	}
	
	printf("%d\n",x);
	
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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
	subq	$1024, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -1016(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-1008(%rbp), %rax
	movl	$1000, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1020(%rbp), %rcx
	leaq	-1024(%rbp), %rdx
	leaq	-1008(%rbp), %rax
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$1000, -1012(%rbp)
	jmp	.L2
.L4:
	movl	-1012(%rbp), %eax
	sall	$3, %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-1024(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-1012(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-1020(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-1012(%rbp), %eax
	movl	%eax, -1016(%rbp)
.L3:
	subl	$1, -1012(%rbp)
.L2:
	cmpl	$0, -1012(%rbp)
	jg	.L4
	movl	-1016(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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	"%d\n"
	.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
	subq	$1024, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -1016(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-1008(%rbp), %rax
	movl	$1000, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1020(%rbp), %rcx
	leaq	-1024(%rbp), %rdx
	leaq	-1008(%rbp), %rax
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$1000, -1012(%rbp)
	jmp	.L2
.L4:
	movl	-1012(%rbp), %eax
	sall	$3, %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-1024(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-1012(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-1020(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-1012(%rbp), %eax
	movl	%eax, -1016(%rbp)
.L3:
	subl	$1, -1012(%rbp)
.L2:
	cmpl	$0, -1012(%rbp)
	jg	.L4
	movl	-1016(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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:
