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>

#define N 128

static char ebuf[N];
static char *e;

static char obuf[N];
static char *o;

static
incl(ch)
{
  if (ch == '?') return ch;
  if (ch == 'Z') return 'A';
  return ch + 1;
}

static
decl(ch)
{
  if (ch == '?') return ch;
  if (ch == 'A') return 'Z';
  return ch - 1;
}

static void
concat3()
{
  if (*e == '+') {
    ++e; concat3();
    o[-1] = incl(o[-1]);
  } else if (*e == '-') {
    ++e; concat3();
    o[-1] = decl(o[-1]);
  } else {
    *(o++) = *(e++);
  }
}

static void
concat2()
{
  while (*e != '\0') {
    if (*e == '[') {
      char *p, *q;
      p = o;
      ++e; concat2();
      q = o - 1;
      for (; p < q; ++p, --q) {
        const char ch = *p;
        *p = *q;
        *q = ch;
      }
      continue ;
    } else if (*e == ']') {
      ++e;
      break ;
    }
    concat3();
  }
}

main()
{
  for (;;) {
    fgets(ebuf, N, stdin);
    *(strchr(ebuf, '\n')) = '\0';
    if (strcmp(ebuf, ".") == 0) break ;
    e = ebuf;
    o = obuf;
    concat2(); *o = '\0';
    for (o = obuf; *o != '\0'; ++o) {
      if (*o == '?') *o = 'A';
    }
    puts(obuf);
  }

  return EXIT_SUCCESS;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	ebuf
	.comm	ebuf,128,32
	.local	e
	.comm	e,8,8
	.local	obuf
	.comm	obuf,128,32
	.local	o
	.comm	o,8,8
	.type	incl, @function
incl:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	cmpl	$63, -4(%rbp)
	jne	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	cmpl	$90, -4(%rbp)
	jne	.L4
	movl	$65, %eax
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	addl	$1, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	incl, .-incl
	.type	decl, @function
decl:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	cmpl	$63, -4(%rbp)
	jne	.L6
	movl	-4(%rbp), %eax
	jmp	.L7
.L6:
	cmpl	$65, -4(%rbp)
	jne	.L8
	movl	$90, %eax
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	subl	$1, %eax
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decl, .-decl
	.type	concat3, @function
concat3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	jne	.L10
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat3
	movq	o(%rip), %rax
	subq	$1, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	incl
	movl	%eax, %edx
	movq	o(%rip), %rax
	subq	$1, %rax
	movb	%dl, (%rax)
	jmp	.L13
.L10:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L12
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat3
	movq	o(%rip), %rax
	subq	$1, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	decl
	movl	%eax, %edx
	movq	o(%rip), %rax
	subq	$1, %rax
	movb	%dl, (%rax)
	jmp	.L13
.L12:
	movq	e(%rip), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, e(%rip)
	movq	o(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, o(%rip)
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
.L13:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	concat3, .-concat3
	.type	concat2, @function
concat2:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	jmp	.L15
.L21:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$91, %al
	jne	.L16
	movq	o(%rip), %rax
	movq	%rax, -16(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat2
	movq	o(%rip), %rax
	subq	$1, %rax
	movq	%rax, -8(%rbp)
	jmp	.L17
.L18:
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, -17(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movb	%dl, (%rax)
	movq	-8(%rbp), %rax
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax)
	addq	$1, -16(%rbp)
	subq	$1, -8(%rbp)
.L17:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L18
	jmp	.L15
.L16:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$93, %al
	jne	.L19
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	jmp	.L20
.L19:
	movl	$0, %eax
	call	concat3
.L15:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L21
	nop
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	concat2, .-concat2
	.section	.rodata
.LC0:
	.string	"."
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
.L28:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$128, %esi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$10, %esi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	strchr@PLT
	movb	$0, (%rax)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L31
	leaq	ebuf(%rip), %rax
	movq	%rax, e(%rip)
	leaq	obuf(%rip), %rax
	movq	%rax, o(%rip)
	movl	$0, %eax
	call	concat2
	movq	o(%rip), %rax
	movb	$0, (%rax)
	leaq	obuf(%rip), %rax
	movq	%rax, o(%rip)
	jmp	.L25
.L27:
	movq	o(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L26
	movq	o(%rip), %rax
	movb	$65, (%rax)
.L26:
	movq	o(%rip), %rax
	addq	$1, %rax
	movq	%rax, o(%rip)
.L25:
	movq	o(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L27
	leaq	obuf(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L28
.L31:
	nop
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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
	.type	concat3, @function
concat3:
.LFB53:
	.cfi_startproc
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	e(%rip), %rax
	movzbl	(%rax), %edx
	addq	$1, %rax
	movq	%rax, e(%rip)
	cmpb	$43, %dl
	je	.L13
	cmpb	$45, %dl
	je	.L14
	movq	o(%rip), %rax
	leaq	1(%rax), %rcx
	movb	%dl, (%rax)
	movq	%rcx, o(%rip)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L9
	addl	$1, %eax
	cmpl	$90, %ecx
	movl	$65, %ecx
	cmove	%ecx, %eax
.L6:
	movb	%al, -1(%rdx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L9
	subl	$1, %eax
	cmpl	$65, %ecx
	movl	$90, %ecx
	cmove	%ecx, %eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$63, %eax
	jmp	.L6
	.cfi_endproc
.LFE53:
	.size	concat3, .-concat3
	.p2align 4
	.type	concat2, @function
concat2:
.LFB54:
	.cfi_startproc
	movq	e(%rip), %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	je	.L36
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
.L16:
	addq	$1, %rdx
	cmpb	$91, %al
	je	.L39
	movq	%rdx, e(%rip)
	cmpb	$93, %al
	je	.L15
	cmpb	$43, %al
	je	.L40
	cmpb	$45, %al
	je	.L41
	movq	o(%rip), %rcx
	leaq	1(%rcx), %rsi
	movb	%al, (%rcx)
	movq	%rsi, o(%rip)
.L20:
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L16
.L15:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L27
	addl	$1, %eax
	cmpl	$90, %ecx
	movl	$65, %ecx
	cmove	%ecx, %eax
.L23:
	movb	%al, -1(%rdx)
.L38:
	movq	e(%rip), %rdx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L27
	subl	$1, %eax
	cmpl	$65, %ecx
	movl	$90, %ecx
	cmove	%ecx, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L39:
	xorl	%eax, %eax
	movq	%rdx, e(%rip)
	movq	o(%rip), %rbx
	call	concat2
	movq	o(%rip), %rax
	subq	$1, %rax
	cmpq	%rax, %rbx
	jnb	.L38
	.p2align 4,,10
	.p2align 3
.L19:
	movzbl	(%rbx), %edx
	movzbl	(%rax), %ecx
	addq	$1, %rbx
	subq	$1, %rax
	movb	%cl, -1(%rbx)
	movb	%dl, 1(%rax)
	cmpq	%rax, %rbx
	jb	.L19
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L27:
	movl	$63, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE54:
	.size	concat2, .-concat2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$90, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	obuf(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	ebuf(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L61:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movl	$10, %esi
	movq	%rbx, %rdi
	call	strchr@PLT
	movb	$0, (%rax)
	cmpw	$46, (%rbx)
	je	.L79
	movzbl	(%rbx), %eax
	movq	%rbx, e(%rip)
	leaq	obuf(%rip), %rdi
	movq	%rbp, o(%rip)
	testb	%al, %al
	je	.L46
	leaq	ebuf(%rip), %rdx
.L55:
	addq	$1, %rdx
	movq	%rdx, e(%rip)
	cmpb	$91, %al
	je	.L82
	cmpb	$93, %al
	je	.L46
	cmpb	$43, %al
	je	.L83
	cmpb	$45, %al
	je	.L84
	leaq	1(%rdi), %rcx
	movb	%al, (%rdi)
	movq	%rcx, o(%rip)
	movq	%rcx, %rdi
.L49:
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L55
.L46:
	movb	$0, (%rdi)
	movzbl	0(%rbp), %edx
	movq	%rbp, o(%rip)
	testb	%dl, %dl
	je	.L56
	leaq	obuf(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L60:
	cmpb	$63, %dl
	je	.L85
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	jne	.L60
.L59:
	movq	%rax, o(%rip)
.L56:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L85:
	movb	$65, (%rax)
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	jne	.L60
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L83:
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdi
	movsbl	-1(%rdi), %edx
	movl	%edx, %eax
	cmpb	$63, %dl
	je	.L63
	addl	$1, %eax
	cmpl	$90, %edx
	movl	$65, %edx
	cmove	%edx, %eax
.L54:
	movb	%al, -1(%rdi)
	movq	e(%rip), %rdx
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L84:
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdi
	movsbl	-1(%rdi), %eax
	cmpl	$63, %eax
	je	.L54
	leal	-1(%rax), %edx
	cmpl	$65, %eax
	movl	%edx, %eax
	cmove	%r12d, %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L82:
	xorl	%eax, %eax
	call	concat2
	movq	o(%rip), %rsi
	leaq	-1(%rsi), %rax
	cmpq	%rdi, %rax
	jbe	.L81
	.p2align 4,,10
	.p2align 3
.L48:
	movzbl	(%rdi), %edx
	movzbl	(%rax), %ecx
	addq	$1, %rdi
	subq	$1, %rax
	movb	%cl, -1(%rdi)
	movb	%dl, 1(%rax)
	cmpq	%rax, %rdi
	jb	.L48
.L81:
	movq	e(%rip), %rdx
	movq	%rsi, %rdi
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L79:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	movl	$63, %eax
	jmp	.L54
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.local	o
	.comm	o,8,8
	.local	obuf
	.comm	obuf,128,32
	.local	e
	.comm	e,8,8
	.local	ebuf
	.comm	ebuf,128,32
	.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
	.type	concat3, @function
concat3:
.LFB53:
	.cfi_startproc
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	e(%rip), %rax
	movzbl	(%rax), %edx
	addq	$1, %rax
	movq	%rax, e(%rip)
	cmpb	$43, %dl
	je	.L13
	cmpb	$45, %dl
	je	.L14
	movq	o(%rip), %rax
	leaq	1(%rax), %rcx
	movb	%dl, (%rax)
	movq	%rcx, o(%rip)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L9
	addl	$1, %eax
	cmpl	$90, %ecx
	movl	$65, %ecx
	cmove	%ecx, %eax
.L6:
	movb	%al, -1(%rdx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L9
	subl	$1, %eax
	cmpl	$65, %ecx
	movl	$90, %ecx
	cmove	%ecx, %eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$63, %eax
	jmp	.L6
	.cfi_endproc
.LFE53:
	.size	concat3, .-concat3
	.p2align 4
	.type	concat2, @function
concat2:
.LFB54:
	.cfi_startproc
	movq	e(%rip), %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	je	.L36
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
.L16:
	addq	$1, %rdx
	cmpb	$91, %al
	je	.L39
	movq	%rdx, e(%rip)
	cmpb	$93, %al
	je	.L15
	cmpb	$43, %al
	je	.L40
	cmpb	$45, %al
	je	.L41
	movq	o(%rip), %rcx
	leaq	1(%rcx), %rsi
	movb	%al, (%rcx)
	movq	%rsi, o(%rip)
.L20:
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L16
.L15:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L27
	addl	$1, %eax
	cmpl	$90, %ecx
	movl	$65, %ecx
	cmove	%ecx, %eax
.L23:
	movb	%al, -1(%rdx)
.L38:
	movq	e(%rip), %rdx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdx
	movsbl	-1(%rdx), %ecx
	movl	%ecx, %eax
	cmpb	$63, %cl
	je	.L27
	subl	$1, %eax
	cmpl	$65, %ecx
	movl	$90, %ecx
	cmove	%ecx, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L39:
	xorl	%eax, %eax
	movq	%rdx, e(%rip)
	movq	o(%rip), %rbx
	call	concat2
	movq	o(%rip), %rax
	subq	$1, %rax
	cmpq	%rax, %rbx
	jnb	.L38
	.p2align 4,,10
	.p2align 3
.L19:
	movzbl	(%rbx), %edx
	movzbl	(%rax), %ecx
	addq	$1, %rbx
	subq	$1, %rax
	movb	%cl, -1(%rbx)
	movb	%dl, 1(%rax)
	cmpq	%rax, %rbx
	jb	.L19
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L27:
	movl	$63, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE54:
	.size	concat2, .-concat2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$90, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	obuf(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	ebuf(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L61:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movl	$10, %esi
	movq	%rbx, %rdi
	call	strchr@PLT
	movb	$0, (%rax)
	cmpw	$46, (%rbx)
	je	.L79
	movzbl	(%rbx), %eax
	movq	%rbx, e(%rip)
	leaq	obuf(%rip), %rdi
	movq	%rbp, o(%rip)
	testb	%al, %al
	je	.L46
	leaq	ebuf(%rip), %rdx
.L55:
	addq	$1, %rdx
	movq	%rdx, e(%rip)
	cmpb	$91, %al
	je	.L82
	cmpb	$93, %al
	je	.L46
	cmpb	$43, %al
	je	.L83
	cmpb	$45, %al
	je	.L84
	leaq	1(%rdi), %rcx
	movb	%al, (%rdi)
	movq	%rcx, o(%rip)
	movq	%rcx, %rdi
.L49:
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L55
.L46:
	movb	$0, (%rdi)
	movzbl	0(%rbp), %edx
	movq	%rbp, o(%rip)
	testb	%dl, %dl
	je	.L56
	leaq	obuf(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L60:
	cmpb	$63, %dl
	je	.L85
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	jne	.L60
.L59:
	movq	%rax, o(%rip)
.L56:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L85:
	movb	$65, (%rax)
	movzbl	1(%rax), %edx
	addq	$1, %rax
	testb	%dl, %dl
	jne	.L60
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L83:
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdi
	movsbl	-1(%rdi), %edx
	movl	%edx, %eax
	cmpb	$63, %dl
	je	.L63
	addl	$1, %eax
	cmpl	$90, %edx
	movl	$65, %edx
	cmove	%edx, %eax
.L54:
	movb	%al, -1(%rdi)
	movq	e(%rip), %rdx
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L84:
	xorl	%eax, %eax
	call	concat3
	movq	o(%rip), %rdi
	movsbl	-1(%rdi), %eax
	cmpl	$63, %eax
	je	.L54
	leal	-1(%rax), %edx
	cmpl	$65, %eax
	movl	%edx, %eax
	cmove	%r12d, %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L82:
	xorl	%eax, %eax
	call	concat2
	movq	o(%rip), %rsi
	leaq	-1(%rsi), %rax
	cmpq	%rdi, %rax
	jbe	.L81
	.p2align 4,,10
	.p2align 3
.L48:
	movzbl	(%rdi), %edx
	movzbl	(%rax), %ecx
	addq	$1, %rdi
	subq	$1, %rax
	movb	%cl, -1(%rdi)
	movb	%dl, 1(%rax)
	cmpq	%rax, %rdi
	jb	.L48
.L81:
	movq	e(%rip), %rdx
	movq	%rsi, %rdi
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L79:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	movl	$63, %eax
	jmp	.L54
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.local	o
	.comm	o,8,8
	.local	obuf
	.comm	obuf,128,32
	.local	e
	.comm	e,8,8
	.local	ebuf
	.comm	ebuf,128,32
	.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>

#define N 128

static char ebuf[N];
static char *e;

static char obuf[N];
static char *o;

static
incl(ch)
{
  if (ch == '?') return ch;
  if (ch == 'Z') return 'A';
  return ch + 1;
}

static
decl(ch)
{
  if (ch == '?') return ch;
  if (ch == 'A') return 'Z';
  return ch - 1;
}

static void
concat3()
{
  if (*e == '+') {
    ++e; concat3();
    o[-1] = incl(o[-1]);
  } else if (*e == '-') {
    ++e; concat3();
    o[-1] = decl(o[-1]);
  } else {
    *(o++) = *(e++);
  }
}

static void
concat2()
{
  while (*e != '\0') {
    if (*e == '[') {
      char *p, *q;
      p = o;
      ++e; concat2();
      q = o - 1;
      for (; p < q; ++p, --q) {
        const char ch = *p;
        *p = *q;
        *q = ch;
      }
      continue ;
    } else if (*e == ']') {
      ++e;
      break ;
    }
    concat3();
  }
}

main()
{
  for (;;) {
    fgets(ebuf, N, stdin);
    *(strchr(ebuf, '\n')) = '\0';
    if (strcmp(ebuf, ".") == 0) break ;
    e = ebuf;
    o = obuf;
    concat2(); *o = '\0';
    for (o = obuf; *o != '\0'; ++o) {
      if (*o == '?') *o = 'A';
    }
    puts(obuf);
  }

  return EXIT_SUCCESS;
}
A+A++A
Z-Z--Z+-Z
[ESRVEER]
J---?---J
++++++++A+++Z-----------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++A
Z-ZZ--+-Z
[ESRVEER]
J---?---J
++++++++A+++Z-----------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++A
Z-Z--Z+-Z
[ESRVEER]
J---?---J
+++-++++A+++Z-+---------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++A
Z-Z--Z+-Z
[ESQVEER]
J---?---J
+++-++++A+++Z-+---------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++A
Z-Z--Z+-Z
[ESREVER]
J---J---?
++++++++A+++Z-----------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++A
Z-+Z--Z-Z
[ESREVER]
J---J---?
++++++++A+++Z-----------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++B
Z-Z--Z+-Z
[ESREVER]
J---?---J
++++++++A+++Z-----------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A++A+A
Z-Z--Z+-Z
[ESRVEER]
J---?---J
++++++++A+++Z-----------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++A
Z-Z--Z+-Z
[ESRVEFR]
J---?---J
+++-++++A+++Z-+---------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.
 A+A++A
Z-Z--Z+-Z
[ESQWEER]
J---?---J
+++-++++A+++Z-+---------A+++Z
[[++-+--?[--++-?++-+++L]][-+-----+-O]]++++---+L
.

ABC
ZYXZ
REEVRSE
JAG
ICPC
JAPAN
 ABC
ZYZX
REEVRSE
JAG
ICPC
JAPAN
 ABC
ZYXZ
REEVRSE
JAG
GCRC
JAPAN
 ABC
ZYXZ
REEVQSE
JAG
GCRC
JAPAN
 ABC
ZYXZ
REVERSE
JGA
ICPC
JAPAN
 ABC
ZZXY
REVERSE
JGA
ICPC
JAPAN
 ABD
ZYXZ
REVERSE
JAG
ICPC
JAPAN
 ACB
ZYXZ
REEVRSE
JAG
ICPC
JAPAN
 ABC
ZYXZ
RFEVRSE
JAG
GCRC
JAPAN
 ABC
ZYXZ
REEWQSE
JAG
GCRC
JAPAN

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>

#define N 128

static char ebuf[N];
static char *e;

static char obuf[N];
static char *o;

static
incl(ch)
{
  if (ch == '?') return ch;
  if (ch == 'Z') return 'A';
  return ch + 1;
}

static
decl(ch)
{
  if (ch == '?') return ch;
  if (ch == 'A') return 'Z';
  return ch - 1;
}

static void
concat3()
{
  if (*e == '+') {
    ++e; concat3();
    o[-1] = incl(o[-1]);
  } else if (*e == '-') {
    ++e; concat3();
    o[-1] = decl(o[-1]);
  } else {
    *(o++) = *(e++);
  }
}

static void
concat2()
{
  while (*e != '\0') {
    if (*e == '[') {
      char *p, *q;
      p = o;
      ++e; concat2();
      q = o - 1;
      for (; p < q; ++p, --q) {
        const char ch = *p;
        *p = *q;
        *q = ch;
      }
      continue ;
    } else if (*e == ']') {
      ++e;
      break ;
    }
    concat3();
  }
}

main()
{
  for (;;) {
    fgets(ebuf, N, stdin);
    *(strchr(ebuf, '\n')) = '\0';
    if (strcmp(ebuf, ".") == 0) break ;
    e = ebuf;
    o = obuf;
    concat2(); *o = '\0';
    for (o = obuf; *o != '\0'; ++o) {
      if (*o == '?') *o = 'A';
    }
    puts(obuf);
  }

  return EXIT_SUCCESS;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	ebuf
	.comm	ebuf,128,32
	.local	e
	.comm	e,8,8
	.local	obuf
	.comm	obuf,128,32
	.local	o
	.comm	o,8,8
	.type	incl, @function
incl:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	cmpl	$63, -4(%rbp)
	jne	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	cmpl	$90, -4(%rbp)
	jne	.L4
	movl	$65, %eax
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	addl	$1, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	incl, .-incl
	.type	decl, @function
decl:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	cmpl	$63, -4(%rbp)
	jne	.L6
	movl	-4(%rbp), %eax
	jmp	.L7
.L6:
	cmpl	$65, -4(%rbp)
	jne	.L8
	movl	$90, %eax
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	subl	$1, %eax
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decl, .-decl
	.type	concat3, @function
concat3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	jne	.L10
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat3
	movq	o(%rip), %rax
	subq	$1, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	incl
	movl	%eax, %edx
	movq	o(%rip), %rax
	subq	$1, %rax
	movb	%dl, (%rax)
	jmp	.L13
.L10:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L12
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat3
	movq	o(%rip), %rax
	subq	$1, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	decl
	movl	%eax, %edx
	movq	o(%rip), %rax
	subq	$1, %rax
	movb	%dl, (%rax)
	jmp	.L13
.L12:
	movq	e(%rip), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, e(%rip)
	movq	o(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, o(%rip)
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
.L13:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	concat3, .-concat3
	.type	concat2, @function
concat2:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	jmp	.L15
.L21:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$91, %al
	jne	.L16
	movq	o(%rip), %rax
	movq	%rax, -16(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat2
	movq	o(%rip), %rax
	subq	$1, %rax
	movq	%rax, -8(%rbp)
	jmp	.L17
.L18:
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, -17(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movb	%dl, (%rax)
	movq	-8(%rbp), %rax
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax)
	addq	$1, -16(%rbp)
	subq	$1, -8(%rbp)
.L17:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L18
	jmp	.L15
.L16:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$93, %al
	jne	.L19
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	jmp	.L20
.L19:
	movl	$0, %eax
	call	concat3
.L15:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L21
	nop
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	concat2, .-concat2
	.section	.rodata
.LC0:
	.string	"."
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
.L28:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$128, %esi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$10, %esi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	strchr@PLT
	movb	$0, (%rax)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L31
	leaq	ebuf(%rip), %rax
	movq	%rax, e(%rip)
	leaq	obuf(%rip), %rax
	movq	%rax, o(%rip)
	movl	$0, %eax
	call	concat2
	movq	o(%rip), %rax
	movb	$0, (%rax)
	leaq	obuf(%rip), %rax
	movq	%rax, o(%rip)
	jmp	.L25
.L27:
	movq	o(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L26
	movq	o(%rip), %rax
	movb	$65, (%rax)
.L26:
	movq	o(%rip), %rax
	addq	$1, %rax
	movq	%rax, o(%rip)
.L25:
	movq	o(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L27
	leaq	obuf(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L28
.L31:
	nop
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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
	.local	ebuf
	.comm	ebuf,128,32
	.local	e
	.comm	e,8,8
	.local	obuf
	.comm	obuf,128,32
	.local	o
	.comm	o,8,8
	.type	incl, @function
incl:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	cmpl	$63, -4(%rbp)
	jne	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	cmpl	$90, -4(%rbp)
	jne	.L4
	movl	$65, %eax
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	addl	$1, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	incl, .-incl
	.type	decl, @function
decl:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	cmpl	$63, -4(%rbp)
	jne	.L6
	movl	-4(%rbp), %eax
	jmp	.L7
.L6:
	cmpl	$65, -4(%rbp)
	jne	.L8
	movl	$90, %eax
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	subl	$1, %eax
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decl, .-decl
	.type	concat3, @function
concat3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	jne	.L10
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat3
	movq	o(%rip), %rax
	subq	$1, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	incl
	movl	%eax, %edx
	movq	o(%rip), %rax
	subq	$1, %rax
	movb	%dl, (%rax)
	jmp	.L13
.L10:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L12
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat3
	movq	o(%rip), %rax
	subq	$1, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	decl
	movl	%eax, %edx
	movq	o(%rip), %rax
	subq	$1, %rax
	movb	%dl, (%rax)
	jmp	.L13
.L12:
	movq	e(%rip), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, e(%rip)
	movq	o(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, o(%rip)
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
.L13:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	concat3, .-concat3
	.type	concat2, @function
concat2:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	jmp	.L15
.L21:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$91, %al
	jne	.L16
	movq	o(%rip), %rax
	movq	%rax, -16(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, %eax
	call	concat2
	movq	o(%rip), %rax
	subq	$1, %rax
	movq	%rax, -8(%rbp)
	jmp	.L17
.L18:
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, -17(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movb	%dl, (%rax)
	movq	-8(%rbp), %rax
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax)
	addq	$1, -16(%rbp)
	subq	$1, -8(%rbp)
.L17:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L18
	jmp	.L15
.L16:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$93, %al
	jne	.L19
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	jmp	.L20
.L19:
	movl	$0, %eax
	call	concat3
.L15:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L21
	nop
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	concat2, .-concat2
	.section	.rodata
.LC0:
	.string	"."
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
.L28:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$128, %esi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$10, %esi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	strchr@PLT
	movb	$0, (%rax)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	leaq	ebuf(%rip), %rax
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L31
	leaq	ebuf(%rip), %rax
	movq	%rax, e(%rip)
	leaq	obuf(%rip), %rax
	movq	%rax, o(%rip)
	movl	$0, %eax
	call	concat2
	movq	o(%rip), %rax
	movb	$0, (%rax)
	leaq	obuf(%rip), %rax
	movq	%rax, o(%rip)
	jmp	.L25
.L27:
	movq	o(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L26
	movq	o(%rip), %rax
	movb	$65, (%rax)
.L26:
	movq	o(%rip), %rax
	addq	$1, %rax
	movq	%rax, o(%rip)
.L25:
	movq	o(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L27
	leaq	obuf(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L28
.L31:
	nop
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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:
