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>
#define LEN 25000
int Terrain(char* ascii, int len, int p, int q){
  int depth = 0, i;
  double b = 0;
  for(i = p; i < q; i++){
    if(ascii[i] == '/'){
      b += (double)depth - 0.5;
      depth--; }
    if(ascii[i] == '\\'){
      b += (double)depth + 0.5;
      depth++;
    }
    if(ascii[i] == '_'){
      b += depth; }
  }
  return b; }
int main(){
  char ascii[LEN];
  int i, len, det;
  int sum = 0, alt = 0, pl = 0, stk = 0;
  int height[LEN] = {0}, ex[LEN] = {0};
  scanf("%s", ascii);
  for(len = 0; ; len++){
    height[len] = alt;
    if(ascii[len] == '/'){
      alt++; }
    if(ascii[len] == '\\'){
      alt--;
    }
    if(ascii[len] == '\0'){
      break; }
  }
  while(pl < len){
    while(ascii[pl] != '\\' && pl < len){
      pl++; }
    det = pl+1;
    while(det <= len && height[det] != height[pl]){
      det++; }
    if(det <= len){
      ex[stk++] = Terrain(ascii, len, pl, det);
      pl = det;
    }else{ pl++;
    } }
  for(i = 0; i < stk; i++){
    sum += ex[i];
  }
  printf("%d\n%d", sum, stk);

  for(i = 0; i < stk; i++){
    printf(" %d", ex[i]);
  }
  printf("\n");
  return 0; }

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Terrain
	.type	Terrain, @function
Terrain:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -16(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$47, %al
	jne	.L3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movsd	.LC1(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	subl	$1, -16(%rbp)
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$92, %al
	jne	.L4
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	.LC1(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -16(%rbp)
.L4:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$95, %al
	jne	.L5
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L5:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L6
	movsd	-8(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Terrain, .-Terrain
	.section	.rodata
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n%d"
.LC4:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-221184(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3864, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -225040(%rbp)
	movl	$0, -225036(%rbp)
	movl	$0, -225032(%rbp)
	movl	$0, -225028(%rbp)
	leaq	-225024(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-125024(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-25024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -225048(%rbp)
.L13:
	movl	-225048(%rbp), %eax
	cltq
	movl	-225036(%rbp), %edx
	movl	%edx, -225024(%rbp,%rax,4)
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L9
	addl	$1, -225036(%rbp)
.L9:
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L10
	subl	$1, -225036(%rbp)
.L10:
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	testb	%al, %al
	je	.L30
	addl	$1, -225048(%rbp)
	jmp	.L13
.L30:
	nop
	jmp	.L14
.L17:
	addl	$1, -225032(%rbp)
.L15:
	movl	-225032(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$92, %al
	je	.L16
	movl	-225032(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jl	.L17
.L16:
	movl	-225032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -225044(%rbp)
	jmp	.L18
.L20:
	addl	$1, -225044(%rbp)
.L18:
	movl	-225044(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jg	.L19
	movl	-225044(%rbp), %eax
	cltq
	movl	-225024(%rbp,%rax,4), %edx
	movl	-225032(%rbp), %eax
	cltq
	movl	-225024(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L20
.L19:
	movl	-225044(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jg	.L21
	movl	-225028(%rbp), %ebx
	leal	1(%rbx), %eax
	movl	%eax, -225028(%rbp)
	movl	-225044(%rbp), %ecx
	movl	-225032(%rbp), %edx
	movl	-225048(%rbp), %esi
	leaq	-25024(%rbp), %rax
	movq	%rax, %rdi
	call	Terrain
	movslq	%ebx, %rdx
	movl	%eax, -125024(%rbp,%rdx,4)
	movl	-225044(%rbp), %eax
	movl	%eax, -225032(%rbp)
	jmp	.L14
.L21:
	addl	$1, -225032(%rbp)
.L14:
	movl	-225032(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jl	.L15
	movl	$0, -225052(%rbp)
	jmp	.L23
.L24:
	movl	-225052(%rbp), %eax
	cltq
	movl	-125024(%rbp,%rax,4), %eax
	addl	%eax, -225040(%rbp)
	addl	$1, -225052(%rbp)
.L23:
	movl	-225052(%rbp), %eax
	cmpl	-225028(%rbp), %eax
	jl	.L24
	movl	-225028(%rbp), %edx
	movl	-225040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -225052(%rbp)
	jmp	.L25
.L26:
	movl	-225052(%rbp), %eax
	cltq
	movl	-125024(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -225052(%rbp)
.L25:
	movl	-225052(%rbp), %eax
	cmpl	-225028(%rbp), %eax
	jl	.L26
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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	Terrain
	.type	Terrain, @function
Terrain:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%ecx, %edx
	jge	.L8
	movslq	%edx, %rsi
	subl	$1, %ecx
	movsd	.LC1(%rip), %xmm2
	pxor	%xmm0, %xmm0
	subl	%edx, %ecx
	leaq	(%rdi,%rsi), %rax
	leaq	1(%rdi,%rsi), %rsi
	addq	%rcx, %rsi
	xorl	%ecx, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$92, %dl
	je	.L5
	cmpb	$95, %dl
	jne	.L4
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm1
	addsd	%xmm1, %xmm0
.L4:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L11
.L7:
	movzbl	(%rax), %edx
	cmpb	$47, %dl
	jne	.L3
	pxor	%xmm1, %xmm1
	addq	$1, %rax
	cvtsi2sdl	%ecx, %xmm1
	subl	$1, %ecx
	subsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L7
.L11:
	cvttsd2sil	%xmm0, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm1
	addl	$1, %ecx
	addsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	Terrain, .-Terrain
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s"
.LC3:
	.string	" %d"
.LC4:
	.string	"%d\n%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-221184(%rsp), %r11
	.cfi_def_cfa 11, 221224
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3832, %rsp
	.cfi_def_cfa_offset 225056
	movl	$100000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 225000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	100000(%rsp), %rbx
	leaq	200000(%rsp), %r12
	movq	%rbp, %rdi
	call	memset@PLT
	movl	$100000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$92, %dl
	je	.L15
	testb	%dl, %dl
	je	.L41
.L14:
	addq	$1, %rax
.L17:
	movzbl	(%r12,%rax), %edx
	movl	%ecx, 0(%rbp,%rax,4)
	movl	%eax, %r9d
	cmpb	$47, %dl
	jne	.L13
	addl	$1, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$1, %ecx
	jmp	.L14
.L41:
	xorl	%r10d, %r10d
	xorl	%edx, %edx
.L16:
	movl	%r10d, %esi
	movl	%r10d, %r13d
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%edx, %r9d
	jle	.L22
	movslq	%edx, %rcx
	leal	1(%rdx), %eax
	movl	%edx, %r11d
	cmpb	$92, 200000(%rsp,%rcx)
	cltq
	je	.L24
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$92, (%r12,%rax)
	movl	%eax, %r11d
	setne	%cl
	cmpl	%eax, %r9d
	setg	%dl
	addq	$1, %rax
	testb	%dl, %cl
	jne	.L18
.L24:
	leal	1(%r11), %edx
	cmpl	%edx, %r9d
	jl	.L22
	movslq	%r11d, %rax
	movslq	%edx, %r8
	movl	(%rsp,%rax,4), %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %r8
	cmpl	%r8d, %r9d
	jl	.L38
.L20:
	movl	%r8d, %ecx
	cmpl	%eax, 0(%rbp,%r8,4)
	jne	.L21
	cmpl	%r8d, %r9d
	jl	.L38
	movl	%r11d, %edx
	movl	%r9d, %esi
	movq	%r12, %rdi
	call	Terrain
	movl	%r8d, %edx
	movl	%eax, (%rbx,%r10,4)
	addq	$1, %r10
	jmp	.L16
.L22:
	testl	%r13d, %r13d
	je	.L25
	leal	-1(%rsi), %ebp
	cmpl	$2, %ebp
	jbe	.L33
	movl	%esi, %edx
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	100016(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L27:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L27
	movdqa	%xmm0, %xmm1
	movl	%esi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L28
.L26:
	movslq	%eax, %rcx
	addl	100000(%rsp,%rcx,4), %edx
	leal	1(%rax), %ecx
	cmpl	%ecx, %r13d
	jle	.L28
	movslq	%ecx, %rcx
	addl	$2, %eax
	addl	100000(%rsp,%rcx,4), %edx
	cmpl	%eax, %r13d
	jle	.L28
	cltq
	addl	100000(%rsp,%rax,4), %edx
.L28:
	movl	%r13d, %ecx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	100004(%rsp,%rbp,4), %r12
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L29
.L30:
	movl	$10, %edi
	call	putchar@PLT
	movq	225000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$225016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L33:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L26
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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	Terrain
	.type	Terrain, @function
Terrain:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%ecx, %edx
	jge	.L8
	movslq	%edx, %rsi
	subl	$1, %ecx
	movsd	.LC1(%rip), %xmm2
	pxor	%xmm0, %xmm0
	subl	%edx, %ecx
	leaq	(%rdi,%rsi), %rax
	leaq	1(%rdi,%rsi), %rsi
	addq	%rcx, %rsi
	xorl	%ecx, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$92, %dl
	je	.L5
	cmpb	$95, %dl
	jne	.L4
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm1
	addsd	%xmm1, %xmm0
.L4:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L11
.L7:
	movzbl	(%rax), %edx
	cmpb	$47, %dl
	jne	.L3
	pxor	%xmm1, %xmm1
	addq	$1, %rax
	cvtsi2sdl	%ecx, %xmm1
	subl	$1, %ecx
	subsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L7
.L11:
	cvttsd2sil	%xmm0, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm1
	addl	$1, %ecx
	addsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	Terrain, .-Terrain
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s"
.LC3:
	.string	" %d"
.LC4:
	.string	"%d\n%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-221184(%rsp), %r11
	.cfi_def_cfa 11, 221224
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3832, %rsp
	.cfi_def_cfa_offset 225056
	movl	$100000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 225000(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	leaq	100000(%rsp), %rbx
	leaq	200000(%rsp), %r12
	movq	%rbp, %rdi
	call	memset@PLT
	movl	$100000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$92, %dl
	je	.L15
	testb	%dl, %dl
	je	.L41
.L14:
	addq	$1, %rax
.L17:
	movzbl	(%r12,%rax), %edx
	movl	%ecx, 0(%rbp,%rax,4)
	movl	%eax, %r9d
	cmpb	$47, %dl
	jne	.L13
	addl	$1, %ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$1, %ecx
	jmp	.L14
.L41:
	xorl	%r10d, %r10d
	xorl	%edx, %edx
.L16:
	movl	%r10d, %esi
	movl	%r10d, %r13d
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%edx, %r9d
	jle	.L22
	movslq	%edx, %rcx
	leal	1(%rdx), %eax
	movl	%edx, %r11d
	cmpb	$92, 200000(%rsp,%rcx)
	cltq
	je	.L24
	.p2align 4,,10
	.p2align 3
.L18:
	cmpb	$92, (%r12,%rax)
	movl	%eax, %r11d
	setne	%cl
	cmpl	%eax, %r9d
	setg	%dl
	addq	$1, %rax
	testb	%dl, %cl
	jne	.L18
.L24:
	leal	1(%r11), %edx
	cmpl	%edx, %r9d
	jl	.L22
	movslq	%r11d, %rax
	movslq	%edx, %r8
	movl	(%rsp,%rax,4), %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %r8
	cmpl	%r8d, %r9d
	jl	.L38
.L20:
	movl	%r8d, %ecx
	cmpl	%eax, 0(%rbp,%r8,4)
	jne	.L21
	cmpl	%r8d, %r9d
	jl	.L38
	movl	%r11d, %edx
	movl	%r9d, %esi
	movq	%r12, %rdi
	call	Terrain
	movl	%r8d, %edx
	movl	%eax, (%rbx,%r10,4)
	addq	$1, %r10
	jmp	.L16
.L22:
	testl	%r13d, %r13d
	je	.L25
	leal	-1(%rsi), %ebp
	cmpl	$2, %ebp
	jbe	.L33
	movl	%esi, %edx
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	100016(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L27:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L27
	movdqa	%xmm0, %xmm1
	movl	%esi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L28
.L26:
	movslq	%eax, %rcx
	addl	100000(%rsp,%rcx,4), %edx
	leal	1(%rax), %ecx
	cmpl	%ecx, %r13d
	jle	.L28
	movslq	%ecx, %rcx
	addl	$2, %eax
	addl	100000(%rsp,%rcx,4), %edx
	cmpl	%eax, %r13d
	jle	.L28
	cltq
	addl	100000(%rsp,%rax,4), %edx
.L28:
	movl	%r13d, %ecx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	100004(%rsp,%rbp,4), %r12
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L29
.L30:
	movl	$10, %edi
	call	putchar@PLT
	movq	225000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$225016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L33:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L26
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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>
#define LEN 25000
int Terrain(char* ascii, int len, int p, int q){
  int depth = 0, i;
  double b = 0;
  for(i = p; i < q; i++){
    if(ascii[i] == '/'){
      b += (double)depth - 0.5;
      depth--; }
    if(ascii[i] == '\\'){
      b += (double)depth + 0.5;
      depth++;
    }
    if(ascii[i] == '_'){
      b += depth; }
  }
  return b; }
int main(){
  char ascii[LEN];
  int i, len, det;
  int sum = 0, alt = 0, pl = 0, stk = 0;
  int height[LEN] = {0}, ex[LEN] = {0};
  scanf("%s", ascii);
  for(len = 0; ; len++){
    height[len] = alt;
    if(ascii[len] == '/'){
      alt++; }
    if(ascii[len] == '\\'){
      alt--;
    }
    if(ascii[len] == '\0'){
      break; }
  }
  while(pl < len){
    while(ascii[pl] != '\\' && pl < len){
      pl++; }
    det = pl+1;
    while(det <= len && height[det] != height[pl]){
      det++; }
    if(det <= len){
      ex[stk++] = Terrain(ascii, len, pl, det);
      pl = det;
    }else{ pl++;
    } }
  for(i = 0; i < stk; i++){
    sum += ex[i];
  }
  printf("%d\n%d", sum, stk);

  for(i = 0; i < stk; i++){
    printf(" %d", ex[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
 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>
#define LEN 25000
int Terrain(char* ascii, int len, int p, int q){
  int depth = 0, i;
  double b = 0;
  for(i = p; i < q; i++){
    if(ascii[i] == '/'){
      b += (double)depth - 0.5;
      depth--; }
    if(ascii[i] == '\\'){
      b += (double)depth + 0.5;
      depth++;
    }
    if(ascii[i] == '_'){
      b += depth; }
  }
  return b; }
int main(){
  char ascii[LEN];
  int i, len, det;
  int sum = 0, alt = 0, pl = 0, stk = 0;
  int height[LEN] = {0}, ex[LEN] = {0};
  scanf("%s", ascii);
  for(len = 0; ; len++){
    height[len] = alt;
    if(ascii[len] == '/'){
      alt++; }
    if(ascii[len] == '\\'){
      alt--;
    }
    if(ascii[len] == '\0'){
      break; }
  }
  while(pl < len){
    while(ascii[pl] != '\\' && pl < len){
      pl++; }
    det = pl+1;
    while(det <= len && height[det] != height[pl]){
      det++; }
    if(det <= len){
      ex[stk++] = Terrain(ascii, len, pl, det);
      pl = det;
    }else{ pl++;
    } }
  for(i = 0; i < stk; i++){
    sum += ex[i];
  }
  printf("%d\n%d", sum, stk);

  for(i = 0; i < stk; i++){
    printf(" %d", ex[i]);
  }
  printf("\n");
  return 0; }

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Terrain
	.type	Terrain, @function
Terrain:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -16(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$47, %al
	jne	.L3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movsd	.LC1(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	subl	$1, -16(%rbp)
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$92, %al
	jne	.L4
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	.LC1(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -16(%rbp)
.L4:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$95, %al
	jne	.L5
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L5:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L6
	movsd	-8(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Terrain, .-Terrain
	.section	.rodata
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n%d"
.LC4:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-221184(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3864, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -225040(%rbp)
	movl	$0, -225036(%rbp)
	movl	$0, -225032(%rbp)
	movl	$0, -225028(%rbp)
	leaq	-225024(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-125024(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-25024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -225048(%rbp)
.L13:
	movl	-225048(%rbp), %eax
	cltq
	movl	-225036(%rbp), %edx
	movl	%edx, -225024(%rbp,%rax,4)
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L9
	addl	$1, -225036(%rbp)
.L9:
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L10
	subl	$1, -225036(%rbp)
.L10:
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	testb	%al, %al
	je	.L30
	addl	$1, -225048(%rbp)
	jmp	.L13
.L30:
	nop
	jmp	.L14
.L17:
	addl	$1, -225032(%rbp)
.L15:
	movl	-225032(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$92, %al
	je	.L16
	movl	-225032(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jl	.L17
.L16:
	movl	-225032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -225044(%rbp)
	jmp	.L18
.L20:
	addl	$1, -225044(%rbp)
.L18:
	movl	-225044(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jg	.L19
	movl	-225044(%rbp), %eax
	cltq
	movl	-225024(%rbp,%rax,4), %edx
	movl	-225032(%rbp), %eax
	cltq
	movl	-225024(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L20
.L19:
	movl	-225044(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jg	.L21
	movl	-225028(%rbp), %ebx
	leal	1(%rbx), %eax
	movl	%eax, -225028(%rbp)
	movl	-225044(%rbp), %ecx
	movl	-225032(%rbp), %edx
	movl	-225048(%rbp), %esi
	leaq	-25024(%rbp), %rax
	movq	%rax, %rdi
	call	Terrain
	movslq	%ebx, %rdx
	movl	%eax, -125024(%rbp,%rdx,4)
	movl	-225044(%rbp), %eax
	movl	%eax, -225032(%rbp)
	jmp	.L14
.L21:
	addl	$1, -225032(%rbp)
.L14:
	movl	-225032(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jl	.L15
	movl	$0, -225052(%rbp)
	jmp	.L23
.L24:
	movl	-225052(%rbp), %eax
	cltq
	movl	-125024(%rbp,%rax,4), %eax
	addl	%eax, -225040(%rbp)
	addl	$1, -225052(%rbp)
.L23:
	movl	-225052(%rbp), %eax
	cmpl	-225028(%rbp), %eax
	jl	.L24
	movl	-225028(%rbp), %edx
	movl	-225040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -225052(%rbp)
	jmp	.L25
.L26:
	movl	-225052(%rbp), %eax
	cltq
	movl	-125024(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -225052(%rbp)
.L25:
	movl	-225052(%rbp), %eax
	cmpl	-225028(%rbp), %eax
	jl	.L26
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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	Terrain
	.type	Terrain, @function
Terrain:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -16(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$47, %al
	jne	.L3
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movsd	.LC1(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	subl	$1, -16(%rbp)
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$92, %al
	jne	.L4
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	movsd	.LC1(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	addl	$1, -16(%rbp)
.L4:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$95, %al
	jne	.L5
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L5:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L6
	movsd	-8(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Terrain, .-Terrain
	.section	.rodata
.LC2:
	.string	"%s"
.LC3:
	.string	"%d\n%d"
.LC4:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-221184(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3864, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -225040(%rbp)
	movl	$0, -225036(%rbp)
	movl	$0, -225032(%rbp)
	movl	$0, -225028(%rbp)
	leaq	-225024(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-125024(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-25024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -225048(%rbp)
.L13:
	movl	-225048(%rbp), %eax
	cltq
	movl	-225036(%rbp), %edx
	movl	%edx, -225024(%rbp,%rax,4)
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L9
	addl	$1, -225036(%rbp)
.L9:
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$92, %al
	jne	.L10
	subl	$1, -225036(%rbp)
.L10:
	movl	-225048(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	testb	%al, %al
	je	.L30
	addl	$1, -225048(%rbp)
	jmp	.L13
.L30:
	nop
	jmp	.L14
.L17:
	addl	$1, -225032(%rbp)
.L15:
	movl	-225032(%rbp), %eax
	cltq
	movzbl	-25024(%rbp,%rax), %eax
	cmpb	$92, %al
	je	.L16
	movl	-225032(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jl	.L17
.L16:
	movl	-225032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -225044(%rbp)
	jmp	.L18
.L20:
	addl	$1, -225044(%rbp)
.L18:
	movl	-225044(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jg	.L19
	movl	-225044(%rbp), %eax
	cltq
	movl	-225024(%rbp,%rax,4), %edx
	movl	-225032(%rbp), %eax
	cltq
	movl	-225024(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L20
.L19:
	movl	-225044(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jg	.L21
	movl	-225028(%rbp), %ebx
	leal	1(%rbx), %eax
	movl	%eax, -225028(%rbp)
	movl	-225044(%rbp), %ecx
	movl	-225032(%rbp), %edx
	movl	-225048(%rbp), %esi
	leaq	-25024(%rbp), %rax
	movq	%rax, %rdi
	call	Terrain
	movslq	%ebx, %rdx
	movl	%eax, -125024(%rbp,%rdx,4)
	movl	-225044(%rbp), %eax
	movl	%eax, -225032(%rbp)
	jmp	.L14
.L21:
	addl	$1, -225032(%rbp)
.L14:
	movl	-225032(%rbp), %eax
	cmpl	-225048(%rbp), %eax
	jl	.L15
	movl	$0, -225052(%rbp)
	jmp	.L23
.L24:
	movl	-225052(%rbp), %eax
	cltq
	movl	-125024(%rbp,%rax,4), %eax
	addl	%eax, -225040(%rbp)
	addl	$1, -225052(%rbp)
.L23:
	movl	-225052(%rbp), %eax
	cmpl	-225028(%rbp), %eax
	jl	.L24
	movl	-225028(%rbp), %edx
	movl	-225040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -225052(%rbp)
	jmp	.L25
.L26:
	movl	-225052(%rbp), %eax
	cltq
	movl	-125024(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -225052(%rbp)
.L25:
	movl	-225052(%rbp), %eax
	cmpl	-225028(%rbp), %eax
	jl	.L26
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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:
