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>

int main(){
        char s[1001], t[1001], kiri[1001];
        int n, m;
        scanf("%s%s", s, t);
        n=strlen(s); m=strlen(t);

        int i, j, min, diff;
        min=m;
        for(i=0; i<=n-m; i++){
                diff=0;
                for(j=0; j<m; j++){
                        if(t[j]!=s[i+j]){
                                diff++;
                        }
                }
                if(min>diff){
                        min=diff;
                }
        }
        printf("%d", min);


        return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s%s"
.LC1:
	.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
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rdx
	leaq	-2032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-2032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -2040(%rbp)
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -2036(%rbp)
	movl	-2036(%rbp), %eax
	movl	%eax, -2048(%rbp)
	movl	$0, -2056(%rbp)
	jmp	.L2
.L7:
	movl	$0, -2044(%rbp)
	movl	$0, -2052(%rbp)
	jmp	.L3
.L5:
	movl	-2052(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %edx
	movl	-2056(%rbp), %ecx
	movl	-2052(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movzbl	-2032(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L4
	addl	$1, -2044(%rbp)
.L4:
	addl	$1, -2052(%rbp)
.L3:
	movl	-2052(%rbp), %eax
	cmpl	-2036(%rbp), %eax
	jl	.L5
	movl	-2048(%rbp), %eax
	cmpl	-2044(%rbp), %eax
	jle	.L6
	movl	-2044(%rbp), %eax
	movl	%eax, -2048(%rbp)
.L6:
	addl	$1, -2056(%rbp)
.L2:
	movl	-2040(%rbp), %eax
	subl	-2036(%rbp), %eax
	cmpl	%eax, -2056(%rbp)
	jle	.L7
	movl	-2048(%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	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"%s%s"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$2040, %rsp
	.cfi_def_cfa_offset 2096
	movq	%fs:40, %rax
	movq	%rax, 2024(%rsp)
	xorl	%eax, %eax
	leaq	1008(%rsp), %rbx
	movq	%rsp, %r12
	movq	%rbx, %rdx
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %rbp
	call	strlen@PLT
	movq	%rax, %r10
	subl	%eax, %ebp
	js	.L26
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	%eax, %r13d
	movdqa	.LC1(%rip), %xmm5
	leal	-1(%rax), %r12d
	shrl	$4, %eax
	leal	1(%rbp), %r11d
	movl	%r10d, %ebp
	leal	-1(%rax), %r8d
	andl	$-16, %ebp
	movl	%r10d, %r9d
	xorl	%ecx, %ecx
	addq	$1, %r8
	pxor	%xmm4, %xmm4
	pxor	%xmm3, %xmm3
	salq	$4, %r8
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	testq	%r10, %r10
	je	.L24
	cmpl	$14, %r12d
	jbe	.L27
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	(%rsi,%rax), %xmm0
	movdqa	%xmm4, %xmm6
	pcmpeqb	(%rbx,%rax), %xmm0
	addq	$16, %rax
	pandn	%xmm5, %xmm0
	pcmpgtb	%xmm0, %xmm6
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm6, %xmm2
	punpckhbw	%xmm6, %xmm0
	movdqa	%xmm3, %xmm6
	pcmpgtw	%xmm2, %xmm6
	movdqa	%xmm2, %xmm7
	punpcklwd	%xmm6, %xmm7
	punpckhwd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm6
	paddd	%xmm7, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm3, %xmm2
	pcmpgtw	%xmm0, %xmm2
	punpcklwd	%xmm2, %xmm6
	punpckhwd	%xmm2, %xmm0
	paddd	%xmm6, %xmm1
	paddd	%xmm0, %xmm1
	cmpq	%rax, %r8
	jne	.L5
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%ebp, %r13d
	je	.L24
	movl	%ebp, %edx
.L4:
	leal	(%rcx,%rdx), %r14d
	movslq	%edx, %r15
	movzbl	1008(%rsp,%r15), %r15d
	movslq	%r14d, %r14
	cmpb	%r15b, (%rsp,%r14)
	je	.L7
	addl	$1, %eax
.L7:
	leal	1(%rdx), %r14d
	cmpl	%edi, %r14d
	jge	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L8
	addl	$1, %eax
.L8:
	leal	2(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L9
	addl	$1, %eax
.L9:
	leal	3(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L10
	addl	$1, %eax
.L10:
	leal	4(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L11
	addl	$1, %eax
.L11:
	leal	5(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L12
	addl	$1, %eax
.L12:
	leal	6(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L13
	addl	$1, %eax
.L13:
	leal	7(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L14
	addl	$1, %eax
.L14:
	leal	8(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L15
	addl	$1, %eax
.L15:
	leal	9(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L16
	addl	$1, %eax
.L16:
	leal	10(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L17
	addl	$1, %eax
.L17:
	leal	11(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L18
	addl	$1, %eax
.L18:
	leal	12(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L19
	addl	$1, %eax
.L19:
	leal	13(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L20
	addl	$1, %eax
.L20:
	addl	$14, %edx
	cmpl	%edx, %edi
	jle	.L24
	movslq	%edx, %r14
	addl	%ecx, %edx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	%dl, 1008(%rsp,%r14)
	je	.L24
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	%eax, %r9d
	cmovg	%eax, %r9d
	addl	$1, %ecx
	addq	$1, %rsi
	cmpl	%r11d, %ecx
	jne	.L3
.L2:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	2024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$2040, %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	%eax, %eax
	xorl	%edx, %edx
	jmp	.L4
.L26:
	movl	%eax, %r9d
	jmp	.L2
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$2040, %rsp
	.cfi_def_cfa_offset 2096
	movq	%fs:40, %rax
	movq	%rax, 2024(%rsp)
	xorl	%eax, %eax
	leaq	1008(%rsp), %rbx
	movq	%rsp, %r12
	movq	%rbx, %rdx
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %rbp
	call	strlen@PLT
	movq	%rax, %r10
	subl	%eax, %ebp
	js	.L26
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	%eax, %r13d
	movdqa	.LC1(%rip), %xmm5
	leal	-1(%rax), %r12d
	shrl	$4, %eax
	leal	1(%rbp), %r11d
	movl	%r10d, %ebp
	leal	-1(%rax), %r8d
	andl	$-16, %ebp
	movl	%r10d, %r9d
	xorl	%ecx, %ecx
	addq	$1, %r8
	pxor	%xmm4, %xmm4
	pxor	%xmm3, %xmm3
	salq	$4, %r8
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	testq	%r10, %r10
	je	.L24
	cmpl	$14, %r12d
	jbe	.L27
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	(%rsi,%rax), %xmm0
	movdqa	%xmm4, %xmm6
	pcmpeqb	(%rbx,%rax), %xmm0
	addq	$16, %rax
	pandn	%xmm5, %xmm0
	pcmpgtb	%xmm0, %xmm6
	movdqa	%xmm0, %xmm2
	punpcklbw	%xmm6, %xmm2
	punpckhbw	%xmm6, %xmm0
	movdqa	%xmm3, %xmm6
	pcmpgtw	%xmm2, %xmm6
	movdqa	%xmm2, %xmm7
	punpcklwd	%xmm6, %xmm7
	punpckhwd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm6
	paddd	%xmm7, %xmm1
	paddd	%xmm2, %xmm1
	movdqa	%xmm3, %xmm2
	pcmpgtw	%xmm0, %xmm2
	punpcklwd	%xmm2, %xmm6
	punpckhwd	%xmm2, %xmm0
	paddd	%xmm6, %xmm1
	paddd	%xmm0, %xmm1
	cmpq	%rax, %r8
	jne	.L5
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%ebp, %r13d
	je	.L24
	movl	%ebp, %edx
.L4:
	leal	(%rcx,%rdx), %r14d
	movslq	%edx, %r15
	movzbl	1008(%rsp,%r15), %r15d
	movslq	%r14d, %r14
	cmpb	%r15b, (%rsp,%r14)
	je	.L7
	addl	$1, %eax
.L7:
	leal	1(%rdx), %r14d
	cmpl	%edi, %r14d
	jge	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L8
	addl	$1, %eax
.L8:
	leal	2(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L9
	addl	$1, %eax
.L9:
	leal	3(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L10
	addl	$1, %eax
.L10:
	leal	4(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L11
	addl	$1, %eax
.L11:
	leal	5(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L12
	addl	$1, %eax
.L12:
	leal	6(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L13
	addl	$1, %eax
.L13:
	leal	7(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L14
	addl	$1, %eax
.L14:
	leal	8(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L15
	addl	$1, %eax
.L15:
	leal	9(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L16
	addl	$1, %eax
.L16:
	leal	10(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L17
	addl	$1, %eax
.L17:
	leal	11(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L18
	addl	$1, %eax
.L18:
	leal	12(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L19
	addl	$1, %eax
.L19:
	leal	13(%rdx), %r14d
	cmpl	%r14d, %edi
	jle	.L24
	movslq	%r14d, %r15
	addl	%ecx, %r14d
	movslq	%r14d, %r14
	movzbl	(%rsp,%r14), %r14d
	cmpb	%r14b, 1008(%rsp,%r15)
	je	.L20
	addl	$1, %eax
.L20:
	addl	$14, %edx
	cmpl	%edx, %edi
	jle	.L24
	movslq	%edx, %r14
	addl	%ecx, %edx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	%dl, 1008(%rsp,%r14)
	je	.L24
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	%eax, %r9d
	cmovg	%eax, %r9d
	addl	$1, %ecx
	addq	$1, %rsi
	cmpl	%r11d, %ecx
	jne	.L3
.L2:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	2024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$2040, %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	%eax, %eax
	xorl	%edx, %edx
	jmp	.L4
.L26:
	movl	%eax, %r9d
	jmp	.L2
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.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:

#include<stdio.h>
#include<string.h>

int main(){
        char s[1001], t[1001], kiri[1001];
        int n, m;
        scanf("%s%s", s, t);
        n=strlen(s); m=strlen(t);

        int i, j, min, diff;
        min=m;
        for(i=0; i<=n-m; i++){
                diff=0;
                for(j=0; j<m; j++){
                        if(t[j]!=s[i+j]){
                                diff++;
                        }
                }
                if(min>diff){
                        min=diff;
                }
        }
        printf("%d", min);


        return 0;
}

codefsrceo
atcoder
 cabacc
abb
 codefsrceo
atdocer
 codefsrceo
atdrceo
 codefsqceo
atdrceo
 ccbaac
aac
 caacbc
bba
 oeectfpcat
albs`tb
 ccabac
abb
 ccabac
bba

6 1 5 3 4 0 2 7 1 1
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>

int main(){
        char s[1001], t[1001], kiri[1001];
        int n, m;
        scanf("%s%s", s, t);
        n=strlen(s); m=strlen(t);

        int i, j, min, diff;
        min=m;
        for(i=0; i<=n-m; i++){
                diff=0;
                for(j=0; j<m; j++){
                        if(t[j]!=s[i+j]){
                                diff++;
                        }
                }
                if(min>diff){
                        min=diff;
                }
        }
        printf("%d", min);


        return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s%s"
.LC1:
	.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
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rdx
	leaq	-2032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-2032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -2040(%rbp)
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -2036(%rbp)
	movl	-2036(%rbp), %eax
	movl	%eax, -2048(%rbp)
	movl	$0, -2056(%rbp)
	jmp	.L2
.L7:
	movl	$0, -2044(%rbp)
	movl	$0, -2052(%rbp)
	jmp	.L3
.L5:
	movl	-2052(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %edx
	movl	-2056(%rbp), %ecx
	movl	-2052(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movzbl	-2032(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L4
	addl	$1, -2044(%rbp)
.L4:
	addl	$1, -2052(%rbp)
.L3:
	movl	-2052(%rbp), %eax
	cmpl	-2036(%rbp), %eax
	jl	.L5
	movl	-2048(%rbp), %eax
	cmpl	-2044(%rbp), %eax
	jle	.L6
	movl	-2044(%rbp), %eax
	movl	%eax, -2048(%rbp)
.L6:
	addl	$1, -2056(%rbp)
.L2:
	movl	-2040(%rbp), %eax
	subl	-2036(%rbp), %eax
	cmpl	%eax, -2056(%rbp)
	jle	.L7
	movl	-2048(%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	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"%s%s"
.LC1:
	.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
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rdx
	leaq	-2032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-2032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -2040(%rbp)
	leaq	-1024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -2036(%rbp)
	movl	-2036(%rbp), %eax
	movl	%eax, -2048(%rbp)
	movl	$0, -2056(%rbp)
	jmp	.L2
.L7:
	movl	$0, -2044(%rbp)
	movl	$0, -2052(%rbp)
	jmp	.L3
.L5:
	movl	-2052(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %edx
	movl	-2056(%rbp), %ecx
	movl	-2052(%rbp), %eax
	addl	%ecx, %eax
	cltq
	movzbl	-2032(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L4
	addl	$1, -2044(%rbp)
.L4:
	addl	$1, -2052(%rbp)
.L3:
	movl	-2052(%rbp), %eax
	cmpl	-2036(%rbp), %eax
	jl	.L5
	movl	-2048(%rbp), %eax
	cmpl	-2044(%rbp), %eax
	jle	.L6
	movl	-2044(%rbp), %eax
	movl	%eax, -2048(%rbp)
.L6:
	addl	$1, -2056(%rbp)
.L2:
	movl	-2040(%rbp), %eax
	subl	-2036(%rbp), %eax
	cmpl	%eax, -2056(%rbp)
	jle	.L7
	movl	-2048(%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	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
