Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#define ll				long long
#define MOD				1000000007

#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

typedef struct den {
	int sw[10];
	int scnt;
	int p;
} den;

int jcnt;
int jew[50];
int ocnt;

FILE *in, *ans;
int tno;

int out(const char *s) {
#ifdef TEST
	char buf[8192];
	fgets(buf, sizeof(buf), ans);
	if (strcmp(buf, s)) {
		printf("err\n");
	}
#else
	printf(s);
#endif
	return 0;
}

int outi(int i) {
	char s[128];
	sprintf(s, "%d\n", i);
	out(s);
	return 0;
}

int outd(double d) {
	char s[128];
	sprintf(s, "%.10lf\n", d);
	out(s);
	return 0;
}

int outll(ll l) {
	char s[128];
	sprintf(s, "%lld\n", l);
	out(s);
	return 0;
}

int geti() {
	int i;
	fscanf(in, "%d", &i);
	return i;
}

ll getll() {
	ll l;
	fscanf(in, "%lld", &l);
	return l;
}

int getstr(char *s) {
	fscanf(in, "%s", s);
	return 0;
}

int sortfnci(const void *v1, const void *v2) {
	int *i1 = (int *)v1;
	int *i2 = (int *)v2;

	if (*i1 > *i2) {
		return 1;
	}
	else if (*i1 < *i2) {
		return -1;
	}

	return 0;
}

int fnc() {
	int i, j, k;

	jcnt = geti();
	ocnt = geti();

	for (i = 0; i < jcnt; i++) {
		jew[i] = geti();
	}

	int max = 0;
	int lcnt;
	if (jcnt < ocnt) {
		lcnt = jcnt;
	}
	else {
		lcnt = ocnt;
	}
	for (i = 0; i <= lcnt; i++) {
		int jcnt2 = jcnt - i;
		int ocnt2 = ocnt - i;
		int rcnt;
		if (jcnt2 < ocnt2) {
			rcnt = jcnt2;
		}
		else {
			rcnt = ocnt2;
		}
		for (j = 0; j <= rcnt; j++) {
			int jcnt3 = i + j;
			if (jcnt3 == 0) {
				continue;
			}
			int jew2[50];
			if (i > 0) {
				memcpy(jew2, jew, sizeof(int) * i);
			}
			if (j > 0) {
				memcpy(&jew2[i], &jew[jcnt - j], sizeof(int) * j);
			}
			qsort(jew2, jcnt3, sizeof(int), sortfnci);

			int ocnt3 = ocnt2 - j;
			if (ocnt3 > jcnt3) {
				ocnt3 = jcnt3;
			}
			for (k = 0; k < ocnt3; k++) {
				if (jew2[k] < 0) {
					jew2[k] = 0;
				}
				else {
					break;
				}
			}
			int sum = 0;
			for (k = 0; k < jcnt3; k++) {
				sum += jew2[k];
			}
			if (max < sum) {
				max = sum;
			}
		}
	}

	outi(max);

	return 0;
}

int main() {

#ifdef TEST
	for (tno = TEST_SNO; tno <= TEST_ENO; tno++) {
		char str[128];
		sprintf(str, "test%d.txt", tno);
		in = fopen(str, "r");
		sprintf(str, "ans%d.txt", tno);
		ans = fopen(str, "r");
		fnc();
		fclose(in);
		fclose(ans);
	}
	printf("end\n");
#else
	in = stdin;
	fnc();
#endif

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	jcnt
	.bss
	.align 4
	.type	jcnt, @object
	.size	jcnt, 4
jcnt:
	.zero	4
	.globl	jew
	.align 32
	.type	jew, @object
	.size	jew, 200
jew:
	.zero	200
	.globl	ocnt
	.align 4
	.type	ocnt, @object
	.size	ocnt, 4
ocnt:
	.zero	4
	.globl	in
	.align 8
	.type	in, @object
	.size	in, 8
in:
	.zero	8
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	tno
	.align 4
	.type	tno, @object
	.size	tno, 4
tno:
	.zero	4
	.text
	.globl	out
	.type	out, @function
out:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	out, .-out
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	outi
	.type	outi, @function
outi:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movl	%edi, -148(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-148(%rbp), %edx
	leaq	-144(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	outi, .-outi
	.section	.rodata
.LC1:
	.string	"%.10lf\n"
	.text
	.globl	outd
	.type	outd, @function
outd:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movsd	%xmm0, -152(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-152(%rbp), %rdx
	leaq	-144(%rbp), %rax
	movq	%rdx, %xmm0
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	outd, .-outd
	.section	.rodata
.LC2:
	.string	"%lld\n"
	.text
	.globl	outll
	.type	outll, @function
outll:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%rdi, -152(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-152(%rbp), %rdx
	leaq	-144(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	outll, .-outll
	.section	.rodata
.LC3:
	.string	"%d"
	.text
	.globl	geti
	.type	geti, @function
geti:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	in(%rip), %rax
	leaq	-12(%rbp), %rdx
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	geti, .-geti
	.section	.rodata
.LC4:
	.string	"%lld"
	.text
	.globl	getll
	.type	getll, @function
getll:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	in(%rip), %rax
	leaq	-16(%rbp), %rdx
	leaq	.LC4(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movq	-16(%rbp), %rax
	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
.LFE11:
	.size	getll, .-getll
	.section	.rodata
.LC5:
	.string	"%s"
	.text
	.globl	getstr
	.type	getstr, @function
getstr:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	in(%rip), %rax
	movq	-8(%rbp), %rdx
	leaq	.LC5(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	getstr, .-getstr
	.globl	sortfnci
	.type	sortfnci, @function
sortfnci:
.LFB13:
	.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
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L21
	movl	$1, %eax
	jmp	.L22
.L21:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L23
	movl	$-1, %eax
	jmp	.L22
.L23:
	movl	$0, %eax
.L22:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	sortfnci, .-sortfnci
	.globl	fnc
	.type	fnc, @function
fnc:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, %eax
	call	geti
	movl	%eax, jcnt(%rip)
	movl	$0, %eax
	call	geti
	movl	%eax, ocnt(%rip)
	movl	$0, -252(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	geti
	movl	-252(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	jew(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -252(%rbp)
.L25:
	movl	jcnt(%rip), %eax
	cmpl	%eax, -252(%rbp)
	jl	.L26
	movl	$0, -240(%rbp)
	movl	jcnt(%rip), %edx
	movl	ocnt(%rip), %eax
	cmpl	%eax, %edx
	jge	.L27
	movl	jcnt(%rip), %eax
	movl	%eax, -236(%rbp)
	jmp	.L28
.L27:
	movl	ocnt(%rip), %eax
	movl	%eax, -236(%rbp)
.L28:
	movl	$0, -252(%rbp)
	jmp	.L29
.L47:
	movl	jcnt(%rip), %eax
	subl	-252(%rbp), %eax
	movl	%eax, -220(%rbp)
	movl	ocnt(%rip), %eax
	subl	-252(%rbp), %eax
	movl	%eax, -216(%rbp)
	movl	-220(%rbp), %eax
	cmpl	-216(%rbp), %eax
	jge	.L30
	movl	-220(%rbp), %eax
	movl	%eax, -232(%rbp)
	jmp	.L31
.L30:
	movl	-216(%rbp), %eax
	movl	%eax, -232(%rbp)
.L31:
	movl	$0, -248(%rbp)
	jmp	.L32
.L46:
	movl	-252(%rbp), %edx
	movl	-248(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -212(%rbp)
	cmpl	$0, -212(%rbp)
	je	.L50
	cmpl	$0, -252(%rbp)
	jle	.L35
	movl	-252(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-208(%rbp), %rax
	leaq	jew(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
.L35:
	cmpl	$0, -248(%rbp)
	jle	.L36
	movl	-248(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	jcnt(%rip), %eax
	subl	-248(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	jew(%rip), %rax
	addq	%rax, %rcx
	leaq	-208(%rbp), %rsi
	movl	-252(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
.L36:
	movl	-212(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-208(%rbp), %rax
	leaq	sortfnci(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-216(%rbp), %eax
	subl	-248(%rbp), %eax
	movl	%eax, -228(%rbp)
	movl	-228(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jle	.L37
	movl	-212(%rbp), %eax
	movl	%eax, -228(%rbp)
.L37:
	movl	$0, -244(%rbp)
	jmp	.L38
.L42:
	movl	-244(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jns	.L51
	movl	-244(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	addl	$1, -244(%rbp)
.L38:
	movl	-244(%rbp), %eax
	cmpl	-228(%rbp), %eax
	jl	.L42
	jmp	.L41
.L51:
	nop
.L41:
	movl	$0, -224(%rbp)
	movl	$0, -244(%rbp)
	jmp	.L43
.L44:
	movl	-244(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	addl	%eax, -224(%rbp)
	addl	$1, -244(%rbp)
.L43:
	movl	-244(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jl	.L44
	movl	-240(%rbp), %eax
	cmpl	-224(%rbp), %eax
	jge	.L34
	movl	-224(%rbp), %eax
	movl	%eax, -240(%rbp)
	jmp	.L34
.L50:
	nop
.L34:
	addl	$1, -248(%rbp)
.L32:
	movl	-248(%rbp), %eax
	cmpl	-232(%rbp), %eax
	jle	.L46
	addl	$1, -252(%rbp)
.L29:
	movl	-252(%rbp), %eax
	cmpl	-236(%rbp), %eax
	jle	.L47
	movl	-240(%rbp), %eax
	movl	%eax, %edi
	call	outi
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	fnc, .-fnc
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	stdin(%rip), %rax
	movq	%rax, in(%rip)
	movl	$0, %eax
	call	fnc
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	sortfnci
	.type	sortfnci, @function
sortfnci:
.LFB58:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE58:
	.size	sortfnci, .-sortfnci
	.p2align 4
	.globl	out
	.type	out, @function
out:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	out, .-out
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	outi
	.type	outi, @function
outi:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %r8d
	movl	$1, %esi
	leaq	.LC0(%rip), %rcx
	movl	$128, %edx
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	outi, .-outi
	.section	.rodata.str1.1
.LC1:
	.string	"%.10lf\n"
	.text
	.p2align 4
	.globl	outd
	.type	outd, @function
outd:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$1, %esi
	movl	$128, %edx
	leaq	.LC1(%rip), %rcx
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movl	$1, %eax
	movq	%rbp, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	outd, .-outd
	.section	.rodata.str1.1
.LC2:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	outll
	.type	outll, @function
outll:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %r8
	movl	$1, %esi
	leaq	.LC2(%rip), %rcx
	movl	$128, %edx
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	outll, .-outll
	.section	.rodata.str1.1
.LC3:
	.string	"%d"
	.text
	.p2align 4
	.globl	geti
	.type	geti, @function
geti:
.LFB55:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	in(%rip), %rdi
	leaq	.LC3(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	call	__isoc99_fscanf@PLT
	movl	4(%rsp), %eax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L22
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	geti, .-geti
	.section	.rodata.str1.1
.LC4:
	.string	"%lld"
	.text
	.p2align 4
	.globl	getll
	.type	getll, @function
getll:
.LFB56:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	in(%rip), %rdi
	leaq	.LC4(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rdx
	call	__isoc99_fscanf@PLT
	movq	(%rsp), %rax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L26
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE56:
	.size	getll, .-getll
	.section	.rodata.str1.1
.LC5:
	.string	"%s"
	.text
	.p2align 4
	.globl	getstr
	.type	getstr, @function
getstr:
.LFB57:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	movq	in(%rip), %rdi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rsi
	call	__isoc99_fscanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE57:
	.size	getstr, .-getstr
	.p2align 4
	.globl	fnc
	.type	fnc, @function
fnc:
.LFB59:
	.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
	leaq	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	subq	$424, %rsp
	.cfi_def_cfa_offset 480
	movq	in(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %r12
	movq	%r12, %rdx
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	in(%rip), %rdi
	movl	%eax, jcnt(%rip)
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %edx
	movl	jcnt(%rip), %eax
	movl	%edx, ocnt(%rip)
	testl	%eax, %eax
	jle	.L30
	xorl	%ebx, %ebx
	leaq	jew(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L31:
	movq	in(%rip), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %eax
	movl	%eax, 0(%r13,%rbx,4)
	movl	jcnt(%rip), %eax
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L31
	movl	ocnt(%rip), %edx
.L30:
	cmpl	%eax, %edx
	movl	%eax, %esi
	cmovle	%edx, %esi
	movl	%esi, 44(%rsp)
	testl	%esi, %esi
	js	.L48
	leaq	68(%rsp), %rsi
	movl	$0, 8(%rsp)
	xorl	%r13d, %r13d
	leaq	64(%rsp), %r12
	movq	%rsi, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L46:
	movl	%edx, %ecx
	movl	%eax, %ebx
	subl	%r13d, %ecx
	subl	%r13d, %ebx
	cmpl	%edx, %eax
	cmovge	%ecx, %ebx
	movl	%ecx, 12(%rsp)
	testl	%ebx, %ebx
	js	.L34
	leaq	0(,%r13,4), %rax
	movl	%ebx, %r14d
	xorl	%r15d, %r15d
	movl	%r13d, %ebx
	movq	%rax, 32(%rsp)
	addq	%r12, %rax
	movq	%rax, 24(%rsp)
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L35:
	addq	$1, %r15
	addl	$1, %ebx
	cmpl	%r15d, %r14d
	jl	.L34
.L45:
	movl	%r15d, %ebp
	movl	%r15d, %r10d
	testl	%ebx, %ebx
	je	.L35
	testq	%r13, %r13
	je	.L36
	movq	32(%rsp), %rdx
	movl	$200, %ecx
	movq	%r12, %rdi
	movl	%r15d, 40(%rsp)
	leaq	jew(%rip), %rsi
	call	__memcpy_chk@PLT
	movl	40(%rsp), %r10d
.L36:
	testq	%r15, %r15
	je	.L37
	movl	jcnt(%rip), %eax
	leaq	jew(%rip), %rsi
	movq	24(%rsp), %rdi
	leaq	0(,%r15,4), %rdx
	subl	%r10d, %eax
	cltq
	leaq	(%rsi,%rax,4), %rsi
	call	memcpy@PLT
.L37:
	leaq	(%r15,%r13), %rsi
	leaq	sortfnci(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	subl	%ebp, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	testl	%eax, %eax
	jle	.L42
	movq	16(%rsp), %rsi
	subl	$1, %eax
	leaq	(%rsi,%rax,4), %rdx
	movq	%r12, %rax
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L95:
	movl	$0, (%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L42
.L43:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	.L95
.L42:
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L50
	movl	%ebx, %eax
	movdqa	64(%rsp), %xmm0
	shrl	$2, %eax
	cmpl	$1, %eax
	je	.L40
	paddd	80(%rsp), %xmm0
	cmpl	$2, %eax
	je	.L40
	paddd	96(%rsp), %xmm0
	cmpl	$3, %eax
	je	.L40
	paddd	112(%rsp), %xmm0
	cmpl	$4, %eax
	je	.L40
	paddd	128(%rsp), %xmm0
	cmpl	$5, %eax
	je	.L40
	paddd	144(%rsp), %xmm0
	cmpl	$6, %eax
	je	.L40
	paddd	160(%rsp), %xmm0
	cmpl	$7, %eax
	je	.L40
	paddd	176(%rsp), %xmm0
	cmpl	$8, %eax
	je	.L40
	paddd	192(%rsp), %xmm0
	cmpl	$9, %eax
	je	.L40
	paddd	208(%rsp), %xmm0
	cmpl	$10, %eax
	je	.L40
	paddd	224(%rsp), %xmm0
	cmpl	$11, %eax
	je	.L40
	paddd	240(%rsp), %xmm0
	.p2align 4,,10
	.p2align 3
.L40:
	movdqa	%xmm0, %xmm1
	movl	%ebx, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %bl
	je	.L44
.L39:
	movslq	%edx, %rcx
	addl	64(%rsp,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L44
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	64(%rsp,%rcx,4), %eax
	cmpl	%edx, %ebx
	jle	.L44
	movslq	%edx, %rdx
	addl	64(%rsp,%rdx,4), %eax
.L44:
	movl	8(%rsp), %edi
	cmpl	%eax, %edi
	cmovge	%edi, %eax
	addq	$1, %r15
	addl	$1, %ebx
	movl	%eax, 8(%rsp)
	cmpl	%r15d, %r14d
	jge	.L45
.L34:
	addq	$1, %r13
	cmpl	%r13d, 44(%rsp)
	jl	.L32
	movl	jcnt(%rip), %eax
	movl	ocnt(%rip), %edx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L50:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L39
.L48:
	movl	$0, 8(%rsp)
.L32:
	leaq	272(%rsp), %rbp
	movl	8(%rsp), %r8d
	movl	$1, %esi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	leaq	.LC0(%rip), %rcx
	movl	$128, %edx
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$424, %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
.L96:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	fnc, .-fnc
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	stdin(%rip), %rax
	movq	%rax, in(%rip)
	xorl	%eax, %eax
	call	fnc
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.globl	tno
	.bss
	.align 4
	.type	tno, @object
	.size	tno, 4
tno:
	.zero	4
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	in
	.align 8
	.type	in, @object
	.size	in, 8
in:
	.zero	8
	.globl	ocnt
	.align 4
	.type	ocnt, @object
	.size	ocnt, 4
ocnt:
	.zero	4
	.globl	jew
	.align 32
	.type	jew, @object
	.size	jew, 200
jew:
	.zero	200
	.globl	jcnt
	.align 4
	.type	jcnt, @object
	.size	jcnt, 4
jcnt:
	.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	sortfnci
	.type	sortfnci, @function
sortfnci:
.LFB58:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE58:
	.size	sortfnci, .-sortfnci
	.p2align 4
	.globl	out
	.type	out, @function
out:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	out, .-out
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	outi
	.type	outi, @function
outi:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %r8d
	movl	$1, %esi
	leaq	.LC0(%rip), %rcx
	movl	$128, %edx
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	outi, .-outi
	.section	.rodata.str1.1
.LC1:
	.string	"%.10lf\n"
	.text
	.p2align 4
	.globl	outd
	.type	outd, @function
outd:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$1, %esi
	movl	$128, %edx
	leaq	.LC1(%rip), %rcx
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movl	$1, %eax
	movq	%rbp, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	outd, .-outd
	.section	.rodata.str1.1
.LC2:
	.string	"%lld\n"
	.text
	.p2align 4
	.globl	outll
	.type	outll, @function
outll:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %r8
	movl	$1, %esi
	leaq	.LC2(%rip), %rcx
	movl	$128, %edx
	subq	$144, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	outll, .-outll
	.section	.rodata.str1.1
.LC3:
	.string	"%d"
	.text
	.p2align 4
	.globl	geti
	.type	geti, @function
geti:
.LFB55:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	in(%rip), %rdi
	leaq	.LC3(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	call	__isoc99_fscanf@PLT
	movl	4(%rsp), %eax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L22
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	geti, .-geti
	.section	.rodata.str1.1
.LC4:
	.string	"%lld"
	.text
	.p2align 4
	.globl	getll
	.type	getll, @function
getll:
.LFB56:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	in(%rip), %rdi
	leaq	.LC4(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rdx
	call	__isoc99_fscanf@PLT
	movq	(%rsp), %rax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L26
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE56:
	.size	getll, .-getll
	.section	.rodata.str1.1
.LC5:
	.string	"%s"
	.text
	.p2align 4
	.globl	getstr
	.type	getstr, @function
getstr:
.LFB57:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	movq	in(%rip), %rdi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rsi
	call	__isoc99_fscanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE57:
	.size	getstr, .-getstr
	.p2align 4
	.globl	fnc
	.type	fnc, @function
fnc:
.LFB59:
	.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
	leaq	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	subq	$424, %rsp
	.cfi_def_cfa_offset 480
	movq	in(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %r12
	movq	%r12, %rdx
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	in(%rip), %rdi
	movl	%eax, jcnt(%rip)
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %edx
	movl	jcnt(%rip), %eax
	movl	%edx, ocnt(%rip)
	testl	%eax, %eax
	jle	.L30
	xorl	%ebx, %ebx
	leaq	jew(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L31:
	movq	in(%rip), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	60(%rsp), %eax
	movl	%eax, 0(%r13,%rbx,4)
	movl	jcnt(%rip), %eax
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L31
	movl	ocnt(%rip), %edx
.L30:
	cmpl	%eax, %edx
	movl	%eax, %esi
	cmovle	%edx, %esi
	movl	%esi, 44(%rsp)
	testl	%esi, %esi
	js	.L48
	leaq	68(%rsp), %rsi
	movl	$0, 8(%rsp)
	xorl	%r13d, %r13d
	leaq	64(%rsp), %r12
	movq	%rsi, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L46:
	movl	%edx, %ecx
	movl	%eax, %ebx
	subl	%r13d, %ecx
	subl	%r13d, %ebx
	cmpl	%edx, %eax
	cmovge	%ecx, %ebx
	movl	%ecx, 12(%rsp)
	testl	%ebx, %ebx
	js	.L34
	leaq	0(,%r13,4), %rax
	movl	%ebx, %r14d
	xorl	%r15d, %r15d
	movl	%r13d, %ebx
	movq	%rax, 32(%rsp)
	addq	%r12, %rax
	movq	%rax, 24(%rsp)
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L35:
	addq	$1, %r15
	addl	$1, %ebx
	cmpl	%r15d, %r14d
	jl	.L34
.L45:
	movl	%r15d, %ebp
	movl	%r15d, %r10d
	testl	%ebx, %ebx
	je	.L35
	testq	%r13, %r13
	je	.L36
	movq	32(%rsp), %rdx
	movl	$200, %ecx
	movq	%r12, %rdi
	movl	%r15d, 40(%rsp)
	leaq	jew(%rip), %rsi
	call	__memcpy_chk@PLT
	movl	40(%rsp), %r10d
.L36:
	testq	%r15, %r15
	je	.L37
	movl	jcnt(%rip), %eax
	leaq	jew(%rip), %rsi
	movq	24(%rsp), %rdi
	leaq	0(,%r15,4), %rdx
	subl	%r10d, %eax
	cltq
	leaq	(%rsi,%rax,4), %rsi
	call	memcpy@PLT
.L37:
	leaq	(%r15,%r13), %rsi
	leaq	sortfnci(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	subl	%ebp, %eax
	cmpl	%ebx, %eax
	cmovg	%ebx, %eax
	testl	%eax, %eax
	jle	.L42
	movq	16(%rsp), %rsi
	subl	$1, %eax
	leaq	(%rsi,%rax,4), %rdx
	movq	%r12, %rax
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L95:
	movl	$0, (%rax)
	addq	$4, %rax
	cmpq	%rdx, %rax
	je	.L42
.L43:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	.L95
.L42:
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L50
	movl	%ebx, %eax
	movdqa	64(%rsp), %xmm0
	shrl	$2, %eax
	cmpl	$1, %eax
	je	.L40
	paddd	80(%rsp), %xmm0
	cmpl	$2, %eax
	je	.L40
	paddd	96(%rsp), %xmm0
	cmpl	$3, %eax
	je	.L40
	paddd	112(%rsp), %xmm0
	cmpl	$4, %eax
	je	.L40
	paddd	128(%rsp), %xmm0
	cmpl	$5, %eax
	je	.L40
	paddd	144(%rsp), %xmm0
	cmpl	$6, %eax
	je	.L40
	paddd	160(%rsp), %xmm0
	cmpl	$7, %eax
	je	.L40
	paddd	176(%rsp), %xmm0
	cmpl	$8, %eax
	je	.L40
	paddd	192(%rsp), %xmm0
	cmpl	$9, %eax
	je	.L40
	paddd	208(%rsp), %xmm0
	cmpl	$10, %eax
	je	.L40
	paddd	224(%rsp), %xmm0
	cmpl	$11, %eax
	je	.L40
	paddd	240(%rsp), %xmm0
	.p2align 4,,10
	.p2align 3
.L40:
	movdqa	%xmm0, %xmm1
	movl	%ebx, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %bl
	je	.L44
.L39:
	movslq	%edx, %rcx
	addl	64(%rsp,%rcx,4), %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %ebx
	jle	.L44
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	64(%rsp,%rcx,4), %eax
	cmpl	%edx, %ebx
	jle	.L44
	movslq	%edx, %rdx
	addl	64(%rsp,%rdx,4), %eax
.L44:
	movl	8(%rsp), %edi
	cmpl	%eax, %edi
	cmovge	%edi, %eax
	addq	$1, %r15
	addl	$1, %ebx
	movl	%eax, 8(%rsp)
	cmpl	%r15d, %r14d
	jge	.L45
.L34:
	addq	$1, %r13
	cmpl	%r13d, 44(%rsp)
	jl	.L32
	movl	jcnt(%rip), %eax
	movl	ocnt(%rip), %edx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L50:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L39
.L48:
	movl	$0, 8(%rsp)
.L32:
	leaq	272(%rsp), %rbp
	movl	8(%rsp), %r8d
	movl	$1, %esi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	leaq	.LC0(%rip), %rcx
	movl	$128, %edx
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L96
	addq	$424, %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
.L96:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	fnc, .-fnc
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	stdin(%rip), %rax
	movq	%rax, in(%rip)
	xorl	%eax, %eax
	call	fnc
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.globl	tno
	.bss
	.align 4
	.type	tno, @object
	.size	tno, 4
tno:
	.zero	4
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	in
	.align 8
	.type	in, @object
	.size	in, 8
in:
	.zero	8
	.globl	ocnt
	.align 4
	.type	ocnt, @object
	.size	ocnt, 4
ocnt:
	.zero	4
	.globl	jew
	.align 32
	.type	jew, @object
	.size	jew, 200
jew:
	.zero	200
	.globl	jcnt
	.align 4
	.type	jcnt, @object
	.size	jcnt, 4
jcnt:
	.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:


#define ll				long long
#define MOD				1000000007

#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

typedef struct den {
	int sw[10];
	int scnt;
	int p;
} den;

int jcnt;
int jew[50];
int ocnt;

FILE *in, *ans;
int tno;

int out(const char *s) {
#ifdef TEST
	char buf[8192];
	fgets(buf, sizeof(buf), ans);
	if (strcmp(buf, s)) {
		printf("err\n");
	}
#else
	printf(s);
#endif
	return 0;
}

int outi(int i) {
	char s[128];
	sprintf(s, "%d\n", i);
	out(s);
	return 0;
}

int outd(double d) {
	char s[128];
	sprintf(s, "%.10lf\n", d);
	out(s);
	return 0;
}

int outll(ll l) {
	char s[128];
	sprintf(s, "%lld\n", l);
	out(s);
	return 0;
}

int geti() {
	int i;
	fscanf(in, "%d", &i);
	return i;
}

ll getll() {
	ll l;
	fscanf(in, "%lld", &l);
	return l;
}

int getstr(char *s) {
	fscanf(in, "%s", s);
	return 0;
}

int sortfnci(const void *v1, const void *v2) {
	int *i1 = (int *)v1;
	int *i2 = (int *)v2;

	if (*i1 > *i2) {
		return 1;
	}
	else if (*i1 < *i2) {
		return -1;
	}

	return 0;
}

int fnc() {
	int i, j, k;

	jcnt = geti();
	ocnt = geti();

	for (i = 0; i < jcnt; i++) {
		jew[i] = geti();
	}

	int max = 0;
	int lcnt;
	if (jcnt < ocnt) {
		lcnt = jcnt;
	}
	else {
		lcnt = ocnt;
	}
	for (i = 0; i <= lcnt; i++) {
		int jcnt2 = jcnt - i;
		int ocnt2 = ocnt - i;
		int rcnt;
		if (jcnt2 < ocnt2) {
			rcnt = jcnt2;
		}
		else {
			rcnt = ocnt2;
		}
		for (j = 0; j <= rcnt; j++) {
			int jcnt3 = i + j;
			if (jcnt3 == 0) {
				continue;
			}
			int jew2[50];
			if (i > 0) {
				memcpy(jew2, jew, sizeof(int) * i);
			}
			if (j > 0) {
				memcpy(&jew2[i], &jew[jcnt - j], sizeof(int) * j);
			}
			qsort(jew2, jcnt3, sizeof(int), sortfnci);

			int ocnt3 = ocnt2 - j;
			if (ocnt3 > jcnt3) {
				ocnt3 = jcnt3;
			}
			for (k = 0; k < ocnt3; k++) {
				if (jew2[k] < 0) {
					jew2[k] = 0;
				}
				else {
					break;
				}
			}
			int sum = 0;
			for (k = 0; k < jcnt3; k++) {
				sum += jew2[k];
			}
			if (max < sum) {
				max = sum;
			}
		}
	}

	outi(max);

	return 0;
}

int main() {

#ifdef TEST
	for (tno = TEST_SNO; tno <= TEST_ENO; tno++) {
		char str[128];
		sprintf(str, "test%d.txt", tno);
		in = fopen(str, "r");
		sprintf(str, "ans%d.txt", tno);
		ans = fopen(str, "r");
		fnc();
		fclose(in);
		fclose(ans);
	}
	printf("end\n");
#else
	in = stdin;
	fnc();
#endif

	return 0;
}

6 4
-10 8 2 0 2 6
 6 4
-1 -100 50 -2 -5 -3
 6 3
-6 -100 50 -2 -9 -3
 6 4
-10 3 2 0 2 6
 6 4
-1 -100 78 -2 -5 -3
 6 4
-10 3 2 0 2 12
 6 4
-10 3 3 0 2 12
 6 7
-1 -100 78 0 -5 -3
 6 4
-15 3 0 0 2 12
 6 7
-1 -100 54 0 -1 -3

14
 49
 0
 10
 77
 16
 17
 78
 15
 54

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#define ll				long long
#define MOD				1000000007

#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

typedef struct den {
	int sw[10];
	int scnt;
	int p;
} den;

int jcnt;
int jew[50];
int ocnt;

FILE *in, *ans;
int tno;

int out(const char *s) {
#ifdef TEST
	char buf[8192];
	fgets(buf, sizeof(buf), ans);
	if (strcmp(buf, s)) {
		printf("err\n");
	}
#else
	printf(s);
#endif
	return 0;
}

int outi(int i) {
	char s[128];
	sprintf(s, "%d\n", i);
	out(s);
	return 0;
}

int outd(double d) {
	char s[128];
	sprintf(s, "%.10lf\n", d);
	out(s);
	return 0;
}

int outll(ll l) {
	char s[128];
	sprintf(s, "%lld\n", l);
	out(s);
	return 0;
}

int geti() {
	int i;
	fscanf(in, "%d", &i);
	return i;
}

ll getll() {
	ll l;
	fscanf(in, "%lld", &l);
	return l;
}

int getstr(char *s) {
	fscanf(in, "%s", s);
	return 0;
}

int sortfnci(const void *v1, const void *v2) {
	int *i1 = (int *)v1;
	int *i2 = (int *)v2;

	if (*i1 > *i2) {
		return 1;
	}
	else if (*i1 < *i2) {
		return -1;
	}

	return 0;
}

int fnc() {
	int i, j, k;

	jcnt = geti();
	ocnt = geti();

	for (i = 0; i < jcnt; i++) {
		jew[i] = geti();
	}

	int max = 0;
	int lcnt;
	if (jcnt < ocnt) {
		lcnt = jcnt;
	}
	else {
		lcnt = ocnt;
	}
	for (i = 0; i <= lcnt; i++) {
		int jcnt2 = jcnt - i;
		int ocnt2 = ocnt - i;
		int rcnt;
		if (jcnt2 < ocnt2) {
			rcnt = jcnt2;
		}
		else {
			rcnt = ocnt2;
		}
		for (j = 0; j <= rcnt; j++) {
			int jcnt3 = i + j;
			if (jcnt3 == 0) {
				continue;
			}
			int jew2[50];
			if (i > 0) {
				memcpy(jew2, jew, sizeof(int) * i);
			}
			if (j > 0) {
				memcpy(&jew2[i], &jew[jcnt - j], sizeof(int) * j);
			}
			qsort(jew2, jcnt3, sizeof(int), sortfnci);

			int ocnt3 = ocnt2 - j;
			if (ocnt3 > jcnt3) {
				ocnt3 = jcnt3;
			}
			for (k = 0; k < ocnt3; k++) {
				if (jew2[k] < 0) {
					jew2[k] = 0;
				}
				else {
					break;
				}
			}
			int sum = 0;
			for (k = 0; k < jcnt3; k++) {
				sum += jew2[k];
			}
			if (max < sum) {
				max = sum;
			}
		}
	}

	outi(max);

	return 0;
}

int main() {

#ifdef TEST
	for (tno = TEST_SNO; tno <= TEST_ENO; tno++) {
		char str[128];
		sprintf(str, "test%d.txt", tno);
		in = fopen(str, "r");
		sprintf(str, "ans%d.txt", tno);
		ans = fopen(str, "r");
		fnc();
		fclose(in);
		fclose(ans);
	}
	printf("end\n");
#else
	in = stdin;
	fnc();
#endif

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	jcnt
	.bss
	.align 4
	.type	jcnt, @object
	.size	jcnt, 4
jcnt:
	.zero	4
	.globl	jew
	.align 32
	.type	jew, @object
	.size	jew, 200
jew:
	.zero	200
	.globl	ocnt
	.align 4
	.type	ocnt, @object
	.size	ocnt, 4
ocnt:
	.zero	4
	.globl	in
	.align 8
	.type	in, @object
	.size	in, 8
in:
	.zero	8
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	tno
	.align 4
	.type	tno, @object
	.size	tno, 4
tno:
	.zero	4
	.text
	.globl	out
	.type	out, @function
out:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	out, .-out
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	outi
	.type	outi, @function
outi:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movl	%edi, -148(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-148(%rbp), %edx
	leaq	-144(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	outi, .-outi
	.section	.rodata
.LC1:
	.string	"%.10lf\n"
	.text
	.globl	outd
	.type	outd, @function
outd:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movsd	%xmm0, -152(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-152(%rbp), %rdx
	leaq	-144(%rbp), %rax
	movq	%rdx, %xmm0
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	outd, .-outd
	.section	.rodata
.LC2:
	.string	"%lld\n"
	.text
	.globl	outll
	.type	outll, @function
outll:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%rdi, -152(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-152(%rbp), %rdx
	leaq	-144(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	outll, .-outll
	.section	.rodata
.LC3:
	.string	"%d"
	.text
	.globl	geti
	.type	geti, @function
geti:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	in(%rip), %rax
	leaq	-12(%rbp), %rdx
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	geti, .-geti
	.section	.rodata
.LC4:
	.string	"%lld"
	.text
	.globl	getll
	.type	getll, @function
getll:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	in(%rip), %rax
	leaq	-16(%rbp), %rdx
	leaq	.LC4(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movq	-16(%rbp), %rax
	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
.LFE11:
	.size	getll, .-getll
	.section	.rodata
.LC5:
	.string	"%s"
	.text
	.globl	getstr
	.type	getstr, @function
getstr:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	in(%rip), %rax
	movq	-8(%rbp), %rdx
	leaq	.LC5(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	getstr, .-getstr
	.globl	sortfnci
	.type	sortfnci, @function
sortfnci:
.LFB13:
	.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
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L21
	movl	$1, %eax
	jmp	.L22
.L21:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L23
	movl	$-1, %eax
	jmp	.L22
.L23:
	movl	$0, %eax
.L22:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	sortfnci, .-sortfnci
	.globl	fnc
	.type	fnc, @function
fnc:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, %eax
	call	geti
	movl	%eax, jcnt(%rip)
	movl	$0, %eax
	call	geti
	movl	%eax, ocnt(%rip)
	movl	$0, -252(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	geti
	movl	-252(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	jew(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -252(%rbp)
.L25:
	movl	jcnt(%rip), %eax
	cmpl	%eax, -252(%rbp)
	jl	.L26
	movl	$0, -240(%rbp)
	movl	jcnt(%rip), %edx
	movl	ocnt(%rip), %eax
	cmpl	%eax, %edx
	jge	.L27
	movl	jcnt(%rip), %eax
	movl	%eax, -236(%rbp)
	jmp	.L28
.L27:
	movl	ocnt(%rip), %eax
	movl	%eax, -236(%rbp)
.L28:
	movl	$0, -252(%rbp)
	jmp	.L29
.L47:
	movl	jcnt(%rip), %eax
	subl	-252(%rbp), %eax
	movl	%eax, -220(%rbp)
	movl	ocnt(%rip), %eax
	subl	-252(%rbp), %eax
	movl	%eax, -216(%rbp)
	movl	-220(%rbp), %eax
	cmpl	-216(%rbp), %eax
	jge	.L30
	movl	-220(%rbp), %eax
	movl	%eax, -232(%rbp)
	jmp	.L31
.L30:
	movl	-216(%rbp), %eax
	movl	%eax, -232(%rbp)
.L31:
	movl	$0, -248(%rbp)
	jmp	.L32
.L46:
	movl	-252(%rbp), %edx
	movl	-248(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -212(%rbp)
	cmpl	$0, -212(%rbp)
	je	.L50
	cmpl	$0, -252(%rbp)
	jle	.L35
	movl	-252(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-208(%rbp), %rax
	leaq	jew(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
.L35:
	cmpl	$0, -248(%rbp)
	jle	.L36
	movl	-248(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	jcnt(%rip), %eax
	subl	-248(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	jew(%rip), %rax
	addq	%rax, %rcx
	leaq	-208(%rbp), %rsi
	movl	-252(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
.L36:
	movl	-212(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-208(%rbp), %rax
	leaq	sortfnci(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-216(%rbp), %eax
	subl	-248(%rbp), %eax
	movl	%eax, -228(%rbp)
	movl	-228(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jle	.L37
	movl	-212(%rbp), %eax
	movl	%eax, -228(%rbp)
.L37:
	movl	$0, -244(%rbp)
	jmp	.L38
.L42:
	movl	-244(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jns	.L51
	movl	-244(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	addl	$1, -244(%rbp)
.L38:
	movl	-244(%rbp), %eax
	cmpl	-228(%rbp), %eax
	jl	.L42
	jmp	.L41
.L51:
	nop
.L41:
	movl	$0, -224(%rbp)
	movl	$0, -244(%rbp)
	jmp	.L43
.L44:
	movl	-244(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	addl	%eax, -224(%rbp)
	addl	$1, -244(%rbp)
.L43:
	movl	-244(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jl	.L44
	movl	-240(%rbp), %eax
	cmpl	-224(%rbp), %eax
	jge	.L34
	movl	-224(%rbp), %eax
	movl	%eax, -240(%rbp)
	jmp	.L34
.L50:
	nop
.L34:
	addl	$1, -248(%rbp)
.L32:
	movl	-248(%rbp), %eax
	cmpl	-232(%rbp), %eax
	jle	.L46
	addl	$1, -252(%rbp)
.L29:
	movl	-252(%rbp), %eax
	cmpl	-236(%rbp), %eax
	jle	.L47
	movl	-240(%rbp), %eax
	movl	%eax, %edi
	call	outi
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	fnc, .-fnc
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	stdin(%rip), %rax
	movq	%rax, in(%rip)
	movl	$0, %eax
	call	fnc
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	jcnt
	.bss
	.align 4
	.type	jcnt, @object
	.size	jcnt, 4
jcnt:
	.zero	4
	.globl	jew
	.align 32
	.type	jew, @object
	.size	jew, 200
jew:
	.zero	200
	.globl	ocnt
	.align 4
	.type	ocnt, @object
	.size	ocnt, 4
ocnt:
	.zero	4
	.globl	in
	.align 8
	.type	in, @object
	.size	in, 8
in:
	.zero	8
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	tno
	.align 4
	.type	tno, @object
	.size	tno, 4
tno:
	.zero	4
	.text
	.globl	out
	.type	out, @function
out:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	out, .-out
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	outi
	.type	outi, @function
outi:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movl	%edi, -148(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-148(%rbp), %edx
	leaq	-144(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	outi, .-outi
	.section	.rodata
.LC1:
	.string	"%.10lf\n"
	.text
	.globl	outd
	.type	outd, @function
outd:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movsd	%xmm0, -152(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-152(%rbp), %rdx
	leaq	-144(%rbp), %rax
	movq	%rdx, %xmm0
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	movl	$1, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	outd, .-outd
	.section	.rodata
.LC2:
	.string	"%lld\n"
	.text
	.globl	outll
	.type	outll, @function
outll:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%rdi, -152(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-152(%rbp), %rdx
	leaq	-144(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	out
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	outll, .-outll
	.section	.rodata
.LC3:
	.string	"%d"
	.text
	.globl	geti
	.type	geti, @function
geti:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	in(%rip), %rax
	leaq	-12(%rbp), %rdx
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	geti, .-geti
	.section	.rodata
.LC4:
	.string	"%lld"
	.text
	.globl	getll
	.type	getll, @function
getll:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	in(%rip), %rax
	leaq	-16(%rbp), %rdx
	leaq	.LC4(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movq	-16(%rbp), %rax
	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
.LFE11:
	.size	getll, .-getll
	.section	.rodata
.LC5:
	.string	"%s"
	.text
	.globl	getstr
	.type	getstr, @function
getstr:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	in(%rip), %rax
	movq	-8(%rbp), %rdx
	leaq	.LC5(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_fscanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	getstr, .-getstr
	.globl	sortfnci
	.type	sortfnci, @function
sortfnci:
.LFB13:
	.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
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L21
	movl	$1, %eax
	jmp	.L22
.L21:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L23
	movl	$-1, %eax
	jmp	.L22
.L23:
	movl	$0, %eax
.L22:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	sortfnci, .-sortfnci
	.globl	fnc
	.type	fnc, @function
fnc:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, %eax
	call	geti
	movl	%eax, jcnt(%rip)
	movl	$0, %eax
	call	geti
	movl	%eax, ocnt(%rip)
	movl	$0, -252(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	geti
	movl	-252(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	jew(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -252(%rbp)
.L25:
	movl	jcnt(%rip), %eax
	cmpl	%eax, -252(%rbp)
	jl	.L26
	movl	$0, -240(%rbp)
	movl	jcnt(%rip), %edx
	movl	ocnt(%rip), %eax
	cmpl	%eax, %edx
	jge	.L27
	movl	jcnt(%rip), %eax
	movl	%eax, -236(%rbp)
	jmp	.L28
.L27:
	movl	ocnt(%rip), %eax
	movl	%eax, -236(%rbp)
.L28:
	movl	$0, -252(%rbp)
	jmp	.L29
.L47:
	movl	jcnt(%rip), %eax
	subl	-252(%rbp), %eax
	movl	%eax, -220(%rbp)
	movl	ocnt(%rip), %eax
	subl	-252(%rbp), %eax
	movl	%eax, -216(%rbp)
	movl	-220(%rbp), %eax
	cmpl	-216(%rbp), %eax
	jge	.L30
	movl	-220(%rbp), %eax
	movl	%eax, -232(%rbp)
	jmp	.L31
.L30:
	movl	-216(%rbp), %eax
	movl	%eax, -232(%rbp)
.L31:
	movl	$0, -248(%rbp)
	jmp	.L32
.L46:
	movl	-252(%rbp), %edx
	movl	-248(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -212(%rbp)
	cmpl	$0, -212(%rbp)
	je	.L50
	cmpl	$0, -252(%rbp)
	jle	.L35
	movl	-252(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-208(%rbp), %rax
	leaq	jew(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
.L35:
	cmpl	$0, -248(%rbp)
	jle	.L36
	movl	-248(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movl	jcnt(%rip), %eax
	subl	-248(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	jew(%rip), %rax
	addq	%rax, %rcx
	leaq	-208(%rbp), %rsi
	movl	-252(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
.L36:
	movl	-212(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-208(%rbp), %rax
	leaq	sortfnci(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-216(%rbp), %eax
	subl	-248(%rbp), %eax
	movl	%eax, -228(%rbp)
	movl	-228(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jle	.L37
	movl	-212(%rbp), %eax
	movl	%eax, -228(%rbp)
.L37:
	movl	$0, -244(%rbp)
	jmp	.L38
.L42:
	movl	-244(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jns	.L51
	movl	-244(%rbp), %eax
	cltq
	movl	$0, -208(%rbp,%rax,4)
	addl	$1, -244(%rbp)
.L38:
	movl	-244(%rbp), %eax
	cmpl	-228(%rbp), %eax
	jl	.L42
	jmp	.L41
.L51:
	nop
.L41:
	movl	$0, -224(%rbp)
	movl	$0, -244(%rbp)
	jmp	.L43
.L44:
	movl	-244(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	addl	%eax, -224(%rbp)
	addl	$1, -244(%rbp)
.L43:
	movl	-244(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jl	.L44
	movl	-240(%rbp), %eax
	cmpl	-224(%rbp), %eax
	jge	.L34
	movl	-224(%rbp), %eax
	movl	%eax, -240(%rbp)
	jmp	.L34
.L50:
	nop
.L34:
	addl	$1, -248(%rbp)
.L32:
	movl	-248(%rbp), %eax
	cmpl	-232(%rbp), %eax
	jle	.L46
	addl	$1, -252(%rbp)
.L29:
	movl	-252(%rbp), %eax
	cmpl	-236(%rbp), %eax
	jle	.L47
	movl	-240(%rbp), %eax
	movl	%eax, %edi
	call	outi
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	fnc, .-fnc
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	stdin(%rip), %rax
	movq	%rax, in(%rip)
	movl	$0, %eax
	call	fnc
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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:
