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<stdlib.h>
#include<stdbool.h>
#include<limits.h>
#include<float.h>

int main(){
	char s[11];
	int min = INT_MAX;
	int tmp;
	scanf("%s\n", &s);
	for(int i=0; s[i+2]; i++){
		tmp = abs((s[i]-'0') * 100 + (s[i+1]-'0') * 10 + (s[i+2]-'0') - 753);
		if(tmp < min) min = tmp;
	}
	printf("%d\n", min);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s\n"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2147483647, -32(%rbp)
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L2
.L4:
	movl	-28(%rbp), %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	imull	$100, %eax, %ecx
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	leal	(%rcx,%rax), %edx
	movl	-28(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%edx, %eax
	subl	$753, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L3
	movl	-24(%rbp), %eax
	movl	%eax, -32(%rbp)
.L3:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	-32(%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
.LFE6:
	.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	"%s\n"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	13(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	15(%rsp), %edx
	testb	%dl, %dl
	je	.L5
	movsbl	13(%rsp), %ecx
	movsbl	14(%rsp), %eax
	leal	-48(%rdx), %edi
	subl	$48, %ecx
	subl	$48, %eax
	imull	$100, %ecx, %ecx
	leal	(%rax,%rax,4), %esi
	leal	(%rcx,%rsi,2), %ecx
	leal	-801(%rdx,%rcx), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movzbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$100, %eax, %eax
	leal	(%rdi,%rdi,4), %r8d
	movsbl	%cl, %esi
	leal	-48(%rsi), %ecx
	leal	(%rax,%r8,2), %eax
	leal	-801(%rsi,%rax), %esi
	movl	%esi, %eax
	negl	%eax
	cmovs	%esi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	17(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %edi, %edi
	leal	(%rcx,%rcx,4), %r8d
	leal	-48(%rax), %esi
	leal	(%rdi,%r8,2), %edi
	leal	-801(%rax,%rdi), %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	18(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %ecx, %ecx
	leal	-48(%rax), %edi
	imull	$10, %esi, %r8d
	addl	%r8d, %ecx
	leal	-801(%rax,%rcx), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	19(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %esi, %esi
	leal	-48(%rax), %ecx
	imull	$10, %edi, %r8d
	addl	%r8d, %esi
	leal	-801(%rax,%rsi), %esi
	movl	%esi, %eax
	negl	%eax
	cmovs	%esi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	20(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %edi, %edi
	leal	-48(%rax), %esi
	imull	$10, %ecx, %r8d
	addl	%r8d, %edi
	leal	-801(%rax,%rdi), %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	21(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %ecx, %ecx
	leal	-48(%rax), %edi
	imull	$10, %esi, %r8d
	addl	%r8d, %ecx
	leal	-801(%rax,%rcx), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	22(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %esi, %esi
	imull	$10, %edi, %edi
	addl	%edi, %esi
	leal	-801(%rsi,%rax), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$2147483647, %edx
	jmp	.L2
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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	"%s\n"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	13(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	15(%rsp), %edx
	testb	%dl, %dl
	je	.L5
	movsbl	13(%rsp), %ecx
	movsbl	14(%rsp), %eax
	leal	-48(%rdx), %edi
	subl	$48, %ecx
	subl	$48, %eax
	imull	$100, %ecx, %ecx
	leal	(%rax,%rax,4), %esi
	leal	(%rcx,%rsi,2), %ecx
	leal	-801(%rdx,%rcx), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movzbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L2
	imull	$100, %eax, %eax
	leal	(%rdi,%rdi,4), %r8d
	movsbl	%cl, %esi
	leal	-48(%rsi), %ecx
	leal	(%rax,%r8,2), %eax
	leal	-801(%rsi,%rax), %esi
	movl	%esi, %eax
	negl	%eax
	cmovs	%esi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	17(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %edi, %edi
	leal	(%rcx,%rcx,4), %r8d
	leal	-48(%rax), %esi
	leal	(%rdi,%r8,2), %edi
	leal	-801(%rax,%rdi), %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	18(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %ecx, %ecx
	leal	-48(%rax), %edi
	imull	$10, %esi, %r8d
	addl	%r8d, %ecx
	leal	-801(%rax,%rcx), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	19(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %esi, %esi
	leal	-48(%rax), %ecx
	imull	$10, %edi, %r8d
	addl	%r8d, %esi
	leal	-801(%rax,%rsi), %esi
	movl	%esi, %eax
	negl	%eax
	cmovs	%esi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	20(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %edi, %edi
	leal	-48(%rax), %esi
	imull	$10, %ecx, %r8d
	addl	%r8d, %edi
	leal	-801(%rax,%rdi), %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	21(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %ecx, %ecx
	leal	-48(%rax), %edi
	imull	$10, %esi, %r8d
	addl	%r8d, %ecx
	leal	-801(%rax,%rcx), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movsbl	22(%rsp), %eax
	testb	%al, %al
	je	.L2
	imull	$100, %esi, %esi
	imull	$10, %edi, %edi
	addl	%edi, %esi
	leal	-801(%rsi,%rax), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
.L2:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	movl	$2147483647, %edx
	jmp	.L2
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include<stdlib.h>
#include<stdbool.h>
#include<limits.h>
#include<float.h>

int main(){
	char s[11];
	int min = INT_MAX;
	int tmp;
	scanf("%s\n", &s);
	for(int i=0; s[i+2]; i++){
		tmp = abs((s[i]-'0') * 100 + (s[i+1]-'0') * 10 + (s[i+2]-'0') - 753);
		if(tmp < min) min = tmp;
	}
	printf("%d\n", min);
	return 0;
}
43594
 1133184093
 1110111111
 80343
 1646883079
 93622
 978408132
 120326
 1514858721
 226242

159
 87
 642
 50
 65
 131
 31
 427
 32
 129

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<stdlib.h>
#include<stdbool.h>
#include<limits.h>
#include<float.h>

int main(){
	char s[11];
	int min = INT_MAX;
	int tmp;
	scanf("%s\n", &s);
	for(int i=0; s[i+2]; i++){
		tmp = abs((s[i]-'0') * 100 + (s[i+1]-'0') * 10 + (s[i+2]-'0') - 753);
		if(tmp < min) min = tmp;
	}
	printf("%d\n", min);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s\n"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2147483647, -32(%rbp)
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L2
.L4:
	movl	-28(%rbp), %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	imull	$100, %eax, %ecx
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	leal	(%rcx,%rax), %edx
	movl	-28(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%edx, %eax
	subl	$753, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L3
	movl	-24(%rbp), %eax
	movl	%eax, -32(%rbp)
.L3:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	-32(%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
.LFE6:
	.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	"%s\n"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$2147483647, -32(%rbp)
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L2
.L4:
	movl	-28(%rbp), %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	imull	$100, %eax, %ecx
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	leal	(%rcx,%rax), %edx
	movl	-28(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%edx, %eax
	subl	$753, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L3
	movl	-24(%rbp), %eax
	movl	%eax, -32(%rbp)
.L3:
	addl	$1, -28(%rbp)
.L2:
	movl	-28(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-19(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L4
	movl	-32(%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
.LFE6:
	.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:
