Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i, j;
	char s[2][53];
	scanf("%d%s%s", &n, s[0], s[1]);
	long ans=((s[0][0]!=s[1][0])+1)*3;
	for(i=1; i<n; i++){
		if(s[0][i]==s[1][i]){
			ans *= (s[0][i-1]==s[1][i-1])+1;
		}else if(s[0][i]!=s[0][i-1]){
			ans *= (s[0][i-1]!=s[1][i-1])+2;
		}
		ans%=P;
	}
	printf("%d\n", ans);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	69(%rsp), %rcx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdx
	call	__isoc99_scanf@PLT
	movzbl	69(%rsp), %eax
	xorl	%r8d, %r8d
	cmpb	%al, 16(%rsp)
	movl	12(%rsp), %eax
	setne	%r8b
	leaq	3(%r8,%r8,2), %r8
	cmpl	$1, %eax
	jle	.L5
	movabsq	$-8543223828751151131, %rsi
	subl	$2, %eax
	movq	%rbx, %rcx
	leaq	17(%rsp,%rax), %rdi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rcx), %edx
	cmpb	%dl, %al
	je	.L8
	xorl	%eax, %eax
	cmpb	53(%rcx), %dl
	setne	%al
	addq	$2, %rax
	imulq	%rax, %r8
.L8:
	movq	%r8, %rax
	addq	$1, %rcx
	mulq	%rsi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	cmpq	%rcx, %rdi
	je	.L5
.L11:
	movzbl	1(%rcx), %eax
	cmpb	54(%rcx), %al
	jne	.L6
	movzbl	53(%rcx), %eax
	cmpb	%al, (%rcx)
	jne	.L8
	addq	%r8, %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	69(%rsp), %rcx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdx
	call	__isoc99_scanf@PLT
	movzbl	69(%rsp), %eax
	xorl	%r8d, %r8d
	cmpb	%al, 16(%rsp)
	movl	12(%rsp), %eax
	setne	%r8b
	leaq	3(%r8,%r8,2), %r8
	cmpl	$1, %eax
	jle	.L5
	movabsq	$-8543223828751151131, %rsi
	subl	$2, %eax
	movq	%rbx, %rcx
	leaq	17(%rsp,%rax), %rdi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rcx), %edx
	cmpb	%dl, %al
	je	.L8
	xorl	%eax, %eax
	cmpb	53(%rcx), %dl
	setne	%al
	addq	$2, %rax
	imulq	%rax, %r8
.L8:
	movq	%r8, %rax
	addq	$1, %rcx
	mulq	%rsi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	cmpq	%rcx, %rdi
	je	.L5
.L11:
	movzbl	1(%rcx), %eax
	cmpb	54(%rcx), %al
	jne	.L6
	movzbl	53(%rcx), %eax
	cmpb	%al, (%rcx)
	jne	.L8
	addq	%r8, %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	69(%rsp), %rcx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdx
	call	__isoc99_scanf@PLT
	movzbl	69(%rsp), %eax
	xorl	%r8d, %r8d
	cmpb	%al, 16(%rsp)
	movl	12(%rsp), %eax
	setne	%r8b
	leaq	3(%r8,%r8,2), %r8
	cmpl	$1, %eax
	jle	.L5
	movabsq	$-8543223828751151131, %rsi
	subl	$2, %eax
	movq	%rbx, %rcx
	leaq	17(%rsp,%rax), %rdi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rcx), %edx
	cmpb	%dl, %al
	je	.L8
	xorl	%eax, %eax
	cmpb	53(%rcx), %dl
	setne	%al
	addq	$2, %rax
	imulq	%rax, %r8
.L8:
	movq	%r8, %rax
	addq	$1, %rcx
	mulq	%rsi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	cmpq	%rcx, %rdi
	je	.L5
.L11:
	movzbl	1(%rcx), %eax
	cmpb	54(%rcx), %al
	jne	.L6
	movzbl	53(%rcx), %eax
	cmpb	%al, (%rcx)
	jne	.L8
	addq	%r8, %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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 <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i, j;
	char s[2][53];
	scanf("%d%s%s", &n, s[0], s[1]);
	long ans=((s[0][0]!=s[1][0])+1)*3;
	for(i=1; i<n; i++){
		if(s[0][i]==s[1][i]){
			ans *= (s[0][i-1]==s[1][i-1])+1;
		}else if(s[0][i]!=s[0][i-1]){
			ans *= (s[0][i-1]!=s[1][i-1])+2;
		}
		ans%=P;
	}
	printf("%d\n", ans);
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i, j;
	char s[2][53];
	scanf("%d%s%s", &n, s[0], s[1]);
	long ans=((s[0][0]!=s[1][0])+1)*3;
	for(i=1; i<n; i++){
		if(s[0][i]==s[1][i]){
			ans *= (s[0][i-1]==s[1][i-1])+1;
		}else if(s[0][i]!=s[0][i-1]){
			ans *= (s[0][i-1]!=s[1][i-1])+2;
		}
		ans%=P;
	}
	printf("%d\n", ans);
}
```

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:

1
[
[
 52
RvvttdWIyyPPQFFZZssffEEkkaSSDKqcibbeYrhAljCCGGJppHHn
RLLwwdWIxxNNQUUXXVVMMooCBaggDKqcimmeYrhAljOOTTJuuzzn
 3
aab
acc
 3
bab
bab
 3
aab
cbb
 3
aab
bbb
 3
aab
bcb
 3
aab
bdb
 52
nHHppJGGCCjlAhrYebbicqKDSSakkEEffssZZFFQPPyyIWdttvvR
nzzuuJTTOOjlAhrYemmicqKDggaBBooMMVVXXUUQNNxxIWdwwLLR
 3
baa
bbb

3
 958681902
 9
 12
 6
 6
 6
 6
 958681902
 6

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>

#define P 1000000007

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

int main(void){
	int n, i, j;
	char s[2][53];
	scanf("%d%s%s", &n, s[0], s[1]);
	long ans=((s[0][0]!=s[1][0])+1)*3;
	for(i=1; i<n; i++){
		if(s[0][i]==s[1][i]){
			ans *= (s[0][i-1]==s[1][i-1])+1;
		}else if(s[0][i]!=s[0][i-1]){
			ans *= (s[0][i-1]!=s[1][i-1])+2;
		}
		ans%=P;
	}
	printf("%d\n", ans);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	69(%rsp), %rcx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdx
	call	__isoc99_scanf@PLT
	movzbl	69(%rsp), %eax
	xorl	%r8d, %r8d
	cmpb	%al, 16(%rsp)
	movl	12(%rsp), %eax
	setne	%r8b
	leaq	3(%r8,%r8,2), %r8
	cmpl	$1, %eax
	jle	.L5
	movabsq	$-8543223828751151131, %rsi
	subl	$2, %eax
	movq	%rbx, %rcx
	leaq	17(%rsp,%rax), %rdi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rcx), %edx
	cmpb	%dl, %al
	je	.L8
	xorl	%eax, %eax
	cmpb	53(%rcx), %dl
	setne	%al
	addq	$2, %rax
	imulq	%rax, %r8
.L8:
	movq	%r8, %rax
	addq	$1, %rcx
	mulq	%rsi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	cmpq	%rcx, %rdi
	je	.L5
.L11:
	movzbl	1(%rcx), %eax
	cmpb	54(%rcx), %al
	jne	.L6
	movzbl	53(%rcx), %eax
	cmpb	%al, (%rcx)
	jne	.L8
	addq	%r8, %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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	comp
	.type	comp, @function
comp:
.LFB63:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE63:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	69(%rsp), %rcx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdx
	call	__isoc99_scanf@PLT
	movzbl	69(%rsp), %eax
	xorl	%r8d, %r8d
	cmpb	%al, 16(%rsp)
	movl	12(%rsp), %eax
	setne	%r8b
	leaq	3(%r8,%r8,2), %r8
	cmpl	$1, %eax
	jle	.L5
	movabsq	$-8543223828751151131, %rsi
	subl	$2, %eax
	movq	%rbx, %rcx
	leaq	17(%rsp,%rax), %rdi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rcx), %edx
	cmpb	%dl, %al
	je	.L8
	xorl	%eax, %eax
	cmpb	53(%rcx), %dl
	setne	%al
	addq	$2, %rax
	imulq	%rax, %r8
.L8:
	movq	%r8, %rax
	addq	$1, %rcx
	mulq	%rsi
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	cmpq	%rcx, %rdi
	je	.L5
.L11:
	movzbl	1(%rcx), %eax
	cmpb	54(%rcx), %al
	jne	.L6
	movzbl	53(%rcx), %eax
	cmpb	%al, (%rcx)
	jne	.L8
	addq	%r8, %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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:
```