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>

int main(void) {
  char s[10001], t[4];
  int cj, ci, slen, i, j;
  while (scanf("%s", s) != EOF) {
    cj = 0;
    ci = 0;
    slen = strlen(s);

    for (i = 0; i < slen - 2; i++) {
      for (j = i; j < i + 3; j++)
	t[j - i] = s[j];
      t[3] = '\0';
      if (strcmp(t, "JOI") == 0) cj++;
      if (strcmp(t, "IOI") == 0) ci++;
    }
    printf("%d\n", cj);
    printf("%d\n", ci);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IOI"
.LC1:
	.string	"JOI"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1880, %rsp
	.cfi_def_cfa_offset 10128
	leaq	.LC0(%rip), %r15
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 10056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	49(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L13
	movq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	jbe	.L10
	subl	$3, %eax
	addq	24(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, 8(%rsp)
	leaq	44(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movb	0(%rbp), %al
	movb	1(%rbp), %ah
	movq	%r14, %rsi
	movq	%rbx, %rdi
	movb	$0, 47(%rsp)
	movw	%ax, 44(%rsp)
	movzbl	2(%rbp), %eax
	movb	%al, 46(%rsp)
	call	strcmp@PLT
	movq	%r15, %rsi
	movq	%rbx, %rdi
	cmpl	$1, %eax
	adcl	$0, %r13d
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	addq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L4
.L3:
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
.L13:
	movq	10056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$10072, %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
.L10:
	.cfi_restore_state
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	.L3
.L14:
	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:
```

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	"IOI"
.LC1:
	.string	"JOI"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1880, %rsp
	.cfi_def_cfa_offset 10128
	leaq	.LC0(%rip), %r15
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 10056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	49(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L13
	movq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	jbe	.L10
	subl	$3, %eax
	addq	24(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, 8(%rsp)
	leaq	44(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movb	0(%rbp), %al
	movb	1(%rbp), %ah
	movq	%r14, %rsi
	movq	%rbx, %rdi
	movb	$0, 47(%rsp)
	movw	%ax, 44(%rsp)
	movzbl	2(%rbp), %eax
	movb	%al, 46(%rsp)
	call	strcmp@PLT
	movq	%r15, %rsi
	movq	%rbx, %rdi
	cmpl	$1, %eax
	adcl	$0, %r13d
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	addq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L4
.L3:
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
.L13:
	movq	10056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$10072, %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
.L10:
	.cfi_restore_state
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	.L3
.L14:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IOI"
.LC1:
	.string	"JOI"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1880, %rsp
	.cfi_def_cfa_offset 10128
	leaq	.LC0(%rip), %r15
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 10056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	49(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L13
	movq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	jbe	.L10
	subl	$3, %eax
	addq	24(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, 8(%rsp)
	leaq	44(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movb	0(%rbp), %al
	movb	1(%rbp), %ah
	movq	%r14, %rsi
	movq	%rbx, %rdi
	movb	$0, 47(%rsp)
	movw	%ax, 44(%rsp)
	movzbl	2(%rbp), %eax
	movb	%al, 46(%rsp)
	call	strcmp@PLT
	movq	%r15, %rsi
	movq	%rbx, %rdi
	cmpl	$1, %eax
	adcl	$0, %r13d
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	addq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L4
.L3:
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
.L13:
	movq	10056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$10072, %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
.L10:
	.cfi_restore_state
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	.L3
.L14:
	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:
```
```c
#include <stdio.h>
#include <string.h>

int main(void) {
  char s[10001], t[4];
  int cj, ci, slen, i, j;
  while (scanf("%s", s) != EOF) {
    cj = 0;
    ci = 0;
    slen = strlen(s);

    for (i = 0; i < slen - 2; i++) {
      for (j = i; j < i + 3; j++)
	t[j - i] = s[j];
      t[3] = '\0';
      if (strcmp(t, "JOI") == 0) cj++;
      if (strcmp(t, "IOI") == 0) ci++;
    }
    printf("%d\n", cj);
    printf("%d\n", ci);
  }
  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>

int main(void) {
  char s[10001], t[4];
  int cj, ci, slen, i, j;
  while (scanf("%s", s) != EOF) {
    cj = 0;
    ci = 0;
    slen = strlen(s);

    for (i = 0; i < slen - 2; i++) {
      for (j = i; j < i + 3; j++)
	t[j - i] = s[j];
      t[3] = '\0';
      if (strcmp(t, "JOI") == 0) cj++;
      if (strcmp(t, "IOI") == 0) ci++;
    }
    printf("%d\n", cj);
    printf("%d\n", ci);
  }
  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:

JOIJOI
JOIOIOIOI
JOIOIOIJXNXNIOJIOIOJ
 eonN
 JOIJOI
JOIOINIOI
JOIOIOIJXNXNIOJIOIOJ
 JOIJOI
JOIOINIOI
JOIOIJOINXNXJIOIOIOJ
 JOIJOI
JOIOINIOI
JOIPIJOINXNXJIOIOIOJ
 JOIJOH
JOIOINIOI
JOIPIJOINXNXJIOIOIOJ
 JOIJOG
JOIOINIOI
JOIPIJOINXOXJINIOIOJ
 GOJIOJ
JOIOINIOI
JOIPIJOINXOXJINIOIOJ
 GOJIOJ
JOIOINJOI
JOIPIJOINXOXJINIOIOJ
 GOJIOJ
JOIOINJOJ
JOIPIJOINXOXJINIOIOJ

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

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>

int main(void) {
  char s[10001], t[4];
  int cj, ci, slen, i, j;
  while (scanf("%s", s) != EOF) {
    cj = 0;
    ci = 0;
    slen = strlen(s);

    for (i = 0; i < slen - 2; i++) {
      for (j = i; j < i + 3; j++)
	t[j - i] = s[j];
      t[3] = '\0';
      if (strcmp(t, "JOI") == 0) cj++;
      if (strcmp(t, "IOI") == 0) ci++;
    }
    printf("%d\n", cj);
    printf("%d\n", ci);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IOI"
.LC1:
	.string	"JOI"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1880, %rsp
	.cfi_def_cfa_offset 10128
	leaq	.LC0(%rip), %r15
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 10056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	49(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L13
	movq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	jbe	.L10
	subl	$3, %eax
	addq	24(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, 8(%rsp)
	leaq	44(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movb	0(%rbp), %al
	movb	1(%rbp), %ah
	movq	%r14, %rsi
	movq	%rbx, %rdi
	movb	$0, 47(%rsp)
	movw	%ax, 44(%rsp)
	movzbl	2(%rbp), %eax
	movb	%al, 46(%rsp)
	call	strcmp@PLT
	movq	%r15, %rsi
	movq	%rbx, %rdi
	cmpl	$1, %eax
	adcl	$0, %r13d
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	addq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L4
.L3:
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
.L13:
	movq	10056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$10072, %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
.L10:
	.cfi_restore_state
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	.L3
.L14:
	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:
```

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	"IOI"
.LC1:
	.string	"JOI"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1880, %rsp
	.cfi_def_cfa_offset 10128
	leaq	.LC0(%rip), %r15
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 10056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	49(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L13
	movq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	strlen@PLT
	cmpq	$2, %rax
	jbe	.L10
	subl	$3, %eax
	addq	24(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, 8(%rsp)
	leaq	44(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movb	0(%rbp), %al
	movb	1(%rbp), %ah
	movq	%r14, %rsi
	movq	%rbx, %rdi
	movb	$0, 47(%rsp)
	movw	%ax, 44(%rsp)
	movzbl	2(%rbp), %eax
	movb	%al, 46(%rsp)
	call	strcmp@PLT
	movq	%r15, %rsi
	movq	%rbx, %rdi
	cmpl	$1, %eax
	adcl	$0, %r13d
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %r12d
	addq	$1, %rbp
	cmpq	8(%rsp), %rbp
	jne	.L4
.L3:
	movl	%r13d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L2
.L13:
	movq	10056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$10072, %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
.L10:
	.cfi_restore_state
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	.L3
.L14:
	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:
```