Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```