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>

struct _map {
  int  nDepth;
  char chMap;
} stMap[20000];

int chLake(int staMap, const int finMap, const struct _map* stMap, const int nDepth);

int main(){
  int maxH=0,minH=0,endMap=0;
  int A=0,L[10000],k=0;

  if (1) {
    char theMap; int m=0;
    int curH=0;
    while(scanf("%c",&theMap) !=EOF){
      stMap[m].chMap = theMap;
      if(theMap=='\\'){
	stMap[m].nDepth = --curH;
	if(curH<minH) minH=curH;
      }
      else if(theMap=='/'){
	stMap[m].nDepth = curH++;
	if(curH>maxH) maxH=curH;
      }
      else
	stMap[m].nDepth = curH;
      m++;
    }
    endMap=m;
  }

  if (1) {
    int m;
    for(m=0; m<endMap; m++) {
      if(stMap[m].chMap=='\\') {
	int n;
	for (n=m; n<endMap; n++) {
	  if ((stMap[n].chMap=='/')&&(stMap[n].nDepth==stMap[m].nDepth)) {
	    int a = chLake(m, n, stMap, stMap[m].nDepth);
	    L[k] = a/2;
	    A = A + L[k];
	    k++;
	    m = n;
	    break;
	  }
	}
      }	
    }
  }

  printf("%d\n",A);
  if (k==0)
    printf("%d\n",0);
  else {
    int l;
    printf("%d ",k);
    for(l=0; l<k-1; l++)
      printf("%d ",L[l]);
    printf("%d\n",L[k-1]);
  }
  return 0;
}

int chLake(int staMap, int endMap, const struct _map* stMap, int nDepth){
  int a=0;
  int m;
  for(m=staMap;m<=endMap;m++){
    if(stMap[m].chMap=='\\'){
      a = a + 1 + (nDepth - stMap[m].nDepth) * 2;
    }
    else if(stMap[m].chMap=='_'){
      a = a + 2 + (nDepth - stMap[m].nDepth) * 2;
    }
    else if(stMap[m].chMap=='/'){
      a = a + 1 + (nDepth - stMap[m].nDepth) * 2;
    }
  }
  return (a);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	stMap
	.bss
	.align 32
	.type	stMap, @object
	.size	stMap, 160000
stMap:
	.zero	160000
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%d\n"
.LC2:
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3200, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -40060(%rbp)
	movl	$0, -40056(%rbp)
	movl	$0, -40024(%rbp)
	movl	$0, -40052(%rbp)
	movl	$0, -40048(%rbp)
	movl	$0, -40044(%rbp)
	movl	$0, -40040(%rbp)
	jmp	.L2
.L6:
	movzbl	-40061(%rbp), %eax
	movl	-40044(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+stMap(%rip), %rdx
	movb	%al, (%rcx,%rdx)
	movzbl	-40061(%rbp), %eax
	cmpb	$92, %al
	jne	.L3
	subl	$1, -40040(%rbp)
	movl	-40044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	-40040(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40040(%rbp), %eax
	cmpl	-40056(%rbp), %eax
	jge	.L4
	movl	-40040(%rbp), %eax
	movl	%eax, -40056(%rbp)
	jmp	.L4
.L3:
	movzbl	-40061(%rbp), %eax
	cmpb	$47, %al
	jne	.L5
	movl	-40040(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -40040(%rbp)
	movl	-40044(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-40040(%rbp), %eax
	cmpl	-40060(%rbp), %eax
	jle	.L4
	movl	-40040(%rbp), %eax
	movl	%eax, -40060(%rbp)
	jmp	.L4
.L5:
	movl	-40044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	-40040(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L4:
	addl	$1, -40044(%rbp)
.L2:
	leaq	-40061(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L6
	movl	-40044(%rbp), %eax
	movl	%eax, -40024(%rbp)
	movl	$0, -40036(%rbp)
	jmp	.L7
.L12:
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+stMap(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$92, %al
	jne	.L8
	movl	-40036(%rbp), %eax
	movl	%eax, -40032(%rbp)
	jmp	.L9
.L11:
	movl	-40032(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+stMap(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$47, %al
	jne	.L10
	movl	-40032(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	stMap(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L10
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	stMap(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-40032(%rbp), %esi
	movl	-40036(%rbp), %eax
	movl	%edx, %ecx
	leaq	stMap(%rip), %rdx
	movl	%eax, %edi
	call	chLake
	movl	%eax, -40020(%rbp)
	movl	-40020(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-40048(%rbp), %eax
	cltq
	movl	%edx, -40016(%rbp,%rax,4)
	movl	-40048(%rbp), %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	addl	%eax, -40052(%rbp)
	addl	$1, -40048(%rbp)
	movl	-40032(%rbp), %eax
	movl	%eax, -40036(%rbp)
	jmp	.L8
.L10:
	addl	$1, -40032(%rbp)
.L9:
	movl	-40032(%rbp), %eax
	cmpl	-40024(%rbp), %eax
	jl	.L11
.L8:
	addl	$1, -40036(%rbp)
.L7:
	movl	-40036(%rbp), %eax
	cmpl	-40024(%rbp), %eax
	jl	.L12
	movl	-40052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$0, -40048(%rbp)
	jne	.L13
	movl	$0, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	movl	-40048(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -40028(%rbp)
	jmp	.L15
.L16:
	movl	-40028(%rbp), %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40028(%rbp)
.L15:
	movl	-40048(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40028(%rbp)
	jl	.L16
	movl	-40048(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	chLake
	.type	chLake, @function
chLake:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L20
.L24:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$92, %al
	jne	.L21
	movl	-8(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L22
.L21:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$95, %al
	jne	.L23
	movl	-8(%rbp), %eax
	leal	2(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L22
.L23:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$47, %al
	jne	.L22
	movl	-8(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
.L22:
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L24
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	chLake, .-chLake
	.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
	.globl	chLake
	.type	chLake, @function
chLake:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	jg	.L7
	movslq	%edi, %r8
	subl	%edi, %esi
	addq	%r8, %rsi
	leaq	(%rdx,%r8,8), %rax
	xorl	%r8d, %r8d
	leaq	8(%rdx,%rsi,8), %rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$95, %dl
	je	.L11
	cmpb	$47, %dl
	je	.L9
.L4:
	addq	$8, %rax
	cmpq	%rsi, %rax
	je	.L1
.L6:
	movzbl	4(%rax), %edx
	cmpb	$92, %dl
	jne	.L3
.L9:
	movl	%ecx, %edx
	addq	$8, %rax
	subl	-8(%rax), %edx
	leal	1(%r8,%rdx,2), %r8d
	cmpq	%rsi, %rax
	jne	.L6
.L1:
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%ecx, %edx
	subl	(%rax), %edx
	leal	2(%r8,%rdx,2), %r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	chLake, .-chLake
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%c"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3176, %rsp
	.cfi_def_cfa_offset 40096
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	leaq	.LC0(%rip), %rbp
	leaq	4+stMap(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 40024(%rsp)
	xorl	%eax, %eax
	leaq	15(%rsp), %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%ecx, %ecx
	cmpb	$47, %al
	movl	%r13d, %esi
	sete	%cl
	addl	%ecx, %r13d
.L15:
	movb	%al, (%r14,%rbx,8)
	leaq	stMap(%rip), %rax
	movl	%esi, (%rax,%rbx,8)
	addq	$1, %rbx
.L13:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	movl	%ebx, %r15d
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L37
	movzbl	15(%rsp), %eax
	cmpb	$92, %al
	jne	.L14
	subl	$1, %r13d
	movl	%r13d, %esi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L37:
	testl	%ebx, %ebx
	je	.L17
	leaq	stMap(%rip), %r10
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	leaq	4(%r10), %r11
	movl	$2, %ebp
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edx, %edi
	cmpl	%edx, %r15d
	jle	.L38
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%edi, %rax
	leal	1(%rdi), %edx
	cmpb	$92, 4(%r10,%rax,8)
	movslq	%edx, %r9
	je	.L19
	movl	%edx, %edi
	cmpl	%edx, %r15d
	jg	.L22
.L38:
	leaq	.LC1(%rip), %r13
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	movq	%r13, %rsi
	call	__printf_chk@PLT
	testl	%ebx, %ebx
	je	.L24
	leaq	.LC2(%rip), %r12
	movl	%ebx, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	%ebx, %r14d
	call	__printf_chk@PLT
	subl	$1, %r14d
	je	.L29
	leal	-2(%rbx), %eax
	leaq	16(%rsp), %rbp
	leaq	20(%rsp,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L28:
	movl	0(%rbp), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%rbp, %rbx
	jne	.L28
.L29:
	movslq	%r14d, %r14
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	16(%rsp,%r14,4), %edx
	call	__printf_chk@PLT
.L26:
	movq	40024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$40040, %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
.L41:
	.cfi_restore_state
	movl	(%r10,%rax,8), %ecx
	cmpl	%ecx, (%r10,%r9,8)
	je	.L40
.L20:
	addq	$1, %r9
.L19:
	movl	%r9d, %esi
	cmpl	%r9d, %r15d
	jle	.L18
	cmpb	$47, (%r11,%r9,8)
	jne	.L20
	jmp	.L41
.L17:
	leaq	.LC1(%rip), %r13
	xorl	%edx, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__printf_chk@PLT
.L24:
	xorl	%edx, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
.L40:
	movq	%r10, %rdx
	call	chLake
	cltd
	idivl	%ebp
	movslq	%ebx, %rdx
	addl	$1, %ebx
	movl	%eax, 16(%rsp,%rdx,4)
	addl	%eax, %r12d
	leal	1(%r9), %edx
	jmp	.L18
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	stMap
	.bss
	.align 32
	.type	stMap, @object
	.size	stMap, 160000
stMap:
	.zero	160000
	.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
	.globl	chLake
	.type	chLake, @function
chLake:
.LFB24:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	jg	.L7
	movslq	%edi, %r8
	subl	%edi, %esi
	addq	%r8, %rsi
	leaq	(%rdx,%r8,8), %rax
	xorl	%r8d, %r8d
	leaq	8(%rdx,%rsi,8), %rsi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$95, %dl
	je	.L11
	cmpb	$47, %dl
	je	.L9
.L4:
	addq	$8, %rax
	cmpq	%rsi, %rax
	je	.L1
.L6:
	movzbl	4(%rax), %edx
	cmpb	$92, %dl
	jne	.L3
.L9:
	movl	%ecx, %edx
	addq	$8, %rax
	subl	-8(%rax), %edx
	leal	1(%r8,%rdx,2), %r8d
	cmpq	%rsi, %rax
	jne	.L6
.L1:
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%ecx, %edx
	subl	(%rax), %edx
	leal	2(%r8,%rdx,2), %r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	chLake, .-chLake
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%c"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3176, %rsp
	.cfi_def_cfa_offset 40096
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	leaq	.LC0(%rip), %rbp
	leaq	4+stMap(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 40024(%rsp)
	xorl	%eax, %eax
	leaq	15(%rsp), %r12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%ecx, %ecx
	cmpb	$47, %al
	movl	%r13d, %esi
	sete	%cl
	addl	%ecx, %r13d
.L15:
	movb	%al, (%r14,%rbx,8)
	leaq	stMap(%rip), %rax
	movl	%esi, (%rax,%rbx,8)
	addq	$1, %rbx
.L13:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	movl	%ebx, %r15d
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L37
	movzbl	15(%rsp), %eax
	cmpb	$92, %al
	jne	.L14
	subl	$1, %r13d
	movl	%r13d, %esi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L37:
	testl	%ebx, %ebx
	je	.L17
	leaq	stMap(%rip), %r10
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	leaq	4(%r10), %r11
	movl	$2, %ebp
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edx, %edi
	cmpl	%edx, %r15d
	jle	.L38
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%edi, %rax
	leal	1(%rdi), %edx
	cmpb	$92, 4(%r10,%rax,8)
	movslq	%edx, %r9
	je	.L19
	movl	%edx, %edi
	cmpl	%edx, %r15d
	jg	.L22
.L38:
	leaq	.LC1(%rip), %r13
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	movq	%r13, %rsi
	call	__printf_chk@PLT
	testl	%ebx, %ebx
	je	.L24
	leaq	.LC2(%rip), %r12
	movl	%ebx, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	%ebx, %r14d
	call	__printf_chk@PLT
	subl	$1, %r14d
	je	.L29
	leal	-2(%rbx), %eax
	leaq	16(%rsp), %rbp
	leaq	20(%rsp,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L28:
	movl	0(%rbp), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%rbp, %rbx
	jne	.L28
.L29:
	movslq	%r14d, %r14
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	16(%rsp,%r14,4), %edx
	call	__printf_chk@PLT
.L26:
	movq	40024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$40040, %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
.L41:
	.cfi_restore_state
	movl	(%r10,%rax,8), %ecx
	cmpl	%ecx, (%r10,%r9,8)
	je	.L40
.L20:
	addq	$1, %r9
.L19:
	movl	%r9d, %esi
	cmpl	%r9d, %r15d
	jle	.L18
	cmpb	$47, (%r11,%r9,8)
	jne	.L20
	jmp	.L41
.L17:
	leaq	.LC1(%rip), %r13
	xorl	%edx, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__printf_chk@PLT
.L24:
	xorl	%edx, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
.L40:
	movq	%r10, %rdx
	call	chLake
	cltd
	idivl	%ebp
	movslq	%ebx, %rdx
	addl	$1, %ebx
	movl	%eax, 16(%rsp,%rdx,4)
	addl	%eax, %r12d
	leal	1(%r9), %edx
	jmp	.L18
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	stMap
	.bss
	.align 32
	.type	stMap, @object
	.size	stMap, 160000
stMap:
	.zero	160000
	.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>

struct _map {
  int  nDepth;
  char chMap;
} stMap[20000];

int chLake(int staMap, const int finMap, const struct _map* stMap, const int nDepth);

int main(){
  int maxH=0,minH=0,endMap=0;
  int A=0,L[10000],k=0;

  if (1) {
    char theMap; int m=0;
    int curH=0;
    while(scanf("%c",&theMap) !=EOF){
      stMap[m].chMap = theMap;
      if(theMap=='\\'){
	stMap[m].nDepth = --curH;
	if(curH<minH) minH=curH;
      }
      else if(theMap=='/'){
	stMap[m].nDepth = curH++;
	if(curH>maxH) maxH=curH;
      }
      else
	stMap[m].nDepth = curH;
      m++;
    }
    endMap=m;
  }

  if (1) {
    int m;
    for(m=0; m<endMap; m++) {
      if(stMap[m].chMap=='\\') {
	int n;
	for (n=m; n<endMap; n++) {
	  if ((stMap[n].chMap=='/')&&(stMap[n].nDepth==stMap[m].nDepth)) {
	    int a = chLake(m, n, stMap, stMap[m].nDepth);
	    L[k] = a/2;
	    A = A + L[k];
	    k++;
	    m = n;
	    break;
	  }
	}
      }	
    }
  }

  printf("%d\n",A);
  if (k==0)
    printf("%d\n",0);
  else {
    int l;
    printf("%d ",k);
    for(l=0; l<k-1; l++)
      printf("%d ",L[l]);
    printf("%d\n",L[k-1]);
  }
  return 0;
}

int chLake(int staMap, int endMap, const struct _map* stMap, int nDepth){
  int a=0;
  int m;
  for(m=staMap;m<=endMap;m++){
    if(stMap[m].chMap=='\\'){
      a = a + 1 + (nDepth - stMap[m].nDepth) * 2;
    }
    else if(stMap[m].chMap=='_'){
      a = a + 2 + (nDepth - stMap[m].nDepth) * 2;
    }
    else if(stMap[m].chMap=='/'){
      a = a + 1 + (nDepth - stMap[m].nDepth) * 2;
    }
  }
  return (a);
}
\/_/\_/\\_\\\__///\\/_/\\\\/\/_\///\\
 ]\//
 \/_/\_/\\_/\\__///\\/_/\\\\/\/_\/\/\\
 \/_/\_/\\_/\\__///\\/_/\[\\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
 30
6 1 2 20 5 1 1
 26
6 1 2 16 5 1 1
 28
6 1 2 18 5 1 1
 25
6 1 2 17 1 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>

struct _map {
  int  nDepth;
  char chMap;
} stMap[20000];

int chLake(int staMap, const int finMap, const struct _map* stMap, const int nDepth);

int main(){
  int maxH=0,minH=0,endMap=0;
  int A=0,L[10000],k=0;

  if (1) {
    char theMap; int m=0;
    int curH=0;
    while(scanf("%c",&theMap) !=EOF){
      stMap[m].chMap = theMap;
      if(theMap=='\\'){
	stMap[m].nDepth = --curH;
	if(curH<minH) minH=curH;
      }
      else if(theMap=='/'){
	stMap[m].nDepth = curH++;
	if(curH>maxH) maxH=curH;
      }
      else
	stMap[m].nDepth = curH;
      m++;
    }
    endMap=m;
  }

  if (1) {
    int m;
    for(m=0; m<endMap; m++) {
      if(stMap[m].chMap=='\\') {
	int n;
	for (n=m; n<endMap; n++) {
	  if ((stMap[n].chMap=='/')&&(stMap[n].nDepth==stMap[m].nDepth)) {
	    int a = chLake(m, n, stMap, stMap[m].nDepth);
	    L[k] = a/2;
	    A = A + L[k];
	    k++;
	    m = n;
	    break;
	  }
	}
      }	
    }
  }

  printf("%d\n",A);
  if (k==0)
    printf("%d\n",0);
  else {
    int l;
    printf("%d ",k);
    for(l=0; l<k-1; l++)
      printf("%d ",L[l]);
    printf("%d\n",L[k-1]);
  }
  return 0;
}

int chLake(int staMap, int endMap, const struct _map* stMap, int nDepth){
  int a=0;
  int m;
  for(m=staMap;m<=endMap;m++){
    if(stMap[m].chMap=='\\'){
      a = a + 1 + (nDepth - stMap[m].nDepth) * 2;
    }
    else if(stMap[m].chMap=='_'){
      a = a + 2 + (nDepth - stMap[m].nDepth) * 2;
    }
    else if(stMap[m].chMap=='/'){
      a = a + 1 + (nDepth - stMap[m].nDepth) * 2;
    }
  }
  return (a);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	stMap
	.bss
	.align 32
	.type	stMap, @object
	.size	stMap, 160000
stMap:
	.zero	160000
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%d\n"
.LC2:
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3200, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -40060(%rbp)
	movl	$0, -40056(%rbp)
	movl	$0, -40024(%rbp)
	movl	$0, -40052(%rbp)
	movl	$0, -40048(%rbp)
	movl	$0, -40044(%rbp)
	movl	$0, -40040(%rbp)
	jmp	.L2
.L6:
	movzbl	-40061(%rbp), %eax
	movl	-40044(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+stMap(%rip), %rdx
	movb	%al, (%rcx,%rdx)
	movzbl	-40061(%rbp), %eax
	cmpb	$92, %al
	jne	.L3
	subl	$1, -40040(%rbp)
	movl	-40044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	-40040(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40040(%rbp), %eax
	cmpl	-40056(%rbp), %eax
	jge	.L4
	movl	-40040(%rbp), %eax
	movl	%eax, -40056(%rbp)
	jmp	.L4
.L3:
	movzbl	-40061(%rbp), %eax
	cmpb	$47, %al
	jne	.L5
	movl	-40040(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -40040(%rbp)
	movl	-40044(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-40040(%rbp), %eax
	cmpl	-40060(%rbp), %eax
	jle	.L4
	movl	-40040(%rbp), %eax
	movl	%eax, -40060(%rbp)
	jmp	.L4
.L5:
	movl	-40044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	-40040(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L4:
	addl	$1, -40044(%rbp)
.L2:
	leaq	-40061(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L6
	movl	-40044(%rbp), %eax
	movl	%eax, -40024(%rbp)
	movl	$0, -40036(%rbp)
	jmp	.L7
.L12:
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+stMap(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$92, %al
	jne	.L8
	movl	-40036(%rbp), %eax
	movl	%eax, -40032(%rbp)
	jmp	.L9
.L11:
	movl	-40032(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+stMap(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$47, %al
	jne	.L10
	movl	-40032(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	stMap(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L10
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	stMap(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-40032(%rbp), %esi
	movl	-40036(%rbp), %eax
	movl	%edx, %ecx
	leaq	stMap(%rip), %rdx
	movl	%eax, %edi
	call	chLake
	movl	%eax, -40020(%rbp)
	movl	-40020(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-40048(%rbp), %eax
	cltq
	movl	%edx, -40016(%rbp,%rax,4)
	movl	-40048(%rbp), %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	addl	%eax, -40052(%rbp)
	addl	$1, -40048(%rbp)
	movl	-40032(%rbp), %eax
	movl	%eax, -40036(%rbp)
	jmp	.L8
.L10:
	addl	$1, -40032(%rbp)
.L9:
	movl	-40032(%rbp), %eax
	cmpl	-40024(%rbp), %eax
	jl	.L11
.L8:
	addl	$1, -40036(%rbp)
.L7:
	movl	-40036(%rbp), %eax
	cmpl	-40024(%rbp), %eax
	jl	.L12
	movl	-40052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$0, -40048(%rbp)
	jne	.L13
	movl	$0, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	movl	-40048(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -40028(%rbp)
	jmp	.L15
.L16:
	movl	-40028(%rbp), %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40028(%rbp)
.L15:
	movl	-40048(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40028(%rbp)
	jl	.L16
	movl	-40048(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	chLake
	.type	chLake, @function
chLake:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L20
.L24:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$92, %al
	jne	.L21
	movl	-8(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L22
.L21:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$95, %al
	jne	.L23
	movl	-8(%rbp), %eax
	leal	2(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L22
.L23:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$47, %al
	jne	.L22
	movl	-8(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
.L22:
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L24
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	chLake, .-chLake
	.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
	.globl	stMap
	.bss
	.align 32
	.type	stMap, @object
	.size	stMap, 160000
stMap:
	.zero	160000
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%d\n"
.LC2:
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3200, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -40060(%rbp)
	movl	$0, -40056(%rbp)
	movl	$0, -40024(%rbp)
	movl	$0, -40052(%rbp)
	movl	$0, -40048(%rbp)
	movl	$0, -40044(%rbp)
	movl	$0, -40040(%rbp)
	jmp	.L2
.L6:
	movzbl	-40061(%rbp), %eax
	movl	-40044(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+stMap(%rip), %rdx
	movb	%al, (%rcx,%rdx)
	movzbl	-40061(%rbp), %eax
	cmpb	$92, %al
	jne	.L3
	subl	$1, -40040(%rbp)
	movl	-40044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	-40040(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40040(%rbp), %eax
	cmpl	-40056(%rbp), %eax
	jge	.L4
	movl	-40040(%rbp), %eax
	movl	%eax, -40056(%rbp)
	jmp	.L4
.L3:
	movzbl	-40061(%rbp), %eax
	cmpb	$47, %al
	jne	.L5
	movl	-40040(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -40040(%rbp)
	movl	-40044(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-40040(%rbp), %eax
	cmpl	-40060(%rbp), %eax
	jle	.L4
	movl	-40040(%rbp), %eax
	movl	%eax, -40060(%rbp)
	jmp	.L4
.L5:
	movl	-40044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rdx
	movl	-40040(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L4:
	addl	$1, -40044(%rbp)
.L2:
	leaq	-40061(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L6
	movl	-40044(%rbp), %eax
	movl	%eax, -40024(%rbp)
	movl	$0, -40036(%rbp)
	jmp	.L7
.L12:
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+stMap(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$92, %al
	jne	.L8
	movl	-40036(%rbp), %eax
	movl	%eax, -40032(%rbp)
	jmp	.L9
.L11:
	movl	-40032(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+stMap(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$47, %al
	jne	.L10
	movl	-40032(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	stMap(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	stMap(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L10
	movl	-40036(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	stMap(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-40032(%rbp), %esi
	movl	-40036(%rbp), %eax
	movl	%edx, %ecx
	leaq	stMap(%rip), %rdx
	movl	%eax, %edi
	call	chLake
	movl	%eax, -40020(%rbp)
	movl	-40020(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-40048(%rbp), %eax
	cltq
	movl	%edx, -40016(%rbp,%rax,4)
	movl	-40048(%rbp), %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	addl	%eax, -40052(%rbp)
	addl	$1, -40048(%rbp)
	movl	-40032(%rbp), %eax
	movl	%eax, -40036(%rbp)
	jmp	.L8
.L10:
	addl	$1, -40032(%rbp)
.L9:
	movl	-40032(%rbp), %eax
	cmpl	-40024(%rbp), %eax
	jl	.L11
.L8:
	addl	$1, -40036(%rbp)
.L7:
	movl	-40036(%rbp), %eax
	cmpl	-40024(%rbp), %eax
	jl	.L12
	movl	-40052(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$0, -40048(%rbp)
	jne	.L13
	movl	$0, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	movl	-40048(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -40028(%rbp)
	jmp	.L15
.L16:
	movl	-40028(%rbp), %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40028(%rbp)
.L15:
	movl	-40048(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40028(%rbp)
	jl	.L16
	movl	-40048(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	chLake
	.type	chLake, @function
chLake:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L20
.L24:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$92, %al
	jne	.L21
	movl	-8(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L22
.L21:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$95, %al
	jne	.L23
	movl	-8(%rbp), %eax
	leal	2(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L22
.L23:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	4(%rax), %eax
	cmpb	$47, %al
	jne	.L22
	movl	-8(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
.L22:
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L24
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	chLake, .-chLake
	.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:
