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<string.h>

int main(void){
  int i,j,k,l;
  char str[100001];
  scanf("%s",str);
  l=strlen(str);

  if(l==2){
    puts(str[0]==str[1]?"1 2":"-1 -1");
    return 0;
  }

  for(i=0;i<l-2;i++){
    if(str[i]==str[i+1] || str[i]==str[i+2] || str[i+1]==str[i+2]){
      printf("%d %d\n",i+1,i+3);
      return 0;
    }
  }
  puts("-1 -1");
  return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"1 2"
.LC2:
	.string	"-1 -1"
.LC3:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	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, -100020(%rbp)
	cmpl	$2, -100020(%rbp)
	jne	.L2
	movzbl	-100016(%rbp), %edx
	movzbl	-100015(%rbp), %eax
	cmpb	%al, %dl
	jne	.L3
	leaq	.LC1(%rip), %rax
	jmp	.L4
.L3:
	leaq	.LC2(%rip), %rax
.L4:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L2:
	movl	$0, -100024(%rbp)
	jmp	.L6
.L9:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L8
.L7:
	movl	-100024(%rbp), %eax
	leal	3(%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L10
.L8:
	addl	$1, -100024(%rbp)
.L6:
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -100024(%rbp)
	jl	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1 2"
.LC1:
	.string	"-1 -1"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC2(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	je	.L13
	movzbl	(%rsp), %edi
	movzbl	1(%rsp), %edx
	subl	$2, %eax
	xorl	%ecx, %ecx
	leaq	2(%rsp), %r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %edx
	movl	%r10d, %ecx
.L6:
	cmpl	%eax, %ecx
	jge	.L14
	leal	1(%rcx), %r10d
	cmpb	%dl, %dil
	je	.L5
	movzbl	(%r8), %esi
	cmpb	%dl, %sil
	sete	%r9b
	cmpb	%dil, %sil
	movl	%edx, %edi
	sete	%r11b
	addq	$1, %r8
	orb	%r11b, %r9b
	je	.L10
.L5:
	addl	$3, %ecx
	movl	%r10d, %edx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L4:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movzbl	1(%rsp), %eax
	leaq	.LC0(%rip), %rdi
	cmpb	%al, (%rsp)
	leaq	.LC1(%rip), %rax
	cmovne	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L14:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1 2"
.LC1:
	.string	"-1 -1"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC2(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	je	.L13
	movzbl	(%rsp), %edi
	movzbl	1(%rsp), %edx
	subl	$2, %eax
	xorl	%ecx, %ecx
	leaq	2(%rsp), %r8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %edx
	movl	%r10d, %ecx
.L6:
	cmpl	%eax, %ecx
	jge	.L14
	leal	1(%rcx), %r10d
	cmpb	%dl, %dil
	je	.L5
	movzbl	(%r8), %esi
	cmpb	%dl, %sil
	sete	%r9b
	cmpb	%dil, %sil
	movl	%edx, %edi
	sete	%r11b
	addq	$1, %r8
	orb	%r11b, %r9b
	je	.L10
.L5:
	addl	$3, %ecx
	movl	%r10d, %edx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L4:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movzbl	1(%rsp), %eax
	leaq	.LC0(%rip), %rdi
	cmpb	%al, (%rsp)
	leaq	.LC1(%rip), %rax
	cmovne	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L14:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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<string.h>

int main(void){
  int i,j,k,l;
  char str[100001];
  scanf("%s",str);
  l=strlen(str);

  if(l==2){
    puts(str[0]==str[1]?"1 2":"-1 -1");
    return 0;
  }

  for(i=0;i<l-2;i++){
    if(str[i]==str[i+1] || str[i]==str[i+2] || str[i+1]==str[i+2]){
      printf("%d %d\n",i+1,i+3);
      return 0;
    }
  }
  puts("-1 -1");
  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<string.h>

int main(void){
  int i,j,k,l;
  char str[100001];
  scanf("%s",str);
  l=strlen(str);

  if(l==2){
    puts(str[0]==str[1]?"1 2":"-1 -1");
    return 0;
  }

  for(i=0;i<l-2;i++){
    if(str[i]==str[i+1] || str[i]==str[i+2] || str[i+1]==str[i+2]){
      printf("%d %d\n",i+1,i+3);
      return 0;
    }
  }
  puts("-1 -1");
  return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"1 2"
.LC2:
	.string	"-1 -1"
.LC3:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	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, -100020(%rbp)
	cmpl	$2, -100020(%rbp)
	jne	.L2
	movzbl	-100016(%rbp), %edx
	movzbl	-100015(%rbp), %eax
	cmpb	%al, %dl
	jne	.L3
	leaq	.LC1(%rip), %rax
	jmp	.L4
.L3:
	leaq	.LC2(%rip), %rax
.L4:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L2:
	movl	$0, -100024(%rbp)
	jmp	.L6
.L9:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L8
.L7:
	movl	-100024(%rbp), %eax
	leal	3(%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L10
.L8:
	addl	$1, -100024(%rbp)
.L6:
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -100024(%rbp)
	jl	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"1 2"
.LC2:
	.string	"-1 -1"
.LC3:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	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, -100020(%rbp)
	cmpl	$2, -100020(%rbp)
	jne	.L2
	movzbl	-100016(%rbp), %edx
	movzbl	-100015(%rbp), %eax
	cmpb	%al, %dl
	jne	.L3
	leaq	.LC1(%rip), %rax
	jmp	.L4
.L3:
	leaq	.LC2(%rip), %rax
.L4:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L10
.L2:
	movl	$0, -100024(%rbp)
	jmp	.L6
.L9:
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L7
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$2, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L8
.L7:
	movl	-100024(%rbp), %eax
	leal	3(%rax), %edx
	movl	-100024(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L10
.L8:
	addl	$1, -100024(%rbp)
.L6:
	movl	-100020(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -100024(%rbp)
	jl	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
