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 <stdlib.h>

int lex_smaller(char* s1, char* s2)
{
	int i;
	for (i = 0; s1[i] != 0 && s2[i] != 0; i++) {
		if (s1[i] < s2[i]) return 1;
		else if (s1[i] > s2[i]) return -1;
	}
	if (s1[i] == s2[i]) return 0;
	else if (s1[i] == 0) return 1;
	else return -1;
}

int main()
{
	char S[201];
	scanf("%s", S);
	
	int i;
	char T[101] = {};
	for (i = 0; S[i*2] != 0; i++) T[i] = S[i];
	for (T[--i] = 0, S[i*2] = 0; lex_smaller(T, &(S[i])) != 0; T[--i] = 0, S[i*2] = 0);
	
	printf("%d\n", i * 2);
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	lex_smaller
	.type	lex_smaller, @function
lex_smaller:
.LFB39:
	.cfi_startproc
	endbr64
	movzbl	(%rdi), %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	%dl, %cl
	jg	.L6
	jl	.L7
	addq	$1, %rax
	movzbl	(%rdi,%rax), %edx
	testb	%dl, %dl
	je	.L12
.L2:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	jne	.L4
.L7:
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	cmpb	$0, (%rsi,%rax)
	setne	%al
	movzbl	%al, %eax
	ret
.L11:
	xorl	%eax, %eax
	cmpb	$0, (%rsi)
	setne	%al
	ret
	.cfi_endproc
.LFE39:
	.size	lex_smaller, .-lex_smaller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$336, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	cmpb	$0, 112(%rsp)
	movl	$0, 96(%rsp)
	movb	$0, 100(%rsp)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	je	.L23
	xorl	%eax, %eax
	movq	%rsp, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movzbl	(%rbx,%rax), %edx
	movl	%eax, %ecx
	movb	%dl, (%rsi,%rax)
	addq	$1, %rax
	cmpb	$0, (%rbx,%rax,2)
	jne	.L15
.L14:
	leal	(%rcx,%rcx), %eax
	movslq	%ecx, %rdi
	leaq	-1(%rsp), %r9
	cltq
	movb	$0, (%rsp,%rdi)
	movb	$0, 112(%rsp,%rax)
	.p2align 4,,10
	.p2align 3
.L16:
	movzbl	(%rsp), %edx
	movl	%edi, %r8d
	leaq	(%rbx,%rdi), %rsi
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	addq	$1, %rax
	movzbl	(%rsp,%rax), %edx
	testb	%dl, %dl
	je	.L18
.L17:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	je	.L19
	cmpb	%dl, %cl
	je	.L32
.L19:
	movb	$0, (%r9,%rdi)
	movb	$0, -2(%rbx,%rdi,2)
	subq	$1, %rdi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$0, (%rsi,%rax)
	jne	.L19
	movl	$1, %edi
	xorl	%eax, %eax
	leal	(%r8,%r8), %edx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$336, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	orl	$-1, %ecx
	jmp	.L14
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	lex_smaller
	.type	lex_smaller, @function
lex_smaller:
.LFB39:
	.cfi_startproc
	endbr64
	movzbl	(%rdi), %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	%dl, %cl
	jg	.L6
	jl	.L7
	addq	$1, %rax
	movzbl	(%rdi,%rax), %edx
	testb	%dl, %dl
	je	.L12
.L2:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	jne	.L4
.L7:
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	cmpb	$0, (%rsi,%rax)
	setne	%al
	movzbl	%al, %eax
	ret
.L11:
	xorl	%eax, %eax
	cmpb	$0, (%rsi)
	setne	%al
	ret
	.cfi_endproc
.LFE39:
	.size	lex_smaller, .-lex_smaller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$336, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	cmpb	$0, 112(%rsp)
	movl	$0, 96(%rsp)
	movb	$0, 100(%rsp)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	je	.L23
	xorl	%eax, %eax
	movq	%rsp, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movzbl	(%rbx,%rax), %edx
	movl	%eax, %ecx
	movb	%dl, (%rsi,%rax)
	addq	$1, %rax
	cmpb	$0, (%rbx,%rax,2)
	jne	.L15
.L14:
	leal	(%rcx,%rcx), %eax
	movslq	%ecx, %rdi
	leaq	-1(%rsp), %r9
	cltq
	movb	$0, (%rsp,%rdi)
	movb	$0, 112(%rsp,%rax)
	.p2align 4,,10
	.p2align 3
.L16:
	movzbl	(%rsp), %edx
	movl	%edi, %r8d
	leaq	(%rbx,%rdi), %rsi
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	addq	$1, %rax
	movzbl	(%rsp,%rax), %edx
	testb	%dl, %dl
	je	.L18
.L17:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	je	.L19
	cmpb	%dl, %cl
	je	.L32
.L19:
	movb	$0, (%r9,%rdi)
	movb	$0, -2(%rbx,%rdi,2)
	subq	$1, %rdi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$0, (%rsi,%rax)
	jne	.L19
	movl	$1, %edi
	xorl	%eax, %eax
	leal	(%r8,%r8), %edx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$336, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	orl	$-1, %ecx
	jmp	.L14
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	lex_smaller
	.type	lex_smaller, @function
lex_smaller:
.LFB39:
	.cfi_startproc
	endbr64
	movzbl	(%rdi), %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	%dl, %cl
	jg	.L6
	jl	.L7
	addq	$1, %rax
	movzbl	(%rdi,%rax), %edx
	testb	%dl, %dl
	je	.L12
.L2:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	jne	.L4
.L7:
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	cmpb	$0, (%rsi,%rax)
	setne	%al
	movzbl	%al, %eax
	ret
.L11:
	xorl	%eax, %eax
	cmpb	$0, (%rsi)
	setne	%al
	ret
	.cfi_endproc
.LFE39:
	.size	lex_smaller, .-lex_smaller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$336, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	cmpb	$0, 112(%rsp)
	movl	$0, 96(%rsp)
	movb	$0, 100(%rsp)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	je	.L23
	xorl	%eax, %eax
	movq	%rsp, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movzbl	(%rbx,%rax), %edx
	movl	%eax, %ecx
	movb	%dl, (%rsi,%rax)
	addq	$1, %rax
	cmpb	$0, (%rbx,%rax,2)
	jne	.L15
.L14:
	leal	(%rcx,%rcx), %eax
	movslq	%ecx, %rdi
	leaq	-1(%rsp), %r9
	cltq
	movb	$0, (%rsp,%rdi)
	movb	$0, 112(%rsp,%rax)
	.p2align 4,,10
	.p2align 3
.L16:
	movzbl	(%rsp), %edx
	movl	%edi, %r8d
	leaq	(%rbx,%rdi), %rsi
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	addq	$1, %rax
	movzbl	(%rsp,%rax), %edx
	testb	%dl, %dl
	je	.L18
.L17:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	je	.L19
	cmpb	%dl, %cl
	je	.L32
.L19:
	movb	$0, (%r9,%rdi)
	movb	$0, -2(%rbx,%rdi,2)
	subq	$1, %rdi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$0, (%rsi,%rax)
	jne	.L19
	movl	$1, %edi
	xorl	%eax, %eax
	leal	(%r8,%r8), %edx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$336, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	orl	$-1, %ecx
	jmp	.L14
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>

int lex_smaller(char* s1, char* s2)
{
	int i;
	for (i = 0; s1[i] != 0 && s2[i] != 0; i++) {
		if (s1[i] < s2[i]) return 1;
		else if (s1[i] > s2[i]) return -1;
	}
	if (s1[i] == s2[i]) return 0;
	else if (s1[i] == 0) return 1;
	else return -1;
}

int main()
{
	char S[201];
	scanf("%s", S);
	
	int i;
	char T[101] = {};
	for (i = 0; S[i*2] != 0; i++) T[i] = S[i];
	for (T[--i] = 0, S[i*2] = 0; lex_smaller(T, &(S[i])) != 0; T[--i] = 0, S[i*2] = 0);
	
	printf("%d\n", i * 2);
	fflush(stdout);
	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 <stdlib.h>

int lex_smaller(char* s1, char* s2)
{
	int i;
	for (i = 0; s1[i] != 0 && s2[i] != 0; i++) {
		if (s1[i] < s2[i]) return 1;
		else if (s1[i] > s2[i]) return -1;
	}
	if (s1[i] == s2[i]) return 0;
	else if (s1[i] == 0) return 1;
	else return -1;
}

int main()
{
	char S[201];
	scanf("%s", S);
	
	int i;
	char T[101] = {};
	for (i = 0; S[i*2] != 0; i++) T[i] = S[i];
	for (T[--i] = 0, S[i*2] = 0; lex_smaller(T, &(S[i])) != 0; T[--i] = 0, S[i*2] = 0);
	
	printf("%d\n", i * 2);
	fflush(stdout);
	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:

cbacbacbacba
 xxxy
 akakasaakasakasakaakas
 bbbabbbacabc
 akasakaakasakasaka`kas
 cbacbacbacbb
 abaabacaab
 bbcabcaacabc
 xxwx
 abcabcabcaac

6
 2
 4
 8
 14
 6
 6
 2
 2
 6

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 <stdlib.h>

int lex_smaller(char* s1, char* s2)
{
	int i;
	for (i = 0; s1[i] != 0 && s2[i] != 0; i++) {
		if (s1[i] < s2[i]) return 1;
		else if (s1[i] > s2[i]) return -1;
	}
	if (s1[i] == s2[i]) return 0;
	else if (s1[i] == 0) return 1;
	else return -1;
}

int main()
{
	char S[201];
	scanf("%s", S);
	
	int i;
	char T[101] = {};
	for (i = 0; S[i*2] != 0; i++) T[i] = S[i];
	for (T[--i] = 0, S[i*2] = 0; lex_smaller(T, &(S[i])) != 0; T[--i] = 0, S[i*2] = 0);
	
	printf("%d\n", i * 2);
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	lex_smaller
	.type	lex_smaller, @function
lex_smaller:
.LFB39:
	.cfi_startproc
	endbr64
	movzbl	(%rdi), %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	%dl, %cl
	jg	.L6
	jl	.L7
	addq	$1, %rax
	movzbl	(%rdi,%rax), %edx
	testb	%dl, %dl
	je	.L12
.L2:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	jne	.L4
.L7:
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	cmpb	$0, (%rsi,%rax)
	setne	%al
	movzbl	%al, %eax
	ret
.L11:
	xorl	%eax, %eax
	cmpb	$0, (%rsi)
	setne	%al
	ret
	.cfi_endproc
.LFE39:
	.size	lex_smaller, .-lex_smaller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$336, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	cmpb	$0, 112(%rsp)
	movl	$0, 96(%rsp)
	movb	$0, 100(%rsp)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	je	.L23
	xorl	%eax, %eax
	movq	%rsp, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movzbl	(%rbx,%rax), %edx
	movl	%eax, %ecx
	movb	%dl, (%rsi,%rax)
	addq	$1, %rax
	cmpb	$0, (%rbx,%rax,2)
	jne	.L15
.L14:
	leal	(%rcx,%rcx), %eax
	movslq	%ecx, %rdi
	leaq	-1(%rsp), %r9
	cltq
	movb	$0, (%rsp,%rdi)
	movb	$0, 112(%rsp,%rax)
	.p2align 4,,10
	.p2align 3
.L16:
	movzbl	(%rsp), %edx
	movl	%edi, %r8d
	leaq	(%rbx,%rdi), %rsi
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	addq	$1, %rax
	movzbl	(%rsp,%rax), %edx
	testb	%dl, %dl
	je	.L18
.L17:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	je	.L19
	cmpb	%dl, %cl
	je	.L32
.L19:
	movb	$0, (%r9,%rdi)
	movb	$0, -2(%rbx,%rdi,2)
	subq	$1, %rdi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$0, (%rsi,%rax)
	jne	.L19
	movl	$1, %edi
	xorl	%eax, %eax
	leal	(%r8,%r8), %edx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$336, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	orl	$-1, %ecx
	jmp	.L14
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	lex_smaller
	.type	lex_smaller, @function
lex_smaller:
.LFB39:
	.cfi_startproc
	endbr64
	movzbl	(%rdi), %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	%dl, %cl
	jg	.L6
	jl	.L7
	addq	$1, %rax
	movzbl	(%rdi,%rax), %edx
	testb	%dl, %dl
	je	.L12
.L2:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	jne	.L4
.L7:
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	cmpb	$0, (%rsi,%rax)
	setne	%al
	movzbl	%al, %eax
	ret
.L11:
	xorl	%eax, %eax
	cmpb	$0, (%rsi)
	setne	%al
	ret
	.cfi_endproc
.LFE39:
	.size	lex_smaller, .-lex_smaller
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$336, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	pxor	%xmm0, %xmm0
	cmpb	$0, 112(%rsp)
	movl	$0, 96(%rsp)
	movb	$0, 100(%rsp)
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	je	.L23
	xorl	%eax, %eax
	movq	%rsp, %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movzbl	(%rbx,%rax), %edx
	movl	%eax, %ecx
	movb	%dl, (%rsi,%rax)
	addq	$1, %rax
	cmpb	$0, (%rbx,%rax,2)
	jne	.L15
.L14:
	leal	(%rcx,%rcx), %eax
	movslq	%ecx, %rdi
	leaq	-1(%rsp), %r9
	cltq
	movb	$0, (%rsp,%rdi)
	movb	$0, 112(%rsp,%rax)
	.p2align 4,,10
	.p2align 3
.L16:
	movzbl	(%rsp), %edx
	movl	%edi, %r8d
	leaq	(%rbx,%rdi), %rsi
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	addq	$1, %rax
	movzbl	(%rsp,%rax), %edx
	testb	%dl, %dl
	je	.L18
.L17:
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	je	.L19
	cmpb	%dl, %cl
	je	.L32
.L19:
	movb	$0, (%r9,%rdi)
	movb	$0, -2(%rbx,%rdi,2)
	subq	$1, %rdi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$0, (%rsi,%rax)
	jne	.L19
	movl	$1, %edi
	xorl	%eax, %eax
	leal	(%r8,%r8), %edx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$336, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	orl	$-1, %ecx
	jmp	.L14
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:
```