Given the following C code and unoptimized 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>
 
#define INF 10000000000
 
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))

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

int main() {
	long N;
	char s[100001];
	long i, j;
	long ans = INF;
	long tmp;
	long data[100001];
	long a[101];
	int l = 1, r = 2;
	int count[26] = {0};
	int len;
	
	scanf("%s", s);
	len = strlen(s);
	count[s[l-1] - 'a']++;
	count[s[r-1] - 'a']++;
	while(r <= len) {
		if(count[s[r-1] - 'a'] >= 2) {
			printf("%d %d\n", l, r);
			return 0;
		}
		if(r - l >= 2) {
			count[s[l-1] - 'a']--;
			l++;
		} else {
			r++;
			count[s[r-1] - 'a']++;
		}
	}
	
	printf("-1 -1\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_long, .-compare_long
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"-1 -1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-897024(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3040, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$10000000000, %rax
	movq	%rax, -900040(%rbp)
	movl	$1, -900052(%rbp)
	movl	$2, -900048(%rbp)
	leaq	-900032(%rbp), %rdx
	movl	$0, %eax
	movl	$13, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -900044(%rbp)
	movl	-900052(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	jmp	.L4
.L8:
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movl	-900032(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L5
	movl	-900048(%rbp), %edx
	movl	-900052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L5:
	movl	-900048(%rbp), %eax
	subl	-900052(%rbp), %eax
	cmpl	$1, %eax
	jle	.L7
	movl	-900052(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	subl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	addl	$1, -900052(%rbp)
	jmp	.L4
.L7:
	addl	$1, -900048(%rbp)
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
.L4:
	movl	-900048(%rbp), %eax
	cmpl	-900044(%rbp), %eax
	jle	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB51:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare_long, .-compare_long
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"-1 -1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 100144
	movl	$13, %ecx
	movq	%fs:40, %rax
	movq	%rax, 100120(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbp
	movq	%rsp, %rdi
	movq	%rbp, %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movsbl	112(%rsp), %edx
	movsbl	113(%rsp), %esi
	subl	$97, %edx
	leal	-97(%rsi), %ecx
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movl	$1, (%rsp,%rdx,4)
	movl	(%rsp,%rcx,4), %edx
	addl	$1, %edx
	movl	%edx, (%rsp,%rcx,4)
	cmpq	$1, %rax
	jbe	.L4
	movl	%eax, %edi
	movl	$2, %ecx
	movl	$1, %r8d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	leal	-1(%r8), %edx
	leal	-97(%rsi), %eax
	addl	$1, %r8d
	movslq	%edx, %rdx
	movsbl	112(%rsp,%rdx), %edx
	subl	$97, %edx
	movslq	%edx, %rdx
	subl	$1, (%rsp,%rdx,4)
	cmpl	%ecx, %edi
	jl	.L4
	cltq
.L8:
	movl	(%rsp,%rax,4), %edx
.L9:
	cmpl	$1, %edx
	jg	.L13
	movl	%ecx, %eax
	subl	%r8d, %eax
	cmpl	$1, %eax
	jg	.L14
	movsbl	112(%rsp,%rcx), %esi
	leal	1(%rcx), %edx
	leal	-97(%rsi), %eax
	cltq
	addl	$1, (%rsp,%rax,4)
	cmpl	%edx, %edi
	jl	.L4
	movslq	%edx, %rcx
	jmp	.L8
.L4:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	100120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$100128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB51:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare_long, .-compare_long
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"-1 -1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 100144
	movl	$13, %ecx
	movq	%fs:40, %rax
	movq	%rax, 100120(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbp
	movq	%rsp, %rdi
	movq	%rbp, %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movsbl	112(%rsp), %edx
	movsbl	113(%rsp), %esi
	subl	$97, %edx
	leal	-97(%rsi), %ecx
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	movl	$1, (%rsp,%rdx,4)
	movl	(%rsp,%rcx,4), %edx
	addl	$1, %edx
	movl	%edx, (%rsp,%rcx,4)
	cmpq	$1, %rax
	jbe	.L4
	movl	%eax, %edi
	movl	$2, %ecx
	movl	$1, %r8d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	leal	-1(%r8), %edx
	leal	-97(%rsi), %eax
	addl	$1, %r8d
	movslq	%edx, %rdx
	movsbl	112(%rsp,%rdx), %edx
	subl	$97, %edx
	movslq	%edx, %rdx
	subl	$1, (%rsp,%rdx,4)
	cmpl	%ecx, %edi
	jl	.L4
	cltq
.L8:
	movl	(%rsp,%rax,4), %edx
.L9:
	cmpl	$1, %edx
	jg	.L13
	movl	%ecx, %eax
	subl	%r8d, %eax
	cmpl	$1, %eax
	jg	.L14
	movsbl	112(%rsp,%rcx), %esi
	leal	1(%rcx), %edx
	leal	-97(%rsi), %eax
	cltq
	addl	$1, (%rsp,%rax,4)
	cmpl	%edx, %edi
	jl	.L4
	movslq	%edx, %rcx
	jmp	.L8
.L4:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L6:
	movq	100120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$100128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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:

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
 
#define INF 10000000000
 
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))

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

int main() {
	long N;
	char s[100001];
	long i, j;
	long ans = INF;
	long tmp;
	long data[100001];
	long a[101];
	int l = 1, r = 2;
	int count[26] = {0};
	int len;
	
	scanf("%s", s);
	len = strlen(s);
	count[s[l-1] - 'a']++;
	count[s[r-1] - 'a']++;
	while(r <= len) {
		if(count[s[r-1] - 'a'] >= 2) {
			printf("%d %d\n", l, r);
			return 0;
		}
		if(r - l >= 2) {
			count[s[l-1] - 'a']--;
			l++;
		} else {
			r++;
			count[s[r-1] - 'a']++;
		}
	}
	
	printf("-1 -1\n");
	
	return 0;
}
deened
 aoctder
 aocteer
 aectepp
 defnfd
 ndeedd
 defned
 fedned
 aocueer
 efdned

1 3
 -1 -1
 4 6
 5 7
 3 5
 2 4
 -1 -1
 -1 -1
 4 6
 -1 -1

Given the following C code and unoptimized 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>
 
#define INF 10000000000
 
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))

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

int main() {
	long N;
	char s[100001];
	long i, j;
	long ans = INF;
	long tmp;
	long data[100001];
	long a[101];
	int l = 1, r = 2;
	int count[26] = {0};
	int len;
	
	scanf("%s", s);
	len = strlen(s);
	count[s[l-1] - 'a']++;
	count[s[r-1] - 'a']++;
	while(r <= len) {
		if(count[s[r-1] - 'a'] >= 2) {
			printf("%d %d\n", l, r);
			return 0;
		}
		if(r - l >= 2) {
			count[s[l-1] - 'a']--;
			l++;
		} else {
			r++;
			count[s[r-1] - 'a']++;
		}
	}
	
	printf("-1 -1\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_long, .-compare_long
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"-1 -1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-897024(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3040, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$10000000000, %rax
	movq	%rax, -900040(%rbp)
	movl	$1, -900052(%rbp)
	movl	$2, -900048(%rbp)
	leaq	-900032(%rbp), %rdx
	movl	$0, %eax
	movl	$13, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -900044(%rbp)
	movl	-900052(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	jmp	.L4
.L8:
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movl	-900032(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L5
	movl	-900048(%rbp), %edx
	movl	-900052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L5:
	movl	-900048(%rbp), %eax
	subl	-900052(%rbp), %eax
	cmpl	$1, %eax
	jle	.L7
	movl	-900052(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	subl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	addl	$1, -900052(%rbp)
	jmp	.L4
.L7:
	addl	$1, -900048(%rbp)
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
.L4:
	movl	-900048(%rbp), %eax
	cmpl	-900044(%rbp), %eax
	jle	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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.
train
	.file	"temp.c"
	.text
	.globl	compare_long
	.type	compare_long, @function
compare_long:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_long, .-compare_long
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"-1 -1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-897024(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3040, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$10000000000, %rax
	movq	%rax, -900040(%rbp)
	movl	$1, -900052(%rbp)
	movl	$2, -900048(%rbp)
	leaq	-900032(%rbp), %rdx
	movl	$0, %eax
	movl	$13, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -900044(%rbp)
	movl	-900052(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	jmp	.L4
.L8:
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	cltq
	movl	-900032(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L5
	movl	-900048(%rbp), %edx
	movl	-900052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L5:
	movl	-900048(%rbp), %eax
	subl	-900052(%rbp), %eax
	cmpl	$1, %eax
	jle	.L7
	movl	-900052(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	subl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
	addl	$1, -900052(%rbp)
	jmp	.L4
.L7:
	addl	$1, -900048(%rbp)
	movl	-900048(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-900032(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -900032(%rbp,%rax,4)
.L4:
	movl	-900048(%rbp), %eax
	cmpl	-900044(%rbp), %eax
	jle	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
