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(void){
    int n,m,x,y,i,a[]={-1,-1,-1};
    scanf("%d%d",&n,&m);
    for(i=0;i<m;i++){
        scanf("%d%d",&x,&y);
        if(a[x-1]==-1 || a[x-1]==y) a[x-1]=y;
        else{
            printf("-1");
            return 0;
        }
    }
    if(n!=1 && a[0]==0){
        printf("-1");
        return 0;
    }
    if(n==1 && a[0]==-1) a[0]=0;
    if(n!=1 && a[0]==-1) a[0]=1;
    for(i=0;i<n;i++){
        if(a[i]==-1) printf("0");
        else printf("%d",a[i]); 
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"-1"
.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -20(%rbp)
	movl	$-1, -16(%rbp)
	movl	$-1, -12(%rbp)
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L2
.L6:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L3
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-20(%rbp,%rax,4), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
.L3:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	-28(%rbp), %edx
	cltq
	movl	%edx, -20(%rbp,%rax,4)
	addl	$1, -24(%rbp)
	jmp	.L2
.L4:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L14
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L6
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	je	.L7
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L14
.L7:
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	-20(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L8
	movl	$0, -20(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	je	.L9
	movl	-20(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L9
	movl	$1, -20(%rbp)
.L9:
	movl	$0, -24(%rbp)
	jmp	.L10
.L13:
	movl	-24(%rbp), %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L11
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L12
.L11:
	movl	-24(%rbp), %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L12:
	addl	$1, -24(%rbp)
.L10:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L13
	movl	$0, %eax
.L14:
	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
.LC1:
	.string	"%d%d"
.LC2:
	.string	"-1"
.LC3:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	.LC0(%rip), %rax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movl	$-1, 32(%rsp)
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	subl	$1, %eax
	cltq
	movl	24(%rsp,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L4
	cmpl	%ecx, %edx
	jne	.L5
.L4:
	movl	%ecx, 24(%rsp,%rax,4)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L6
	movl	8(%rsp), %edx
	movl	24(%rsp), %eax
	cmpl	$1, %edx
	je	.L9
	testl	%eax, %eax
	je	.L5
	addl	$1, %eax
	je	.L17
.L18:
	testl	%edx, %edx
	jle	.L8
.L12:
	xorl	%ebx, %ebx
	leaq	24(%rsp), %rbp
	leaq	.LC3(%rip), %r12
.L16:
	movl	0(%rbp,%rbx,4), %edx
	cmpl	$-1, %edx
	je	.L35
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L16
.L8:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$56, %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
.L2:
	.cfi_restore_state
	movl	8(%rsp), %edx
	cmpl	$1, %edx
	jne	.L17
	movl	24(%rsp), %eax
.L9:
	cmpl	$-1, %eax
	je	.L37
.L11:
	movl	%eax, 24(%rsp)
	jmp	.L12
.L35:
	movl	$48, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L16
	jmp	.L8
.L5:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L37:
	xorl	%eax, %eax
	jmp	.L11
.L17:
	movl	$1, 24(%rsp)
	jmp	.L18
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1
	.long	-1
	.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
.LC1:
	.string	"%d%d"
.LC2:
	.string	"-1"
.LC3:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movq	.LC0(%rip), %rax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movl	$-1, 32(%rsp)
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	subl	$1, %eax
	cltq
	movl	24(%rsp,%rax,4), %edx
	cmpl	$-1, %edx
	je	.L4
	cmpl	%ecx, %edx
	jne	.L5
.L4:
	movl	%ecx, 24(%rsp,%rax,4)
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jg	.L6
	movl	8(%rsp), %edx
	movl	24(%rsp), %eax
	cmpl	$1, %edx
	je	.L9
	testl	%eax, %eax
	je	.L5
	addl	$1, %eax
	je	.L17
.L18:
	testl	%edx, %edx
	jle	.L8
.L12:
	xorl	%ebx, %ebx
	leaq	24(%rsp), %rbp
	leaq	.LC3(%rip), %r12
.L16:
	movl	0(%rbp,%rbx,4), %edx
	cmpl	$-1, %edx
	je	.L35
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L16
.L8:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$56, %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
.L2:
	.cfi_restore_state
	movl	8(%rsp), %edx
	cmpl	$1, %edx
	jne	.L17
	movl	24(%rsp), %eax
.L9:
	cmpl	$-1, %eax
	je	.L37
.L11:
	movl	%eax, 24(%rsp)
	jmp	.L12
.L35:
	movl	$48, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L16
	jmp	.L8
.L5:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L37:
	xorl	%eax, %eax
	jmp	.L11
.L17:
	movl	$1, 24(%rsp)
	jmp	.L18
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1
	.long	-1
	.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(void){
    int n,m,x,y,i,a[]={-1,-1,-1};
    scanf("%d%d",&n,&m);
    for(i=0;i<m;i++){
        scanf("%d%d",&x,&y);
        if(a[x-1]==-1 || a[x-1]==y) a[x-1]=y;
        else{
            printf("-1");
            return 0;
        }
    }
    if(n!=1 && a[0]==0){
        printf("-1");
        return 0;
    }
    if(n==1 && a[0]==-1) a[0]=0;
    if(n!=1 && a[0]==-1) a[0]=1;
    for(i=0;i<n;i++){
        if(a[i]==-1) printf("0");
        else printf("%d",a[i]); 
    }
    return 0;
}
3 3
1 14
3 2
1 7
 3 0
2 1
2 3
 3 1
2 1
1 3
 3 1
0 1
1 0
 3 3
1 7
3 4
1 7
 3 2
2 0
1 3
 3 3
0 2
3 2
1 1
 3 2
3 0
2 6
 1 1
0 1
1 0
 2 1
0 1
1 0

-1 100 110 -1 704 300 -1 160 -1 -1
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(void){
    int n,m,x,y,i,a[]={-1,-1,-1};
    scanf("%d%d",&n,&m);
    for(i=0;i<m;i++){
        scanf("%d%d",&x,&y);
        if(a[x-1]==-1 || a[x-1]==y) a[x-1]=y;
        else{
            printf("-1");
            return 0;
        }
    }
    if(n!=1 && a[0]==0){
        printf("-1");
        return 0;
    }
    if(n==1 && a[0]==-1) a[0]=0;
    if(n!=1 && a[0]==-1) a[0]=1;
    for(i=0;i<n;i++){
        if(a[i]==-1) printf("0");
        else printf("%d",a[i]); 
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"-1"
.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -20(%rbp)
	movl	$-1, -16(%rbp)
	movl	$-1, -12(%rbp)
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L2
.L6:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L3
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-20(%rbp,%rax,4), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
.L3:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	-28(%rbp), %edx
	cltq
	movl	%edx, -20(%rbp,%rax,4)
	addl	$1, -24(%rbp)
	jmp	.L2
.L4:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L14
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L6
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	je	.L7
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L14
.L7:
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	-20(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L8
	movl	$0, -20(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	je	.L9
	movl	-20(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L9
	movl	$1, -20(%rbp)
.L9:
	movl	$0, -24(%rbp)
	jmp	.L10
.L13:
	movl	-24(%rbp), %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L11
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L12
.L11:
	movl	-24(%rbp), %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L12:
	addl	$1, -24(%rbp)
.L10:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L13
	movl	$0, %eax
.L14:
	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%d"
.LC1:
	.string	"-1"
.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -20(%rbp)
	movl	$-1, -16(%rbp)
	movl	$-1, -12(%rbp)
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L2
.L6:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L3
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-20(%rbp,%rax,4), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
.L3:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	-28(%rbp), %edx
	cltq
	movl	%edx, -20(%rbp,%rax,4)
	addl	$1, -24(%rbp)
	jmp	.L2
.L4:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L14
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L6
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	je	.L7
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L14
.L7:
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	-20(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L8
	movl	$0, -20(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	$1, %eax
	je	.L9
	movl	-20(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L9
	movl	$1, -20(%rbp)
.L9:
	movl	$0, -24(%rbp)
	jmp	.L10
.L13:
	movl	-24(%rbp), %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L11
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L12
.L11:
	movl	-24(%rbp), %eax
	cltq
	movl	-20(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L12:
	addl	$1, -24(%rbp)
.L10:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L13
	movl	$0, %eax
.L14:
	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:
