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() {
  int height,length,i,j,t,max,depth,left,right,last_height,sum;
  char section[20001],reverse[20001];
  int L[10000] = {0},reverse_L[10000] = {0};

  scanf("%s", section);
  length = strlen(section);
  for(i = 0; i < length; i++) reverse[i] = section[length-i-1];
  reverse[i] = '\0';
  
  max = 0;height = 0;t = 0;
  for(i = 0; i < length; i++) {
    if(section[i] =='\\') height--;
    if(section[i] == '/') {
      height++;
      if(max == height) t++;
      if(max < height) {
	max = height;
	t = 0;
      }
    }
  }
  last_height = height;

  
  height = 0;depth = 0;i = 0;j = 0;
  while(height < max) {
    if(section[i] =='\\') {
      height--;
      depth++;
    }
    if(section[i] == '/') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && L[j] > 0) j++;
    }
    L[j] += depth;
    i++;
  }
  
  while(t > 0) {
    if(section[i] =='\\') {
      height--;
      depth++;
    }
    if(section[i] == '/') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && L[j] > 0) {
	j++;
	t--;
      }
    }
    L[j] += depth;
    i++;
  }
  left = j;
  
  height = last_height;depth = 0;i = 0;j = 0;
  while(height < max) {
    if(reverse[i] =='/') {
      height--;
      depth++;
    }
    if(reverse[i] == '\\') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && reverse_L[j] > 0) j++;
    }
    reverse_L[j] += depth;
    i++;
  }
  right = j;

  for(i = 0; i < right; i++) L[left+i] = reverse_L[right-i-1];
  sum = 0;
  for(i = 0; i < left+right; i++) sum += L[i];

  printf("%d\n", sum);
  printf("%d", left+right);
  if(left+right != 0) printf(" ");
  for(i = 0; i < left+right-1; i++) printf("%d ", L[i]);
  if(left+right != 0) printf("%d", L[i]);
  printf("\n");

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.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	-118784(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1296, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-120032(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-80032(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -120048(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L2
.L3:
	movl	-120048(%rbp), %eax
	subl	-120072(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-40032(%rbp,%rax), %edx
	movl	-120072(%rbp), %eax
	cltq
	movb	%dl, -20016(%rbp,%rax)
	addl	$1, -120072(%rbp)
.L2:
	movl	-120072(%rbp), %eax
	cmpl	-120048(%rbp), %eax
	jl	.L3
	movl	-120072(%rbp), %eax
	cltq
	movb	$0, -20016(%rbp,%rax)
	movl	$0, -120060(%rbp)
	movl	$0, -120076(%rbp)
	movl	$0, -120064(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L4
.L8:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L5
	subl	$1, -120076(%rbp)
.L5:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L6
	addl	$1, -120076(%rbp)
	movl	-120060(%rbp), %eax
	cmpl	-120076(%rbp), %eax
	jne	.L7
	addl	$1, -120064(%rbp)
.L7:
	movl	-120060(%rbp), %eax
	cmpl	-120076(%rbp), %eax
	jge	.L6
	movl	-120076(%rbp), %eax
	movl	%eax, -120060(%rbp)
	movl	$0, -120064(%rbp)
.L6:
	addl	$1, -120072(%rbp)
.L4:
	movl	-120072(%rbp), %eax
	cmpl	-120048(%rbp), %eax
	jl	.L8
	movl	-120076(%rbp), %eax
	movl	%eax, -120044(%rbp)
	movl	$0, -120076(%rbp)
	movl	$0, -120056(%rbp)
	movl	$0, -120072(%rbp)
	movl	$0, -120068(%rbp)
	jmp	.L9
.L13:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L10
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L10:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L11
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L12
	subl	$1, -120056(%rbp)
.L12:
	cmpl	$0, -120056(%rbp)
	jne	.L11
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L11
	addl	$1, -120068(%rbp)
.L11:
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L9:
	movl	-120076(%rbp), %eax
	cmpl	-120060(%rbp), %eax
	jl	.L13
	jmp	.L14
.L18:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L15
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L15:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L16
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L17
	subl	$1, -120056(%rbp)
.L17:
	cmpl	$0, -120056(%rbp)
	jne	.L16
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L16
	addl	$1, -120068(%rbp)
	subl	$1, -120064(%rbp)
.L16:
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L14:
	cmpl	$0, -120064(%rbp)
	jg	.L18
	movl	-120068(%rbp), %eax
	movl	%eax, -120040(%rbp)
	movl	-120044(%rbp), %eax
	movl	%eax, -120076(%rbp)
	movl	$0, -120056(%rbp)
	movl	$0, -120072(%rbp)
	movl	$0, -120068(%rbp)
	jmp	.L19
.L23:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-20016(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L20
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L20:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-20016(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L21
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L22
	subl	$1, -120056(%rbp)
.L22:
	cmpl	$0, -120056(%rbp)
	jne	.L21
	movl	-120068(%rbp), %eax
	cltq
	movl	-80032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L21
	addl	$1, -120068(%rbp)
.L21:
	movl	-120068(%rbp), %eax
	cltq
	movl	-80032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -80032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L19:
	movl	-120076(%rbp), %eax
	cmpl	-120060(%rbp), %eax
	jl	.L23
	movl	-120068(%rbp), %eax
	movl	%eax, -120036(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L24
.L25:
	movl	-120036(%rbp), %eax
	subl	-120072(%rbp), %eax
	subl	$1, %eax
	movl	-120040(%rbp), %ecx
	movl	-120072(%rbp), %edx
	addl	%edx, %ecx
	cltq
	movl	-80032(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L24:
	movl	-120072(%rbp), %eax
	cmpl	-120036(%rbp), %eax
	jl	.L25
	movl	$0, -120052(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L26
.L27:
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	addl	%eax, -120052(%rbp)
	addl	$1, -120072(%rbp)
.L26:
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -120072(%rbp)
	jl	.L27
	movl	-120052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L28
	movl	$32, %edi
	call	putchar@PLT
.L28:
	movl	$0, -120072(%rbp)
	jmp	.L29
.L30:
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -120072(%rbp)
.L29:
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cmpl	%eax, -120072(%rbp)
	jl	.L30
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L31
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	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	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118832
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1248, %rsp
	.cfi_def_cfa_offset 120080
	xorl	%esi, %esi
	movl	$40000, %edx
	movq	%fs:40, %rax
	movq	%rax, 120024(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	40000(%rsp), %rbp
	leaq	80000(%rsp), %r13
	movq	%rbx, %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movl	$40000, %edx
	movq	%rbp, %rdi
	call	memset@PLT
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movslq	%eax, %r8
	leaq	100016(%rsp), %r9
	leal	-1(%rax), %edi
	leaq	-1(%r13,%r8), %rcx
	movq	%r9, %rdx
	leaq	100017(%rsp,%rdi), %rsi
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	(%rcx), %eax
	addq	$1, %rdx
	subq	$1, %rcx
	movb	%al, -1(%rdx)
	cmpq	%rsi, %rdx
	jne	.L3
	movq	%r13, %rax
	leaq	80001(%rsp,%rdi), %rsi
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
	movb	$0, 100016(%rsp,%r8)
	xorl	%r8d, %r8d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$47, %dl
	jne	.L6
	addl	$1, %ecx
	cmpl	%r8d, %ecx
	je	.L94
	movl	$0, %edx
	cmovg	%ecx, %r8d
	cmovg	%edx, %r10d
.L6:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L95
.L8:
	movzbl	(%rax), %edx
	cmpb	$92, %dl
	jne	.L5
	addq	$1, %rax
	subl	$1, %ecx
	cmpq	%rsi, %rax
	jne	.L8
.L95:
	testl	%r8d, %r8d
	je	.L40
	movl	$1, %edi
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	leaq	79999(%rsp), %r14
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$47, %sil
	jne	.L90
	addl	$1, %r11d
	testl	%edx, %edx
	je	.L13
	subl	$1, %edx
	je	.L13
.L90:
	addl	%edx, %eax
	movslq	%r12d, %rsi
.L11:
	movl	%eax, (%rsp,%rsi,4)
	movslq	%edi, %rsi
	addq	$1, %rdi
	cmpl	%r8d, %r11d
	jge	.L9
.L14:
	movzbl	(%r14,%rdi), %esi
	cmpb	$92, %sil
	jne	.L10
	addl	$1, %edx
	movslq	%r12d, %rsi
	subl	$1, %r11d
	addl	%edx, %eax
	movl	%eax, (%rsp,%rsi,4)
	movslq	%edi, %rsi
	addq	$1, %rdi
	cmpl	%r8d, %r11d
	jl	.L14
.L9:
	testl	%r10d, %r10d
	je	.L15
	addq	%r13, %rsi
.L20:
	movzbl	(%rsi), %edi
	cmpb	$92, %dil
	je	.L96
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$47, %dil
	jne	.L92
	testl	%edx, %edx
	je	.L19
	subl	$1, %edx
	je	.L19
.L92:
	addl	%edx, %eax
.L17:
	movslq	%r12d, %rdi
	addq	$1, %rsi
	movl	%eax, (%rsp,%rdi,4)
	movzbl	(%rsi), %edi
	cmpb	$92, %dil
	jne	.L16
.L96:
	addl	$1, %edx
	addl	%edx, %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L94:
	addl	$1, %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jle	.L41
	addl	$1, %r12d
	xorl	%edx, %edx
	movslq	%r12d, %rsi
	movl	(%rsp,%rsi,4), %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%eax, %eax
	jle	.L42
	addl	$1, %r12d
	addq	$1, %rsi
	movslq	%r12d, %rax
	movl	(%rsp,%rax,4), %eax
	subl	$1, %r10d
	jne	.L97
.L15:
	cmpl	%r8d, %ecx
	jge	.L21
	movq	%r9, %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L22:
	cmpb	$92, %dil
	jne	.L91
	addl	$1, %ecx
	testl	%esi, %esi
	je	.L25
	subl	$1, %esi
	je	.L25
.L91:
	addl	%esi, %edx
	movslq	%r9d, %rdi
.L23:
	movl	%edx, 40000(%rsp,%rdi,4)
	addq	$1, %rax
	cmpl	%r8d, %ecx
	jge	.L98
.L26:
	movzbl	(%rax), %edi
	cmpb	$47, %dil
	jne	.L22
	addl	$1, %esi
	movslq	%r9d, %rdi
	subl	$1, %ecx
	addq	$1, %rax
	addl	%esi, %edx
	movl	%edx, 40000(%rsp,%rdi,4)
	cmpl	%r8d, %ecx
	jl	.L26
.L98:
	testl	%r9d, %r9d
	je	.L21
	leal	-1(%r9), %eax
	cmpl	$2, %eax
	jbe	.L44
	movl	%r9d, %esi
	leaq	-16(%rbp,%rdi,4), %rcx
	movslq	%r12d, %rax
	shrl	$2, %esi
	leaq	(%rbx,%rax,4), %rdx
	leaq	-16(%rcx), %rax
	leal	-1(%rsi), %edi
	movq	%rax, %rsi
	salq	$4, %rdi
	subq	%rdi, %rsi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L99:
	subq	$16, %rax
.L28:
	movdqu	(%rcx), %xmm0
	addq	$16, %rdx
	movq	%rax, %rcx
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rsi, %rax
	jne	.L99
	movl	%r9d, %eax
	andl	$-4, %eax
	testb	$3, %r9b
	je	.L29
.L27:
	movl	%r9d, %edx
	leal	(%r12,%rax), %ecx
	subl	%eax, %edx
	movslq	%ecx, %rcx
	subl	$1, %edx
	movslq	%edx, %rdx
	movl	40000(%rsp,%rdx,4), %edx
	movl	%edx, (%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r9d
	jle	.L29
	movl	%r9d, %edx
	leal	(%r12,%rcx), %esi
	addl	$2, %eax
	subl	%ecx, %edx
	movslq	%esi, %rsi
	subl	$1, %edx
	movslq	%edx, %rdx
	movl	40000(%rsp,%rdx,4), %edx
	movl	%edx, (%rsp,%rsi,4)
	cmpl	%eax, %r9d
	jle	.L29
	movl	%r9d, %edx
	leal	(%r12,%rax), %ecx
	subl	%eax, %edx
	movslq	%ecx, %rcx
	leal	-1(%rdx), %eax
	cltq
	movl	40000(%rsp,%rax,4), %eax
	movl	%eax, (%rsp,%rcx,4)
.L29:
	addl	%r9d, %r12d
.L37:
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovg	%r12d, %ecx
	cmpl	$3, %r12d
	jle	.L45
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L31:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L31
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L32
.L30:
	movslq	%eax, %rcx
	addl	(%rsp,%rcx,4), %edx
	leal	1(%rax), %ecx
	cmpl	%ecx, %r12d
	jle	.L32
	movslq	%ecx, %rcx
	addl	$2, %eax
	addl	(%rsp,%rcx,4), %edx
	cmpl	%r12d, %eax
	jge	.L32
	cltq
	addl	(%rsp,%rax,4), %edx
.L32:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %r14d
	call	__printf_chk@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %r13
	movq	%r13, %rsi
	call	__printf_chk@PLT
	movl	$32, %edi
	call	putchar@PLT
	subl	$1, %r14d
	je	.L36
	leal	-2(%r12), %eax
	leaq	.LC3(%rip), %rbp
	leaq	4(%rsp,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L34:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L34
.L36:
	movslq	%r14d, %r14
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rsp,%r14,4), %edx
	call	__printf_chk@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L25:
	testl	%edx, %edx
	jle	.L43
	addl	$1, %r9d
	xorl	%esi, %esi
	movslq	%r9d, %rdi
	movl	40000(%rsp,%rdi,4), %edx
	jmp	.L23
.L21:
	testl	%r12d, %r12d
	jne	.L37
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%edx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edx, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L33:
	movl	$10, %edi
	call	putchar@PLT
	movq	120024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L100
	addq	$120032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L41:
	.cfi_restore_state
	xorl	%edx, %edx
	movslq	%r12d, %rsi
	jmp	.L11
.L42:
	xorl	%edx, %edx
	jmp	.L17
.L43:
	xorl	%esi, %esi
	movslq	%r9d, %rdi
	jmp	.L23
.L45:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L30
.L44:
	xorl	%eax, %eax
	jmp	.L27
.L40:
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	jmp	.L9
.L100:
	call	__stack_chk_fail@PLT
.L97:
	xorl	%edx, %edx
	jmp	.L20
	.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	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118832
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1248, %rsp
	.cfi_def_cfa_offset 120080
	xorl	%esi, %esi
	movl	$40000, %edx
	movq	%fs:40, %rax
	movq	%rax, 120024(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	40000(%rsp), %rbp
	leaq	80000(%rsp), %r13
	movq	%rbx, %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movl	$40000, %edx
	movq	%rbp, %rdi
	call	memset@PLT
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L2
	movslq	%eax, %r8
	leaq	100016(%rsp), %r9
	leal	-1(%rax), %edi
	leaq	-1(%r13,%r8), %rcx
	movq	%r9, %rdx
	leaq	100017(%rsp,%rdi), %rsi
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	(%rcx), %eax
	addq	$1, %rdx
	subq	$1, %rcx
	movb	%al, -1(%rdx)
	cmpq	%rsi, %rdx
	jne	.L3
	movq	%r13, %rax
	leaq	80001(%rsp,%rdi), %rsi
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
	movb	$0, 100016(%rsp,%r8)
	xorl	%r8d, %r8d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$47, %dl
	jne	.L6
	addl	$1, %ecx
	cmpl	%r8d, %ecx
	je	.L94
	movl	$0, %edx
	cmovg	%ecx, %r8d
	cmovg	%edx, %r10d
.L6:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L95
.L8:
	movzbl	(%rax), %edx
	cmpb	$92, %dl
	jne	.L5
	addq	$1, %rax
	subl	$1, %ecx
	cmpq	%rsi, %rax
	jne	.L8
.L95:
	testl	%r8d, %r8d
	je	.L40
	movl	$1, %edi
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	leaq	79999(%rsp), %r14
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$47, %sil
	jne	.L90
	addl	$1, %r11d
	testl	%edx, %edx
	je	.L13
	subl	$1, %edx
	je	.L13
.L90:
	addl	%edx, %eax
	movslq	%r12d, %rsi
.L11:
	movl	%eax, (%rsp,%rsi,4)
	movslq	%edi, %rsi
	addq	$1, %rdi
	cmpl	%r8d, %r11d
	jge	.L9
.L14:
	movzbl	(%r14,%rdi), %esi
	cmpb	$92, %sil
	jne	.L10
	addl	$1, %edx
	movslq	%r12d, %rsi
	subl	$1, %r11d
	addl	%edx, %eax
	movl	%eax, (%rsp,%rsi,4)
	movslq	%edi, %rsi
	addq	$1, %rdi
	cmpl	%r8d, %r11d
	jl	.L14
.L9:
	testl	%r10d, %r10d
	je	.L15
	addq	%r13, %rsi
.L20:
	movzbl	(%rsi), %edi
	cmpb	$92, %dil
	je	.L96
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$47, %dil
	jne	.L92
	testl	%edx, %edx
	je	.L19
	subl	$1, %edx
	je	.L19
.L92:
	addl	%edx, %eax
.L17:
	movslq	%r12d, %rdi
	addq	$1, %rsi
	movl	%eax, (%rsp,%rdi,4)
	movzbl	(%rsi), %edi
	cmpb	$92, %dil
	jne	.L16
.L96:
	addl	$1, %edx
	addl	%edx, %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L94:
	addl	$1, %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jle	.L41
	addl	$1, %r12d
	xorl	%edx, %edx
	movslq	%r12d, %rsi
	movl	(%rsp,%rsi,4), %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%eax, %eax
	jle	.L42
	addl	$1, %r12d
	addq	$1, %rsi
	movslq	%r12d, %rax
	movl	(%rsp,%rax,4), %eax
	subl	$1, %r10d
	jne	.L97
.L15:
	cmpl	%r8d, %ecx
	jge	.L21
	movq	%r9, %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L22:
	cmpb	$92, %dil
	jne	.L91
	addl	$1, %ecx
	testl	%esi, %esi
	je	.L25
	subl	$1, %esi
	je	.L25
.L91:
	addl	%esi, %edx
	movslq	%r9d, %rdi
.L23:
	movl	%edx, 40000(%rsp,%rdi,4)
	addq	$1, %rax
	cmpl	%r8d, %ecx
	jge	.L98
.L26:
	movzbl	(%rax), %edi
	cmpb	$47, %dil
	jne	.L22
	addl	$1, %esi
	movslq	%r9d, %rdi
	subl	$1, %ecx
	addq	$1, %rax
	addl	%esi, %edx
	movl	%edx, 40000(%rsp,%rdi,4)
	cmpl	%r8d, %ecx
	jl	.L26
.L98:
	testl	%r9d, %r9d
	je	.L21
	leal	-1(%r9), %eax
	cmpl	$2, %eax
	jbe	.L44
	movl	%r9d, %esi
	leaq	-16(%rbp,%rdi,4), %rcx
	movslq	%r12d, %rax
	shrl	$2, %esi
	leaq	(%rbx,%rax,4), %rdx
	leaq	-16(%rcx), %rax
	leal	-1(%rsi), %edi
	movq	%rax, %rsi
	salq	$4, %rdi
	subq	%rdi, %rsi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L99:
	subq	$16, %rax
.L28:
	movdqu	(%rcx), %xmm0
	addq	$16, %rdx
	movq	%rax, %rcx
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rsi, %rax
	jne	.L99
	movl	%r9d, %eax
	andl	$-4, %eax
	testb	$3, %r9b
	je	.L29
.L27:
	movl	%r9d, %edx
	leal	(%r12,%rax), %ecx
	subl	%eax, %edx
	movslq	%ecx, %rcx
	subl	$1, %edx
	movslq	%edx, %rdx
	movl	40000(%rsp,%rdx,4), %edx
	movl	%edx, (%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r9d
	jle	.L29
	movl	%r9d, %edx
	leal	(%r12,%rcx), %esi
	addl	$2, %eax
	subl	%ecx, %edx
	movslq	%esi, %rsi
	subl	$1, %edx
	movslq	%edx, %rdx
	movl	40000(%rsp,%rdx,4), %edx
	movl	%edx, (%rsp,%rsi,4)
	cmpl	%eax, %r9d
	jle	.L29
	movl	%r9d, %edx
	leal	(%r12,%rax), %ecx
	subl	%eax, %edx
	movslq	%ecx, %rcx
	leal	-1(%rdx), %eax
	cltq
	movl	40000(%rsp,%rax,4), %eax
	movl	%eax, (%rsp,%rcx,4)
.L29:
	addl	%r9d, %r12d
.L37:
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovg	%r12d, %ecx
	cmpl	$3, %r12d
	jle	.L45
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L31:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L31
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L32
.L30:
	movslq	%eax, %rcx
	addl	(%rsp,%rcx,4), %edx
	leal	1(%rax), %ecx
	cmpl	%ecx, %r12d
	jle	.L32
	movslq	%ecx, %rcx
	addl	$2, %eax
	addl	(%rsp,%rcx,4), %edx
	cmpl	%r12d, %eax
	jge	.L32
	cltq
	addl	(%rsp,%rax,4), %edx
.L32:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %r14d
	call	__printf_chk@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %r13
	movq	%r13, %rsi
	call	__printf_chk@PLT
	movl	$32, %edi
	call	putchar@PLT
	subl	$1, %r14d
	je	.L36
	leal	-2(%r12), %eax
	leaq	.LC3(%rip), %rbp
	leaq	4(%rsp,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L34:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L34
.L36:
	movslq	%r14d, %r14
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rsp,%r14,4), %edx
	call	__printf_chk@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L25:
	testl	%edx, %edx
	jle	.L43
	addl	$1, %r9d
	xorl	%esi, %esi
	movslq	%r9d, %rdi
	movl	40000(%rsp,%rdi,4), %edx
	jmp	.L23
.L21:
	testl	%r12d, %r12d
	jne	.L37
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%edx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edx, %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L33:
	movl	$10, %edi
	call	putchar@PLT
	movq	120024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L100
	addq	$120032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L41:
	.cfi_restore_state
	xorl	%edx, %edx
	movslq	%r12d, %rsi
	jmp	.L11
.L42:
	xorl	%edx, %edx
	jmp	.L17
.L43:
	xorl	%esi, %esi
	movslq	%r9d, %rdi
	jmp	.L23
.L45:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L30
.L44:
	xorl	%eax, %eax
	jmp	.L27
.L40:
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	jmp	.L9
.L100:
	call	__stack_chk_fail@PLT
.L97:
	xorl	%edx, %edx
	jmp	.L20
	.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() {
  int height,length,i,j,t,max,depth,left,right,last_height,sum;
  char section[20001],reverse[20001];
  int L[10000] = {0},reverse_L[10000] = {0};

  scanf("%s", section);
  length = strlen(section);
  for(i = 0; i < length; i++) reverse[i] = section[length-i-1];
  reverse[i] = '\0';
  
  max = 0;height = 0;t = 0;
  for(i = 0; i < length; i++) {
    if(section[i] =='\\') height--;
    if(section[i] == '/') {
      height++;
      if(max == height) t++;
      if(max < height) {
	max = height;
	t = 0;
      }
    }
  }
  last_height = height;

  
  height = 0;depth = 0;i = 0;j = 0;
  while(height < max) {
    if(section[i] =='\\') {
      height--;
      depth++;
    }
    if(section[i] == '/') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && L[j] > 0) j++;
    }
    L[j] += depth;
    i++;
  }
  
  while(t > 0) {
    if(section[i] =='\\') {
      height--;
      depth++;
    }
    if(section[i] == '/') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && L[j] > 0) {
	j++;
	t--;
      }
    }
    L[j] += depth;
    i++;
  }
  left = j;
  
  height = last_height;depth = 0;i = 0;j = 0;
  while(height < max) {
    if(reverse[i] =='/') {
      height--;
      depth++;
    }
    if(reverse[i] == '\\') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && reverse_L[j] > 0) j++;
    }
    reverse_L[j] += depth;
    i++;
  }
  right = j;

  for(i = 0; i < right; i++) L[left+i] = reverse_L[right-i-1];
  sum = 0;
  for(i = 0; i < left+right; i++) sum += L[i];

  printf("%d\n", sum);
  printf("%d", left+right);
  if(left+right != 0) printf(" ");
  for(i = 0; i < left+right-1; i++) printf("%d ", L[i]);
  if(left+right != 0) printf("%d", L[i]);
  printf("\n");

  return 0;
}
\/_/\_/\\_\\\__///\\/_/\\\\/\/_\///\\
 ]\//
 \/_/\_/\\_/\\__///\\/_/\\\\/\/_\/\/\\
 \/_/\_/\\_/\\__///\\/_/\[\\0\/_\/\/\\
 -/\]
 \/_/\_/\\_/\\__///\\/_0\[\\0\/_\/\/\\
 \/_/\_/\\_/\\__///\\/_0/[\\0\/_\/\\\\
 \/_/\_/\\_0\\__///\\/_0/[\\0\/_\/\\\\
 \/__\_/\\/0\\__///\\/_0/[\\0\/_\/\\\\
 \\\\/\_/\0\\[/0`/\\///__\\0/\\/_\__/\

44
5 1 2 15 5 21
 1
1 1
 32
8 1 2 20 5 1 1 1 1
 31
7 1 2 20 5 1 1 1
 0
0
 27
7 1 2 20 1 1 1 1
 31
6 1 2 20 6 1 1
 28
6 1 2 17 6 1 1
 30
6 1 2 19 6 1 1
 34
6 1 2 25 2 1 3

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() {
  int height,length,i,j,t,max,depth,left,right,last_height,sum;
  char section[20001],reverse[20001];
  int L[10000] = {0},reverse_L[10000] = {0};

  scanf("%s", section);
  length = strlen(section);
  for(i = 0; i < length; i++) reverse[i] = section[length-i-1];
  reverse[i] = '\0';
  
  max = 0;height = 0;t = 0;
  for(i = 0; i < length; i++) {
    if(section[i] =='\\') height--;
    if(section[i] == '/') {
      height++;
      if(max == height) t++;
      if(max < height) {
	max = height;
	t = 0;
      }
    }
  }
  last_height = height;

  
  height = 0;depth = 0;i = 0;j = 0;
  while(height < max) {
    if(section[i] =='\\') {
      height--;
      depth++;
    }
    if(section[i] == '/') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && L[j] > 0) j++;
    }
    L[j] += depth;
    i++;
  }
  
  while(t > 0) {
    if(section[i] =='\\') {
      height--;
      depth++;
    }
    if(section[i] == '/') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && L[j] > 0) {
	j++;
	t--;
      }
    }
    L[j] += depth;
    i++;
  }
  left = j;
  
  height = last_height;depth = 0;i = 0;j = 0;
  while(height < max) {
    if(reverse[i] =='/') {
      height--;
      depth++;
    }
    if(reverse[i] == '\\') {
      height++;
      if(depth > 0) depth--;
      if(depth == 0 && reverse_L[j] > 0) j++;
    }
    reverse_L[j] += depth;
    i++;
  }
  right = j;

  for(i = 0; i < right; i++) L[left+i] = reverse_L[right-i-1];
  sum = 0;
  for(i = 0; i < left+right; i++) sum += L[i];

  printf("%d\n", sum);
  printf("%d", left+right);
  if(left+right != 0) printf(" ");
  for(i = 0; i < left+right-1; i++) printf("%d ", L[i]);
  if(left+right != 0) printf("%d", L[i]);
  printf("\n");

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.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	-118784(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1296, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-120032(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-80032(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -120048(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L2
.L3:
	movl	-120048(%rbp), %eax
	subl	-120072(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-40032(%rbp,%rax), %edx
	movl	-120072(%rbp), %eax
	cltq
	movb	%dl, -20016(%rbp,%rax)
	addl	$1, -120072(%rbp)
.L2:
	movl	-120072(%rbp), %eax
	cmpl	-120048(%rbp), %eax
	jl	.L3
	movl	-120072(%rbp), %eax
	cltq
	movb	$0, -20016(%rbp,%rax)
	movl	$0, -120060(%rbp)
	movl	$0, -120076(%rbp)
	movl	$0, -120064(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L4
.L8:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L5
	subl	$1, -120076(%rbp)
.L5:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L6
	addl	$1, -120076(%rbp)
	movl	-120060(%rbp), %eax
	cmpl	-120076(%rbp), %eax
	jne	.L7
	addl	$1, -120064(%rbp)
.L7:
	movl	-120060(%rbp), %eax
	cmpl	-120076(%rbp), %eax
	jge	.L6
	movl	-120076(%rbp), %eax
	movl	%eax, -120060(%rbp)
	movl	$0, -120064(%rbp)
.L6:
	addl	$1, -120072(%rbp)
.L4:
	movl	-120072(%rbp), %eax
	cmpl	-120048(%rbp), %eax
	jl	.L8
	movl	-120076(%rbp), %eax
	movl	%eax, -120044(%rbp)
	movl	$0, -120076(%rbp)
	movl	$0, -120056(%rbp)
	movl	$0, -120072(%rbp)
	movl	$0, -120068(%rbp)
	jmp	.L9
.L13:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L10
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L10:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L11
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L12
	subl	$1, -120056(%rbp)
.L12:
	cmpl	$0, -120056(%rbp)
	jne	.L11
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L11
	addl	$1, -120068(%rbp)
.L11:
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L9:
	movl	-120076(%rbp), %eax
	cmpl	-120060(%rbp), %eax
	jl	.L13
	jmp	.L14
.L18:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L15
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L15:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L16
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L17
	subl	$1, -120056(%rbp)
.L17:
	cmpl	$0, -120056(%rbp)
	jne	.L16
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L16
	addl	$1, -120068(%rbp)
	subl	$1, -120064(%rbp)
.L16:
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L14:
	cmpl	$0, -120064(%rbp)
	jg	.L18
	movl	-120068(%rbp), %eax
	movl	%eax, -120040(%rbp)
	movl	-120044(%rbp), %eax
	movl	%eax, -120076(%rbp)
	movl	$0, -120056(%rbp)
	movl	$0, -120072(%rbp)
	movl	$0, -120068(%rbp)
	jmp	.L19
.L23:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-20016(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L20
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L20:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-20016(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L21
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L22
	subl	$1, -120056(%rbp)
.L22:
	cmpl	$0, -120056(%rbp)
	jne	.L21
	movl	-120068(%rbp), %eax
	cltq
	movl	-80032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L21
	addl	$1, -120068(%rbp)
.L21:
	movl	-120068(%rbp), %eax
	cltq
	movl	-80032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -80032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L19:
	movl	-120076(%rbp), %eax
	cmpl	-120060(%rbp), %eax
	jl	.L23
	movl	-120068(%rbp), %eax
	movl	%eax, -120036(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L24
.L25:
	movl	-120036(%rbp), %eax
	subl	-120072(%rbp), %eax
	subl	$1, %eax
	movl	-120040(%rbp), %ecx
	movl	-120072(%rbp), %edx
	addl	%edx, %ecx
	cltq
	movl	-80032(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L24:
	movl	-120072(%rbp), %eax
	cmpl	-120036(%rbp), %eax
	jl	.L25
	movl	$0, -120052(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L26
.L27:
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	addl	%eax, -120052(%rbp)
	addl	$1, -120072(%rbp)
.L26:
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -120072(%rbp)
	jl	.L27
	movl	-120052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L28
	movl	$32, %edi
	call	putchar@PLT
.L28:
	movl	$0, -120072(%rbp)
	jmp	.L29
.L30:
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -120072(%rbp)
.L29:
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cmpl	%eax, -120072(%rbp)
	jl	.L30
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L31
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	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	"%d\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.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	-118784(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1296, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-120032(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-80032(%rbp), %rax
	movl	$40000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -120048(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L2
.L3:
	movl	-120048(%rbp), %eax
	subl	-120072(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-40032(%rbp,%rax), %edx
	movl	-120072(%rbp), %eax
	cltq
	movb	%dl, -20016(%rbp,%rax)
	addl	$1, -120072(%rbp)
.L2:
	movl	-120072(%rbp), %eax
	cmpl	-120048(%rbp), %eax
	jl	.L3
	movl	-120072(%rbp), %eax
	cltq
	movb	$0, -20016(%rbp,%rax)
	movl	$0, -120060(%rbp)
	movl	$0, -120076(%rbp)
	movl	$0, -120064(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L4
.L8:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L5
	subl	$1, -120076(%rbp)
.L5:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L6
	addl	$1, -120076(%rbp)
	movl	-120060(%rbp), %eax
	cmpl	-120076(%rbp), %eax
	jne	.L7
	addl	$1, -120064(%rbp)
.L7:
	movl	-120060(%rbp), %eax
	cmpl	-120076(%rbp), %eax
	jge	.L6
	movl	-120076(%rbp), %eax
	movl	%eax, -120060(%rbp)
	movl	$0, -120064(%rbp)
.L6:
	addl	$1, -120072(%rbp)
.L4:
	movl	-120072(%rbp), %eax
	cmpl	-120048(%rbp), %eax
	jl	.L8
	movl	-120076(%rbp), %eax
	movl	%eax, -120044(%rbp)
	movl	$0, -120076(%rbp)
	movl	$0, -120056(%rbp)
	movl	$0, -120072(%rbp)
	movl	$0, -120068(%rbp)
	jmp	.L9
.L13:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L10
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L10:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L11
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L12
	subl	$1, -120056(%rbp)
.L12:
	cmpl	$0, -120056(%rbp)
	jne	.L11
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L11
	addl	$1, -120068(%rbp)
.L11:
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L9:
	movl	-120076(%rbp), %eax
	cmpl	-120060(%rbp), %eax
	jl	.L13
	jmp	.L14
.L18:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L15
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L15:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-40032(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L16
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L17
	subl	$1, -120056(%rbp)
.L17:
	cmpl	$0, -120056(%rbp)
	jne	.L16
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L16
	addl	$1, -120068(%rbp)
	subl	$1, -120064(%rbp)
.L16:
	movl	-120068(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L14:
	cmpl	$0, -120064(%rbp)
	jg	.L18
	movl	-120068(%rbp), %eax
	movl	%eax, -120040(%rbp)
	movl	-120044(%rbp), %eax
	movl	%eax, -120076(%rbp)
	movl	$0, -120056(%rbp)
	movl	$0, -120072(%rbp)
	movl	$0, -120068(%rbp)
	jmp	.L19
.L23:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-20016(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L20
	subl	$1, -120076(%rbp)
	addl	$1, -120056(%rbp)
.L20:
	movl	-120072(%rbp), %eax
	cltq
	movzbl	-20016(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L21
	addl	$1, -120076(%rbp)
	cmpl	$0, -120056(%rbp)
	jle	.L22
	subl	$1, -120056(%rbp)
.L22:
	cmpl	$0, -120056(%rbp)
	jne	.L21
	movl	-120068(%rbp), %eax
	cltq
	movl	-80032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L21
	addl	$1, -120068(%rbp)
.L21:
	movl	-120068(%rbp), %eax
	cltq
	movl	-80032(%rbp,%rax,4), %edx
	movl	-120056(%rbp), %eax
	addl	%eax, %edx
	movl	-120068(%rbp), %eax
	cltq
	movl	%edx, -80032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L19:
	movl	-120076(%rbp), %eax
	cmpl	-120060(%rbp), %eax
	jl	.L23
	movl	-120068(%rbp), %eax
	movl	%eax, -120036(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L24
.L25:
	movl	-120036(%rbp), %eax
	subl	-120072(%rbp), %eax
	subl	$1, %eax
	movl	-120040(%rbp), %ecx
	movl	-120072(%rbp), %edx
	addl	%edx, %ecx
	cltq
	movl	-80032(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -120032(%rbp,%rax,4)
	addl	$1, -120072(%rbp)
.L24:
	movl	-120072(%rbp), %eax
	cmpl	-120036(%rbp), %eax
	jl	.L25
	movl	$0, -120052(%rbp)
	movl	$0, -120072(%rbp)
	jmp	.L26
.L27:
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	addl	%eax, -120052(%rbp)
	addl	$1, -120072(%rbp)
.L26:
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -120072(%rbp)
	jl	.L27
	movl	-120052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L28
	movl	$32, %edi
	call	putchar@PLT
.L28:
	movl	$0, -120072(%rbp)
	jmp	.L29
.L30:
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -120072(%rbp)
.L29:
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cmpl	%eax, -120072(%rbp)
	jl	.L30
	movl	-120040(%rbp), %edx
	movl	-120036(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L31
	movl	-120072(%rbp), %eax
	cltq
	movl	-120032(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	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:
