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 h,w,n,a,i,j,d[100010],r=0;
  scanf("%d %d %d",&h,&w,&n);
  for(i=0;i<n;i++){
    scanf("%d",&a);
    for(j=0;j<a;j++)d[r++]=i+1;
  }
  for(i=0;i<h;i++){
    for(j=0;j<w;j++){
      if(j)printf(" ");
      printf("%d",d[i*w+(i%2?w-j-1:j)]);
    }
    printf("\n");
  }
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400052(%rbp)
	leaq	-400068(%rbp), %rcx
	leaq	-400072(%rbp), %rdx
	leaq	-400076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400060(%rbp)
	jmp	.L2
.L5:
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400056(%rbp)
	jmp	.L3
.L4:
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	movl	-400060(%rbp), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	addl	$1, -400056(%rbp)
.L3:
	movl	-400064(%rbp), %eax
	cmpl	%eax, -400056(%rbp)
	jl	.L4
	addl	$1, -400060(%rbp)
.L2:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400060(%rbp)
	jl	.L5
	movl	$0, -400060(%rbp)
	jmp	.L6
.L12:
	movl	$0, -400056(%rbp)
	jmp	.L7
.L11:
	cmpl	$0, -400056(%rbp)
	je	.L8
	movl	$32, %edi
	call	putchar@PLT
.L8:
	movl	-400072(%rbp), %eax
	imull	-400060(%rbp), %eax
	movl	%eax, %edx
	movl	-400060(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-400072(%rbp), %eax
	subl	-400056(%rbp), %eax
	subl	$1, %eax
	jmp	.L10
.L9:
	movl	-400056(%rbp), %eax
.L10:
	addl	%edx, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400056(%rbp)
.L7:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400056(%rbp)
	jl	.L11
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -400060(%rbp)
.L6:
	movl	-400076(%rbp), %eax
	cmpl	%eax, -400060(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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 %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2760, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	leaq	8(%rsp), %rcx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L10
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	leaq	12(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L5
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L19
	movl	%ecx, %edx
	movslq	%r13d, %rax
	movd	%r12d, %xmm1
	shrl	$2, %edx
	leaq	16(%rsp,%rax,4), %rax
	pshufd	$0, %xmm1, %xmm0
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	0(%r13,%rdx), %eax
	cmpl	%edx, %ecx
	je	.L9
.L6:
	movslq	%eax, %rdi
	leal	1(%rax), %esi
	movl	%r12d, 16(%rsp,%rdi,4)
	leal	1(%rdx), %edi
	cmpl	%ecx, %edi
	jge	.L9
	movslq	%esi, %rsi
	addl	$2, %edx
	addl	$2, %eax
	movl	%r12d, 16(%rsp,%rsi,4)
	cmpl	%edx, %ecx
	jle	.L9
	cltq
	movl	%r12d, 16(%rsp,%rax,4)
.L9:
	addl	%ecx, %r13d
.L5:
	cmpl	%r12d, 8(%rsp)
	jg	.L2
.L10:
	movl	(%rsp), %eax
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	xorl	%ebx, %ebx
	testb	$1, %bpl
	jne	.L13
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L27:
	movl	$32, %edi
	call	putchar@PLT
	movl	4(%rsp), %eax
.L15:
	imull	%ebp, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	addl	%ebx, %eax
	addl	$1, %ebx
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L27
.L12:
	movl	$10, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, (%rsp)
	jg	.L3
.L4:
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$400072, %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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	$32, %edi
	call	putchar@PLT
	movl	4(%rsp), %eax
.L13:
	movl	%eax, %edx
	imull	%ebp, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	subl	%ebx, %edx
	addl	$1, %ebx
	leal	-1(%rdx,%rax), %eax
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L11
	jmp	.L12
.L19:
	movl	%r13d, %eax
	xorl	%edx, %edx
	jmp	.L6
.L28:
	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 %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2760, %rsp
	.cfi_def_cfa_offset 400112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	leaq	8(%rsp), %rcx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L10
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	leaq	12(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L5
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L19
	movl	%ecx, %edx
	movslq	%r13d, %rax
	movd	%r12d, %xmm1
	shrl	$2, %edx
	leaq	16(%rsp,%rax,4), %rax
	pshufd	$0, %xmm1, %xmm0
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	0(%r13,%rdx), %eax
	cmpl	%edx, %ecx
	je	.L9
.L6:
	movslq	%eax, %rdi
	leal	1(%rax), %esi
	movl	%r12d, 16(%rsp,%rdi,4)
	leal	1(%rdx), %edi
	cmpl	%ecx, %edi
	jge	.L9
	movslq	%esi, %rsi
	addl	$2, %edx
	addl	$2, %eax
	movl	%r12d, 16(%rsp,%rsi,4)
	cmpl	%edx, %ecx
	jle	.L9
	cltq
	movl	%r12d, 16(%rsp,%rax,4)
.L9:
	addl	%ecx, %r13d
.L5:
	cmpl	%r12d, 8(%rsp)
	jg	.L2
.L10:
	movl	(%rsp), %eax
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	xorl	%ebx, %ebx
	testb	$1, %bpl
	jne	.L13
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L27:
	movl	$32, %edi
	call	putchar@PLT
	movl	4(%rsp), %eax
.L15:
	imull	%ebp, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	addl	%ebx, %eax
	addl	$1, %ebx
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L27
.L12:
	movl	$10, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, (%rsp)
	jg	.L3
.L4:
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$400072, %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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	$32, %edi
	call	putchar@PLT
	movl	4(%rsp), %eax
.L13:
	movl	%eax, %edx
	imull	%ebp, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	subl	%ebx, %edx
	addl	$1, %ebx
	leal	-1(%rdx,%rax), %eax
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L11
	jmp	.L12
.L19:
	movl	%r13d, %eax
	xorl	%edx, %edx
	jmp	.L6
.L28:
	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 h,w,n,a,i,j,d[100010],r=0;
  scanf("%d %d %d",&h,&w,&n);
  for(i=0;i<n;i++){
    scanf("%d",&a);
    for(j=0;j<a;j++)d[r++]=i+1;
  }
  for(i=0;i<h;i++){
    for(j=0;j<w;j++){
      if(j)printf(" ");
      printf("%d",d[i*w+(i%2?w-j-1:j)]);
    }
    printf("\n");
  }
  return 0;
}

2 2
2
3 1 1
 2 1
1
2
 1 2
1
2
 2 2
3
1 1 2
 3 5
5
1 2 5 4 3
 1 4
2
3 1 0
 2 2
3
1 2 1
 2 2
2
2 2 1
 1 4
3
2 2 0
 3 5
5
1 2 6 4 2

1 1
2 1
 1
1
 1 1
 1 2
3 3
 1 2 2 3 3
4 4 3 3 3
4 4 5 5 5
 1 1 1 2
 1 2
3 2
 1 1
2 2
 1 1 2 2
 1 2 2 3 3
4 3 3 3 3
4 4 4 5 5

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 h,w,n,a,i,j,d[100010],r=0;
  scanf("%d %d %d",&h,&w,&n);
  for(i=0;i<n;i++){
    scanf("%d",&a);
    for(j=0;j<a;j++)d[r++]=i+1;
  }
  for(i=0;i<h;i++){
    for(j=0;j<w;j++){
      if(j)printf(" ");
      printf("%d",d[i*w+(i%2?w-j-1:j)]);
    }
    printf("\n");
  }
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400052(%rbp)
	leaq	-400068(%rbp), %rcx
	leaq	-400072(%rbp), %rdx
	leaq	-400076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400060(%rbp)
	jmp	.L2
.L5:
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400056(%rbp)
	jmp	.L3
.L4:
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	movl	-400060(%rbp), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	addl	$1, -400056(%rbp)
.L3:
	movl	-400064(%rbp), %eax
	cmpl	%eax, -400056(%rbp)
	jl	.L4
	addl	$1, -400060(%rbp)
.L2:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400060(%rbp)
	jl	.L5
	movl	$0, -400060(%rbp)
	jmp	.L6
.L12:
	movl	$0, -400056(%rbp)
	jmp	.L7
.L11:
	cmpl	$0, -400056(%rbp)
	je	.L8
	movl	$32, %edi
	call	putchar@PLT
.L8:
	movl	-400072(%rbp), %eax
	imull	-400060(%rbp), %eax
	movl	%eax, %edx
	movl	-400060(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-400072(%rbp), %eax
	subl	-400056(%rbp), %eax
	subl	$1, %eax
	jmp	.L10
.L9:
	movl	-400056(%rbp), %eax
.L10:
	addl	%edx, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400056(%rbp)
.L7:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400056(%rbp)
	jl	.L11
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -400060(%rbp)
.L6:
	movl	-400076(%rbp), %eax
	cmpl	%eax, -400060(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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 %d %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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400052(%rbp)
	leaq	-400068(%rbp), %rcx
	leaq	-400072(%rbp), %rdx
	leaq	-400076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400060(%rbp)
	jmp	.L2
.L5:
	leaq	-400064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400056(%rbp)
	jmp	.L3
.L4:
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	movl	-400060(%rbp), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400048(%rbp,%rax,4)
	addl	$1, -400056(%rbp)
.L3:
	movl	-400064(%rbp), %eax
	cmpl	%eax, -400056(%rbp)
	jl	.L4
	addl	$1, -400060(%rbp)
.L2:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400060(%rbp)
	jl	.L5
	movl	$0, -400060(%rbp)
	jmp	.L6
.L12:
	movl	$0, -400056(%rbp)
	jmp	.L7
.L11:
	cmpl	$0, -400056(%rbp)
	je	.L8
	movl	$32, %edi
	call	putchar@PLT
.L8:
	movl	-400072(%rbp), %eax
	imull	-400060(%rbp), %eax
	movl	%eax, %edx
	movl	-400060(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-400072(%rbp), %eax
	subl	-400056(%rbp), %eax
	subl	$1, %eax
	jmp	.L10
.L9:
	movl	-400056(%rbp), %eax
.L10:
	addl	%edx, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400056(%rbp)
.L7:
	movl	-400072(%rbp), %eax
	cmpl	%eax, -400056(%rbp)
	jl	.L11
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -400060(%rbp)
.L6:
	movl	-400076(%rbp), %eax
	cmpl	%eax, -400060(%rbp)
	jl	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
