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>

int
main(int argc, char *argv[])
{
  int n, a[200000];
  scanf("%d", &n);
  for(int i = 0; i < n; i++) scanf("%d", &a[i]);
  
  if(n % 2 == 0){
    int k = n / 2;
    while(k > 0) printf("%d ", a[2*(k--) - 1]);
    for(int i = 0; i < n/2; i++) printf("%d ", a[2 * i]);
  }
  else{
    int l = (n - 1)/2;
    while(l >= 0) printf("%d ", a[2 * (l--)]);
    for(int i = 0; i < (n - 1)/2; i++) printf("%d ", a[2 * i + 1]);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1344, %rsp
	movl	%edi, -800052(%rbp)
	movq	%rsi, -800064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800036(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movl	-800036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800036(%rbp)
.L2:
	movl	-800040(%rbp), %eax
	cmpl	%eax, -800036(%rbp)
	jl	.L3
	movl	-800040(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	-800040(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -800032(%rbp)
	jmp	.L5
.L6:
	movl	-800032(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -800032(%rbp)
	addl	%eax, %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	cmpl	$0, -800032(%rbp)
	jg	.L6
	movl	$0, -800028(%rbp)
	jmp	.L7
.L8:
	movl	-800028(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800028(%rbp)
.L7:
	movl	-800040(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -800028(%rbp)
	jl	.L8
	jmp	.L9
.L4:
	movl	-800040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -800024(%rbp)
	jmp	.L10
.L11:
	movl	-800024(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -800024(%rbp)
	addl	%eax, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	cmpl	$0, -800024(%rbp)
	jns	.L11
	movl	$0, -800020(%rbp)
	jmp	.L12
.L13:
	movl	-800020(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800020(%rbp)
.L12:
	movl	-800040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -800020(%rbp)
	jl	.L13
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"%d"
.LC1:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1312, %rsp
	.cfi_def_cfa_offset 800064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	testb	$1, %cl
	jne	.L4
	movl	%ecx, %eax
	movl	$2, %esi
	cltd
	idivl	%esi
	subl	$1, %ecx
	jle	.L5
	movslq	%eax, %rbp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	-4(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subq	$1, %rbp
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jg	.L6
.L5:
	cmpl	$1, 12(%rsp)
	jle	.L7
	xorl	%ebp, %ebp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cmpl	%ebp, %eax
	jg	.L8
.L7:
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$800032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leal	-1(%rcx), %eax
	movl	$2, %esi
	cltd
	idivl	%esi
	testl	%ecx, %ecx
	js	.L9
	movslq	%eax, %rbp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subq	$1, %rbp
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jns	.L10
.L9:
	cmpl	$2, 12(%rsp)
	jle	.L7
	xorl	%ebp, %ebp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	4(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cmpl	%ebp, %eax
	jg	.L11
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%d"
.LC1:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1312, %rsp
	.cfi_def_cfa_offset 800064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	testb	$1, %cl
	jne	.L4
	movl	%ecx, %eax
	movl	$2, %esi
	cltd
	idivl	%esi
	subl	$1, %ecx
	jle	.L5
	movslq	%eax, %rbp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	-4(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subq	$1, %rbp
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jg	.L6
.L5:
	cmpl	$1, 12(%rsp)
	jle	.L7
	xorl	%ebp, %ebp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cmpl	%ebp, %eax
	jg	.L8
.L7:
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$800032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leal	-1(%rcx), %eax
	movl	$2, %esi
	cltd
	idivl	%esi
	testl	%ecx, %ecx
	js	.L9
	movslq	%eax, %rbp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subq	$1, %rbp
	call	__printf_chk@PLT
	testl	%ebp, %ebp
	jns	.L10
.L9:
	cmpl	$2, 12(%rsp)
	jle	.L7
	xorl	%ebp, %ebp
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	4(%r12,%rbp,8), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cmpl	%ebp, %eax
	jg	.L11
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int
main(int argc, char *argv[])
{
  int n, a[200000];
  scanf("%d", &n);
  for(int i = 0; i < n; i++) scanf("%d", &a[i]);
  
  if(n % 2 == 0){
    int k = n / 2;
    while(k > 0) printf("%d ", a[2*(k--) - 1]);
    for(int i = 0; i < n/2; i++) printf("%d ", a[2 * i]);
  }
  else{
    int l = (n - 1)/2;
    while(l >= 0) printf("%d ", a[2 * (l--)]);
    for(int i = 0; i < (n - 1)/2; i++) printf("%d ", a[2 * i + 1]);
  }
  return 0;
}
4
1 2 3 4

4 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>

int
main(int argc, char *argv[])
{
  int n, a[200000];
  scanf("%d", &n);
  for(int i = 0; i < n; i++) scanf("%d", &a[i]);
  
  if(n % 2 == 0){
    int k = n / 2;
    while(k > 0) printf("%d ", a[2*(k--) - 1]);
    for(int i = 0; i < n/2; i++) printf("%d ", a[2 * i]);
  }
  else{
    int l = (n - 1)/2;
    while(l >= 0) printf("%d ", a[2 * (l--)]);
    for(int i = 0; i < (n - 1)/2; i++) printf("%d ", a[2 * i + 1]);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1344, %rsp
	movl	%edi, -800052(%rbp)
	movq	%rsi, -800064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800036(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movl	-800036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800036(%rbp)
.L2:
	movl	-800040(%rbp), %eax
	cmpl	%eax, -800036(%rbp)
	jl	.L3
	movl	-800040(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	-800040(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -800032(%rbp)
	jmp	.L5
.L6:
	movl	-800032(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -800032(%rbp)
	addl	%eax, %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	cmpl	$0, -800032(%rbp)
	jg	.L6
	movl	$0, -800028(%rbp)
	jmp	.L7
.L8:
	movl	-800028(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800028(%rbp)
.L7:
	movl	-800040(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -800028(%rbp)
	jl	.L8
	jmp	.L9
.L4:
	movl	-800040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -800024(%rbp)
	jmp	.L10
.L11:
	movl	-800024(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -800024(%rbp)
	addl	%eax, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	cmpl	$0, -800024(%rbp)
	jns	.L11
	movl	$0, -800020(%rbp)
	jmp	.L12
.L13:
	movl	-800020(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800020(%rbp)
.L12:
	movl	-800040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -800020(%rbp)
	jl	.L13
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"%d"
.LC1:
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1344, %rsp
	movl	%edi, -800052(%rbp)
	movq	%rsi, -800064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800036(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movl	-800036(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800036(%rbp)
.L2:
	movl	-800040(%rbp), %eax
	cmpl	%eax, -800036(%rbp)
	jl	.L3
	movl	-800040(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	-800040(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -800032(%rbp)
	jmp	.L5
.L6:
	movl	-800032(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -800032(%rbp)
	addl	%eax, %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	cmpl	$0, -800032(%rbp)
	jg	.L6
	movl	$0, -800028(%rbp)
	jmp	.L7
.L8:
	movl	-800028(%rbp), %eax
	addl	%eax, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800028(%rbp)
.L7:
	movl	-800040(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -800028(%rbp)
	jl	.L8
	jmp	.L9
.L4:
	movl	-800040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -800024(%rbp)
	jmp	.L10
.L11:
	movl	-800024(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -800024(%rbp)
	addl	%eax, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	cmpl	$0, -800024(%rbp)
	jns	.L11
	movl	$0, -800020(%rbp)
	jmp	.L12
.L13:
	movl	-800020(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -800020(%rbp)
.L12:
	movl	-800040(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -800020(%rbp)
	jl	.L13
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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:
