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>
#include<math.h>
long long gcd(long long a,long long b){
	if (b == 0)return a;
	return gcd(b, a%b);
}


int main(){
	long long c,n, m,i;
	
	char s[100001], t[100001];
	scanf("%lld%lld", &n, &m);
	scanf("%s%s", s, t);
	c = gcd(n, m);
	long long a = (n * m) / c;
	for (i = 0;i<c;i++) {
		if (s[(n / c)*i] != t[(m / c)*i]) {
			puts("-1\n");
			return 0;
		}
	}
	printf("%lld\n", a);
		return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rdx, %r8
.L2:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L11
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE35:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%s%s"
.LC2:
	.string	"-1\n"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196632
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	16(%rsp), %rbp
	leaq	100032(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r10
	movq	(%rsp), %r11
	movq	%r10, %rcx
	movq	%r11, %rax
	testq	%r10, %r10
	jne	.L13
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rdx, %rcx
.L13:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L30
.L16:
	testq	%rcx, %rcx
	jle	.L15
	movq	%r11, %rax
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	cqto
	idivq	%rcx
	movq	%rax, %r9
	movq	%r10, %rax
	cqto
	idivq	%rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
	addq	%r9, %rdi
	addq	%rax, %rsi
	cmpq	%rcx, %r8
	je	.L15
.L19:
	movzbl	(%rsi), %ebx
	cmpb	%bl, (%rdi)
	je	.L17
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L18
.L15:
	movq	%r10, %rax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	imulq	%r11, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	movq	%r11, %rcx
	jmp	.L16
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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	gcd
	.type	gcd, @function
gcd:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rdx, %r8
.L2:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L11
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE35:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%s%s"
.LC2:
	.string	"-1\n"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196632
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	16(%rsp), %rbp
	leaq	100032(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r10
	movq	(%rsp), %r11
	movq	%r10, %rcx
	movq	%r11, %rax
	testq	%r10, %r10
	jne	.L13
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rdx, %rcx
.L13:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L30
.L16:
	testq	%rcx, %rcx
	jle	.L15
	movq	%r11, %rax
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	cqto
	idivq	%rcx
	movq	%rax, %r9
	movq	%r10, %rax
	cqto
	idivq	%rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
	addq	%r9, %rdi
	addq	%rax, %rsi
	cmpq	%rcx, %r8
	je	.L15
.L19:
	movzbl	(%rsi), %ebx
	cmpb	%bl, (%rdi)
	je	.L17
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L18
.L15:
	movq	%r10, %rax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	imulq	%r11, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	movq	%r11, %rcx
	jmp	.L16
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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	gcd
	.type	gcd, @function
gcd:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rdx, %r8
.L2:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L11
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE35:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%s%s"
.LC2:
	.string	"-1\n"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196632
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	16(%rsp), %rbp
	leaq	100032(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r10
	movq	(%rsp), %r11
	movq	%r10, %rcx
	movq	%r11, %rax
	testq	%r10, %r10
	jne	.L13
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rdx, %rcx
.L13:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L30
.L16:
	testq	%rcx, %rcx
	jle	.L15
	movq	%r11, %rax
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	cqto
	idivq	%rcx
	movq	%rax, %r9
	movq	%r10, %rax
	cqto
	idivq	%rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
	addq	%r9, %rdi
	addq	%rax, %rsi
	cmpq	%rcx, %r8
	je	.L15
.L19:
	movzbl	(%rsi), %ebx
	cmpb	%bl, (%rdi)
	je	.L17
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L18
.L15:
	movq	%r10, %rax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	imulq	%r11, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	movq	%r11, %rcx
	jmp	.L16
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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<string.h>
#include<math.h>
long long gcd(long long a,long long b){
	if (b == 0)return a;
	return gcd(b, a%b);
}


int main(){
	long long c,n, m,i;
	
	char s[100001], t[100001];
	scanf("%lld%lld", &n, &m);
	scanf("%s%s", s, t);
	c = gcd(n, m);
	long long a = (n * m) / c;
	for (i = 0;i<c;i++) {
		if (s[(n / c)*i] != t[(m / c)*i]) {
			puts("-1\n");
			return 0;
		}
	}
	printf("%lld\n", a);
		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<string.h>
#include<math.h>
long long gcd(long long a,long long b){
	if (b == 0)return a;
	return gcd(b, a%b);
}


int main(){
	long long c,n, m,i;
	
	char s[100001], t[100001];
	scanf("%lld%lld", &n, &m);
	scanf("%s%s", s, t);
	c = gcd(n, m);
	long long a = (n * m) / c;
	for (i = 0;i<c;i++) {
		if (s[(n / c)*i] != t[(m / c)*i]) {
			puts("-1\n");
			return 0;
		}
	}
	printf("%lld\n", a);
		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:

3 2
acq
ae
 3 3
abcdef
abc
 15 9
dnsusrayukuaiia
rujdunuma
 3 4
asiaukvyartuind
aumnudjus
 15 9
dnausrayukusiia
dujrunuma
 1 2
acq
ae
 4 1
abq
ae
 15 16
dnausrayukusiia
dujrunuma
 1 1
`br
`e
 5 4
aiiaukuyarsusod
amtntdjur

6
 3
 -1

 12
 45
 2
 4
 240
 1
 20

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>
#include<math.h>
long long gcd(long long a,long long b){
	if (b == 0)return a;
	return gcd(b, a%b);
}


int main(){
	long long c,n, m,i;
	
	char s[100001], t[100001];
	scanf("%lld%lld", &n, &m);
	scanf("%s%s", s, t);
	c = gcd(n, m);
	long long a = (n * m) / c;
	for (i = 0;i<c;i++) {
		if (s[(n / c)*i] != t[(m / c)*i]) {
			puts("-1\n");
			return 0;
		}
	}
	printf("%lld\n", a);
		return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rdx, %r8
.L2:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L11
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE35:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%s%s"
.LC2:
	.string	"-1\n"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196632
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	16(%rsp), %rbp
	leaq	100032(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r10
	movq	(%rsp), %r11
	movq	%r10, %rcx
	movq	%r11, %rax
	testq	%r10, %r10
	jne	.L13
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rdx, %rcx
.L13:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L30
.L16:
	testq	%rcx, %rcx
	jle	.L15
	movq	%r11, %rax
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	cqto
	idivq	%rcx
	movq	%rax, %r9
	movq	%r10, %rax
	cqto
	idivq	%rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
	addq	%r9, %rdi
	addq	%rax, %rsi
	cmpq	%rcx, %r8
	je	.L15
.L19:
	movzbl	(%rsi), %ebx
	cmpb	%bl, (%rdi)
	je	.L17
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L18
.L15:
	movq	%r10, %rax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	imulq	%r11, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	movq	%r11, %rcx
	jmp	.L16
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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	gcd
	.type	gcd, @function
gcd:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%rdx, %r8
.L2:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L11
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE35:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%s%s"
.LC2:
	.string	"-1\n"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196632
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	16(%rsp), %rbp
	leaq	100032(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r10
	movq	(%rsp), %r11
	movq	%r10, %rcx
	movq	%r11, %rax
	testq	%r10, %r10
	jne	.L13
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rdx, %rcx
.L13:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L30
.L16:
	testq	%rcx, %rcx
	jle	.L15
	movq	%r11, %rax
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	cqto
	idivq	%rcx
	movq	%rax, %r9
	movq	%r10, %rax
	cqto
	idivq	%rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %r8
	addq	%r9, %rdi
	addq	%rax, %rsi
	cmpq	%rcx, %r8
	je	.L15
.L19:
	movzbl	(%rsi), %ebx
	cmpb	%bl, (%rdi)
	je	.L17
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L18
.L15:
	movq	%r10, %rax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	imulq	%r11, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	movq	%r11, %rcx
	jmp	.L16
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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:
```