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

char s[500010],t[500010];
int left[500010],right[500010];
int main(){
	scanf("%s%s",s,t);
	int sn=strlen(s);
	int tn=strlen(t);
	
	int cnt=0;
	for(int i=0;i<sn;i++){
		if(s[i]==t[cnt])cnt++;
		left[i]=cnt;
	}

	cnt=tn;
	right[sn]=tn;
	for(int i=sn-1;i>=0;i--){
		if(cnt&&s[i]==t[cnt-1])cnt--;
		right[i]=cnt;
	}
	
	if(left[sn-1]!=tn){
		puts("no");
		return 0;
	}
	
	for(int i=0;i<sn;i++)if(s[i]==t[left[i]-1]&&(i==0||left[i-1]!=left[i])){
		if(right[i+1]<left[i]){
			puts("no");
			return 0;
		}
	}
	
	puts("yes");
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	s(%rip), %rbx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	movq	%rax, %r8
	testq	%r12, %r12
	je	.L2
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	left(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%edx, %rcx
	movzbl	(%rbx,%rax), %edi
	cmpb	%dil, 0(%rbp,%rcx)
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r12
	jne	.L4
	leaq	right(%rip), %rdi
	movslq	%r12d, %rax
	leal	-1(%r12), %r10d
	movl	%r8d, %ecx
	movl	%r8d, (%rdi,%rax,4)
	movslq	%r10d, %r10
	movq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	%edx, %rax
	testl	%ecx, %ecx
	je	.L29
	leal	-1(%rcx), %eax
	movslq	%eax, %r9
	movzbl	0(%rbp,%r9), %r11d
	cmpb	%r11b, (%rbx,%rdx)
	cmove	%eax, %ecx
	movl	%ecx, (%rdi,%rdx,4)
	subq	$1, %rdx
	cmpl	$-1, %edx
	jne	.L12
.L9:
	cmpl	(%rsi,%r10,4), %r8d
	jne	.L16
	xorl	%eax, %eax
	leaq	4+right(%rip), %rdi
	leaq	-4+left(%rip), %r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpq	%rax, %r12
	je	.L7
.L17:
	movl	(%rsi,%rax,4), %ecx
	leal	-1(%rcx), %edx
	movslq	%edx, %rdx
	movzbl	0(%rbp,%rdx), %edx
	cmpb	%dl, (%rbx,%rax)
	jne	.L14
	testq	%rax, %rax
	je	.L15
	cmpl	(%r8,%rax,4), %ecx
	je	.L14
.L15:
	cmpl	(%rdi,%rax,4), %ecx
	jle	.L14
.L16:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L26
.L2:
	cmpl	-4+left(%rip), %eax
	movl	%eax, right(%rip)
	jne	.L16
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L26:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	leaq	-4+right(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$0, (%rdi,%rax,4)
	testl	%eax, %eax
	je	.L9
	movl	$0, (%rdx,%rax,4)
	subq	$2, %rax
	cmpl	$-1, %eax
	jne	.L10
	jmp	.L9
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	right
	.bss
	.align 32
	.type	right, @object
	.size	right, 2000040
right:
	.zero	2000040
	.globl	left
	.align 32
	.type	left, @object
	.size	left, 2000040
left:
	.zero	2000040
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 500010
t:
	.zero	500010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 500010
s:
	.zero	500010
	.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
.LC0:
	.string	"%s%s"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	s(%rip), %rbx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	movq	%rax, %r8
	testq	%r12, %r12
	je	.L2
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	left(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%edx, %rcx
	movzbl	(%rbx,%rax), %edi
	cmpb	%dil, 0(%rbp,%rcx)
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r12
	jne	.L4
	leaq	right(%rip), %rdi
	movslq	%r12d, %rax
	leal	-1(%r12), %r10d
	movl	%r8d, %ecx
	movl	%r8d, (%rdi,%rax,4)
	movslq	%r10d, %r10
	movq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	%edx, %rax
	testl	%ecx, %ecx
	je	.L29
	leal	-1(%rcx), %eax
	movslq	%eax, %r9
	movzbl	0(%rbp,%r9), %r11d
	cmpb	%r11b, (%rbx,%rdx)
	cmove	%eax, %ecx
	movl	%ecx, (%rdi,%rdx,4)
	subq	$1, %rdx
	cmpl	$-1, %edx
	jne	.L12
.L9:
	cmpl	(%rsi,%r10,4), %r8d
	jne	.L16
	xorl	%eax, %eax
	leaq	4+right(%rip), %rdi
	leaq	-4+left(%rip), %r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpq	%rax, %r12
	je	.L7
.L17:
	movl	(%rsi,%rax,4), %ecx
	leal	-1(%rcx), %edx
	movslq	%edx, %rdx
	movzbl	0(%rbp,%rdx), %edx
	cmpb	%dl, (%rbx,%rax)
	jne	.L14
	testq	%rax, %rax
	je	.L15
	cmpl	(%r8,%rax,4), %ecx
	je	.L14
.L15:
	cmpl	(%rdi,%rax,4), %ecx
	jle	.L14
.L16:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L26
.L2:
	cmpl	-4+left(%rip), %eax
	movl	%eax, right(%rip)
	jne	.L16
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L26:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	leaq	-4+right(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$0, (%rdi,%rax,4)
	testl	%eax, %eax
	je	.L9
	movl	$0, (%rdx,%rax,4)
	subq	$2, %rax
	cmpl	$-1, %eax
	jne	.L10
	jmp	.L9
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	right
	.bss
	.align 32
	.type	right, @object
	.size	right, 2000040
right:
	.zero	2000040
	.globl	left
	.align 32
	.type	left, @object
	.size	left, 2000040
left:
	.zero	2000040
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 500010
t:
	.zero	500010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 500010
s:
	.zero	500010
	.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
.LC0:
	.string	"%s%s"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	s(%rip), %rbx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	movq	%rax, %r8
	testq	%r12, %r12
	je	.L2
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	left(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%edx, %rcx
	movzbl	(%rbx,%rax), %edi
	cmpb	%dil, 0(%rbp,%rcx)
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r12
	jne	.L4
	leaq	right(%rip), %rdi
	movslq	%r12d, %rax
	leal	-1(%r12), %r10d
	movl	%r8d, %ecx
	movl	%r8d, (%rdi,%rax,4)
	movslq	%r10d, %r10
	movq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	%edx, %rax
	testl	%ecx, %ecx
	je	.L29
	leal	-1(%rcx), %eax
	movslq	%eax, %r9
	movzbl	0(%rbp,%r9), %r11d
	cmpb	%r11b, (%rbx,%rdx)
	cmove	%eax, %ecx
	movl	%ecx, (%rdi,%rdx,4)
	subq	$1, %rdx
	cmpl	$-1, %edx
	jne	.L12
.L9:
	cmpl	(%rsi,%r10,4), %r8d
	jne	.L16
	xorl	%eax, %eax
	leaq	4+right(%rip), %rdi
	leaq	-4+left(%rip), %r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpq	%rax, %r12
	je	.L7
.L17:
	movl	(%rsi,%rax,4), %ecx
	leal	-1(%rcx), %edx
	movslq	%edx, %rdx
	movzbl	0(%rbp,%rdx), %edx
	cmpb	%dl, (%rbx,%rax)
	jne	.L14
	testq	%rax, %rax
	je	.L15
	cmpl	(%r8,%rax,4), %ecx
	je	.L14
.L15:
	cmpl	(%rdi,%rax,4), %ecx
	jle	.L14
.L16:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L26
.L2:
	cmpl	-4+left(%rip), %eax
	movl	%eax, right(%rip)
	jne	.L16
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L26:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	leaq	-4+right(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$0, (%rdi,%rax,4)
	testl	%eax, %eax
	je	.L9
	movl	$0, (%rdx,%rax,4)
	subq	$2, %rax
	cmpl	$-1, %eax
	jne	.L10
	jmp	.L9
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	right
	.bss
	.align 32
	.type	right, @object
	.size	right, 2000040
right:
	.zero	2000040
	.globl	left
	.align 32
	.type	left, @object
	.size	left, 2000040
left:
	.zero	2000040
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 500010
t:
	.zero	500010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 500010
s:
	.zero	500010
	.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 <string.h>

char s[500010],t[500010];
int left[500010],right[500010];
int main(){
	scanf("%s%s",s,t);
	int sn=strlen(s);
	int tn=strlen(t);
	
	int cnt=0;
	for(int i=0;i<sn;i++){
		if(s[i]==t[cnt])cnt++;
		left[i]=cnt;
	}

	cnt=tn;
	right[sn]=tn;
	for(int i=sn-1;i>=0;i--){
		if(cnt&&s[i]==t[cnt-1])cnt--;
		right[i]=cnt;
	}
	
	if(left[sn-1]!=tn){
		puts("no");
		return 0;
	}
	
	for(int i=0;i<sn;i++)if(s[i]==t[left[i]-1]&&(i==0||left[i-1]!=left[i])){
		if(right[i+1]<left[i]){
			puts("no");
			return 0;
		}
	}
	
	puts("yes");
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

char s[500010],t[500010];
int left[500010],right[500010];
int main(){
	scanf("%s%s",s,t);
	int sn=strlen(s);
	int tn=strlen(t);
	
	int cnt=0;
	for(int i=0;i<sn;i++){
		if(s[i]==t[cnt])cnt++;
		left[i]=cnt;
	}

	cnt=tn;
	right[sn]=tn;
	for(int i=sn-1;i>=0;i--){
		if(cnt&&s[i]==t[cnt-1])cnt--;
		right[i]=cnt;
	}
	
	if(left[sn-1]!=tn){
		puts("no");
		return 0;
	}
	
	for(int i=0;i<sn;i++)if(s[i]==t[left[i]-1]&&(i==0||left[i-1]!=left[i])){
		if(right[i+1]<left[i]){
			puts("no");
			return 0;
		}
	}
	
	puts("yes");
}
```

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:

aizucamp
uza
 aziucamp
azu
 azjucamp
azu
 azjucamp
azt
 azjucamp
zat
 pmacujza
zat
 pmacuiza
zat
 pmicuaza
zat
 pmicvaza
zat
 pmicvaya
zat

no
 yes
 yes
 no
 no
 no
 no
 no
 no
 no

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

char s[500010],t[500010];
int left[500010],right[500010];
int main(){
	scanf("%s%s",s,t);
	int sn=strlen(s);
	int tn=strlen(t);
	
	int cnt=0;
	for(int i=0;i<sn;i++){
		if(s[i]==t[cnt])cnt++;
		left[i]=cnt;
	}

	cnt=tn;
	right[sn]=tn;
	for(int i=sn-1;i>=0;i--){
		if(cnt&&s[i]==t[cnt-1])cnt--;
		right[i]=cnt;
	}
	
	if(left[sn-1]!=tn){
		puts("no");
		return 0;
	}
	
	for(int i=0;i<sn;i++)if(s[i]==t[left[i]-1]&&(i==0||left[i-1]!=left[i])){
		if(right[i+1]<left[i]){
			puts("no");
			return 0;
		}
	}
	
	puts("yes");
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	s(%rip), %rbx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	movq	%rax, %r8
	testq	%r12, %r12
	je	.L2
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	left(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%edx, %rcx
	movzbl	(%rbx,%rax), %edi
	cmpb	%dil, 0(%rbp,%rcx)
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r12
	jne	.L4
	leaq	right(%rip), %rdi
	movslq	%r12d, %rax
	leal	-1(%r12), %r10d
	movl	%r8d, %ecx
	movl	%r8d, (%rdi,%rax,4)
	movslq	%r10d, %r10
	movq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	%edx, %rax
	testl	%ecx, %ecx
	je	.L29
	leal	-1(%rcx), %eax
	movslq	%eax, %r9
	movzbl	0(%rbp,%r9), %r11d
	cmpb	%r11b, (%rbx,%rdx)
	cmove	%eax, %ecx
	movl	%ecx, (%rdi,%rdx,4)
	subq	$1, %rdx
	cmpl	$-1, %edx
	jne	.L12
.L9:
	cmpl	(%rsi,%r10,4), %r8d
	jne	.L16
	xorl	%eax, %eax
	leaq	4+right(%rip), %rdi
	leaq	-4+left(%rip), %r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpq	%rax, %r12
	je	.L7
.L17:
	movl	(%rsi,%rax,4), %ecx
	leal	-1(%rcx), %edx
	movslq	%edx, %rdx
	movzbl	0(%rbp,%rdx), %edx
	cmpb	%dl, (%rbx,%rax)
	jne	.L14
	testq	%rax, %rax
	je	.L15
	cmpl	(%r8,%rax,4), %ecx
	je	.L14
.L15:
	cmpl	(%rdi,%rax,4), %ecx
	jle	.L14
.L16:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L26
.L2:
	cmpl	-4+left(%rip), %eax
	movl	%eax, right(%rip)
	jne	.L16
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L26:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	leaq	-4+right(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$0, (%rdi,%rax,4)
	testl	%eax, %eax
	je	.L9
	movl	$0, (%rdx,%rax,4)
	subq	$2, %rax
	cmpl	$-1, %eax
	jne	.L10
	jmp	.L9
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	right
	.bss
	.align 32
	.type	right, @object
	.size	right, 2000040
right:
	.zero	2000040
	.globl	left
	.align 32
	.type	left, @object
	.size	left, 2000040
left:
	.zero	2000040
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 500010
t:
	.zero	500010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 500010
s:
	.zero	500010
	.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
.LC0:
	.string	"%s%s"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	s(%rip), %rbx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	movq	%rax, %r8
	testq	%r12, %r12
	je	.L2
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	left(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%edx, %rcx
	movzbl	(%rbx,%rax), %edi
	cmpb	%dil, 0(%rbp,%rcx)
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %edx
	movl	%edx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %r12
	jne	.L4
	leaq	right(%rip), %rdi
	movslq	%r12d, %rax
	leal	-1(%r12), %r10d
	movl	%r8d, %ecx
	movl	%r8d, (%rdi,%rax,4)
	movslq	%r10d, %r10
	movq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	%edx, %rax
	testl	%ecx, %ecx
	je	.L29
	leal	-1(%rcx), %eax
	movslq	%eax, %r9
	movzbl	0(%rbp,%r9), %r11d
	cmpb	%r11b, (%rbx,%rdx)
	cmove	%eax, %ecx
	movl	%ecx, (%rdi,%rdx,4)
	subq	$1, %rdx
	cmpl	$-1, %edx
	jne	.L12
.L9:
	cmpl	(%rsi,%r10,4), %r8d
	jne	.L16
	xorl	%eax, %eax
	leaq	4+right(%rip), %rdi
	leaq	-4+left(%rip), %r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpq	%rax, %r12
	je	.L7
.L17:
	movl	(%rsi,%rax,4), %ecx
	leal	-1(%rcx), %edx
	movslq	%edx, %rdx
	movzbl	0(%rbp,%rdx), %edx
	cmpb	%dl, (%rbx,%rax)
	jne	.L14
	testq	%rax, %rax
	je	.L15
	cmpl	(%r8,%rax,4), %ecx
	je	.L14
.L15:
	cmpl	(%rdi,%rax,4), %ecx
	jle	.L14
.L16:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L26
.L2:
	cmpl	-4+left(%rip), %eax
	movl	%eax, right(%rip)
	jne	.L16
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L26:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	leaq	-4+right(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$0, (%rdi,%rax,4)
	testl	%eax, %eax
	je	.L9
	movl	$0, (%rdx,%rax,4)
	subq	$2, %rax
	cmpl	$-1, %eax
	jne	.L10
	jmp	.L9
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	right
	.bss
	.align 32
	.type	right, @object
	.size	right, 2000040
right:
	.zero	2000040
	.globl	left
	.align 32
	.type	left, @object
	.size	left, 2000040
left:
	.zero	2000040
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 500010
t:
	.zero	500010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 500010
s:
	.zero	500010
	.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:
```