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

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

// 内部定数
#define D_ITM_MAX		3000									// 最大料理数
#define D_TIME_MAX		3000									// 最大時間

// 内部構造体 - 料理情報
typedef struct Itm {
	int miTime;													// 時間
	int miVal;													// 美味しさ
} Itm;

// 内部変数
static FILE *szpFpI;											// 入力
static Itm sz1Itm[D_ITM_MAX];									// 料理
static int siICnt;												// 料理数
static int siTime;												// 時間

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 最大値 - セット
int
fSetMax(
	int piSNo					// <I> 開始位置
	, int piENo					// <I> 終了位置
	, int *pipVal				// <I> 美味しさ
	, int *pipRet				// <O> 最大値
)
{
	int i, j;

	// 初期値
	memcpy(pipRet, pipVal, sizeof(int) * siTime);

	// 最大値 - 更新
	for (i = piSNo; i <= piENo; i++) {
		for (j = siTime - 1 - sz1Itm[i].miTime; j >= 0; j--) {
			int liTo = j + sz1Itm[i].miTime;
			int liNew = pipRet[j] + sz1Itm[i].miVal;
			if (pipRet[liTo] < liNew) {
				pipRet[liTo] = liNew;
			}
		}
	}

	return 0;
}

// 最大値 - 取得
int
fGetMax(
	int piSNo					// <I> 開始位置
	, int piENo					// <I> 終了位置
	, int *pipVal				// <I> 美味しさ
)
{
	int i;

	// 残り１つ
	if (piSNo == piENo) {
		int liMax = 0;
		for (i = 0; i < siTime; i++) {
			if (liMax < pipVal[i]) {
				liMax = pipVal[i];
			}
		}
		return liMax + sz1Itm[piSNo].miVal;
	}

	// 中間位置
	int liMNo = (piSNo + piENo) / 2;

	// 左側へ
	int li1Val[D_TIME_MAX];
	fSetMax(liMNo + 1, piENo, pipVal, li1Val);
	int liL = fGetMax(piSNo, liMNo, li1Val);

	// 右側へ
	fSetMax(piSNo, liMNo, pipVal, li1Val);
	int liR = fGetMax(liMNo + 1, piENo, li1Val);

	// 最大値 - 取得
	if (liL > liR) {
		return liL;
	}
	else {
		return liR;
	}
}

// 実行メイン
int
fMain(
)
{
	int i;
	char lc1Buf[1024];

	// 料理数・時間 - 取得
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &siICnt, &siTime);

	// 料理 - 取得
	for (i = 0; i < siICnt; i++) {
		fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
		sscanf(lc1Buf, "%d%d", &sz1Itm[i].miTime, &sz1Itm[i].miVal);
	}

	// 最大値 - 取得
	int li1Val[D_TIME_MAX];
	memset(li1Val, 0, sizeof(li1Val));
	return fGetMax(0, siICnt - 1, li1Val);
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	sz1Itm
	.comm	sz1Itm,24000,32
	.local	siICnt
	.comm	siICnt,4,4
	.local	siTime
	.comm	siTime,4,4
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fSetMax
	.type	fSetMax, @function
fSetMax:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movl	siTime(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rcx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L5
.L9:
	movl	siTime(%rip), %eax
	leal	-1(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L6
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L7
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L7:
	subl	$1, -12(%rbp)
.L6:
	cmpl	$0, -12(%rbp)
	jns	.L8
	addl	$1, -16(%rbp)
.L5:
	movl	-16(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fSetMax, .-fSetMax
	.globl	fGetMax
	.type	fGetMax, @function
fGetMax:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3872, %rsp
	movl	%edi, -12052(%rbp)
	movl	%esi, -12056(%rbp)
	movq	%rdx, -12064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-12052(%rbp), %eax
	cmpl	-12056(%rbp), %eax
	jne	.L12
	movl	$0, -12032(%rbp)
	movl	$0, -12036(%rbp)
	jmp	.L13
.L15:
	movl	-12036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-12064(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -12032(%rbp)
	jge	.L14
	movl	-12036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-12064(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -12032(%rbp)
.L14:
	addl	$1, -12036(%rbp)
.L13:
	movl	siTime(%rip), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L15
	movl	-12052(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12032(%rbp), %eax
	addl	%edx, %eax
	jmp	.L18
.L12:
	movl	-12052(%rbp), %edx
	movl	-12056(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12028(%rbp)
	movl	-12028(%rbp), %eax
	leal	1(%rax), %edi
	leaq	-12016(%rbp), %rcx
	movq	-12064(%rbp), %rdx
	movl	-12056(%rbp), %eax
	movl	%eax, %esi
	call	fSetMax
	leaq	-12016(%rbp), %rdx
	movl	-12028(%rbp), %ecx
	movl	-12052(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetMax
	movl	%eax, -12024(%rbp)
	leaq	-12016(%rbp), %rcx
	movq	-12064(%rbp), %rdx
	movl	-12028(%rbp), %esi
	movl	-12052(%rbp), %eax
	movl	%eax, %edi
	call	fSetMax
	movl	-12028(%rbp), %eax
	leal	1(%rax), %ecx
	leaq	-12016(%rbp), %rdx
	movl	-12056(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fGetMax
	movl	%eax, -12020(%rbp)
	movl	-12024(%rbp), %eax
	cmpl	-12020(%rbp), %eax
	jle	.L17
	movl	-12024(%rbp), %eax
	jmp	.L18
.L17:
	movl	-12020(%rbp), %eax
.L18:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetMax, .-fGetMax
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1040(%rbp), %rax
	leaq	siTime(%rip), %rdx
	movq	%rdx, %rcx
	leaq	siICnt(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -13044(%rbp)
	jmp	.L21
.L22:
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	-13044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rcx
	movl	-13044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	addq	%rax, %rdx
	leaq	-1040(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	addl	$1, -13044(%rbp)
.L21:
	movl	siICnt(%rip), %eax
	cmpl	%eax, -13044(%rbp)
	jl	.L22
	leaq	-13040(%rbp), %rax
	movl	$12000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	siICnt(%rip), %eax
	leal	-1(%rax), %ecx
	leaq	-13040(%rbp), %rax
	movq	%rax, %rdx
	movl	%ecx, %esi
	movl	$0, %edi
	call	fGetMax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMain, .-fMain
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	leaq	.LC0(%rip), %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	fOutLine, .-fOutLine
	.p2align 4
	.globl	fSetMax
	.type	fSetMax, @function
fSetMax:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %ebp
	movq	%rcx, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%esi, %ebx
	movq	%rdx, %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movslq	siTime(%rip), %rdx
	salq	$2, %rdx
	call	memcpy@PLT
	cmpl	%ebx, %ebp
	jg	.L12
	leaq	sz1Itm(%rip), %rdx
	movq	%rax, %rdi
	subl	%ebp, %ebx
	movslq	%ebp, %rax
	leaq	(%rdx,%rax,8), %rsi
	addq	%rbx, %rax
	addq	$8, %rdx
	leaq	(%rdx,%rax,8), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rsi), %eax
	movl	%eax, %edx
	notl	%edx
	addl	siTime(%rip), %edx
	js	.L6
	movslq	%edx, %rdx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rsi), %eax
.L8:
	addl	%edx, %eax
	movl	4(%rsi), %ecx
	addl	(%rdi,%rdx,4), %ecx
	cltq
	leaq	(%rdi,%rax,4), %rax
	cmpl	%ecx, (%rax)
	jge	.L7
	movl	%ecx, (%rax)
.L7:
	subq	$1, %rdx
	testl	%edx, %edx
	jns	.L14
.L6:
	addq	$8, %rsi
	cmpq	%rsi, %r8
	jne	.L9
.L12:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	fSetMax, .-fSetMax
	.p2align 4
	.globl	fGetMax
	.type	fGetMax, @function
fGetMax:
.LFB53:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$3848, %rsp
	.cfi_def_cfa_offset 12096
	movl	siTime(%rip), %ebx
	movq	%fs:40, %rax
	movq	%rax, 12024(%rsp)
	xorl	%eax, %eax
	movslq	%edi, %r15
	movq	%rdx, %rbp
	cmpl	%esi, %r15d
	je	.L46
	leal	(%r15,%rsi), %eax
	movslq	%ebx, %rdx
	leaq	16(%rsp), %r12
	movl	%esi, %r13d
	movl	%eax, %r14d
	salq	$2, %rdx
	movl	$12000, %ecx
	movq	%rbp, %rsi
	shrl	$31, %r14d
	movq	%r12, %rdi
	addl	%eax, %r14d
	sarl	%r14d
	leal	1(%r14), %eax
	movl	%eax, 8(%rsp)
	call	__memcpy_chk@PLT
	cmpl	%r13d, 8(%rsp)
	jg	.L28
	movslq	%r14d, %rdx
	leaq	sz1Itm(%rip), %rax
	leal	-1(%rbx), %r10d
	leaq	(%rax,%rdx,8), %r9
	leal	-1(%r13), %eax
	subl	%r14d, %eax
	leaq	12(%rsp), %rbx
	addq	%rdx, %rax
	leaq	8+sz1Itm(%rip), %rdx
	leaq	(%rdx,%rax,8), %r11
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	8(%r9), %rcx
	movl	%r10d, %edx
	subl	%ecx, %edx
	js	.L31
	movslq	%edx, %rdx
	movl	12(%r9), %edi
	leaq	(%rdx,%rcx), %rsi
	salq	$2, %rdx
	negq	%rcx
	salq	$2, %rsi
	salq	$2, %rcx
	leaq	(%r12,%rsi), %rax
	addq	%rbx, %rsi
	subq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rax,%rcx), %edx
	addl	%edi, %edx
	cmpl	(%rax), %edx
	jle	.L29
	movl	%edx, (%rax)
.L29:
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L30
.L31:
	addq	$8, %r9
	cmpq	%r11, %r9
	jne	.L27
.L28:
	movq	%r12, %rdx
	movl	%r14d, %esi
	movl	%r15d, %edi
	call	fGetMax
	movl	$12000, %ecx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	movslq	siTime(%rip), %rdx
	movl	%eax, %ebx
	movl	%edx, 12(%rsp)
	salq	$2, %rdx
	call	__memcpy_chk@PLT
	cmpl	%r14d, %r15d
	movl	12(%rsp), %r9d
	jg	.L25
	movslq	%r15d, %rax
	subl	%r15d, %r14d
	leaq	12(%rsp), %r11
	subl	$1, %r9d
	leaq	sz1Itm(%rip), %rdx
	leaq	(%rdx,%rax,8), %r8
	addq	%r14, %rax
	addq	$8, %rdx
	leaq	(%rdx,%rax,8), %r10
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	(%r8), %rcx
	movl	%r9d, %edx
	subl	%ecx, %edx
	js	.L36
	movslq	%edx, %rdx
	movl	4(%r8), %edi
	leaq	(%rdx,%rcx), %rsi
	salq	$2, %rdx
	negq	%rcx
	salq	$2, %rsi
	salq	$2, %rcx
	leaq	(%r12,%rsi), %rax
	addq	%r11, %rsi
	subq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L35:
	movl	(%rax,%rcx), %edx
	addl	%edi, %edx
	cmpl	(%rax), %edx
	jle	.L34
	movl	%edx, (%rax)
.L34:
	subq	$4, %rax
	cmpq	%rax, %rsi
	jne	.L35
.L36:
	addq	$8, %r8
	cmpq	%r10, %r8
	jne	.L33
.L25:
	movl	8(%rsp), %edi
	movq	%r12, %rdx
	movl	%r13d, %esi
	call	fGetMax
	cmpl	%eax, %ebx
	cmovge	%ebx, %eax
.L15:
	movq	12024(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L47
	addq	$12040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L46:
	.cfi_restore_state
	testl	%ebx, %ebx
	jle	.L38
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L39
	movq	%rdx, %rax
	movl	%ebx, %edx
	pxor	%xmm2, %xmm2
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L19
	movdqa	%xmm2, %xmm0
	movl	%ebx, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	testb	$3, %bl
	je	.L17
.L18:
	movslq	%edx, %rcx
	leaq	0(,%rcx,4), %rsi
	movl	0(%rbp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	leal	1(%rdx), %ecx
	cmpl	%ebx, %ecx
	jge	.L17
	movl	4(%rbp,%rsi), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	addl	$2, %edx
	cmpl	%ebx, %edx
	jge	.L17
	movl	8(%rbp,%rsi), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
.L17:
	leaq	sz1Itm(%rip), %rdx
	addl	4(%rdx,%r15,8), %eax
	jmp	.L15
.L38:
	xorl	%eax, %eax
	jmp	.L17
.L39:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L18
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	fGetMax, .-fGetMax
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 12336
	orq	$0, (%rsp)
	subq	$752, %rsp
	.cfi_def_cfa_offset 13088
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 13032(%rsp)
	xorl	%eax, %eax
	leaq	12000(%rsp), %r13
	movq	%r13, %rdi
	call	fgets@PLT
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	siTime(%rip), %rcx
	leaq	siICnt(%rip), %rdx
	call	__isoc99_sscanf@PLT
	movl	siICnt(%rip), %r12d
	testl	%r12d, %r12d
	jle	.L49
	leaq	sz1Itm(%rip), %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L50:
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	movq	%r13, %rdi
	addl	$1, %ebp
	call	fgets@PLT
	leaq	4(%rbx), %rcx
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$8, %rbx
	call	__isoc99_sscanf@PLT
	movl	siICnt(%rip), %r12d
	cmpl	%ebp, %r12d
	jg	.L50
.L49:
	movq	%rsp, %r8
	xorl	%esi, %esi
	movl	$12000, %edx
	movq	%r8, %rdi
	call	memset@PLT
	xorl	%edi, %edi
	leal	-1(%r12), %esi
	movq	%rax, %rdx
	call	fGetMax
	movq	13032(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L54
	addq	$13040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	fMain, .-fMain
	.section	.rodata.str1.1
.LC2:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	movq	stdin(%rip), %rax
	movq	%rsp, %r12
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	movl	$1024, %edx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %r8d
	leaq	.LC2(%rip), %rcx
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L58
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L58:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB56:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	fOne
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE56:
	.size	main, .-main
	.local	siTime
	.comm	siTime,4,4
	.local	siICnt
	.comm	siICnt,4,4
	.local	sz1Itm
	.comm	sz1Itm,24000,32
	.local	szpFpI
	.comm	szpFpI,8,8
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdi, %rdx
	leaq	.LC0(%rip), %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	fOutLine, .-fOutLine
	.p2align 4
	.globl	fSetMax
	.type	fSetMax, @function
fSetMax:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %ebp
	movq	%rcx, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%esi, %ebx
	movq	%rdx, %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movslq	siTime(%rip), %rdx
	salq	$2, %rdx
	call	memcpy@PLT
	cmpl	%ebx, %ebp
	jg	.L12
	leaq	sz1Itm(%rip), %rdx
	movq	%rax, %rdi
	subl	%ebp, %ebx
	movslq	%ebp, %rax
	leaq	(%rdx,%rax,8), %rsi
	addq	%rbx, %rax
	addq	$8, %rdx
	leaq	(%rdx,%rax,8), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rsi), %eax
	movl	%eax, %edx
	notl	%edx
	addl	siTime(%rip), %edx
	js	.L6
	movslq	%edx, %rdx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rsi), %eax
.L8:
	addl	%edx, %eax
	movl	4(%rsi), %ecx
	addl	(%rdi,%rdx,4), %ecx
	cltq
	leaq	(%rdi,%rax,4), %rax
	cmpl	%ecx, (%rax)
	jge	.L7
	movl	%ecx, (%rax)
.L7:
	subq	$1, %rdx
	testl	%edx, %edx
	jns	.L14
.L6:
	addq	$8, %rsi
	cmpq	%rsi, %r8
	jne	.L9
.L12:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	fSetMax, .-fSetMax
	.p2align 4
	.globl	fGetMax
	.type	fGetMax, @function
fGetMax:
.LFB53:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$3848, %rsp
	.cfi_def_cfa_offset 12096
	movl	siTime(%rip), %ebx
	movq	%fs:40, %rax
	movq	%rax, 12024(%rsp)
	xorl	%eax, %eax
	movslq	%edi, %r15
	movq	%rdx, %rbp
	cmpl	%esi, %r15d
	je	.L46
	leal	(%r15,%rsi), %eax
	movslq	%ebx, %rdx
	leaq	16(%rsp), %r12
	movl	%esi, %r13d
	movl	%eax, %r14d
	salq	$2, %rdx
	movl	$12000, %ecx
	movq	%rbp, %rsi
	shrl	$31, %r14d
	movq	%r12, %rdi
	addl	%eax, %r14d
	sarl	%r14d
	leal	1(%r14), %eax
	movl	%eax, 8(%rsp)
	call	__memcpy_chk@PLT
	cmpl	%r13d, 8(%rsp)
	jg	.L28
	movslq	%r14d, %rdx
	leaq	sz1Itm(%rip), %rax
	leal	-1(%rbx), %r10d
	leaq	(%rax,%rdx,8), %r9
	leal	-1(%r13), %eax
	subl	%r14d, %eax
	leaq	12(%rsp), %rbx
	addq	%rdx, %rax
	leaq	8+sz1Itm(%rip), %rdx
	leaq	(%rdx,%rax,8), %r11
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	8(%r9), %rcx
	movl	%r10d, %edx
	subl	%ecx, %edx
	js	.L31
	movslq	%edx, %rdx
	movl	12(%r9), %edi
	leaq	(%rdx,%rcx), %rsi
	salq	$2, %rdx
	negq	%rcx
	salq	$2, %rsi
	salq	$2, %rcx
	leaq	(%r12,%rsi), %rax
	addq	%rbx, %rsi
	subq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rax,%rcx), %edx
	addl	%edi, %edx
	cmpl	(%rax), %edx
	jle	.L29
	movl	%edx, (%rax)
.L29:
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L30
.L31:
	addq	$8, %r9
	cmpq	%r11, %r9
	jne	.L27
.L28:
	movq	%r12, %rdx
	movl	%r14d, %esi
	movl	%r15d, %edi
	call	fGetMax
	movl	$12000, %ecx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	movslq	siTime(%rip), %rdx
	movl	%eax, %ebx
	movl	%edx, 12(%rsp)
	salq	$2, %rdx
	call	__memcpy_chk@PLT
	cmpl	%r14d, %r15d
	movl	12(%rsp), %r9d
	jg	.L25
	movslq	%r15d, %rax
	subl	%r15d, %r14d
	leaq	12(%rsp), %r11
	subl	$1, %r9d
	leaq	sz1Itm(%rip), %rdx
	leaq	(%rdx,%rax,8), %r8
	addq	%r14, %rax
	addq	$8, %rdx
	leaq	(%rdx,%rax,8), %r10
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	(%r8), %rcx
	movl	%r9d, %edx
	subl	%ecx, %edx
	js	.L36
	movslq	%edx, %rdx
	movl	4(%r8), %edi
	leaq	(%rdx,%rcx), %rsi
	salq	$2, %rdx
	negq	%rcx
	salq	$2, %rsi
	salq	$2, %rcx
	leaq	(%r12,%rsi), %rax
	addq	%r11, %rsi
	subq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L35:
	movl	(%rax,%rcx), %edx
	addl	%edi, %edx
	cmpl	(%rax), %edx
	jle	.L34
	movl	%edx, (%rax)
.L34:
	subq	$4, %rax
	cmpq	%rax, %rsi
	jne	.L35
.L36:
	addq	$8, %r8
	cmpq	%r10, %r8
	jne	.L33
.L25:
	movl	8(%rsp), %edi
	movq	%r12, %rdx
	movl	%r13d, %esi
	call	fGetMax
	cmpl	%eax, %ebx
	cmovge	%ebx, %eax
.L15:
	movq	12024(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L47
	addq	$12040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L46:
	.cfi_restore_state
	testl	%ebx, %ebx
	jle	.L38
	leal	-1(%rbx), %eax
	cmpl	$2, %eax
	jbe	.L39
	movq	%rdx, %rax
	movl	%ebx, %edx
	pxor	%xmm2, %xmm2
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L19
	movdqa	%xmm2, %xmm0
	movl	%ebx, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	testb	$3, %bl
	je	.L17
.L18:
	movslq	%edx, %rcx
	leaq	0(,%rcx,4), %rsi
	movl	0(%rbp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	leal	1(%rdx), %ecx
	cmpl	%ebx, %ecx
	jge	.L17
	movl	4(%rbp,%rsi), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	addl	$2, %edx
	cmpl	%ebx, %edx
	jge	.L17
	movl	8(%rbp,%rsi), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
.L17:
	leaq	sz1Itm(%rip), %rdx
	addl	4(%rdx,%r15,8), %eax
	jmp	.L15
.L38:
	xorl	%eax, %eax
	jmp	.L17
.L39:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L18
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	fGetMax, .-fGetMax
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 12336
	orq	$0, (%rsp)
	subq	$752, %rsp
	.cfi_def_cfa_offset 13088
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 13032(%rsp)
	xorl	%eax, %eax
	leaq	12000(%rsp), %r13
	movq	%r13, %rdi
	call	fgets@PLT
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	siTime(%rip), %rcx
	leaq	siICnt(%rip), %rdx
	call	__isoc99_sscanf@PLT
	movl	siICnt(%rip), %r12d
	testl	%r12d, %r12d
	jle	.L49
	leaq	sz1Itm(%rip), %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L50:
	movq	szpFpI(%rip), %rdx
	movl	$1024, %esi
	movq	%r13, %rdi
	addl	$1, %ebp
	call	fgets@PLT
	leaq	4(%rbx), %rcx
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$8, %rbx
	call	__isoc99_sscanf@PLT
	movl	siICnt(%rip), %r12d
	cmpl	%ebp, %r12d
	jg	.L50
.L49:
	movq	%rsp, %r8
	xorl	%esi, %esi
	movl	$12000, %edx
	movq	%r8, %rdi
	call	memset@PLT
	xorl	%edi, %edi
	leal	-1(%r12), %esi
	movq	%rax, %rdx
	call	fGetMax
	movq	13032(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L54
	addq	$13040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	fMain, .-fMain
	.section	.rodata.str1.1
.LC2:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	movq	stdin(%rip), %rax
	movq	%rsp, %r12
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	movl	$1024, %edx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %r8d
	leaq	.LC2(%rip), %rcx
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L58
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L58:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB56:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	fOne
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE56:
	.size	main, .-main
	.local	siTime
	.comm	siTime,4,4
	.local	siICnt
	.comm	siICnt,4,4
	.local	sz1Itm
	.comm	sz1Itm,24000,32
	.local	szpFpI
	.comm	szpFpI,8,8
	.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 <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_ITM_MAX		3000									// 最大料理数
#define D_TIME_MAX		3000									// 最大時間

// 内部構造体 - 料理情報
typedef struct Itm {
	int miTime;													// 時間
	int miVal;													// 美味しさ
} Itm;

// 内部変数
static FILE *szpFpI;											// 入力
static Itm sz1Itm[D_ITM_MAX];									// 料理
static int siICnt;												// 料理数
static int siTime;												// 時間

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 最大値 - セット
int
fSetMax(
	int piSNo					// <I> 開始位置
	, int piENo					// <I> 終了位置
	, int *pipVal				// <I> 美味しさ
	, int *pipRet				// <O> 最大値
)
{
	int i, j;

	// 初期値
	memcpy(pipRet, pipVal, sizeof(int) * siTime);

	// 最大値 - 更新
	for (i = piSNo; i <= piENo; i++) {
		for (j = siTime - 1 - sz1Itm[i].miTime; j >= 0; j--) {
			int liTo = j + sz1Itm[i].miTime;
			int liNew = pipRet[j] + sz1Itm[i].miVal;
			if (pipRet[liTo] < liNew) {
				pipRet[liTo] = liNew;
			}
		}
	}

	return 0;
}

// 最大値 - 取得
int
fGetMax(
	int piSNo					// <I> 開始位置
	, int piENo					// <I> 終了位置
	, int *pipVal				// <I> 美味しさ
)
{
	int i;

	// 残り１つ
	if (piSNo == piENo) {
		int liMax = 0;
		for (i = 0; i < siTime; i++) {
			if (liMax < pipVal[i]) {
				liMax = pipVal[i];
			}
		}
		return liMax + sz1Itm[piSNo].miVal;
	}

	// 中間位置
	int liMNo = (piSNo + piENo) / 2;

	// 左側へ
	int li1Val[D_TIME_MAX];
	fSetMax(liMNo + 1, piENo, pipVal, li1Val);
	int liL = fGetMax(piSNo, liMNo, li1Val);

	// 右側へ
	fSetMax(piSNo, liMNo, pipVal, li1Val);
	int liR = fGetMax(liMNo + 1, piENo, li1Val);

	// 最大値 - 取得
	if (liL > liR) {
		return liL;
	}
	else {
		return liR;
	}
}

// 実行メイン
int
fMain(
)
{
	int i;
	char lc1Buf[1024];

	// 料理数・時間 - 取得
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &siICnt, &siTime);

	// 料理 - 取得
	for (i = 0; i < siICnt; i++) {
		fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
		sscanf(lc1Buf, "%d%d", &sz1Itm[i].miTime, &sz1Itm[i].miVal);
	}

	// 最大値 - 取得
	int li1Val[D_TIME_MAX];
	memset(li1Val, 0, sizeof(li1Val));
	return fGetMax(0, siICnt - 1, li1Val);
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}


3 74
10 10
10 20
10 30
 10 100
15 23
20 18
13 17
47 12
18 29
19 27
23 21
18 20
27 15
22 25
 3 60
30 10
30 6
30 30
 2 60
10 13
100 100
 10 100
15 23
20 18
13 17
47 12
18 29
19 20
23 21
18 20
27 15
22 25
 3 60
30 20
30 6
30 30
 2 60
10 13
100 101
 10 100
15 23
20 18
13 17
47 12
18 29
19 20
23 21
18 35
27 15
22 25
 3 60
30 11
30 6
30 30
 3 101
10 7
10 20
10 30

60
 145
 40
 113
 138
 50
 114
 153
 41
 57

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

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

// 内部定数
#define D_ITM_MAX		3000									// 最大料理数
#define D_TIME_MAX		3000									// 最大時間

// 内部構造体 - 料理情報
typedef struct Itm {
	int miTime;													// 時間
	int miVal;													// 美味しさ
} Itm;

// 内部変数
static FILE *szpFpI;											// 入力
static Itm sz1Itm[D_ITM_MAX];									// 料理
static int siICnt;												// 料理数
static int siTime;												// 時間

// 内部変数 - テスト用
#ifdef D_TEST
	static int siRes;
	static FILE *szpFpA;
	static int siTNo;
#endif

// １行出力
int
fOutLine(
	char *pcpLine				// <I> １行
)
{
	char lc1Buf[1024];

#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, pcpLine)) {
		siRes = -1;
	}
#else
	printf("%s", pcpLine);
#endif

	return 0;
}

// 最大値 - セット
int
fSetMax(
	int piSNo					// <I> 開始位置
	, int piENo					// <I> 終了位置
	, int *pipVal				// <I> 美味しさ
	, int *pipRet				// <O> 最大値
)
{
	int i, j;

	// 初期値
	memcpy(pipRet, pipVal, sizeof(int) * siTime);

	// 最大値 - 更新
	for (i = piSNo; i <= piENo; i++) {
		for (j = siTime - 1 - sz1Itm[i].miTime; j >= 0; j--) {
			int liTo = j + sz1Itm[i].miTime;
			int liNew = pipRet[j] + sz1Itm[i].miVal;
			if (pipRet[liTo] < liNew) {
				pipRet[liTo] = liNew;
			}
		}
	}

	return 0;
}

// 最大値 - 取得
int
fGetMax(
	int piSNo					// <I> 開始位置
	, int piENo					// <I> 終了位置
	, int *pipVal				// <I> 美味しさ
)
{
	int i;

	// 残り１つ
	if (piSNo == piENo) {
		int liMax = 0;
		for (i = 0; i < siTime; i++) {
			if (liMax < pipVal[i]) {
				liMax = pipVal[i];
			}
		}
		return liMax + sz1Itm[piSNo].miVal;
	}

	// 中間位置
	int liMNo = (piSNo + piENo) / 2;

	// 左側へ
	int li1Val[D_TIME_MAX];
	fSetMax(liMNo + 1, piENo, pipVal, li1Val);
	int liL = fGetMax(piSNo, liMNo, li1Val);

	// 右側へ
	fSetMax(piSNo, liMNo, pipVal, li1Val);
	int liR = fGetMax(liMNo + 1, piENo, li1Val);

	// 最大値 - 取得
	if (liL > liR) {
		return liL;
	}
	else {
		return liR;
	}
}

// 実行メイン
int
fMain(
)
{
	int i;
	char lc1Buf[1024];

	// 料理数・時間 - 取得
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d", &siICnt, &siTime);

	// 料理 - 取得
	for (i = 0; i < siICnt; i++) {
		fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
		sscanf(lc1Buf, "%d%d", &sz1Itm[i].miTime, &sz1Itm[i].miVal);
	}

	// 最大値 - 取得
	int li1Val[D_TIME_MAX];
	memset(li1Val, 0, sizeof(li1Val));
	return fGetMax(0, siICnt - 1, li1Val);
}

// １回実行
int
fOne(
)
{
	int liRet;
	char lc1Buf[1024];

	// 入力 - セット
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", siTNo);
	szpFpI = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", siTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#else
	szpFpI = stdin;
#endif

	// 実行メイン
	liRet = fMain();

	// 出力
	sprintf(lc1Buf, "%d\n", liRet);
	fOutLine(lc1Buf);

	// 残データ有無
#ifdef D_TEST
	lc1Buf[0] = '\0';
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, "")) {
		siRes = -1;
	}
#endif

	// テストファイルクローズ
#ifdef D_TEST
	fclose(szpFpI);
	fclose(szpFpA);
#endif

	// テスト結果
#ifdef D_TEST
	if (siRes == 0) {
		printf("OK %d\n", siTNo);
	}
	else {
		printf("NG %d\n", siTNo);
	}
#endif

	return 0;
}

// プログラム開始
int
main()
{

#ifdef D_TEST
	int i;
	for (i = D_TEST_SNO; i <= D_TEST_ENO; i++) {
		siTNo = i;
		fOne();
	}
#else
	fOne();
#endif

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	sz1Itm
	.comm	sz1Itm,24000,32
	.local	siICnt
	.comm	siICnt,4,4
	.local	siTime
	.comm	siTime,4,4
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fSetMax
	.type	fSetMax, @function
fSetMax:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movl	siTime(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rcx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L5
.L9:
	movl	siTime(%rip), %eax
	leal	-1(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L6
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L7
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L7:
	subl	$1, -12(%rbp)
.L6:
	cmpl	$0, -12(%rbp)
	jns	.L8
	addl	$1, -16(%rbp)
.L5:
	movl	-16(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fSetMax, .-fSetMax
	.globl	fGetMax
	.type	fGetMax, @function
fGetMax:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3872, %rsp
	movl	%edi, -12052(%rbp)
	movl	%esi, -12056(%rbp)
	movq	%rdx, -12064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-12052(%rbp), %eax
	cmpl	-12056(%rbp), %eax
	jne	.L12
	movl	$0, -12032(%rbp)
	movl	$0, -12036(%rbp)
	jmp	.L13
.L15:
	movl	-12036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-12064(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -12032(%rbp)
	jge	.L14
	movl	-12036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-12064(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -12032(%rbp)
.L14:
	addl	$1, -12036(%rbp)
.L13:
	movl	siTime(%rip), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L15
	movl	-12052(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12032(%rbp), %eax
	addl	%edx, %eax
	jmp	.L18
.L12:
	movl	-12052(%rbp), %edx
	movl	-12056(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12028(%rbp)
	movl	-12028(%rbp), %eax
	leal	1(%rax), %edi
	leaq	-12016(%rbp), %rcx
	movq	-12064(%rbp), %rdx
	movl	-12056(%rbp), %eax
	movl	%eax, %esi
	call	fSetMax
	leaq	-12016(%rbp), %rdx
	movl	-12028(%rbp), %ecx
	movl	-12052(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetMax
	movl	%eax, -12024(%rbp)
	leaq	-12016(%rbp), %rcx
	movq	-12064(%rbp), %rdx
	movl	-12028(%rbp), %esi
	movl	-12052(%rbp), %eax
	movl	%eax, %edi
	call	fSetMax
	movl	-12028(%rbp), %eax
	leal	1(%rax), %ecx
	leaq	-12016(%rbp), %rdx
	movl	-12056(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fGetMax
	movl	%eax, -12020(%rbp)
	movl	-12024(%rbp), %eax
	cmpl	-12020(%rbp), %eax
	jle	.L17
	movl	-12024(%rbp), %eax
	jmp	.L18
.L17:
	movl	-12020(%rbp), %eax
.L18:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetMax, .-fGetMax
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1040(%rbp), %rax
	leaq	siTime(%rip), %rdx
	movq	%rdx, %rcx
	leaq	siICnt(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -13044(%rbp)
	jmp	.L21
.L22:
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	-13044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rcx
	movl	-13044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	addq	%rax, %rdx
	leaq	-1040(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	addl	$1, -13044(%rbp)
.L21:
	movl	siICnt(%rip), %eax
	cmpl	%eax, -13044(%rbp)
	jl	.L22
	leaq	-13040(%rbp), %rax
	movl	$12000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	siICnt(%rip), %eax
	leal	-1(%rax), %ecx
	leaq	-13040(%rbp), %rax
	movq	%rax, %rdx
	movl	%ecx, %esi
	movl	$0, %edi
	call	fGetMax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMain, .-fMain
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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
	.local	szpFpI
	.comm	szpFpI,8,8
	.local	sz1Itm
	.comm	sz1Itm,24000,32
	.local	siICnt
	.comm	siICnt,4,4
	.local	siTime
	.comm	siTime,4,4
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	fOutLine
	.type	fOutLine, @function
fOutLine:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%rdi, -1048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fOutLine, .-fOutLine
	.globl	fSetMax
	.type	fSetMax, @function
fSetMax:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movl	siTime(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rcx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L5
.L9:
	movl	siTime(%rip), %eax
	leal	-1(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L6
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L7
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
.L7:
	subl	$1, -12(%rbp)
.L6:
	cmpl	$0, -12(%rbp)
	jns	.L8
	addl	$1, -16(%rbp)
.L5:
	movl	-16(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L9
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fSetMax, .-fSetMax
	.globl	fGetMax
	.type	fGetMax, @function
fGetMax:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3872, %rsp
	movl	%edi, -12052(%rbp)
	movl	%esi, -12056(%rbp)
	movq	%rdx, -12064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-12052(%rbp), %eax
	cmpl	-12056(%rbp), %eax
	jne	.L12
	movl	$0, -12032(%rbp)
	movl	$0, -12036(%rbp)
	jmp	.L13
.L15:
	movl	-12036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-12064(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -12032(%rbp)
	jge	.L14
	movl	-12036(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-12064(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -12032(%rbp)
.L14:
	addl	$1, -12036(%rbp)
.L13:
	movl	siTime(%rip), %eax
	cmpl	%eax, -12036(%rbp)
	jl	.L15
	movl	-12052(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+sz1Itm(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12032(%rbp), %eax
	addl	%edx, %eax
	jmp	.L18
.L12:
	movl	-12052(%rbp), %edx
	movl	-12056(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12028(%rbp)
	movl	-12028(%rbp), %eax
	leal	1(%rax), %edi
	leaq	-12016(%rbp), %rcx
	movq	-12064(%rbp), %rdx
	movl	-12056(%rbp), %eax
	movl	%eax, %esi
	call	fSetMax
	leaq	-12016(%rbp), %rdx
	movl	-12028(%rbp), %ecx
	movl	-12052(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	fGetMax
	movl	%eax, -12024(%rbp)
	leaq	-12016(%rbp), %rcx
	movq	-12064(%rbp), %rdx
	movl	-12028(%rbp), %esi
	movl	-12052(%rbp), %eax
	movl	%eax, %edi
	call	fSetMax
	movl	-12028(%rbp), %eax
	leal	1(%rax), %ecx
	leaq	-12016(%rbp), %rdx
	movl	-12056(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	fGetMax
	movl	%eax, -12020(%rbp)
	movl	-12024(%rbp), %eax
	cmpl	-12020(%rbp), %eax
	jle	.L17
	movl	-12024(%rbp), %eax
	jmp	.L18
.L17:
	movl	-12020(%rbp), %eax
.L18:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fGetMax, .-fGetMax
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-1040(%rbp), %rax
	leaq	siTime(%rip), %rdx
	movq	%rdx, %rcx
	leaq	siICnt(%rip), %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -13044(%rbp)
	jmp	.L21
.L22:
	movq	szpFpI(%rip), %rdx
	leaq	-1040(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	-13044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rcx
	movl	-13044(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sz1Itm(%rip), %rax
	addq	%rax, %rdx
	leaq	-1040(%rbp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	addl	$1, -13044(%rbp)
.L21:
	movl	siICnt(%rip), %eax
	cmpl	%eax, -13044(%rbp)
	jl	.L22
	leaq	-13040(%rbp), %rax
	movl	$12000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	siICnt(%rip), %eax
	leal	-1(%rax), %ecx
	leaq	-13040(%rbp), %rax
	movq	%rax, %rdx
	movl	%ecx, %esi
	movl	$0, %edi
	call	fGetMax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fMain, .-fMain
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %eax
	call	fOne
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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:
