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>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#include <limits.h>
#include <regex.h>

#define lli long long int
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#define abs(a) ((a)<0?-(a):(a))
#define alloc(type,size) calloc(sizeof(type),size)

#define N 100001

char s[N];
bool f[256];
int res;


int main(void){
	int i;
	char c1,c2;
	char *h;
	scanf("%s",s);
	c1 = *s;
	c2 = *(s+1);
	for(h=s;*h;h++){
		if((h-s)%2){
			if(*h != c2) break;
		}else{
			if(*h != c1) break;
		}
	}
	if(!*h){
		printf("Second\n");
		return 0;
	}
	for(;*h;h++){
		if(*s == *h) res = h-s-2;
		else res = h-s-1;
	}
	printf("%s\n", res%2 ? "First":"Second");
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"First"
.LC1:
	.string	"Second"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	s(%rip), %rbx
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movzbl	s(%rip), %esi
	movzbl	1+s(%rip), %edi
	testb	%sil, %sil
	je	.L2
	movl	%esi, %edx
	movq	%rbx, %rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	%dil, %dl
	jne	.L14
.L5:
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	je	.L2
.L6:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	andl	$1, %ecx
	jne	.L21
	cmpb	%sil, %dl
	je	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	subq	%rbx, %rdi
	cmpb	%sil, %dl
	setne	%cl
	movzbl	1(%rax), %edx
	addq	$1, %rax
	leal	-2(%rcx,%rdi), %ecx
	testb	%dl, %dl
	jne	.L14
	movl	%ecx, res(%rip)
	leaq	.LC0(%rip), %rdi
	andl	$1, %ecx
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
.L18:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L18
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	res
	.bss
	.align 4
	.type	res, @object
	.size	res, 4
res:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 256
f:
	.zero	256
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.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	"First"
.LC1:
	.string	"Second"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	s(%rip), %rbx
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movzbl	s(%rip), %esi
	movzbl	1+s(%rip), %edi
	testb	%sil, %sil
	je	.L2
	movl	%esi, %edx
	movq	%rbx, %rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	%dil, %dl
	jne	.L14
.L5:
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	je	.L2
.L6:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	andl	$1, %ecx
	jne	.L21
	cmpb	%sil, %dl
	je	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	subq	%rbx, %rdi
	cmpb	%sil, %dl
	setne	%cl
	movzbl	1(%rax), %edx
	addq	$1, %rax
	leal	-2(%rcx,%rdi), %ecx
	testb	%dl, %dl
	jne	.L14
	movl	%ecx, res(%rip)
	leaq	.LC0(%rip), %rdi
	andl	$1, %ecx
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
.L18:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L18
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	res
	.bss
	.align 4
	.type	res, @object
	.size	res, 4
res:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 256
f:
	.zero	256
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.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	"First"
.LC1:
	.string	"Second"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	s(%rip), %rbx
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movzbl	s(%rip), %esi
	movzbl	1+s(%rip), %edi
	testb	%sil, %sil
	je	.L2
	movl	%esi, %edx
	movq	%rbx, %rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	%dil, %dl
	jne	.L14
.L5:
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	je	.L2
.L6:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	andl	$1, %ecx
	jne	.L21
	cmpb	%sil, %dl
	je	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	subq	%rbx, %rdi
	cmpb	%sil, %dl
	setne	%cl
	movzbl	1(%rax), %edx
	addq	$1, %rax
	leal	-2(%rcx,%rdi), %ecx
	testb	%dl, %dl
	jne	.L14
	movl	%ecx, res(%rip)
	leaq	.LC0(%rip), %rdi
	andl	$1, %ecx
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
.L18:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L18
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	res
	.bss
	.align 4
	.type	res, @object
	.size	res, 4
res:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 256
f:
	.zero	256
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.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>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#include <limits.h>
#include <regex.h>

#define lli long long int
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#define abs(a) ((a)<0?-(a):(a))
#define alloc(type,size) calloc(sizeof(type),size)

#define N 100001

char s[N];
bool f[256];
int res;


int main(void){
	int i;
	char c1,c2;
	char *h;
	scanf("%s",s);
	c1 = *s;
	c2 = *(s+1);
	for(h=s;*h;h++){
		if((h-s)%2){
			if(*h != c2) break;
		}else{
			if(*h != c1) break;
		}
	}
	if(!*h){
		printf("Second\n");
		return 0;
	}
	for(;*h;h++){
		if(*s == *h) res = h-s-2;
		else res = h-s-1;
	}
	printf("%s\n", res%2 ? "First":"Second");
    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>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#include <limits.h>
#include <regex.h>

#define lli long long int
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#define abs(a) ((a)<0?-(a):(a))
#define alloc(type,size) calloc(sizeof(type),size)

#define N 100001

char s[N];
bool f[256];
int res;


int main(void){
	int i;
	char c1,c2;
	char *h;
	scanf("%s",s);
	c1 = *s;
	c2 = *(s+1);
	for(h=s;*h;h++){
		if((h-s)%2){
			if(*h != c2) break;
		}else{
			if(*h != c1) break;
		}
	}
	if(!*h){
		printf("Second\n");
		return 0;
	}
	for(;*h;h++){
		if(*s == *h) res = h-s-2;
		else res = h-s-1;
	}
	printf("%s\n", res%2 ? "First":"Second");
    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:

aba

Second

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>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#include <limits.h>
#include <regex.h>

#define lli long long int
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#define abs(a) ((a)<0?-(a):(a))
#define alloc(type,size) calloc(sizeof(type),size)

#define N 100001

char s[N];
bool f[256];
int res;


int main(void){
	int i;
	char c1,c2;
	char *h;
	scanf("%s",s);
	c1 = *s;
	c2 = *(s+1);
	for(h=s;*h;h++){
		if((h-s)%2){
			if(*h != c2) break;
		}else{
			if(*h != c1) break;
		}
	}
	if(!*h){
		printf("Second\n");
		return 0;
	}
	for(;*h;h++){
		if(*s == *h) res = h-s-2;
		else res = h-s-1;
	}
	printf("%s\n", res%2 ? "First":"Second");
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"First"
.LC1:
	.string	"Second"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	s(%rip), %rbx
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movzbl	s(%rip), %esi
	movzbl	1+s(%rip), %edi
	testb	%sil, %sil
	je	.L2
	movl	%esi, %edx
	movq	%rbx, %rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	%dil, %dl
	jne	.L14
.L5:
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	je	.L2
.L6:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	andl	$1, %ecx
	jne	.L21
	cmpb	%sil, %dl
	je	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	subq	%rbx, %rdi
	cmpb	%sil, %dl
	setne	%cl
	movzbl	1(%rax), %edx
	addq	$1, %rax
	leal	-2(%rcx,%rdi), %ecx
	testb	%dl, %dl
	jne	.L14
	movl	%ecx, res(%rip)
	leaq	.LC0(%rip), %rdi
	andl	$1, %ecx
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
.L18:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L18
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	res
	.bss
	.align 4
	.type	res, @object
	.size	res, 4
res:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 256
f:
	.zero	256
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.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	"First"
.LC1:
	.string	"Second"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	s(%rip), %rbx
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movzbl	s(%rip), %esi
	movzbl	1+s(%rip), %edi
	testb	%sil, %sil
	je	.L2
	movl	%esi, %edx
	movq	%rbx, %rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	%dil, %dl
	jne	.L14
.L5:
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	je	.L2
.L6:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	andl	$1, %ecx
	jne	.L21
	cmpb	%sil, %dl
	je	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	subq	%rbx, %rdi
	cmpb	%sil, %dl
	setne	%cl
	movzbl	1(%rax), %edx
	addq	$1, %rax
	leal	-2(%rcx,%rdi), %ecx
	testb	%dl, %dl
	jne	.L14
	movl	%ecx, res(%rip)
	leaq	.LC0(%rip), %rdi
	andl	$1, %ecx
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
.L18:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L18
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	res
	.bss
	.align 4
	.type	res, @object
	.size	res, 4
res:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 256
f:
	.zero	256
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100001
s:
	.zero	100001
	.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:
```