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(){
  char str[2048], train[64];
  int n, i, now;
  scanf("%d", &n);
  while(n--){
    for(i = 0;i < 64; i++) train[i] = '\0';
    now = 31;
    scanf("%s", str);
    for(i = 0; i < strlen(str); i += 3){
      train[now] = str[i];
      if(str[i + 1] == '-') now++;
      else if(str[i + 2] == '-') now--;
    }

    for(i = 0; i < 64; i++) printf(train[i] != '\0' ? "%c": "", train[i]);
    puts("");
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	""
	.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
	leaq	.LC0(%rip), %rdi
	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	$2168, %rsp
	.cfi_def_cfa_offset 2224
	movq	%fs:40, %rax
	movq	%rax, 2152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %rax
	leaq	96(%rsp), %rbx
	movq	%rax, 8(%rsp)
	leaq	97(%rsp), %r12
	leaq	98(%rsp), %r13
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rax
	pxor	%xmm0, %xmm0
	movq	%rbx, %rsi
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %rdi
	movl	$31, %r15d
	movaps	%xmm0, (%rax)
	movaps	%xmm0, 16(%rax)
	movaps	%xmm0, 32(%rax)
	movaps	%xmm0, 48(%rax)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	cmpb	$45, 0(%r13,%r14)
	sete	%al
	subl	%eax, %r15d
.L5:
	addq	$3, %r14
.L3:
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	jbe	.L19
	movzbl	(%r14,%rbx), %esi
	movslq	%r15d, %rax
	cmpb	$45, (%r12,%r14)
	movb	%sil, 32(%rsp,%rax)
	jne	.L4
	addl	$1, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movq	8(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r15), %edi
	movl	%edi, %eax
	testb	%dil, %dil
	jne	.L7
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %r15
	call	__printf_chk@PLT
	cmpq	%rbx, %r15
	jne	.L10
.L9:
	movq	%rbp, %rdi
	call	puts@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	jne	.L11
.L2:
	movq	2152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$2168, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	putchar@PLT
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L10
	jmp	.L9
.L20:
	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	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	""
	.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
	leaq	.LC0(%rip), %rdi
	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	$2168, %rsp
	.cfi_def_cfa_offset 2224
	movq	%fs:40, %rax
	movq	%rax, 2152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %rax
	leaq	96(%rsp), %rbx
	movq	%rax, 8(%rsp)
	leaq	97(%rsp), %r12
	leaq	98(%rsp), %r13
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rax
	pxor	%xmm0, %xmm0
	movq	%rbx, %rsi
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %rdi
	movl	$31, %r15d
	movaps	%xmm0, (%rax)
	movaps	%xmm0, 16(%rax)
	movaps	%xmm0, 32(%rax)
	movaps	%xmm0, 48(%rax)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	cmpb	$45, 0(%r13,%r14)
	sete	%al
	subl	%eax, %r15d
.L5:
	addq	$3, %r14
.L3:
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	jbe	.L19
	movzbl	(%r14,%rbx), %esi
	movslq	%r15d, %rax
	cmpb	$45, (%r12,%r14)
	movb	%sil, 32(%rsp,%rax)
	jne	.L4
	addl	$1, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movq	8(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r15), %edi
	movl	%edi, %eax
	testb	%dil, %dil
	jne	.L7
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %r15
	call	__printf_chk@PLT
	cmpq	%rbx, %r15
	jne	.L10
.L9:
	movq	%rbp, %rdi
	call	puts@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	jne	.L11
.L2:
	movq	2152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$2168, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	putchar@PLT
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L10
	jmp	.L9
.L20:
	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	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	""
	.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
	leaq	.LC0(%rip), %rdi
	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	$2168, %rsp
	.cfi_def_cfa_offset 2224
	movq	%fs:40, %rax
	movq	%rax, 2152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %rax
	leaq	96(%rsp), %rbx
	movq	%rax, 8(%rsp)
	leaq	97(%rsp), %r12
	leaq	98(%rsp), %r13
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rax
	pxor	%xmm0, %xmm0
	movq	%rbx, %rsi
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %rdi
	movl	$31, %r15d
	movaps	%xmm0, (%rax)
	movaps	%xmm0, 16(%rax)
	movaps	%xmm0, 32(%rax)
	movaps	%xmm0, 48(%rax)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	cmpb	$45, 0(%r13,%r14)
	sete	%al
	subl	%eax, %r15d
.L5:
	addq	$3, %r14
.L3:
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	jbe	.L19
	movzbl	(%r14,%rbx), %esi
	movslq	%r15d, %rax
	cmpb	$45, (%r12,%r14)
	movb	%sil, 32(%rsp,%rax)
	jne	.L4
	addl	$1, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movq	8(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r15), %edi
	movl	%edi, %eax
	testb	%dil, %dil
	jne	.L7
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %r15
	call	__printf_chk@PLT
	cmpq	%rbx, %r15
	jne	.L10
.L9:
	movq	%rbp, %rdi
	call	puts@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	jne	.L11
.L2:
	movq	2152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$2168, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	putchar@PLT
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L10
	jmp	.L9
.L20:
	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(){
  char str[2048], train[64];
  int n, i, now;
  scanf("%d", &n);
  while(n--){
    for(i = 0;i < 64; i++) train[i] = '\0';
    now = 31;
    scanf("%s", str);
    for(i = 0; i < strlen(str); i += 3){
      train[now] = str[i];
      if(str[i + 1] == '-') now++;
      else if(str[i + 2] == '-') now--;
    }

    for(i = 0; i < 64; i++) printf(train[i] != '\0' ? "%c": "", train[i]);
    puts("");
  }
  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(){
  char str[2048], train[64];
  int n, i, now;
  scanf("%d", &n);
  while(n--){
    for(i = 0;i < 64; i++) train[i] = '\0';
    now = 31;
    scanf("%s", str);
    for(i = 0; i < strlen(str); i += 3){
      train[now] = str[i];
      if(str[i + 1] == '-') now++;
      else if(str[i + 2] == '-') now--;
    }

    for(i = 0; i < 64; i++) printf(train[i] != '\0' ? "%c": "", train[i]);
    puts("");
  }
  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:

4
a->f->c->b->d
b
 4
a->e->c->b->d
a
 4
a->f->c->b->d
a
 4
a->f->c->b->d
`
 4
a->e->c->b->d
c
 4
a->f->c->b->d
c
 4
`->f->c->b->d
c
 4
`->f->c->b->d
d
 4
a->e->c->b->d
d
 4
a->e->c->b->d
`

afcbd
b
b
b
 aecbd
a
a
a
 afcbd
a
a
a
 afcbd
`
`
`
 aecbd
c
c
c
 afcbd
c
c
c
 `fcbd
c
c
c
 `fcbd
d
d
d
 aecbd
d
d
d
 aecbd
`
`
`

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(){
  char str[2048], train[64];
  int n, i, now;
  scanf("%d", &n);
  while(n--){
    for(i = 0;i < 64; i++) train[i] = '\0';
    now = 31;
    scanf("%s", str);
    for(i = 0; i < strlen(str); i += 3){
      train[now] = str[i];
      if(str[i + 1] == '-') now++;
      else if(str[i + 2] == '-') now--;
    }

    for(i = 0; i < 64; i++) printf(train[i] != '\0' ? "%c": "", train[i]);
    puts("");
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	""
	.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
	leaq	.LC0(%rip), %rdi
	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	$2168, %rsp
	.cfi_def_cfa_offset 2224
	movq	%fs:40, %rax
	movq	%rax, 2152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %rax
	leaq	96(%rsp), %rbx
	movq	%rax, 8(%rsp)
	leaq	97(%rsp), %r12
	leaq	98(%rsp), %r13
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rax
	pxor	%xmm0, %xmm0
	movq	%rbx, %rsi
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %rdi
	movl	$31, %r15d
	movaps	%xmm0, (%rax)
	movaps	%xmm0, 16(%rax)
	movaps	%xmm0, 32(%rax)
	movaps	%xmm0, 48(%rax)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	cmpb	$45, 0(%r13,%r14)
	sete	%al
	subl	%eax, %r15d
.L5:
	addq	$3, %r14
.L3:
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	jbe	.L19
	movzbl	(%r14,%rbx), %esi
	movslq	%r15d, %rax
	cmpb	$45, (%r12,%r14)
	movb	%sil, 32(%rsp,%rax)
	jne	.L4
	addl	$1, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movq	8(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r15), %edi
	movl	%edi, %eax
	testb	%dil, %dil
	jne	.L7
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %r15
	call	__printf_chk@PLT
	cmpq	%rbx, %r15
	jne	.L10
.L9:
	movq	%rbp, %rdi
	call	puts@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	jne	.L11
.L2:
	movq	2152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$2168, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	putchar@PLT
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L10
	jmp	.L9
.L20:
	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	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	""
	.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
	leaq	.LC0(%rip), %rdi
	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	$2168, %rsp
	.cfi_def_cfa_offset 2224
	movq	%fs:40, %rax
	movq	%rax, 2152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	32(%rsp), %rax
	leaq	96(%rsp), %rbx
	movq	%rax, 8(%rsp)
	leaq	97(%rsp), %r12
	leaq	98(%rsp), %r13
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rax
	pxor	%xmm0, %xmm0
	movq	%rbx, %rsi
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %rdi
	movl	$31, %r15d
	movaps	%xmm0, (%rax)
	movaps	%xmm0, 16(%rax)
	movaps	%xmm0, 32(%rax)
	movaps	%xmm0, 48(%rax)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	cmpb	$45, 0(%r13,%r14)
	sete	%al
	subl	%eax, %r15d
.L5:
	addq	$3, %r14
.L3:
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	jbe	.L19
	movzbl	(%r14,%rbx), %esi
	movslq	%r15d, %rax
	cmpb	$45, (%r12,%r14)
	movb	%sil, 32(%rsp,%rax)
	jne	.L4
	addl	$1, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movq	8(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%r15), %edi
	movl	%edi, %eax
	testb	%dil, %dil
	jne	.L7
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %r15
	call	__printf_chk@PLT
	cmpq	%rbx, %r15
	jne	.L10
.L9:
	movq	%rbp, %rdi
	call	puts@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	jne	.L11
.L2:
	movq	2152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$2168, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	putchar@PLT
	addq	$1, %r15
	cmpq	%r15, %rbx
	jne	.L10
	jmp	.L9
.L20:
	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:
```