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 selectionSort(long long A[],long long N){
long long i, j, k, min, temp;
    for (i = 0; i < N - 1; i++) {
        min = A[i];                
        k = i;                        
        for (j = i + 1; j < N; j++) {
            if (A[j] < min) { 
                min = A[j];
                k = j;
            }
        } 
        temp = A[i];
        A[i] = A[k];
        A[k] = temp;
    }
}

int main(){
long long int N,M,x,y,point[8];
long long int  b[1000],d[1000],p[1000],A[1000],B[1000],C[1000],D[1000],E[1000],F[1000],G[1000],H[1000];


scanf("%lld %lld ",&N,&M);

for(int i = 0;i < N; i++){
    scanf("%lld %lld %lld",&b[i],&d[i],&p[i]);
    A[i] = b[i] + d[i] + p[i];
    B[i] = b[i] + d[i] - p[i];
    C[i] = b[i] - d[i] + p[i];
    D[i] = -b[i] + d[i] + p[i];
    E[i] = -b[i] - d[i] + p[i];
    F[i] = -b[i] + d[i] - p[i];
    G[i] = b[i] - d[i] - p[i];
    H[i] = -b[i] - d[i] - p[i];
}
selectionSort(A,N);
selectionSort(B,N);
selectionSort(C,N);
selectionSort(D,N);
selectionSort(E,N);
selectionSort(F,N);
selectionSort(G,N);
selectionSort(H,N);

for(int i=1;i<=M;i++){
point[0]=point[0]+A[N-i];
point[1]=point[1]+B[N-i];
point[2]=point[2]+C[N-i];
point[3]=point[3]+D[N-i];
point[4]=point[4]+E[N-i];
point[5]=point[5]+F[N-i];
point[6]=point[6]+G[N-i];
point[7]=point[7]+H[N-i];
}
selectionSort(point,8);
printf("%lld\n",point[7]);
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	selectionSort
	.type	selectionSort, @function
selectionSort:
.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, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	$0, -40(%rbp)
	jmp	.L2
.L6:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	jmp	.L3
.L5:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L4
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
.L4:
	addq	$1, -32(%rbp)
.L3:
	movq	-32(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jl	.L5
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	-40(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rdx)
	addq	$1, -40(%rbp)
.L2:
	movq	-64(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -40(%rbp)
	jl	.L6
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	selectionSort, .-selectionSort
	.section	.rodata
.LC0:
	.string	"%lld %lld "
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld\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
	leaq	-86016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2096, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-88088(%rbp), %rdx
	leaq	-88096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -88104(%rbp)
	jmp	.L8
.L9:
	leaq	-72016(%rbp), %rdx
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-80016(%rbp), %rdx
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-88016(%rbp), %rsi
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -64016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -56016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -48016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -40016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	negq	%rax
	movq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -32016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -24016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -16016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	negq	%rax
	movq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -8016(%rbp,%rax,8)
	addl	$1, -88104(%rbp)
.L8:
	movl	-88104(%rbp), %eax
	movslq	%eax, %rdx
	movq	-88096(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-88096(%rbp), %rdx
	leaq	-64016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-56016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-48016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-40016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-32016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-24016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-16016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-8016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movl	$1, -88100(%rbp)
	jmp	.L10
.L11:
	movq	-88080(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-64016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88080(%rbp)
	movq	-88072(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-56016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88072(%rbp)
	movq	-88064(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-48016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88064(%rbp)
	movq	-88056(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-40016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88056(%rbp)
	movq	-88048(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-32016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88048(%rbp)
	movq	-88040(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-24016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88040(%rbp)
	movq	-88032(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-16016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88032(%rbp)
	movq	-88024(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-8016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88024(%rbp)
	addl	$1, -88100(%rbp)
.L10:
	movl	-88100(%rbp), %eax
	movslq	%eax, %rdx
	movq	-88088(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L11
	leaq	-88080(%rbp), %rax
	movl	$8, %esi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88024(%rbp), %rax
	movq	%rax, %rsi
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	selectionSort
	.type	selectionSort, @function
selectionSort:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-1(%rsi), %rbx
	testq	%rbx, %rbx
	jle	.L1
	movq	%rdi, %r10
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r8, %r9
	addq	$1, %r8
	movq	(%r10), %r11
	cmpq	%r8, %rsi
	jle	.L8
	movq	%r11, %rcx
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rdi,%rax,8), %rdx
	cmpq	%rcx, %rdx
	jge	.L4
	movq	%rdx, %rcx
	movq	%rax, %r9
.L4:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L5
	leaq	(%rdi,%r9,8), %rax
	movq	(%rax), %rdx
.L3:
	movq	%rdx, (%r10)
	addq	$8, %r10
	movq	%r11, (%rax)
	cmpq	%rbx, %r8
	jne	.L6
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movq	%r11, %rdx
	movq	%r10, %rax
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	selectionSort, .-selectionSort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld "
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-86016(%rsp), %r11
	.cfi_def_cfa 11, 86072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2168, %rsp
	.cfi_def_cfa_offset 88240
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88168(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rsi
	leaq	88(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	80(%rsp), %rsi
	testq	%rsi, %rsi
	jle	.L28
	leaq	24160(%rsp), %rax
	leaq	160(%rsp), %rbp
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%rax, 56(%rsp)
	leaq	32160(%rsp), %rax
	leaq	8160(%rsp), %r12
	movq	%rax, 48(%rsp)
	leaq	40160(%rsp), %rax
	leaq	16160(%rsp), %r13
	movq	%rax, 40(%rsp)
	leaq	48160(%rsp), %rax
	leaq	.LC1(%rip), %r14
	movq	%rax, 32(%rsp)
	leaq	56160(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	64160(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	72160(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	80160(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	%rbp, %rax
	movq	%r12, %rbp
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	0(%r13,%rbx), %rcx
	leaq	0(%rbp,%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	leaq	(%r12,%rbx), %rsi
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	0(%rbp,%rbx), %rdi
	movq	(%r12,%rbx), %rax
	movq	0(%r13,%rbx), %rdx
	movq	56(%rsp), %r8
	leaq	(%rax,%rdi), %rcx
	movq	40(%rsp), %r10
	movq	32(%rsp), %r9
	leaq	(%rcx,%rdx), %rsi
	subq	%rdx, %rcx
	movq	%rsi, (%r8,%rbx)
	movq	48(%rsp), %rsi
	movq	24(%rsp), %r8
	movq	%rcx, (%rsi,%rbx)
	movq	%rax, %rcx
	subq	%rdi, %rcx
	leaq	(%rdx,%rcx), %rsi
	subq	%rdx, %rcx
	movq	%rsi, (%r10,%rbx)
	movq	%rdi, %rsi
	subq	%rax, %rsi
	negq	%rax
	subq	%rdi, %rax
	leaq	(%rdx,%rsi), %r11
	subq	%rdx, %rsi
	leaq	(%rdx,%rax), %rdi
	subq	%rdx, %rax
	movq	16(%rsp), %rdx
	movq	%r11, (%r9,%rbx)
	movq	%rdi, (%r8,%rbx)
	movq	8(%rsp), %rdi
	movq	%rax, (%rdx,%rbx)
	movq	%rsi, (%rdi,%rbx)
	movq	(%rsp), %rdi
	movq	80(%rsp), %rsi
	movq	%rcx, (%rdi,%rbx)
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L16
.L15:
	movq	56(%rsp), %rbx
	movq	%rbx, %rdi
	call	selectionSort
	movq	48(%rsp), %r14
	movq	80(%rsp), %rsi
	movq	%r14, %rdi
	call	selectionSort
	movq	40(%rsp), %r15
	movq	80(%rsp), %rsi
	movq	%r15, %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	24(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	selectionSort
	movq	88(%rsp), %rcx
	testq	%rcx, %rcx
	jle	.L17
	movdqa	96(%rsp), %xmm2
	movdqa	112(%rsp), %xmm1
	leaq	-1(%rcx), %rax
	movdqa	128(%rsp), %xmm0
	movq	80(%rsp), %rdx
	movq	144(%rsp), %rdi
	movq	152(%rsp), %rsi
	movhps	%xmm2, 48(%rsp)
	movq	%xmm2, 40(%rsp)
	movq	%xmm0, %r8
	movhps	%xmm1, 64(%rsp)
	movq	%xmm1, 56(%rsp)
	movhps	%xmm0, 72(%rsp)
	cmpq	$1, %rax
	jbe	.L22
	movq	32(%rsp), %r9
	movq	24(%rsp), %r10
	pxor	%xmm8, %xmm8
	leaq	-16(,%rdx,8), %rax
	addq	%rax, %r15
	addq	%rax, %rbx
	addq	%rax, %r14
	movq	8(%rsp), %r11
	movq	%r15, %rbp
	movq	%rcx, %r15
	movq	%rbx, %r13
	movq	%r14, %r12
	movq	(%rsp), %rbx
	movq	16(%rsp), %r14
	shrq	%r15
	addq	%rax, %r9
	negq	%r15
	addq	%rax, %r10
	movdqa	%xmm8, %xmm7
	addq	%rax, %r11
	addq	%rax, %rbx
	addq	%rax, %r14
	salq	$4, %r15
	xorl	%eax, %eax
	movdqa	%xmm8, %xmm5
	movdqa	%xmm8, %xmm1
	movdqa	%xmm8, %xmm4
	movdqa	%xmm8, %xmm6
	movdqa	%xmm8, %xmm3
	movdqa	%xmm8, %xmm2
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	0(%r13,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm2
	movdqu	(%r12,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm3
	movdqu	0(%rbp,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm6
	movdqu	(%r9,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm4
	movdqu	(%r10,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm1
	movdqu	(%r11,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm5
	movdqu	(%rbx,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm7
	movdqu	(%r14,%rax), %xmm0
	subq	$16, %rax
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm8
	cmpq	%r15, %rax
	jne	.L19
	movdqa	%xmm8, %xmm0
	movq	%rcx, %r9
	psrldq	$8, %xmm0
	orq	$1, %r9
	paddq	%xmm0, %xmm8
	movdqa	%xmm7, %xmm0
	psrldq	$8, %xmm0
	movq	%xmm8, %rax
	paddq	%xmm0, %xmm7
	movdqa	%xmm1, %xmm0
	addq	%rax, %rsi
	psrldq	$8, %xmm0
	movq	%xmm7, %rax
	paddq	%xmm0, %xmm1
	addq	%rax, %rdi
	movq	%xmm1, %rax
	movdqa	%xmm5, %xmm1
	psrldq	$8, %xmm1
	addq	%r8, %rax
	paddq	%xmm1, %xmm5
	movdqa	%xmm6, %xmm1
	movq	%rax, %xmm0
	psrldq	$8, %xmm1
	movq	%xmm5, %rax
	movdqa	%xmm4, %xmm5
	addq	72(%rsp), %rax
	paddq	%xmm6, %xmm1
	psrldq	$8, %xmm5
	movq	%rax, %xmm7
	paddq	%xmm5, %xmm4
	movq	%xmm1, %rax
	addq	56(%rsp), %rax
	movq	%rax, %xmm1
	movq	%xmm4, %rax
	movdqa	%xmm2, %xmm4
	addq	64(%rsp), %rax
	psrldq	$8, %xmm4
	movq	%rax, %xmm6
	punpcklqdq	%xmm7, %xmm0
	paddq	%xmm4, %xmm2
	movdqa	%xmm3, %xmm4
	punpcklqdq	%xmm6, %xmm1
	psrldq	$8, %xmm4
	movq	%xmm2, %rax
	addq	40(%rsp), %rax
	paddq	%xmm4, %xmm3
	movq	%rax, %xmm2
	movq	%xmm3, %rax
	addq	48(%rsp), %rax
	movq	%rax, %xmm6
	movq	%rcx, %rax
	andq	$-2, %rax
	punpcklqdq	%xmm6, %xmm2
	leal	1(%rax), %r8d
	cmpq	%rcx, %rax
	je	.L20
.L18:
	movq	%rdx, %rax
	subq	%r9, %rax
	addq	72160(%rsp,%rax,8), %rdi
	addq	80160(%rsp,%rax,8), %rsi
	movq	24160(%rsp,%rax,8), %xmm3
	movhps	32160(%rsp,%rax,8), %xmm3
	paddq	%xmm3, %xmm2
	movq	40160(%rsp,%rax,8), %xmm3
	movhps	48160(%rsp,%rax,8), %xmm3
	paddq	%xmm3, %xmm1
	movq	56160(%rsp,%rax,8), %xmm3
	movhps	64160(%rsp,%rax,8), %xmm3
	leal	1(%r8), %eax
	cltq
	paddq	%xmm3, %xmm0
	cmpq	%rax, %rcx
	jl	.L20
	subq	%rax, %rdx
	addq	72160(%rsp,%rdx,8), %rdi
	addq	80160(%rsp,%rdx,8), %rsi
	movq	24160(%rsp,%rdx,8), %xmm3
	movhps	32160(%rsp,%rdx,8), %xmm3
	paddq	%xmm3, %xmm2
	movq	40160(%rsp,%rdx,8), %xmm3
	movhps	48160(%rsp,%rdx,8), %xmm3
	paddq	%xmm3, %xmm1
	movq	56160(%rsp,%rdx,8), %xmm3
	movhps	64160(%rsp,%rdx,8), %xmm3
	paddq	%xmm3, %xmm0
.L20:
	movq	%rdi, 144(%rsp)
	movq	%rsi, 152(%rsp)
	movaps	%xmm2, 96(%rsp)
	movaps	%xmm1, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
.L17:
	leaq	96(%rsp), %rdi
	movl	$8, %esi
	call	selectionSort
	movq	152(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	88168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$88184, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	leaq	24160(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	32160(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	40160(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	48160(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	56160(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	64160(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	72160(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	80160(%rsp), %rax
	movq	%rax, 16(%rsp)
	jmp	.L15
.L22:
	movl	$1, %r8d
	movl	$1, %r9d
	jmp	.L18
.L29:
	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	selectionSort
	.type	selectionSort, @function
selectionSort:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-1(%rsi), %rbx
	testq	%rbx, %rbx
	jle	.L1
	movq	%rdi, %r10
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r8, %r9
	addq	$1, %r8
	movq	(%r10), %r11
	cmpq	%r8, %rsi
	jle	.L8
	movq	%r11, %rcx
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rdi,%rax,8), %rdx
	cmpq	%rcx, %rdx
	jge	.L4
	movq	%rdx, %rcx
	movq	%rax, %r9
.L4:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L5
	leaq	(%rdi,%r9,8), %rax
	movq	(%rax), %rdx
.L3:
	movq	%rdx, (%r10)
	addq	$8, %r10
	movq	%r11, (%rax)
	cmpq	%rbx, %r8
	jne	.L6
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movq	%r11, %rdx
	movq	%r10, %rax
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	selectionSort, .-selectionSort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld "
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-86016(%rsp), %r11
	.cfi_def_cfa 11, 86072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2168, %rsp
	.cfi_def_cfa_offset 88240
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88168(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rsi
	leaq	88(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	80(%rsp), %rsi
	testq	%rsi, %rsi
	jle	.L28
	leaq	24160(%rsp), %rax
	leaq	160(%rsp), %rbp
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%rax, 56(%rsp)
	leaq	32160(%rsp), %rax
	leaq	8160(%rsp), %r12
	movq	%rax, 48(%rsp)
	leaq	40160(%rsp), %rax
	leaq	16160(%rsp), %r13
	movq	%rax, 40(%rsp)
	leaq	48160(%rsp), %rax
	leaq	.LC1(%rip), %r14
	movq	%rax, 32(%rsp)
	leaq	56160(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	64160(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	72160(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	80160(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	%rbp, %rax
	movq	%r12, %rbp
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	0(%r13,%rbx), %rcx
	leaq	0(%rbp,%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	leaq	(%r12,%rbx), %rsi
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	0(%rbp,%rbx), %rdi
	movq	(%r12,%rbx), %rax
	movq	0(%r13,%rbx), %rdx
	movq	56(%rsp), %r8
	leaq	(%rax,%rdi), %rcx
	movq	40(%rsp), %r10
	movq	32(%rsp), %r9
	leaq	(%rcx,%rdx), %rsi
	subq	%rdx, %rcx
	movq	%rsi, (%r8,%rbx)
	movq	48(%rsp), %rsi
	movq	24(%rsp), %r8
	movq	%rcx, (%rsi,%rbx)
	movq	%rax, %rcx
	subq	%rdi, %rcx
	leaq	(%rdx,%rcx), %rsi
	subq	%rdx, %rcx
	movq	%rsi, (%r10,%rbx)
	movq	%rdi, %rsi
	subq	%rax, %rsi
	negq	%rax
	subq	%rdi, %rax
	leaq	(%rdx,%rsi), %r11
	subq	%rdx, %rsi
	leaq	(%rdx,%rax), %rdi
	subq	%rdx, %rax
	movq	16(%rsp), %rdx
	movq	%r11, (%r9,%rbx)
	movq	%rdi, (%r8,%rbx)
	movq	8(%rsp), %rdi
	movq	%rax, (%rdx,%rbx)
	movq	%rsi, (%rdi,%rbx)
	movq	(%rsp), %rdi
	movq	80(%rsp), %rsi
	movq	%rcx, (%rdi,%rbx)
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L16
.L15:
	movq	56(%rsp), %rbx
	movq	%rbx, %rdi
	call	selectionSort
	movq	48(%rsp), %r14
	movq	80(%rsp), %rsi
	movq	%r14, %rdi
	call	selectionSort
	movq	40(%rsp), %r15
	movq	80(%rsp), %rsi
	movq	%r15, %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	24(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	(%rsp), %rdi
	call	selectionSort
	movq	80(%rsp), %rsi
	movq	16(%rsp), %rdi
	call	selectionSort
	movq	88(%rsp), %rcx
	testq	%rcx, %rcx
	jle	.L17
	movdqa	96(%rsp), %xmm2
	movdqa	112(%rsp), %xmm1
	leaq	-1(%rcx), %rax
	movdqa	128(%rsp), %xmm0
	movq	80(%rsp), %rdx
	movq	144(%rsp), %rdi
	movq	152(%rsp), %rsi
	movhps	%xmm2, 48(%rsp)
	movq	%xmm2, 40(%rsp)
	movq	%xmm0, %r8
	movhps	%xmm1, 64(%rsp)
	movq	%xmm1, 56(%rsp)
	movhps	%xmm0, 72(%rsp)
	cmpq	$1, %rax
	jbe	.L22
	movq	32(%rsp), %r9
	movq	24(%rsp), %r10
	pxor	%xmm8, %xmm8
	leaq	-16(,%rdx,8), %rax
	addq	%rax, %r15
	addq	%rax, %rbx
	addq	%rax, %r14
	movq	8(%rsp), %r11
	movq	%r15, %rbp
	movq	%rcx, %r15
	movq	%rbx, %r13
	movq	%r14, %r12
	movq	(%rsp), %rbx
	movq	16(%rsp), %r14
	shrq	%r15
	addq	%rax, %r9
	negq	%r15
	addq	%rax, %r10
	movdqa	%xmm8, %xmm7
	addq	%rax, %r11
	addq	%rax, %rbx
	addq	%rax, %r14
	salq	$4, %r15
	xorl	%eax, %eax
	movdqa	%xmm8, %xmm5
	movdqa	%xmm8, %xmm1
	movdqa	%xmm8, %xmm4
	movdqa	%xmm8, %xmm6
	movdqa	%xmm8, %xmm3
	movdqa	%xmm8, %xmm2
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	0(%r13,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm2
	movdqu	(%r12,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm3
	movdqu	0(%rbp,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm6
	movdqu	(%r9,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm4
	movdqu	(%r10,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm1
	movdqu	(%r11,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm5
	movdqu	(%rbx,%rax), %xmm0
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm7
	movdqu	(%r14,%rax), %xmm0
	subq	$16, %rax
	shufpd	$1, %xmm0, %xmm0
	paddq	%xmm0, %xmm8
	cmpq	%r15, %rax
	jne	.L19
	movdqa	%xmm8, %xmm0
	movq	%rcx, %r9
	psrldq	$8, %xmm0
	orq	$1, %r9
	paddq	%xmm0, %xmm8
	movdqa	%xmm7, %xmm0
	psrldq	$8, %xmm0
	movq	%xmm8, %rax
	paddq	%xmm0, %xmm7
	movdqa	%xmm1, %xmm0
	addq	%rax, %rsi
	psrldq	$8, %xmm0
	movq	%xmm7, %rax
	paddq	%xmm0, %xmm1
	addq	%rax, %rdi
	movq	%xmm1, %rax
	movdqa	%xmm5, %xmm1
	psrldq	$8, %xmm1
	addq	%r8, %rax
	paddq	%xmm1, %xmm5
	movdqa	%xmm6, %xmm1
	movq	%rax, %xmm0
	psrldq	$8, %xmm1
	movq	%xmm5, %rax
	movdqa	%xmm4, %xmm5
	addq	72(%rsp), %rax
	paddq	%xmm6, %xmm1
	psrldq	$8, %xmm5
	movq	%rax, %xmm7
	paddq	%xmm5, %xmm4
	movq	%xmm1, %rax
	addq	56(%rsp), %rax
	movq	%rax, %xmm1
	movq	%xmm4, %rax
	movdqa	%xmm2, %xmm4
	addq	64(%rsp), %rax
	psrldq	$8, %xmm4
	movq	%rax, %xmm6
	punpcklqdq	%xmm7, %xmm0
	paddq	%xmm4, %xmm2
	movdqa	%xmm3, %xmm4
	punpcklqdq	%xmm6, %xmm1
	psrldq	$8, %xmm4
	movq	%xmm2, %rax
	addq	40(%rsp), %rax
	paddq	%xmm4, %xmm3
	movq	%rax, %xmm2
	movq	%xmm3, %rax
	addq	48(%rsp), %rax
	movq	%rax, %xmm6
	movq	%rcx, %rax
	andq	$-2, %rax
	punpcklqdq	%xmm6, %xmm2
	leal	1(%rax), %r8d
	cmpq	%rcx, %rax
	je	.L20
.L18:
	movq	%rdx, %rax
	subq	%r9, %rax
	addq	72160(%rsp,%rax,8), %rdi
	addq	80160(%rsp,%rax,8), %rsi
	movq	24160(%rsp,%rax,8), %xmm3
	movhps	32160(%rsp,%rax,8), %xmm3
	paddq	%xmm3, %xmm2
	movq	40160(%rsp,%rax,8), %xmm3
	movhps	48160(%rsp,%rax,8), %xmm3
	paddq	%xmm3, %xmm1
	movq	56160(%rsp,%rax,8), %xmm3
	movhps	64160(%rsp,%rax,8), %xmm3
	leal	1(%r8), %eax
	cltq
	paddq	%xmm3, %xmm0
	cmpq	%rax, %rcx
	jl	.L20
	subq	%rax, %rdx
	addq	72160(%rsp,%rdx,8), %rdi
	addq	80160(%rsp,%rdx,8), %rsi
	movq	24160(%rsp,%rdx,8), %xmm3
	movhps	32160(%rsp,%rdx,8), %xmm3
	paddq	%xmm3, %xmm2
	movq	40160(%rsp,%rdx,8), %xmm3
	movhps	48160(%rsp,%rdx,8), %xmm3
	paddq	%xmm3, %xmm1
	movq	56160(%rsp,%rdx,8), %xmm3
	movhps	64160(%rsp,%rdx,8), %xmm3
	paddq	%xmm3, %xmm0
.L20:
	movq	%rdi, 144(%rsp)
	movq	%rsi, 152(%rsp)
	movaps	%xmm2, 96(%rsp)
	movaps	%xmm1, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
.L17:
	leaq	96(%rsp), %rdi
	movl	$8, %esi
	call	selectionSort
	movq	152(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	88168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$88184, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	leaq	24160(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	32160(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	40160(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	48160(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	56160(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	64160(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	72160(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	80160(%rsp), %rax
	movq	%rax, 16(%rsp)
	jmp	.L15
.L22:
	movl	$1, %r8d
	movl	$1, %r9d
	jmp	.L18
.L29:
	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 selectionSort(long long A[],long long N){
long long i, j, k, min, temp;
    for (i = 0; i < N - 1; i++) {
        min = A[i];                
        k = i;                        
        for (j = i + 1; j < N; j++) {
            if (A[j] < min) { 
                min = A[j];
                k = j;
            }
        } 
        temp = A[i];
        A[i] = A[k];
        A[k] = temp;
    }
}

int main(){
long long int N,M,x,y,point[8];
long long int  b[1000],d[1000],p[1000],A[1000],B[1000],C[1000],D[1000],E[1000],F[1000],G[1000],H[1000];


scanf("%lld %lld ",&N,&M);

for(int i = 0;i < N; i++){
    scanf("%lld %lld %lld",&b[i],&d[i],&p[i]);
    A[i] = b[i] + d[i] + p[i];
    B[i] = b[i] + d[i] - p[i];
    C[i] = b[i] - d[i] + p[i];
    D[i] = -b[i] + d[i] + p[i];
    E[i] = -b[i] - d[i] + p[i];
    F[i] = -b[i] + d[i] - p[i];
    G[i] = b[i] - d[i] - p[i];
    H[i] = -b[i] - d[i] - p[i];
}
selectionSort(A,N);
selectionSort(B,N);
selectionSort(C,N);
selectionSort(D,N);
selectionSort(E,N);
selectionSort(F,N);
selectionSort(G,N);
selectionSort(H,N);

for(int i=1;i<=M;i++){
point[0]=point[0]+A[N-i];
point[1]=point[1]+B[N-i];
point[2]=point[2]+C[N-i];
point[3]=point[3]+D[N-i];
point[4]=point[4]+E[N-i];
point[5]=point[5]+F[N-i];
point[6]=point[6]+G[N-i];
point[7]=point[7]+H[N-i];
}
selectionSort(point,8);
printf("%lld\n",point[7]);
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>

void selectionSort(long long A[],long long N){
long long i, j, k, min, temp;
    for (i = 0; i < N - 1; i++) {
        min = A[i];                
        k = i;                        
        for (j = i + 1; j < N; j++) {
            if (A[j] < min) { 
                min = A[j];
                k = j;
            }
        } 
        temp = A[i];
        A[i] = A[k];
        A[k] = temp;
    }
}

int main(){
long long int N,M,x,y,point[8];
long long int  b[1000],d[1000],p[1000],A[1000],B[1000],C[1000],D[1000],E[1000],F[1000],G[1000],H[1000];


scanf("%lld %lld ",&N,&M);

for(int i = 0;i < N; i++){
    scanf("%lld %lld %lld",&b[i],&d[i],&p[i]);
    A[i] = b[i] + d[i] + p[i];
    B[i] = b[i] + d[i] - p[i];
    C[i] = b[i] - d[i] + p[i];
    D[i] = -b[i] + d[i] + p[i];
    E[i] = -b[i] - d[i] + p[i];
    F[i] = -b[i] + d[i] - p[i];
    G[i] = b[i] - d[i] - p[i];
    H[i] = -b[i] - d[i] - p[i];
}
selectionSort(A,N);
selectionSort(B,N);
selectionSort(C,N);
selectionSort(D,N);
selectionSort(E,N);
selectionSort(F,N);
selectionSort(G,N);
selectionSort(H,N);

for(int i=1;i<=M;i++){
point[0]=point[0]+A[N-i];
point[1]=point[1]+B[N-i];
point[2]=point[2]+C[N-i];
point[3]=point[3]+D[N-i];
point[4]=point[4]+E[N-i];
point[5]=point[5]+F[N-i];
point[6]=point[6]+G[N-i];
point[7]=point[7]+H[N-i];
}
selectionSort(point,8);
printf("%lld\n",point[7]);
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	selectionSort
	.type	selectionSort, @function
selectionSort:
.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, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	$0, -40(%rbp)
	jmp	.L2
.L6:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	jmp	.L3
.L5:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L4
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
.L4:
	addq	$1, -32(%rbp)
.L3:
	movq	-32(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jl	.L5
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	-40(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rdx)
	addq	$1, -40(%rbp)
.L2:
	movq	-64(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -40(%rbp)
	jl	.L6
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	selectionSort, .-selectionSort
	.section	.rodata
.LC0:
	.string	"%lld %lld "
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld\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
	leaq	-86016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2096, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-88088(%rbp), %rdx
	leaq	-88096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -88104(%rbp)
	jmp	.L8
.L9:
	leaq	-72016(%rbp), %rdx
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-80016(%rbp), %rdx
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-88016(%rbp), %rsi
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -64016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -56016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -48016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -40016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	negq	%rax
	movq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -32016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -24016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -16016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	negq	%rax
	movq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -8016(%rbp,%rax,8)
	addl	$1, -88104(%rbp)
.L8:
	movl	-88104(%rbp), %eax
	movslq	%eax, %rdx
	movq	-88096(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-88096(%rbp), %rdx
	leaq	-64016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-56016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-48016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-40016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-32016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-24016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-16016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-8016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movl	$1, -88100(%rbp)
	jmp	.L10
.L11:
	movq	-88080(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-64016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88080(%rbp)
	movq	-88072(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-56016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88072(%rbp)
	movq	-88064(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-48016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88064(%rbp)
	movq	-88056(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-40016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88056(%rbp)
	movq	-88048(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-32016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88048(%rbp)
	movq	-88040(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-24016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88040(%rbp)
	movq	-88032(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-16016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88032(%rbp)
	movq	-88024(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-8016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88024(%rbp)
	addl	$1, -88100(%rbp)
.L10:
	movl	-88100(%rbp), %eax
	movslq	%eax, %rdx
	movq	-88088(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L11
	leaq	-88080(%rbp), %rax
	movl	$8, %esi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88024(%rbp), %rax
	movq	%rax, %rsi
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	selectionSort
	.type	selectionSort, @function
selectionSort:
.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, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	$0, -40(%rbp)
	jmp	.L2
.L6:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	jmp	.L3
.L5:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L4
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
.L4:
	addq	$1, -32(%rbp)
.L3:
	movq	-32(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jl	.L5
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	-40(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rdx)
	addq	$1, -40(%rbp)
.L2:
	movq	-64(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -40(%rbp)
	jl	.L6
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	selectionSort, .-selectionSort
	.section	.rodata
.LC0:
	.string	"%lld %lld "
.LC1:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%lld\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
	leaq	-86016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2096, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-88088(%rbp), %rdx
	leaq	-88096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -88104(%rbp)
	jmp	.L8
.L9:
	leaq	-72016(%rbp), %rdx
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-80016(%rbp), %rdx
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-88016(%rbp), %rsi
	movl	-88104(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -64016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -56016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -48016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -40016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	negq	%rax
	movq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -32016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -24016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -16016(%rbp,%rax,8)
	movl	-88104(%rbp), %eax
	cltq
	movq	-88016(%rbp,%rax,8), %rax
	negq	%rax
	movq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-80016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	-72016(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movl	-88104(%rbp), %eax
	cltq
	movq	%rdx, -8016(%rbp,%rax,8)
	addl	$1, -88104(%rbp)
.L8:
	movl	-88104(%rbp), %eax
	movslq	%eax, %rdx
	movq	-88096(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-88096(%rbp), %rdx
	leaq	-64016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-56016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-48016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-40016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-32016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-24016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-16016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88096(%rbp), %rdx
	leaq	-8016(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	selectionSort
	movl	$1, -88100(%rbp)
	jmp	.L10
.L11:
	movq	-88080(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-64016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88080(%rbp)
	movq	-88072(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-56016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88072(%rbp)
	movq	-88064(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-48016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88064(%rbp)
	movq	-88056(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-40016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88056(%rbp)
	movq	-88048(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-32016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88048(%rbp)
	movq	-88040(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-24016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88040(%rbp)
	movq	-88032(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-16016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88032(%rbp)
	movq	-88024(%rbp), %rcx
	movq	-88096(%rbp), %rax
	movl	-88100(%rbp), %edx
	movslq	%edx, %rdx
	subq	%rdx, %rax
	movq	-8016(%rbp,%rax,8), %rax
	addq	%rcx, %rax
	movq	%rax, -88024(%rbp)
	addl	$1, -88100(%rbp)
.L10:
	movl	-88100(%rbp), %eax
	movslq	%eax, %rdx
	movq	-88088(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L11
	leaq	-88080(%rbp), %rax
	movl	$8, %esi
	movq	%rax, %rdi
	call	selectionSort
	movq	-88024(%rbp), %rax
	movq	%rax, %rsi
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
