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;
    int score[256][3] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%d %d %d", score[i], score[i] + 1, score[i] + 2);
    }
    for (i = 0; i < 3; i++){
        int num[128] = {0};
        for (j = 0; j < n; j++){
            num[score[j][i]]++;
        }
        for (j = 0; j < n; j++){
            if (num[score[j][i]] > 1){
                score[j][i] = 0;
            }
        }
    }
    for (i = 0; i < n; i++){
        printf("%d\n", score[i][0] + score[i][1] + score[i][2]);
    }

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.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
	movl	$384, %ecx
	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
	subq	$3624, %rsp
	.cfi_def_cfa_offset 3664
	movq	%fs:40, %rax
	movq	%rax, 3608(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	cmpl	%r12d, %r8d
	jg	.L3
.L2:
	leal	-1(%r8), %eax
	leaq	540(%rsp), %r11
	movq	%rbx, %r9
	leaq	(%rax,%rax,2), %rax
	leaq	16(%rsp), %r10
	leaq	(%r11,%rax,4), %rsi
	xorl	%eax, %eax
.L5:
	movl	$64, %ecx
	movq	%r10, %rdi
	movq	%r9, %rdx
	rep stosq
	testl	%r8d, %r8d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rdx), %rcx
	addq	$12, %rdx
	addl	$1, 16(%rsp,%rcx,4)
	cmpq	%rdx, %rsi
	jne	.L4
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdx), %rcx
	cmpl	$1, 16(%rsp,%rcx,4)
	jle	.L7
	movl	$0, (%rdx)
.L7:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	.L8
.L9:
	addq	$4, %r9
	addq	$4, %rsi
	cmpq	%r11, %r9
	jne	.L5
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	4(%rbx), %edx
	movq	%r12, %rsi
	addl	(%rbx), %edx
	movl	$1, %edi
	addl	8(%rbx), %edx
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$12, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 12(%rsp)
	jg	.L10
.L11:
	movq	3608(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$3624, %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
.L26:
	.cfi_restore_state
	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:
```

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
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.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
	movl	$384, %ecx
	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
	subq	$3624, %rsp
	.cfi_def_cfa_offset 3664
	movq	%fs:40, %rax
	movq	%rax, 3608(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	cmpl	%r12d, %r8d
	jg	.L3
.L2:
	leal	-1(%r8), %eax
	leaq	540(%rsp), %r11
	movq	%rbx, %r9
	leaq	(%rax,%rax,2), %rax
	leaq	16(%rsp), %r10
	leaq	(%r11,%rax,4), %rsi
	xorl	%eax, %eax
.L5:
	movl	$64, %ecx
	movq	%r10, %rdi
	movq	%r9, %rdx
	rep stosq
	testl	%r8d, %r8d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rdx), %rcx
	addq	$12, %rdx
	addl	$1, 16(%rsp,%rcx,4)
	cmpq	%rdx, %rsi
	jne	.L4
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdx), %rcx
	cmpl	$1, 16(%rsp,%rcx,4)
	jle	.L7
	movl	$0, (%rdx)
.L7:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	.L8
.L9:
	addq	$4, %r9
	addq	$4, %rsi
	cmpq	%r11, %r9
	jne	.L5
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	4(%rbx), %edx
	movq	%r12, %rsi
	addl	(%rbx), %edx
	movl	$1, %edi
	addl	8(%rbx), %edx
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$12, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 12(%rsp)
	jg	.L10
.L11:
	movq	3608(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$3624, %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
.L26:
	.cfi_restore_state
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.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
	movl	$384, %ecx
	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
	subq	$3624, %rsp
	.cfi_def_cfa_offset 3664
	movq	%fs:40, %rax
	movq	%rax, 3608(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	cmpl	%r12d, %r8d
	jg	.L3
.L2:
	leal	-1(%r8), %eax
	leaq	540(%rsp), %r11
	movq	%rbx, %r9
	leaq	(%rax,%rax,2), %rax
	leaq	16(%rsp), %r10
	leaq	(%r11,%rax,4), %rsi
	xorl	%eax, %eax
.L5:
	movl	$64, %ecx
	movq	%r10, %rdi
	movq	%r9, %rdx
	rep stosq
	testl	%r8d, %r8d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rdx), %rcx
	addq	$12, %rdx
	addl	$1, 16(%rsp,%rcx,4)
	cmpq	%rdx, %rsi
	jne	.L4
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdx), %rcx
	cmpl	$1, 16(%rsp,%rcx,4)
	jle	.L7
	movl	$0, (%rdx)
.L7:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	.L8
.L9:
	addq	$4, %r9
	addq	$4, %rsi
	cmpq	%r11, %r9
	jne	.L5
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	4(%rbx), %edx
	movq	%r12, %rsi
	addl	(%rbx), %edx
	movl	$1, %edi
	addl	8(%rbx), %edx
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$12, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 12(%rsp)
	jg	.L10
.L11:
	movq	3608(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$3624, %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
.L26:
	.cfi_restore_state
	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:
```
```c
#include <stdio.h>

int main(void)
{
    int n;
    int score[256][3] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%d %d %d", score[i], score[i] + 1, score[i] + 2);
    }
    for (i = 0; i < 3; i++){
        int num[128] = {0};
        for (j = 0; j < n; j++){
            num[score[j][i]]++;
        }
        for (j = 0; j < n; j++){
            if (num[score[j][i]] > 1){
                score[j][i] = 0;
            }
        }
    }
    for (i = 0; i < n; i++){
        printf("%d\n", score[i][0] + score[i][1] + score[i][2]);
    }

    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;
    int score[256][3] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%d %d %d", score[i], score[i] + 1, score[i] + 2);
    }
    for (i = 0; i < 3; i++){
        int num[128] = {0};
        for (j = 0; j < n; j++){
            num[score[j][i]]++;
        }
        for (j = 0; j < n; j++){
            if (num[score[j][i]] > 1){
                score[j][i] = 0;
            }
        }
    }
    for (i = 0; i < n; i++){
        printf("%d\n", score[i][0] + score[i][1] + score[i][2]);
    }

    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:

5
100 99 98
100 97 68
63 89 63
99 99 99
89 97 98
 5
100 99 98
100 97 68
63 89 63
68 99 99
89 97 98
 5
100 99 98
100 97 92
63 53 63
99 99 99
89 97 98
 5
100 99 98
100 97 68
63 89 63
68 99 79
89 97 98
 5
100 99 98
100 97 92
63 32 63
99 99 99
89 97 98
 5
100 99 98
100 97 68
63 89 25
68 99 79
89 97 98
 5
100 99 98
000 97 92
63 32 63
99 99 99
89 97 98
 5
100 1 98
100 97 68
63 89 25
68 99 79
89 97 98
 5
100 1 98
100 97 68
44 89 25
68 99 79
89 97 98
 5
100 1 98
100 97 68
16 89 25
68 99 79
89 97 98

0
68
215
198
89
 0
68
215
167
89
 0
92
179
198
89
 0
68
215
147
89
 0
92
158
198
89
 0
68
177
147
89
 100
92
158
198
89
 1
68
177
246
89
 1
68
158
246
89
 1
68
130
246
89

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;
    int score[256][3] = {0};
    int i, j;

    scanf("%d", &n);
    for (i = 0; i < n; i++){
        scanf("%d %d %d", score[i], score[i] + 1, score[i] + 2);
    }
    for (i = 0; i < 3; i++){
        int num[128] = {0};
        for (j = 0; j < n; j++){
            num[score[j][i]]++;
        }
        for (j = 0; j < n; j++){
            if (num[score[j][i]] > 1){
                score[j][i] = 0;
            }
        }
    }
    for (i = 0; i < n; i++){
        printf("%d\n", score[i][0] + score[i][1] + score[i][2]);
    }

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.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
	movl	$384, %ecx
	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
	subq	$3624, %rsp
	.cfi_def_cfa_offset 3664
	movq	%fs:40, %rax
	movq	%rax, 3608(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	cmpl	%r12d, %r8d
	jg	.L3
.L2:
	leal	-1(%r8), %eax
	leaq	540(%rsp), %r11
	movq	%rbx, %r9
	leaq	(%rax,%rax,2), %rax
	leaq	16(%rsp), %r10
	leaq	(%r11,%rax,4), %rsi
	xorl	%eax, %eax
.L5:
	movl	$64, %ecx
	movq	%r10, %rdi
	movq	%r9, %rdx
	rep stosq
	testl	%r8d, %r8d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rdx), %rcx
	addq	$12, %rdx
	addl	$1, 16(%rsp,%rcx,4)
	cmpq	%rdx, %rsi
	jne	.L4
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdx), %rcx
	cmpl	$1, 16(%rsp,%rcx,4)
	jle	.L7
	movl	$0, (%rdx)
.L7:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	.L8
.L9:
	addq	$4, %r9
	addq	$4, %rsi
	cmpq	%r11, %r9
	jne	.L5
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	4(%rbx), %edx
	movq	%r12, %rsi
	addl	(%rbx), %edx
	movl	$1, %edi
	addl	8(%rbx), %edx
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$12, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 12(%rsp)
	jg	.L10
.L11:
	movq	3608(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$3624, %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
.L26:
	.cfi_restore_state
	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:
```

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
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.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
	movl	$384, %ecx
	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
	subq	$3624, %rsp
	.cfi_def_cfa_offset 3664
	movq	%fs:40, %rax
	movq	%rax, 3608(%rsp)
	xorl	%eax, %eax
	leaq	528(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movq	%rbx, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	cmpl	%r12d, %r8d
	jg	.L3
.L2:
	leal	-1(%r8), %eax
	leaq	540(%rsp), %r11
	movq	%rbx, %r9
	leaq	(%rax,%rax,2), %rax
	leaq	16(%rsp), %r10
	leaq	(%r11,%rax,4), %rsi
	xorl	%eax, %eax
.L5:
	movl	$64, %ecx
	movq	%r10, %rdi
	movq	%r9, %rdx
	rep stosq
	testl	%r8d, %r8d
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	(%rdx), %rcx
	addq	$12, %rdx
	addl	$1, 16(%rsp,%rcx,4)
	cmpq	%rdx, %rsi
	jne	.L4
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rdx), %rcx
	cmpl	$1, 16(%rsp,%rcx,4)
	jle	.L7
	movl	$0, (%rdx)
.L7:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	.L8
.L9:
	addq	$4, %r9
	addq	$4, %rsi
	cmpq	%r11, %r9
	jne	.L5
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	4(%rbx), %edx
	movq	%r12, %rsi
	addl	(%rbx), %edx
	movl	$1, %edi
	addl	8(%rbx), %edx
	xorl	%eax, %eax
	addl	$1, %ebp
	addq	$12, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 12(%rsp)
	jg	.L10
.L11:
	movq	3608(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$3624, %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
.L26:
	.cfi_restore_state
	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:
```