Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include <stdlib.h>
#define ll long long

int main(){
  ll n,i,a[200001],sum[200001],k,ans;
  scanf("%lld",&n);
  sum[0]=0;
  for(i=1;i<=n;i++){
    scanf("%lld",&a[i]);
    sum[i]=sum[i-1]+a[i];
  }

  for(i=1;i<=n;i++){
    if(sum[i]>sum[n]/2){
      k=i;
      break;
    }
  }

  ans=abs(sum[n]-sum[k-1]*2)>abs(sum[n]-sum[k]*2)?abs(sum[n]-sum[k]*2):abs(sum[n]-sum[k-1]*2);

  printf("%lld",ans);
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1088, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1600016(%rbp)
	movq	$1, -3200056(%rbp)
	jmp	.L2
.L3:
	leaq	-3200032(%rbp), %rdx
	movq	-3200056(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200056(%rbp), %rax
	subq	$1, %rax
	movq	-1600016(%rbp,%rax,8), %rdx
	movq	-3200056(%rbp), %rax
	movq	-3200032(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movq	-3200056(%rbp), %rax
	movq	%rdx, -1600016(%rbp,%rax,8)
	addq	$1, -3200056(%rbp)
.L2:
	movq	-3200064(%rbp), %rax
	cmpq	%rax, -3200056(%rbp)
	jle	.L3
	movq	$1, -3200056(%rbp)
	jmp	.L4
.L7:
	movq	-3200056(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rdx
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rax, %rdx
	jle	.L5
	movq	-3200056(%rbp), %rax
	movq	%rax, -3200048(%rbp)
	jmp	.L6
.L5:
	addq	$1, -3200056(%rbp)
.L4:
	movq	-3200064(%rbp), %rax
	cmpq	%rax, -3200056(%rbp)
	jle	.L7
.L6:
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movl	%eax, %ecx
	movq	-3200048(%rbp), %rax
	subq	$1, %rax
	movq	-1600016(%rbp,%rax,8), %rax
	leal	(%rax,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movl	%eax, %esi
	movq	-3200048(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	leal	(%rax,%rax), %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cltq
	movq	%rax, -3200040(%rbp)
	movq	-3200040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199024
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1072, %rsp
	.cfi_def_cfa_offset 3200096
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	$0, 1600032(%rsp)
	testq	%rdx, %rdx
	jle	.L2
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	1600032(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rbp
	call	__isoc99_scanf@PLT
	movq	-8(%rbp), %rax
	movq	8(%rsp), %rdx
	addq	-8(%r13,%rbx,8), %rax
	movq	%rax, 0(%r13,%rbx,8)
	addq	$1, %rbx
	cmpq	%rbx, %rdx
	jge	.L3
	movq	1600032(%rsp,%rdx,8), %rax
	testq	%rdx, %rdx
	jle	.L2
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rax, %rcx
	movl	$1, %eax
	sarq	%rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	cmpq	%rax, %rdx
	jl	.L2
.L4:
	cmpq	%rcx, 0(%r13,%rax,8)
	jle	.L11
	movq	%rax, %r12
.L2:
	movq	1600032(%rsp,%rdx,8), %rax
	movl	1600024(%rsp,%r12,8), %edi
	movq	%r14, %rsi
	leal	(%rdi,%rdi), %edx
	movl	%eax, %ecx
	movl	$1, %edi
	subl	%edx, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movq	1600032(%rsp,%r12,8), %rcx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	xorl	%eax, %eax
	movslq	%edx, %rdx
	call	__printf_chk@PLT
	movq	3200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$3200048, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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	-3198976(%rsp), %r11
	.cfi_def_cfa 11, 3199024
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1072, %rsp
	.cfi_def_cfa_offset 3200096
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 3200040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdx
	movq	$0, 1600032(%rsp)
	testq	%rdx, %rdx
	jle	.L2
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	1600032(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rbp
	call	__isoc99_scanf@PLT
	movq	-8(%rbp), %rax
	movq	8(%rsp), %rdx
	addq	-8(%r13,%rbx,8), %rax
	movq	%rax, 0(%r13,%rbx,8)
	addq	$1, %rbx
	cmpq	%rbx, %rdx
	jge	.L3
	movq	1600032(%rsp,%rdx,8), %rax
	testq	%rdx, %rdx
	jle	.L2
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rax, %rcx
	movl	$1, %eax
	sarq	%rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rax
	cmpq	%rax, %rdx
	jl	.L2
.L4:
	cmpq	%rcx, 0(%r13,%rax,8)
	jle	.L11
	movq	%rax, %r12
.L2:
	movq	1600032(%rsp,%rdx,8), %rax
	movl	1600024(%rsp,%r12,8), %edi
	movq	%r14, %rsi
	leal	(%rdi,%rdi), %edx
	movl	%eax, %ecx
	movl	$1, %edi
	subl	%edx, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movq	1600032(%rsp,%r12,8), %rcx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	xorl	%eax, %eax
	movslq	%edx, %rdx
	call	__printf_chk@PLT
	movq	3200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$3200048, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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 <stdlib.h>
#define ll long long

int main(){
  ll n,i,a[200001],sum[200001],k,ans;
  scanf("%lld",&n);
  sum[0]=0;
  for(i=1;i<=n;i++){
    scanf("%lld",&a[i]);
    sum[i]=sum[i-1]+a[i];
  }

  for(i=1;i<=n;i++){
    if(sum[i]>sum[n]/2){
      k=i;
      break;
    }
  }

  ans=abs(sum[n]-sum[k-1]*2)>abs(sum[n]-sum[k]*2)?abs(sum[n]-sum[k]*2):abs(sum[n]-sum[k-1]*2);

  printf("%lld",ans);
  
  return 0;
}
3
2 5 3
 12
100 104 102 105 103 103 100 105 104 102 104 101
 3
2 8 3
 12
100 104 102 105 103 103 100 117 104 102 104 101
 3
2 8 2
 12
101 104 102 105 103 103 100 117 104 102 104 101
 12
101 104 102 105 103 103 100 117 104 102 104 111
 3
2 0 4
 12
101 104 102 187 103 103 100 117 104 102 104 111
 12
101 104 102 187 103 103 110 117 104 102 104 111

4 1 7 11 8 10 20 2 62 52
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include <stdlib.h>
#define ll long long

int main(){
  ll n,i,a[200001],sum[200001],k,ans;
  scanf("%lld",&n);
  sum[0]=0;
  for(i=1;i<=n;i++){
    scanf("%lld",&a[i]);
    sum[i]=sum[i-1]+a[i];
  }

  for(i=1;i<=n;i++){
    if(sum[i]>sum[n]/2){
      k=i;
      break;
    }
  }

  ans=abs(sum[n]-sum[k-1]*2)>abs(sum[n]-sum[k]*2)?abs(sum[n]-sum[k]*2):abs(sum[n]-sum[k-1]*2);

  printf("%lld",ans);
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1088, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1600016(%rbp)
	movq	$1, -3200056(%rbp)
	jmp	.L2
.L3:
	leaq	-3200032(%rbp), %rdx
	movq	-3200056(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200056(%rbp), %rax
	subq	$1, %rax
	movq	-1600016(%rbp,%rax,8), %rdx
	movq	-3200056(%rbp), %rax
	movq	-3200032(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movq	-3200056(%rbp), %rax
	movq	%rdx, -1600016(%rbp,%rax,8)
	addq	$1, -3200056(%rbp)
.L2:
	movq	-3200064(%rbp), %rax
	cmpq	%rax, -3200056(%rbp)
	jle	.L3
	movq	$1, -3200056(%rbp)
	jmp	.L4
.L7:
	movq	-3200056(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rdx
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rax, %rdx
	jle	.L5
	movq	-3200056(%rbp), %rax
	movq	%rax, -3200048(%rbp)
	jmp	.L6
.L5:
	addq	$1, -3200056(%rbp)
.L4:
	movq	-3200064(%rbp), %rax
	cmpq	%rax, -3200056(%rbp)
	jle	.L7
.L6:
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movl	%eax, %ecx
	movq	-3200048(%rbp), %rax
	subq	$1, %rax
	movq	-1600016(%rbp,%rax,8), %rax
	leal	(%rax,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movl	%eax, %esi
	movq	-3200048(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	leal	(%rax,%rax), %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cltq
	movq	%rax, -3200040(%rbp)
	movq	-3200040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3198976(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1088, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-3200064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1600016(%rbp)
	movq	$1, -3200056(%rbp)
	jmp	.L2
.L3:
	leaq	-3200032(%rbp), %rdx
	movq	-3200056(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-3200056(%rbp), %rax
	subq	$1, %rax
	movq	-1600016(%rbp,%rax,8), %rdx
	movq	-3200056(%rbp), %rax
	movq	-3200032(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movq	-3200056(%rbp), %rax
	movq	%rdx, -1600016(%rbp,%rax,8)
	addq	$1, -3200056(%rbp)
.L2:
	movq	-3200064(%rbp), %rax
	cmpq	%rax, -3200056(%rbp)
	jle	.L3
	movq	$1, -3200056(%rbp)
	jmp	.L4
.L7:
	movq	-3200056(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rdx
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rax, %rdx
	jle	.L5
	movq	-3200056(%rbp), %rax
	movq	%rax, -3200048(%rbp)
	jmp	.L6
.L5:
	addq	$1, -3200056(%rbp)
.L4:
	movq	-3200064(%rbp), %rax
	cmpq	%rax, -3200056(%rbp)
	jle	.L7
.L6:
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movl	%eax, %ecx
	movq	-3200048(%rbp), %rax
	subq	$1, %rax
	movq	-1600016(%rbp,%rax,8), %rax
	leal	(%rax,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movq	-3200064(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	movl	%eax, %esi
	movq	-3200048(%rbp), %rax
	movq	-1600016(%rbp,%rax,8), %rax
	leal	(%rax,%rax), %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cltq
	movq	%rax, -3200040(%rbp)
	movq	-3200040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
