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>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

typedef struct node{
    lld x, y, z;
}node;

int _x, _y, _z;

int cmpAsc(const void* a, const void* b){
    if(_x == 0){_x = -1;}
    if(_y == 0){_y = -1;}
    if(_z == 0){_z = -1;}
    lld x1 = ((node*)a)->x, x2 = ((node*)b)->x;
    lld y1 = ((node*)a)->y, y2 = ((node*)b)->y;
    lld z1 = ((node*)a)->z, z2 = ((node*)b)->z;
    lld sum1 = _x*x1 + _y*y1 + _z*z1;
    lld sum2 = _x*x2 + _y*y2 + _z*z2;
    if(sum1 > sum2){
        return 1;
    }
    if(sum1 < sum2){
        return -1;
    }
    return 0;
}

int main(){
    int n, m;
    scanf("%d %d", &n, &m);
    node a[n];
    rep(i, 0, n){
        lld x, y, z;
        scanf("%lld %lld %lld", &x, &y, &z);
        a[i].x = x;
        a[i].y = y;
        a[i].z = z;
    }
    lld ans = 0;
    rep(i, 0, 2){
        rep(j, 0, 2){
            rep(k, 0, 2){
                _x = i; _y = j; _z = k;
                qsort(a, n, sizeof(node), cmpAsc);
                lld buf_x = 0, buf_y = 0, buf_z = 0;
                rep(l, 0, m){
                    buf_x += a[l].x;
                    buf_y += a[l].y;
                    buf_z += a[l].z;
                }
                if(buf_x < 0){buf_x *= -1;}
                if(buf_y < 0){buf_y *= -1;}
                if(buf_z < 0){buf_z *= -1;}
                lld buf = buf_x + buf_y + buf_z;
                if(ans < buf){
                    ans = buf;
                }
            }
        }
    }
    printf("%lld", ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	_x
	.bss
	.align 4
	.type	_x, @object
	.size	_x, 4
_x:
	.zero	4
	.globl	_y
	.align 4
	.type	_y, @object
	.size	_y, 4
_y:
	.zero	4
	.globl	_z
	.align 4
	.type	_z, @object
	.size	_z, 4
_z:
	.zero	4
	.text
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movl	_x(%rip), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$-1, _x(%rip)
.L2:
	movl	_y(%rip), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$-1, _y(%rip)
.L3:
	movl	_z(%rip), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$-1, _z(%rip)
.L4:
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	-80(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	-72(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	-72(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	_x(%rip), %eax
	cltq
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movl	_y(%rip), %eax
	cltq
	imulq	-48(%rbp), %rax
	addq	%rax, %rdx
	movl	_z(%rip), %eax
	cltq
	imulq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	_x(%rip), %eax
	cltq
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	movl	_y(%rip), %eax
	cltq
	imulq	-40(%rbp), %rax
	addq	%rax, %rdx
	movl	_z(%rip), %eax
	cltq
	imulq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jge	.L7
	movl	$-1, %eax
	jmp	.L6
.L7:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-160(%rbp), %rdx
	leaq	-164(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-164(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L9:
	cmpq	%rdx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L11
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L12
.L13:
	leaq	-120(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-136(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rdx, (%rax)
	movq	-128(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rdx, (%rax)
	movq	-120(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$16, %rax
	movq	%rdx, (%rax)
	addl	$1, -156(%rbp)
.L12:
	movl	-164(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L13
	movq	$0, -112(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L14
.L25:
	movl	$0, -148(%rbp)
	jmp	.L15
.L24:
	movl	$0, -144(%rbp)
	jmp	.L16
.L23:
	movl	-152(%rbp), %eax
	movl	%eax, _x(%rip)
	movl	-148(%rbp), %eax
	movl	%eax, _y(%rip)
	movl	-144(%rbp), %eax
	movl	%eax, _z(%rip)
	movl	-164(%rbp), %eax
	movslq	%eax, %rsi
	movq	-72(%rbp), %rax
	leaq	cmpAsc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$24, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L17
.L18:
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, -104(%rbp)
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	addq	%rax, -96(%rbp)
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movq	(%rax), %rax
	addq	%rax, -88(%rbp)
	addl	$1, -140(%rbp)
.L17:
	movl	-160(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L18
	cmpq	$0, -104(%rbp)
	jns	.L19
	negq	-104(%rbp)
.L19:
	cmpq	$0, -96(%rbp)
	jns	.L20
	negq	-96(%rbp)
.L20:
	cmpq	$0, -88(%rbp)
	jns	.L21
	negq	-88(%rbp)
.L21:
	movq	-104(%rbp), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jge	.L22
	movq	-64(%rbp), %rax
	movq	%rax, -112(%rbp)
.L22:
	addl	$1, -144(%rbp)
.L16:
	cmpl	$1, -144(%rbp)
	jle	.L23
	addl	$1, -148(%rbp)
.L15:
	cmpl	$1, -148(%rbp)
	jle	.L24
	addl	$1, -152(%rbp)
.L14:
	cmpl	$1, -152(%rbp)
	jle	.L25
	movq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB51:
	.cfi_startproc
	endbr64
	movslq	_x(%rip), %rdx
	movq	%rsi, %r8
	testl	%edx, %edx
	jne	.L3
	movl	$-1, _x(%rip)
	movq	$-1, %rdx
.L3:
	movslq	_y(%rip), %rcx
	testl	%ecx, %ecx
	jne	.L5
	movl	$-1, _y(%rip)
	movq	$-1, %rcx
.L5:
	movslq	_z(%rip), %rax
	testl	%eax, %eax
	jne	.L7
	movl	$-1, _z(%rip)
	movq	$-1, %rax
.L7:
	movq	(%rdi), %rsi
	movq	8(%rdi), %r9
	movq	16(%rdi), %r10
	imulq	%rcx, %r9
	imulq	%rdx, %rsi
	imulq	8(%r8), %rcx
	imulq	(%r8), %rdx
	imulq	%rax, %r10
	addq	%r9, %rsi
	imulq	16(%r8), %rax
	addq	%rcx, %rdx
	addq	%r10, %rsi
	addq	%rax, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rsi
	setl	%al
	negl	%eax
	cmpq	%rdx, %rsi
	movl	$1, %edx
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-84(%rbp), %rdx
	leaq	-88(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-88(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	(%rsi,%rsi,2), %rdx
	movq	%rsi, %rax
	leaq	15(,%rdx,8), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L13
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L36
.L13:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L14:
	movq	%rsp, %r14
	testl	%eax, %eax
	jle	.L15
	leaq	-80(%rbp), %rax
	movq	%r14, %r12
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%rax, -104(%rbp)
	leaq	-72(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L16:
	movq	-104(%rbp), %rsi
	movq	%r15, %rcx
	movq	%r13, %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	addl	$1, %ebx
	addq	$24, %r12
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movq	-80(%rbp), %xmm0
	movq	%rax, -8(%r12)
	movl	-88(%rbp), %eax
	movhps	-72(%rbp), %xmm0
	movups	%xmm0, -24(%r12)
	cmpl	%ebx, %eax
	jg	.L16
	movslq	%eax, %rsi
.L15:
	movl	$0, -104(%rbp)
	xorl	%r15d, %r15d
	leaq	cmpAsc(%rip), %r13
.L17:
	xorl	%ebx, %ebx
.L26:
	xorl	%r12d, %r12d
.L24:
	movl	-104(%rbp), %eax
	movq	%r14, %rdi
	movq	%r13, %rcx
	movl	$24, %edx
	movl	%ebx, _y(%rip)
	movl	%eax, _x(%rip)
	movl	%r12d, _z(%rip)
	call	qsort@PLT
	movl	-84(%rbp), %edi
	testl	%edi, %edi
	jle	.L28
	cmpl	$1, %edi
	je	.L29
	movl	%edi, %edx
	pxor	%xmm0, %xmm0
	movq	%r14, %rax
	shrl	%edx
	movdqa	%xmm0, %xmm1
	movdqa	%xmm0, %xmm2
	leaq	(%rdx,%rdx,2), %rdx
	salq	$4, %rdx
	addq	%r14, %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movdqu	(%rax), %xmm3
	movdqu	16(%rax), %xmm4
	addq	$48, %rax
	movdqu	-16(%rax), %xmm5
	paddq	%xmm3, %xmm2
	paddq	%xmm4, %xmm1
	paddq	%xmm5, %xmm0
	cmpq	%rax, %rdx
	jne	.L20
	movhlps	%xmm1, %xmm6
	movq	%xmm2, %rsi
	movhlps	%xmm2, %xmm7
	movq	%xmm6, %rax
	movq	%xmm7, %rcx
	movhlps	%xmm0, %xmm6
	addq	%rax, %rsi
	movq	%xmm0, %rax
	movq	%xmm6, %rdx
	addq	%rax, %rcx
	movq	%xmm1, %rax
	addq	%rdx, %rax
	movl	%edi, %edx
	andl	$-2, %edx
	andl	$1, %edi
	je	.L21
.L19:
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%r14,%rdx,8), %rdx
	addq	(%rdx), %rsi
	addq	8(%rdx), %rcx
	addq	16(%rdx), %rax
.L21:
	movq	%rcx, %rdx
	negq	%rdx
	cmovs	%rcx, %rdx
	movq	%rsi, %rcx
	negq	%rcx
	cmovs	%rsi, %rcx
	addq	%rcx, %rdx
	movq	%rax, %rcx
	negq	%rcx
	cmovns	%rcx, %rax
	addq	%rdx, %rax
.L18:
	cmpq	%rax, %r15
	cmovl	%rax, %r15
	cmpl	$1, %r12d
	jne	.L22
	cmpl	$1, %ebx
	je	.L23
	movslq	-88(%rbp), %rsi
	movl	$1, %ebx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	-88(%rbp), %rsi
	movl	$1, %r12d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	cmpl	$1, -104(%rbp)
	je	.L25
	movl	$1, -104(%rbp)
	movslq	-88(%rbp), %rsi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L25:
	xorl	%eax, %eax
	movq	%r15, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L38
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L18
.L29:
	xorl	%edx, %edx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L19
.L37:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L14
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	_z
	.bss
	.align 4
	.type	_z, @object
	.size	_z, 4
_z:
	.zero	4
	.globl	_y
	.align 4
	.type	_y, @object
	.size	_y, 4
_y:
	.zero	4
	.globl	_x
	.align 4
	.type	_x, @object
	.size	_x, 4
_x:
	.zero	4
	.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	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB51:
	.cfi_startproc
	endbr64
	movslq	_x(%rip), %rdx
	movq	%rsi, %r8
	testl	%edx, %edx
	jne	.L3
	movl	$-1, _x(%rip)
	movq	$-1, %rdx
.L3:
	movslq	_y(%rip), %rcx
	testl	%ecx, %ecx
	jne	.L5
	movl	$-1, _y(%rip)
	movq	$-1, %rcx
.L5:
	movslq	_z(%rip), %rax
	testl	%eax, %eax
	jne	.L7
	movl	$-1, _z(%rip)
	movq	$-1, %rax
.L7:
	movq	(%rdi), %rsi
	movq	8(%rdi), %r9
	movq	16(%rdi), %r10
	imulq	%rcx, %r9
	imulq	%rdx, %rsi
	imulq	8(%r8), %rcx
	imulq	(%r8), %rdx
	imulq	%rax, %r10
	addq	%r9, %rsi
	imulq	16(%r8), %rax
	addq	%rcx, %rdx
	addq	%r10, %rsi
	addq	%rax, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rsi
	setl	%al
	negl	%eax
	cmpq	%rdx, %rsi
	movl	$1, %edx
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-84(%rbp), %rdx
	leaq	-88(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-88(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	(%rsi,%rsi,2), %rdx
	movq	%rsi, %rax
	leaq	15(,%rdx,8), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L13
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L36
.L13:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L14:
	movq	%rsp, %r14
	testl	%eax, %eax
	jle	.L15
	leaq	-80(%rbp), %rax
	movq	%r14, %r12
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%rax, -104(%rbp)
	leaq	-72(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L16:
	movq	-104(%rbp), %rsi
	movq	%r15, %rcx
	movq	%r13, %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	addl	$1, %ebx
	addq	$24, %r12
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movq	-80(%rbp), %xmm0
	movq	%rax, -8(%r12)
	movl	-88(%rbp), %eax
	movhps	-72(%rbp), %xmm0
	movups	%xmm0, -24(%r12)
	cmpl	%ebx, %eax
	jg	.L16
	movslq	%eax, %rsi
.L15:
	movl	$0, -104(%rbp)
	xorl	%r15d, %r15d
	leaq	cmpAsc(%rip), %r13
.L17:
	xorl	%ebx, %ebx
.L26:
	xorl	%r12d, %r12d
.L24:
	movl	-104(%rbp), %eax
	movq	%r14, %rdi
	movq	%r13, %rcx
	movl	$24, %edx
	movl	%ebx, _y(%rip)
	movl	%eax, _x(%rip)
	movl	%r12d, _z(%rip)
	call	qsort@PLT
	movl	-84(%rbp), %edi
	testl	%edi, %edi
	jle	.L28
	cmpl	$1, %edi
	je	.L29
	movl	%edi, %edx
	pxor	%xmm0, %xmm0
	movq	%r14, %rax
	shrl	%edx
	movdqa	%xmm0, %xmm1
	movdqa	%xmm0, %xmm2
	leaq	(%rdx,%rdx,2), %rdx
	salq	$4, %rdx
	addq	%r14, %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	movdqu	(%rax), %xmm3
	movdqu	16(%rax), %xmm4
	addq	$48, %rax
	movdqu	-16(%rax), %xmm5
	paddq	%xmm3, %xmm2
	paddq	%xmm4, %xmm1
	paddq	%xmm5, %xmm0
	cmpq	%rax, %rdx
	jne	.L20
	movhlps	%xmm1, %xmm6
	movq	%xmm2, %rsi
	movhlps	%xmm2, %xmm7
	movq	%xmm6, %rax
	movq	%xmm7, %rcx
	movhlps	%xmm0, %xmm6
	addq	%rax, %rsi
	movq	%xmm0, %rax
	movq	%xmm6, %rdx
	addq	%rax, %rcx
	movq	%xmm1, %rax
	addq	%rdx, %rax
	movl	%edi, %edx
	andl	$-2, %edx
	andl	$1, %edi
	je	.L21
.L19:
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%r14,%rdx,8), %rdx
	addq	(%rdx), %rsi
	addq	8(%rdx), %rcx
	addq	16(%rdx), %rax
.L21:
	movq	%rcx, %rdx
	negq	%rdx
	cmovs	%rcx, %rdx
	movq	%rsi, %rcx
	negq	%rcx
	cmovs	%rsi, %rcx
	addq	%rcx, %rdx
	movq	%rax, %rcx
	negq	%rcx
	cmovns	%rcx, %rax
	addq	%rdx, %rax
.L18:
	cmpq	%rax, %r15
	cmovl	%rax, %r15
	cmpl	$1, %r12d
	jne	.L22
	cmpl	$1, %ebx
	je	.L23
	movslq	-88(%rbp), %rsi
	movl	$1, %ebx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	-88(%rbp), %rsi
	movl	$1, %r12d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	cmpl	$1, -104(%rbp)
	je	.L25
	movl	$1, -104(%rbp)
	movslq	-88(%rbp), %rsi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L25:
	xorl	%eax, %eax
	movq	%r15, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L38
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L18
.L29:
	xorl	%edx, %edx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L19
.L37:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L14
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	_z
	.bss
	.align 4
	.type	_z, @object
	.size	_z, 4
_z:
	.zero	4
	.globl	_y
	.align 4
	.type	_y, @object
	.size	_y, 4
_y:
	.zero	4
	.globl	_x
	.align 4
	.type	_x, @object
	.size	_x, 4
_x:
	.zero	4
	.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>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

typedef struct node{
    lld x, y, z;
}node;

int _x, _y, _z;

int cmpAsc(const void* a, const void* b){
    if(_x == 0){_x = -1;}
    if(_y == 0){_y = -1;}
    if(_z == 0){_z = -1;}
    lld x1 = ((node*)a)->x, x2 = ((node*)b)->x;
    lld y1 = ((node*)a)->y, y2 = ((node*)b)->y;
    lld z1 = ((node*)a)->z, z2 = ((node*)b)->z;
    lld sum1 = _x*x1 + _y*y1 + _z*z1;
    lld sum2 = _x*x2 + _y*y2 + _z*z2;
    if(sum1 > sum2){
        return 1;
    }
    if(sum1 < sum2){
        return -1;
    }
    return 0;
}

int main(){
    int n, m;
    scanf("%d %d", &n, &m);
    node a[n];
    rep(i, 0, n){
        lld x, y, z;
        scanf("%lld %lld %lld", &x, &y, &z);
        a[i].x = x;
        a[i].y = y;
        a[i].z = z;
    }
    lld ans = 0;
    rep(i, 0, 2){
        rep(j, 0, 2){
            rep(k, 0, 2){
                _x = i; _y = j; _z = k;
                qsort(a, n, sizeof(node), cmpAsc);
                lld buf_x = 0, buf_y = 0, buf_z = 0;
                rep(l, 0, m){
                    buf_x += a[l].x;
                    buf_y += a[l].y;
                    buf_z += a[l].z;
                }
                if(buf_x < 0){buf_x *= -1;}
                if(buf_y < 0){buf_y *= -1;}
                if(buf_z < 0){buf_z *= -1;}
                lld buf = buf_x + buf_y + buf_z;
                if(ans < buf){
                    ans = buf;
                }
            }
        }
    }
    printf("%lld", ans);

    return 0;
}
5 3
1 -2 3
-4 5 -6
7 -8 -9
-10 19 -12
13 -14 15
 10 5
10 -80 21
23 8 38
-94 28 11
-26 -2 18
-69 72 79
-26 -86 -54
-72 -50 48
21 65 -32
40 -94 87
-62 18 82
 5 3
1 -2 3
-4 5 -6
7 -8 -16
-10 19 -12
13 -14 15
 5 5
1 -2 3
-4 5 -6
7 -8 -16
-10 19 -12
13 -14 15
 10 5
10 -80 21
23 8 10
-94 28 11
-26 -2 18
-69 72 79
-26 -86 -54
-89 -50 48
21 65 -32
40 -94 87
-62 18 82
 5 3
3 0 4
1 5 18
2 6 5
3 5 8
7 7 9
 5 5
1 -2 3
-4 5 -6
7 -8 -16
-10 19 -12
13 -3 15
 10 5
10 -80 21
23 8 10
-94 28 11
-26 -2 18
-69 72 79
-26 -86 -54
-89 -8 48
21 65 -32
40 -94 87
-62 18 82
 5 3
3 0 4
1 5 18
2 6 5
3 5 4
7 7 9
 5 5
1 -2 4
-4 5 -6
7 -8 -16
-10 19 -12
13 -3 15

54 627 57 23 644 63 34 686 60 33
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>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

typedef struct node{
    lld x, y, z;
}node;

int _x, _y, _z;

int cmpAsc(const void* a, const void* b){
    if(_x == 0){_x = -1;}
    if(_y == 0){_y = -1;}
    if(_z == 0){_z = -1;}
    lld x1 = ((node*)a)->x, x2 = ((node*)b)->x;
    lld y1 = ((node*)a)->y, y2 = ((node*)b)->y;
    lld z1 = ((node*)a)->z, z2 = ((node*)b)->z;
    lld sum1 = _x*x1 + _y*y1 + _z*z1;
    lld sum2 = _x*x2 + _y*y2 + _z*z2;
    if(sum1 > sum2){
        return 1;
    }
    if(sum1 < sum2){
        return -1;
    }
    return 0;
}

int main(){
    int n, m;
    scanf("%d %d", &n, &m);
    node a[n];
    rep(i, 0, n){
        lld x, y, z;
        scanf("%lld %lld %lld", &x, &y, &z);
        a[i].x = x;
        a[i].y = y;
        a[i].z = z;
    }
    lld ans = 0;
    rep(i, 0, 2){
        rep(j, 0, 2){
            rep(k, 0, 2){
                _x = i; _y = j; _z = k;
                qsort(a, n, sizeof(node), cmpAsc);
                lld buf_x = 0, buf_y = 0, buf_z = 0;
                rep(l, 0, m){
                    buf_x += a[l].x;
                    buf_y += a[l].y;
                    buf_z += a[l].z;
                }
                if(buf_x < 0){buf_x *= -1;}
                if(buf_y < 0){buf_y *= -1;}
                if(buf_z < 0){buf_z *= -1;}
                lld buf = buf_x + buf_y + buf_z;
                if(ans < buf){
                    ans = buf;
                }
            }
        }
    }
    printf("%lld", ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	_x
	.bss
	.align 4
	.type	_x, @object
	.size	_x, 4
_x:
	.zero	4
	.globl	_y
	.align 4
	.type	_y, @object
	.size	_y, 4
_y:
	.zero	4
	.globl	_z
	.align 4
	.type	_z, @object
	.size	_z, 4
_z:
	.zero	4
	.text
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movl	_x(%rip), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$-1, _x(%rip)
.L2:
	movl	_y(%rip), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$-1, _y(%rip)
.L3:
	movl	_z(%rip), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$-1, _z(%rip)
.L4:
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	-80(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	-72(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	-72(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	_x(%rip), %eax
	cltq
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movl	_y(%rip), %eax
	cltq
	imulq	-48(%rbp), %rax
	addq	%rax, %rdx
	movl	_z(%rip), %eax
	cltq
	imulq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	_x(%rip), %eax
	cltq
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	movl	_y(%rip), %eax
	cltq
	imulq	-40(%rbp), %rax
	addq	%rax, %rdx
	movl	_z(%rip), %eax
	cltq
	imulq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jge	.L7
	movl	$-1, %eax
	jmp	.L6
.L7:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-160(%rbp), %rdx
	leaq	-164(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-164(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L9:
	cmpq	%rdx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L11
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L12
.L13:
	leaq	-120(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-136(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rdx, (%rax)
	movq	-128(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rdx, (%rax)
	movq	-120(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$16, %rax
	movq	%rdx, (%rax)
	addl	$1, -156(%rbp)
.L12:
	movl	-164(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L13
	movq	$0, -112(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L14
.L25:
	movl	$0, -148(%rbp)
	jmp	.L15
.L24:
	movl	$0, -144(%rbp)
	jmp	.L16
.L23:
	movl	-152(%rbp), %eax
	movl	%eax, _x(%rip)
	movl	-148(%rbp), %eax
	movl	%eax, _y(%rip)
	movl	-144(%rbp), %eax
	movl	%eax, _z(%rip)
	movl	-164(%rbp), %eax
	movslq	%eax, %rsi
	movq	-72(%rbp), %rax
	leaq	cmpAsc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$24, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L17
.L18:
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, -104(%rbp)
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	addq	%rax, -96(%rbp)
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movq	(%rax), %rax
	addq	%rax, -88(%rbp)
	addl	$1, -140(%rbp)
.L17:
	movl	-160(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L18
	cmpq	$0, -104(%rbp)
	jns	.L19
	negq	-104(%rbp)
.L19:
	cmpq	$0, -96(%rbp)
	jns	.L20
	negq	-96(%rbp)
.L20:
	cmpq	$0, -88(%rbp)
	jns	.L21
	negq	-88(%rbp)
.L21:
	movq	-104(%rbp), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jge	.L22
	movq	-64(%rbp), %rax
	movq	%rax, -112(%rbp)
.L22:
	addl	$1, -144(%rbp)
.L16:
	cmpl	$1, -144(%rbp)
	jle	.L23
	addl	$1, -148(%rbp)
.L15:
	cmpl	$1, -148(%rbp)
	jle	.L24
	addl	$1, -152(%rbp)
.L14:
	cmpl	$1, -152(%rbp)
	jle	.L25
	movq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	_x
	.bss
	.align 4
	.type	_x, @object
	.size	_x, 4
_x:
	.zero	4
	.globl	_y
	.align 4
	.type	_y, @object
	.size	_y, 4
_y:
	.zero	4
	.globl	_z
	.align 4
	.type	_z, @object
	.size	_z, 4
_z:
	.zero	4
	.text
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movl	_x(%rip), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$-1, _x(%rip)
.L2:
	movl	_y(%rip), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$-1, _y(%rip)
.L3:
	movl	_z(%rip), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$-1, _z(%rip)
.L4:
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	-80(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	-72(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	-72(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	_x(%rip), %eax
	cltq
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movl	_y(%rip), %eax
	cltq
	imulq	-48(%rbp), %rax
	addq	%rax, %rdx
	movl	_z(%rip), %eax
	cltq
	imulq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	_x(%rip), %eax
	cltq
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	movl	_y(%rip), %eax
	cltq
	imulq	-40(%rbp), %rax
	addq	%rax, %rdx
	movl	_z(%rip), %eax
	cltq
	imulq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jge	.L7
	movl	$-1, %eax
	jmp	.L6
.L7:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-160(%rbp), %rdx
	leaq	-164(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-164(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L9:
	cmpq	%rdx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L11
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L12
.L13:
	leaq	-120(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-136(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rdx, (%rax)
	movq	-128(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rdx, (%rax)
	movq	-120(%rbp), %rdx
	movq	-72(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$16, %rax
	movq	%rdx, (%rax)
	addl	$1, -156(%rbp)
.L12:
	movl	-164(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L13
	movq	$0, -112(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L14
.L25:
	movl	$0, -148(%rbp)
	jmp	.L15
.L24:
	movl	$0, -144(%rbp)
	jmp	.L16
.L23:
	movl	-152(%rbp), %eax
	movl	%eax, _x(%rip)
	movl	-148(%rbp), %eax
	movl	%eax, _y(%rip)
	movl	-144(%rbp), %eax
	movl	%eax, _z(%rip)
	movl	-164(%rbp), %eax
	movslq	%eax, %rsi
	movq	-72(%rbp), %rax
	leaq	cmpAsc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$24, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L17
.L18:
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, -104(%rbp)
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	addq	%rax, -96(%rbp)
	movq	-72(%rbp), %rcx
	movl	-140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movq	(%rax), %rax
	addq	%rax, -88(%rbp)
	addl	$1, -140(%rbp)
.L17:
	movl	-160(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L18
	cmpq	$0, -104(%rbp)
	jns	.L19
	negq	-104(%rbp)
.L19:
	cmpq	$0, -96(%rbp)
	jns	.L20
	negq	-96(%rbp)
.L20:
	cmpq	$0, -88(%rbp)
	jns	.L21
	negq	-88(%rbp)
.L21:
	movq	-104(%rbp), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jge	.L22
	movq	-64(%rbp), %rax
	movq	%rax, -112(%rbp)
.L22:
	addl	$1, -144(%rbp)
.L16:
	cmpl	$1, -144(%rbp)
	jle	.L23
	addl	$1, -148(%rbp)
.L15:
	cmpl	$1, -148(%rbp)
	jle	.L24
	addl	$1, -152(%rbp)
.L14:
	cmpl	$1, -152(%rbp)
	jle	.L25
	movq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
