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>

void swap(int *x, int *y){
    int temp = *x;
    *x = *y;
    *y = temp;
}

int main(void)
{

    int n, i, j, h = 0;

    int a[1000][3];

    scanf("%d", &n);

    for(i = 0; i < n; i++)
        scanf("%d %d %d", &a[i][0], &a[i][1], &a[i][2]);

    for(i = 0; i < n; i++) {
        if(a[i][0] > a[i][1]) swap(&a[i][0], &a[i][1]);
        if(a[i][0] > a[i][2]) swap(&a[i][0], &a[i][2]);
        if(a[i][1] > a[i][2]) swap(&a[i][1], &a[i][2]);
    }

    for(i = 0; i < n; i++) {
        for(j = 0; j < n; j++) {
            if(i != j) {
                if(a[i][0] == a[j][0] && a[i][1] == a[j][1] && a[i][2] == a[j][2]) {
                    if(a[i][0] == 0)
                        h--;
                    h++;
                    a[j][0] = 0;
                    a[j][1] = 0;
                    a[j][2] = 0;
                }
            }
        }
    }

    printf("%d\n", h);

    return 0;
}
    ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12020(%rbp)
	leaq	-12032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12028(%rbp)
	jmp	.L3
.L4:
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	addq	%rax, %rcx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$4, %rax
	leaq	(%rsi,%rax), %rdx
	leaq	-12016(%rbp), %rdi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12028(%rbp)
.L3:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L4
	movl	$0, -12028(%rbp)
	jmp	.L5
.L9:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L6
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$4, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L6:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L7
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L7:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L8
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	$4, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L8:
	addl	$1, -12028(%rbp)
.L5:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L9
	movl	$0, -12028(%rbp)
	jmp	.L10
.L15:
	movl	$0, -12024(%rbp)
	jmp	.L11
.L14:
	movl	-12028(%rbp), %eax
	cmpl	-12024(%rbp), %eax
	je	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L13
	subl	$1, -12020(%rbp)
.L13:
	addl	$1, -12020(%rbp)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	$0, (%rax)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	$0, (%rax)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	$0, (%rax)
.L12:
	addl	$1, -12024(%rbp)
.L11:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12024(%rbp)
	jl	.L14
	addl	$1, -12028(%rbp)
.L10:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L15
	movl	-12020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB23:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	movl	%edx, (%rdi)
	movl	%eax, (%rsi)
	ret
	.cfi_endproc
.LFE23:
	.size	swap, .-swap
	.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:
.LFB24:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$3848, %rsp
	.cfi_def_cfa_offset 12080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 12024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%rbx, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	cmpl	%r12d, %esi
	jg	.L5
	testl	%esi, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	leaq	(%rax,%rax,2), %rax
	leaq	12(%rbx,%rax,4), %rdi
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %ecx
	jle	.L6
	movd	%xmm1, %ecx
	movq	%xmm1, (%rax)
.L6:
	movl	8(%rax), %edx
	cmpl	%ecx, %edx
	jge	.L7
	movl	%ecx, 8(%rax)
	movl	%edx, (%rax)
	movl	%ecx, %edx
.L7:
	movd	4(%rax), %xmm3
	movd	%edx, %xmm0
	punpckldq	%xmm3, %xmm0
	cmpl	%edx, 4(%rax)
	jle	.L8
	movq	%xmm0, 4(%rax)
.L8:
	addq	$12, %rax
	cmpq	%rdi, %rax
	jne	.L9
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %esi
	je	.L23
.L13:
	cmpl	%r8d, %eax
	je	.L11
	movl	(%rdi), %ecx
	cmpl	(%rdx), %ecx
	jne	.L11
	movl	4(%rdx), %r10d
	cmpl	%r10d, 4(%rdi)
	jne	.L11
	movl	8(%rdx), %r11d
	cmpl	%r11d, 8(%rdi)
	jne	.L11
	cmpl	$1, %ecx
	movq	$0, (%rdx)
	sbbl	$-1, %r9d
	addl	$1, %eax
	movl	$0, 8(%rdx)
	addq	$12, %rdx
	cmpl	%eax, %esi
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %r8d
	addq	$12, %rdi
	cmpl	%r8d, %esi
	jne	.L10
.L14:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	12024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$12040, %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
.L4:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L14
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB23:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	movl	%edx, (%rdi)
	movl	%eax, (%rsi)
	ret
	.cfi_endproc
.LFE23:
	.size	swap, .-swap
	.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:
.LFB24:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$3848, %rsp
	.cfi_def_cfa_offset 12080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 12024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%rbx, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	leaq	8(%rbp), %rcx
	leaq	4(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	cmpl	%r12d, %esi
	jg	.L5
	testl	%esi, %esi
	jle	.L4
	leal	-1(%rsi), %eax
	leaq	(%rax,%rax,2), %rax
	leaq	12(%rbx,%rax,4), %rdi
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L9:
	movq	(%rax), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %edx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %ecx
	jle	.L6
	movd	%xmm1, %ecx
	movq	%xmm1, (%rax)
.L6:
	movl	8(%rax), %edx
	cmpl	%ecx, %edx
	jge	.L7
	movl	%ecx, 8(%rax)
	movl	%edx, (%rax)
	movl	%ecx, %edx
.L7:
	movd	4(%rax), %xmm3
	movd	%edx, %xmm0
	punpckldq	%xmm3, %xmm0
	cmpl	%edx, 4(%rax)
	jle	.L8
	movq	%xmm0, 4(%rax)
.L8:
	addq	$12, %rax
	cmpq	%rdi, %rax
	jne	.L9
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %eax
	addq	$12, %rdx
	cmpl	%eax, %esi
	je	.L23
.L13:
	cmpl	%r8d, %eax
	je	.L11
	movl	(%rdi), %ecx
	cmpl	(%rdx), %ecx
	jne	.L11
	movl	4(%rdx), %r10d
	cmpl	%r10d, 4(%rdi)
	jne	.L11
	movl	8(%rdx), %r11d
	cmpl	%r11d, 8(%rdi)
	jne	.L11
	cmpl	$1, %ecx
	movq	$0, (%rdx)
	sbbl	$-1, %r9d
	addl	$1, %eax
	movl	$0, 8(%rdx)
	addq	$12, %rdx
	cmpl	%eax, %esi
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %r8d
	addq	$12, %rdi
	cmpl	%r8d, %esi
	jne	.L10
.L14:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	12024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$12040, %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
.L4:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L14
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>

void swap(int *x, int *y){
    int temp = *x;
    *x = *y;
    *y = temp;
}

int main(void)
{

    int n, i, j, h = 0;

    int a[1000][3];

    scanf("%d", &n);

    for(i = 0; i < n; i++)
        scanf("%d %d %d", &a[i][0], &a[i][1], &a[i][2]);

    for(i = 0; i < n; i++) {
        if(a[i][0] > a[i][1]) swap(&a[i][0], &a[i][1]);
        if(a[i][0] > a[i][2]) swap(&a[i][0], &a[i][2]);
        if(a[i][1] > a[i][2]) swap(&a[i][1], &a[i][2]);
    }

    for(i = 0; i < n; i++) {
        for(j = 0; j < n; j++) {
            if(i != j) {
                if(a[i][0] == a[j][0] && a[i][1] == a[j][1] && a[i][2] == a[j][2]) {
                    if(a[i][0] == 0)
                        h--;
                    h++;
                    a[j][0] = 0;
                    a[j][1] = 0;
                    a[j][2] = 0;
                }
            }
        }
    }

    printf("%d\n", h);

    return 0;
}
    
4
1 3 2
1 2 4
1 4 3
0 3 4
 6
1 3 2
1 2 4
1 4 3
0 3 4
3 2 1
2 3 1
 6
1 3 1
1 2 4
1 4 3
0 3 4
3 2 1
2 3 1
 4
1 3 2
1 2 4
1 4 0
0 3 4
 4
1 3 2
1 2 4
1 0 0
0 3 4
 6
2 3 1
1 2 4
1 4 3
0 3 4
3 2 1
2 3 1
 4
1 3 2
1 2 3
1 0 0
0 3 4
 6
2 3 1
1 2 4
1 4 3
0 3 4
3 2 1
4 3 1
 4
1 3 2
1 2 3
0 0 0
0 3 4
 6
2 3 1
1 2 4
1 4 3
0 3 4
3 0 1
4 3 1

0
 2
 1
 0
 0
 2
 1
 2
 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>

void swap(int *x, int *y){
    int temp = *x;
    *x = *y;
    *y = temp;
}

int main(void)
{

    int n, i, j, h = 0;

    int a[1000][3];

    scanf("%d", &n);

    for(i = 0; i < n; i++)
        scanf("%d %d %d", &a[i][0], &a[i][1], &a[i][2]);

    for(i = 0; i < n; i++) {
        if(a[i][0] > a[i][1]) swap(&a[i][0], &a[i][1]);
        if(a[i][0] > a[i][2]) swap(&a[i][0], &a[i][2]);
        if(a[i][1] > a[i][2]) swap(&a[i][1], &a[i][2]);
    }

    for(i = 0; i < n; i++) {
        for(j = 0; j < n; j++) {
            if(i != j) {
                if(a[i][0] == a[j][0] && a[i][1] == a[j][1] && a[i][2] == a[j][2]) {
                    if(a[i][0] == 0)
                        h--;
                    h++;
                    a[j][0] = 0;
                    a[j][1] = 0;
                    a[j][2] = 0;
                }
            }
        }
    }

    printf("%d\n", h);

    return 0;
}
    ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12020(%rbp)
	leaq	-12032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12028(%rbp)
	jmp	.L3
.L4:
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	addq	%rax, %rcx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$4, %rax
	leaq	(%rsi,%rax), %rdx
	leaq	-12016(%rbp), %rdi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12028(%rbp)
.L3:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L4
	movl	$0, -12028(%rbp)
	jmp	.L5
.L9:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L6
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$4, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L6:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L7
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L7:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L8
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	$4, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L8:
	addl	$1, -12028(%rbp)
.L5:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L9
	movl	$0, -12028(%rbp)
	jmp	.L10
.L15:
	movl	$0, -12024(%rbp)
	jmp	.L11
.L14:
	movl	-12028(%rbp), %eax
	cmpl	-12024(%rbp), %eax
	je	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L13
	subl	$1, -12020(%rbp)
.L13:
	addl	$1, -12020(%rbp)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	$0, (%rax)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	$0, (%rax)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	$0, (%rax)
.L12:
	addl	$1, -12024(%rbp)
.L11:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12024(%rbp)
	jl	.L14
	addl	$1, -12028(%rbp)
.L10:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L15
	movl	-12020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12020(%rbp)
	leaq	-12032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12028(%rbp)
	jmp	.L3
.L4:
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	addq	%rax, %rcx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$4, %rax
	leaq	(%rsi,%rax), %rdx
	leaq	-12016(%rbp), %rdi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12028(%rbp)
.L3:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L4
	movl	$0, -12028(%rbp)
	jmp	.L5
.L9:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L6
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$4, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L6:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L7
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L7:
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %ecx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	.L8
	leaq	-12016(%rbp), %rcx
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	$8, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-12016(%rbp), %rsi
	movl	-12028(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	$4, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	swap
.L8:
	addl	$1, -12028(%rbp)
.L5:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L9
	movl	$0, -12028(%rbp)
	jmp	.L10
.L15:
	movl	$0, -12024(%rbp)
	jmp	.L11
.L14:
	movl	-12028(%rbp), %eax
	cmpl	-12024(%rbp), %eax
	je	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %ecx
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-12028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L13
	subl	$1, -12020(%rbp)
.L13:
	addl	$1, -12020(%rbp)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12016, %rax
	movl	$0, (%rax)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12012, %rax
	movl	$0, (%rax)
	movl	-12024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$12008, %rax
	movl	$0, (%rax)
.L12:
	addl	$1, -12024(%rbp)
.L11:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12024(%rbp)
	jl	.L14
	addl	$1, -12028(%rbp)
.L10:
	movl	-12032(%rbp), %eax
	cmpl	%eax, -12028(%rbp)
	jl	.L15
	movl	-12020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
