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

```c
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int isSame(char*, char*, int);
int main() {
	char s[1000] = { "" }, ss[1000] = { "" },*T=s, *P=ss;
	int x,xx,i=0;
	scanf("%s", T);
	scanf("%s", P);
	x = strlen(P);
	xx = strlen(T);
	while (i<xx) {
		if (*T == *P) if (isSame(T, P, x)) printf("%d\n", i);
		++i;
		T++;
	}
	return 0;
}

int isSame(char *T, char *P, int x){
	int i;
	for (i = 1; i < x; i++) {
		if (*(P + i) == *(T + i)) continue;
		return 0;
	}
	return 1;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$123, %ecx
	pxor	%xmm0, %xmm0
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2024, %rsp
	.cfi_def_cfa_offset 2080
	movq	%fs:40, %rax
	movq	%rax, 2008(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	movq	%rsp, %rbx
	leaq	1008(%rsp), %r14
	movq	%rbx, %rsi
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 1008(%rsp)
	rep stosq
	leaq	1024(%rsp), %rdi
	movl	$123, %ecx
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r13
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movl	%eax, %r12d
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %ebp
	addq	$1, %rbx
	cmpl	%ebp, %r12d
	je	.L2
.L6:
	movzbl	1008(%rsp), %eax
	cmpb	%al, (%rbx)
	jne	.L3
	cmpq	$1, %r13
	jbe	.L4
	movl	$1, %eax
.L5:
	movzbl	(%rbx,%rax), %edx
	cmpb	%dl, (%r14,%rax)
	jne	.L3
	addq	$1, %rax
	cmpq	%rax, %r13
	jne	.L5
.L4:
	movl	%ebp, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movq	2008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$2024, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	isSame
	.type	isSame, @function
isSame:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	$1, %edx
	jle	.L20
	movslq	%edx, %rdx
	movl	$1, %eax
.L19:
	movzbl	(%rdi,%rax), %ecx
	cmpb	%cl, (%rsi,%rax)
	je	.L23
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L20:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	isSame, .-isSame
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$123, %ecx
	pxor	%xmm0, %xmm0
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2024, %rsp
	.cfi_def_cfa_offset 2080
	movq	%fs:40, %rax
	movq	%rax, 2008(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	movq	%rsp, %rbx
	leaq	1008(%rsp), %r14
	movq	%rbx, %rsi
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 1008(%rsp)
	rep stosq
	leaq	1024(%rsp), %rdi
	movl	$123, %ecx
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r13
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movl	%eax, %r12d
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %ebp
	addq	$1, %rbx
	cmpl	%ebp, %r12d
	je	.L2
.L6:
	movzbl	1008(%rsp), %eax
	cmpb	%al, (%rbx)
	jne	.L3
	cmpq	$1, %r13
	jbe	.L4
	movl	$1, %eax
.L5:
	movzbl	(%rbx,%rax), %edx
	cmpb	%dl, (%r14,%rax)
	jne	.L3
	addq	$1, %rax
	cmpq	%rax, %r13
	jne	.L5
.L4:
	movl	%ebp, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movq	2008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$2024, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	isSame
	.type	isSame, @function
isSame:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	$1, %edx
	jle	.L20
	movslq	%edx, %rdx
	movl	$1, %eax
.L19:
	movzbl	(%rdi,%rax), %ecx
	cmpb	%cl, (%rsi,%rax)
	je	.L23
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L20:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	isSame, .-isSame
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$123, %ecx
	pxor	%xmm0, %xmm0
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2024, %rsp
	.cfi_def_cfa_offset 2080
	movq	%fs:40, %rax
	movq	%rax, 2008(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	movq	%rsp, %rbx
	leaq	1008(%rsp), %r14
	movq	%rbx, %rsi
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 1008(%rsp)
	rep stosq
	leaq	1024(%rsp), %rdi
	movl	$123, %ecx
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r13
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movl	%eax, %r12d
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %ebp
	addq	$1, %rbx
	cmpl	%ebp, %r12d
	je	.L2
.L6:
	movzbl	1008(%rsp), %eax
	cmpb	%al, (%rbx)
	jne	.L3
	cmpq	$1, %r13
	jbe	.L4
	movl	$1, %eax
.L5:
	movzbl	(%rbx,%rax), %edx
	cmpb	%dl, (%r14,%rax)
	jne	.L3
	addq	$1, %rax
	cmpq	%rax, %r13
	jne	.L5
.L4:
	movl	%ebp, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movq	2008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$2024, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	isSame
	.type	isSame, @function
isSame:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	$1, %edx
	jle	.L20
	movslq	%edx, %rdx
	movl	$1, %eax
.L19:
	movzbl	(%rdi,%rax), %ecx
	cmpb	%cl, (%rsi,%rax)
	je	.L23
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L20:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	isSame, .-isSame
	.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
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int isSame(char*, char*, int);
int main() {
	char s[1000] = { "" }, ss[1000] = { "" },*T=s, *P=ss;
	int x,xx,i=0;
	scanf("%s", T);
	scanf("%s", P);
	x = strlen(P);
	xx = strlen(T);
	while (i<xx) {
		if (*T == *P) if (isSame(T, P, x)) printf("%d\n", i);
		++i;
		T++;
	}
	return 0;
}

int isSame(char *T, char *P, int x){
	int i;
	for (i = 1; i < x; i++) {
		if (*(P + i) == *(T + i)) continue;
		return 0;
	}
	return 1;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int isSame(char*, char*, int);
int main() {
	char s[1000] = { "" }, ss[1000] = { "" },*T=s, *P=ss;
	int x,xx,i=0;
	scanf("%s", T);
	scanf("%s", P);
	x = strlen(P);
	xx = strlen(T);
	while (i<xx) {
		if (*T == *P) if (isSame(T, P, x)) printf("%d\n", i);
		++i;
		T++;
	}
	return 0;
}

int isSame(char *T, char *P, int x){
	int i;
	for (i = 1; i < x; i++) {
		if (*(P + i) == *(T + i)) continue;
		return 0;
	}
	return 1;
}```

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:

aaabaa
aa
 aabaaa
ba
 aaabaa
ba
 aab`aa
aa
 xyzy
yz
 aaaaba
aa
 abaaaa
aa
 abaaaa
ab
 aaacab
aa
 aaaaba
ba

0
1
4
 2
 3
 0
4
 1
 0
1
2
 2
3
4
 0
 0
1
 4

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

```c
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int isSame(char*, char*, int);
int main() {
	char s[1000] = { "" }, ss[1000] = { "" },*T=s, *P=ss;
	int x,xx,i=0;
	scanf("%s", T);
	scanf("%s", P);
	x = strlen(P);
	xx = strlen(T);
	while (i<xx) {
		if (*T == *P) if (isSame(T, P, x)) printf("%d\n", i);
		++i;
		T++;
	}
	return 0;
}

int isSame(char *T, char *P, int x){
	int i;
	for (i = 1; i < x; i++) {
		if (*(P + i) == *(T + i)) continue;
		return 0;
	}
	return 1;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$123, %ecx
	pxor	%xmm0, %xmm0
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2024, %rsp
	.cfi_def_cfa_offset 2080
	movq	%fs:40, %rax
	movq	%rax, 2008(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	movq	%rsp, %rbx
	leaq	1008(%rsp), %r14
	movq	%rbx, %rsi
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 1008(%rsp)
	rep stosq
	leaq	1024(%rsp), %rdi
	movl	$123, %ecx
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r13
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movl	%eax, %r12d
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %ebp
	addq	$1, %rbx
	cmpl	%ebp, %r12d
	je	.L2
.L6:
	movzbl	1008(%rsp), %eax
	cmpb	%al, (%rbx)
	jne	.L3
	cmpq	$1, %r13
	jbe	.L4
	movl	$1, %eax
.L5:
	movzbl	(%rbx,%rax), %edx
	cmpb	%dl, (%r14,%rax)
	jne	.L3
	addq	$1, %rax
	cmpq	%rax, %r13
	jne	.L5
.L4:
	movl	%ebp, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movq	2008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$2024, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	isSame
	.type	isSame, @function
isSame:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	$1, %edx
	jle	.L20
	movslq	%edx, %rdx
	movl	$1, %eax
.L19:
	movzbl	(%rdi,%rax), %ecx
	cmpb	%cl, (%rsi,%rax)
	je	.L23
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L20:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	isSame, .-isSame
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$123, %ecx
	pxor	%xmm0, %xmm0
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2024, %rsp
	.cfi_def_cfa_offset 2080
	movq	%fs:40, %rax
	movq	%rax, 2008(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	movq	%rsp, %rbx
	leaq	1008(%rsp), %r14
	movq	%rbx, %rsi
	movaps	%xmm0, (%rsp)
	movaps	%xmm0, 1008(%rsp)
	rep stosq
	leaq	1024(%rsp), %rdi
	movl	$123, %ecx
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r13
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movl	%eax, %r12d
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %ebp
	addq	$1, %rbx
	cmpl	%ebp, %r12d
	je	.L2
.L6:
	movzbl	1008(%rsp), %eax
	cmpb	%al, (%rbx)
	jne	.L3
	cmpq	$1, %r13
	jbe	.L4
	movl	$1, %eax
.L5:
	movzbl	(%rbx,%rax), %edx
	cmpb	%dl, (%r14,%rax)
	jne	.L3
	addq	$1, %rax
	cmpq	%rax, %r13
	jne	.L5
.L4:
	movl	%ebp, %edx
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movq	2008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$2024, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	isSame
	.type	isSame, @function
isSame:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	$1, %edx
	jle	.L20
	movslq	%edx, %rdx
	movl	$1, %eax
.L19:
	movzbl	(%rdi,%rax), %ecx
	cmpb	%cl, (%rsi,%rax)
	je	.L23
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L20:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	isSame, .-isSame
	.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:
```