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_ARRAY_MAX		100000									// 最大配列数
#define D_VAL_MAX		1000000000								// 最大値

// 内部変数
static FILE *szpFpI;											// 入力
static char sc1Out[D_ARRAY_MAX * 20];							// 出力内容
static char *scpOut;											// 出力位置

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

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

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

	return 0;
}

// 出力内容 - 追加
int
fOutAdd(
	int piVal					// <I> 値
)
{
	char lc1Buf[1024];
	sprintf(lc1Buf, "%d ", piVal);
	int liLen = strlen(lc1Buf);
	memcpy(scpOut, lc1Buf, liLen);
	scpOut += liLen;

	return 0;
}

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

	// 条件 - 取得
	int liN, liK, liS;
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d%d", &liN, &liK, &liS);

	// S を K 個追加
	for (i = 0; i < liK; i++) {
		fOutAdd(liS);
	}

	// !S を (N-K) 個追加
	int liVal;
	if (liS < D_VAL_MAX) {
		liVal = D_VAL_MAX;
	}
	else {
		liVal = 1;
	}
	for (i = 0; i < liN - liK; i++) {
		fOutAdd(liVal);
	}

	// 出力
	*scpOut = '\0';
	scpOut--;
	*scpOut = '\n';
	fOutLine(sc1Out);

	return 0;
}

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

	// データ - 初期化
	scpOut = sc1Out;											// 出力位置

	// 入力 - セット
#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();

	// 残データ有無
#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	sc1Out
	.comm	sc1Out,2000000,32
	.local	scpOut
	.comm	scpOut,8,8
	.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
	.section	.rodata
.LC1:
	.string	"%d "
	.text
	.globl	fOutAdd
	.type	fOutAdd, @function
fOutAdd:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1072, %rsp
	movl	%edi, -1060(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-1060(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC1(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %eax
	movslq	%eax, %rdx
	movq	scpOut(%rip), %rax
	leaq	-1040(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movq	scpOut(%rip), %rdx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, scpOut(%rip)
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fOutAdd, .-fOutAdd
	.section	.rodata
.LC2:
	.string	"%d%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1072, %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	-1052(%rbp), %rsi
	leaq	-1056(%rbp), %rcx
	leaq	-1060(%rbp), %rdx
	leaq	-1040(%rbp), %rax
	movq	%rsi, %r8
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1048(%rbp)
	jmp	.L8
.L9:
	movl	-1052(%rbp), %eax
	movl	%eax, %edi
	call	fOutAdd
	addl	$1, -1048(%rbp)
.L8:
	movl	-1056(%rbp), %eax
	cmpl	%eax, -1048(%rbp)
	jl	.L9
	movl	-1052(%rbp), %eax
	cmpl	$999999999, %eax
	jg	.L10
	movl	$1000000000, -1044(%rbp)
	jmp	.L11
.L10:
	movl	$1, -1044(%rbp)
.L11:
	movl	$0, -1048(%rbp)
	jmp	.L12
.L13:
	movl	-1044(%rbp), %eax
	movl	%eax, %edi
	call	fOutAdd
	addl	$1, -1048(%rbp)
.L12:
	movl	-1060(%rbp), %eax
	movl	-1056(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -1048(%rbp)
	jl	.L13
	movq	scpOut(%rip), %rax
	movb	$0, (%rax)
	movq	scpOut(%rip), %rax
	subq	$1, %rax
	movq	%rax, scpOut(%rip)
	movq	scpOut(%rip), %rax
	movb	$10, (%rax)
	leaq	sc1Out(%rip), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fMain, .-fMain
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB9:
	.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
	leaq	sc1Out(%rip), %rax
	movq	%rax, scpOut(%rip)
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.LFE10:
	.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
	.section	.rodata.str1.1
.LC1:
	.string	"%d "
	.text
	.p2align 4
	.globl	fOutAdd
	.type	fOutAdd, @function
fOutAdd:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %r8d
	movl	$1024, %edx
	leaq	.LC1(%rip), %rcx
	movl	$1, %esi
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	scpOut(%rip), %rdx
	cmpl	$8, %eax
	jnb	.L5
	testb	$4, %al
	jne	.L14
	testl	%eax, %eax
	je	.L6
	movzbl	(%rsp), %ecx
	movb	%cl, (%rdx)
	testb	$2, %al
	je	.L6
	movl	%eax, %ecx
	movzwl	-2(%rbx,%rcx), %esi
	movw	%si, -2(%rdx,%rcx)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rsp), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	subq	%rdi, %rcx
	subq	%rcx, %rsi
	addl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
.L6:
	addq	%rdx, %rax
	movq	%rax, scpOut(%rip)
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	(%rsp), %ecx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	movl	-4(%rbx,%rcx), %esi
	movl	%esi, -4(%rdx,%rcx)
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	fOutAdd, .-fOutAdd
	.section	.rodata.str1.1
.LC2:
	.string	"%d%d%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$1024, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2088, %rsp
	.cfi_def_cfa_offset 2128
	movq	szpFpI(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 2072(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	leaq	8(%rsp), %rcx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	leaq	12(%rsp), %r8
	leaq	.LC2(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L17
	xorl	%r12d, %r12d
	leaq	1040(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L44:
	testb	$4, %al
	jne	.L42
	testl	%eax, %eax
	je	.L19
	movzbl	(%rbx), %ecx
	movb	%cl, (%rdx)
	testb	$2, %al
	jne	.L43
.L19:
	addq	%rdx, %rax
	addl	$1, %r12d
	movq	%rax, scpOut(%rip)
	movl	8(%rsp), %eax
	cmpl	%r12d, %eax
	jle	.L17
.L22:
	movl	12(%rsp), %r8d
	movl	$1024, %edx
	movq	%rbp, %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	scpOut(%rip), %rdx
	cmpl	$8, %eax
	jb	.L44
	movq	(%rbx), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	subq	%rdi, %rcx
	subq	%rcx, %rsi
	addl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	$1000000000, 12(%rsp)
	movl	$1000000000, %r12d
	movl	$1, %edx
	cmovge	%edx, %r12d
	cmpl	%eax, 4(%rsp)
	jle	.L24
	xorl	%r13d, %r13d
	leaq	1040(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L47:
	testb	$4, %al
	jne	.L45
	testl	%eax, %eax
	je	.L26
	movzbl	(%rbx), %ecx
	movb	%cl, (%rdx)
	testb	$2, %al
	jne	.L46
.L26:
	addq	%rdx, %rax
	addl	$1, %r13d
	movl	4(%rsp), %edx
	subl	8(%rsp), %edx
	movq	%rax, scpOut(%rip)
	cmpl	%r13d, %edx
	jle	.L30
.L29:
	movl	$1024, %edx
	movl	%r12d, %r8d
	movq	%rbp, %rcx
	movl	$1, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	scpOut(%rip), %rdx
	cmpl	$8, %eax
	jb	.L47
	movq	(%rbx), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	subq	%rdi, %rcx
	subq	%rcx, %rsi
	addl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L24:
	movq	scpOut(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L30:
	movb	$0, (%rax)
	leaq	-1(%rax), %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movb	$10, -1(%rax)
	xorl	%eax, %eax
	movq	%rdx, scpOut(%rip)
	leaq	sc1Out(%rip), %rdx
	call	__printf_chk@PLT
	movq	2072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$2088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movl	(%rbx), %ecx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	movl	-4(%rbx,%rcx), %esi
	movl	%esi, -4(%rdx,%rcx)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L45:
	movl	(%rbx), %ecx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	movl	-4(%rbx,%rcx), %esi
	movl	%esi, -4(%rdx,%rcx)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L46:
	movl	%eax, %ecx
	movzwl	-2(%rbx,%rcx), %esi
	movw	%si, -2(%rdx,%rcx)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%eax, %ecx
	movzwl	-2(%rbx,%rcx), %esi
	movw	%si, -2(%rdx,%rcx)
	jmp	.L19
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	fMain, .-fMain
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB54:
	.cfi_startproc
	endbr64
	leaq	sc1Out(%rip), %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rax, scpOut(%rip)
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	leaq	sc1Out(%rip), %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rax, scpOut(%rip)
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.local	scpOut
	.comm	scpOut,8,8
	.local	sc1Out
	.comm	sc1Out,2000000,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
	.section	.rodata.str1.1
.LC1:
	.string	"%d "
	.text
	.p2align 4
	.globl	fOutAdd
	.type	fOutAdd, @function
fOutAdd:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %r8d
	movl	$1024, %edx
	leaq	.LC1(%rip), %rcx
	movl	$1, %esi
	subq	$1040, %rsp
	.cfi_def_cfa_offset 1056
	movq	%fs:40, %rax
	movq	%rax, 1032(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	scpOut(%rip), %rdx
	cmpl	$8, %eax
	jnb	.L5
	testb	$4, %al
	jne	.L14
	testl	%eax, %eax
	je	.L6
	movzbl	(%rsp), %ecx
	movb	%cl, (%rdx)
	testb	$2, %al
	je	.L6
	movl	%eax, %ecx
	movzwl	-2(%rbx,%rcx), %esi
	movw	%si, -2(%rdx,%rcx)
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rsp), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	subq	%rdi, %rcx
	subq	%rcx, %rsi
	addl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
.L6:
	addq	%rdx, %rax
	movq	%rax, scpOut(%rip)
	movq	1032(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$1040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	(%rsp), %ecx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	movl	-4(%rbx,%rcx), %esi
	movl	%esi, -4(%rdx,%rcx)
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	fOutAdd, .-fOutAdd
	.section	.rodata.str1.1
.LC2:
	.string	"%d%d%d"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$1024, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2088, %rsp
	.cfi_def_cfa_offset 2128
	movq	szpFpI(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 2072(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	leaq	8(%rsp), %rcx
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	leaq	12(%rsp), %r8
	leaq	.LC2(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L17
	xorl	%r12d, %r12d
	leaq	1040(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L44:
	testb	$4, %al
	jne	.L42
	testl	%eax, %eax
	je	.L19
	movzbl	(%rbx), %ecx
	movb	%cl, (%rdx)
	testb	$2, %al
	jne	.L43
.L19:
	addq	%rdx, %rax
	addl	$1, %r12d
	movq	%rax, scpOut(%rip)
	movl	8(%rsp), %eax
	cmpl	%r12d, %eax
	jle	.L17
.L22:
	movl	12(%rsp), %r8d
	movl	$1024, %edx
	movq	%rbp, %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	scpOut(%rip), %rdx
	cmpl	$8, %eax
	jb	.L44
	movq	(%rbx), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	subq	%rdi, %rcx
	subq	%rcx, %rsi
	addl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	$1000000000, 12(%rsp)
	movl	$1000000000, %r12d
	movl	$1, %edx
	cmovge	%edx, %r12d
	cmpl	%eax, 4(%rsp)
	jle	.L24
	xorl	%r13d, %r13d
	leaq	1040(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L47:
	testb	$4, %al
	jne	.L45
	testl	%eax, %eax
	je	.L26
	movzbl	(%rbx), %ecx
	movb	%cl, (%rdx)
	testb	$2, %al
	jne	.L46
.L26:
	addq	%rdx, %rax
	addl	$1, %r13d
	movl	4(%rsp), %edx
	subl	8(%rsp), %edx
	movq	%rax, scpOut(%rip)
	cmpl	%r13d, %edx
	jle	.L30
.L29:
	movl	$1024, %edx
	movl	%r12d, %r8d
	movq	%rbp, %rcx
	movl	$1, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	scpOut(%rip), %rdx
	cmpl	$8, %eax
	jb	.L47
	movq	(%rbx), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	movq	%rdx, %rcx
	movq	%rbx, %rsi
	subq	%rdi, %rcx
	subq	%rcx, %rsi
	addl	%eax, %ecx
	shrl	$3, %ecx
	rep movsq
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L24:
	movq	scpOut(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L30:
	movb	$0, (%rax)
	leaq	-1(%rax), %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movb	$10, -1(%rax)
	xorl	%eax, %eax
	movq	%rdx, scpOut(%rip)
	leaq	sc1Out(%rip), %rdx
	call	__printf_chk@PLT
	movq	2072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$2088, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movl	(%rbx), %ecx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	movl	-4(%rbx,%rcx), %esi
	movl	%esi, -4(%rdx,%rcx)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L45:
	movl	(%rbx), %ecx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	movl	-4(%rbx,%rcx), %esi
	movl	%esi, -4(%rdx,%rcx)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L46:
	movl	%eax, %ecx
	movzwl	-2(%rbx,%rcx), %esi
	movw	%si, -2(%rdx,%rcx)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%eax, %ecx
	movzwl	-2(%rbx,%rcx), %esi
	movw	%si, -2(%rdx,%rcx)
	jmp	.L19
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	fMain, .-fMain
	.p2align 4
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB54:
	.cfi_startproc
	endbr64
	leaq	sc1Out(%rip), %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rax, scpOut(%rip)
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	fOne, .-fOne
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	leaq	sc1Out(%rip), %rax
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rax, scpOut(%rip)
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	xorl	%eax, %eax
	call	fMain
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.local	scpOut
	.comm	scpOut,8,8
	.local	sc1Out
	.comm	sc1Out,2000000,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_ARRAY_MAX		100000									// 最大配列数
#define D_VAL_MAX		1000000000								// 最大値

// 内部変数
static FILE *szpFpI;											// 入力
static char sc1Out[D_ARRAY_MAX * 20];							// 出力内容
static char *scpOut;											// 出力位置

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

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

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

	return 0;
}

// 出力内容 - 追加
int
fOutAdd(
	int piVal					// <I> 値
)
{
	char lc1Buf[1024];
	sprintf(lc1Buf, "%d ", piVal);
	int liLen = strlen(lc1Buf);
	memcpy(scpOut, lc1Buf, liLen);
	scpOut += liLen;

	return 0;
}

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

	// 条件 - 取得
	int liN, liK, liS;
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d%d", &liN, &liK, &liS);

	// S を K 個追加
	for (i = 0; i < liK; i++) {
		fOutAdd(liS);
	}

	// !S を (N-K) 個追加
	int liVal;
	if (liS < D_VAL_MAX) {
		liVal = D_VAL_MAX;
	}
	else {
		liVal = 1;
	}
	for (i = 0; i < liN - liK; i++) {
		fOutAdd(liVal);
	}

	// 出力
	*scpOut = '\0';
	scpOut--;
	*scpOut = '\n';
	fOutLine(sc1Out);

	return 0;
}

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

	// データ - 初期化
	scpOut = sc1Out;											// 出力位置

	// 入力 - セット
#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();

	// 残データ有無
#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;
}


5 3 000
 5 0 100
 4 1 3
 5 3 010
 4 0 3
 10 3 010
 8 0 3
 10 5 010
 8 1 3
 10 5 000

0 0 0 1000000000 1000000000
 1000000000 1000000000 1000000000 1000000000 1000000000
 3 1000000000 1000000000 1000000000
 10 10 10 1000000000 1000000000
 1000000000 1000000000 1000000000 1000000000
 10 10 10 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
 10 10 10 10 10 1000000000 1000000000 1000000000 1000000000 1000000000
 3 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
 0 0 0 0 0 1000000000 1000000000 1000000000 1000000000 1000000000

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_ARRAY_MAX		100000									// 最大配列数
#define D_VAL_MAX		1000000000								// 最大値

// 内部変数
static FILE *szpFpI;											// 入力
static char sc1Out[D_ARRAY_MAX * 20];							// 出力内容
static char *scpOut;											// 出力位置

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

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

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

	return 0;
}

// 出力内容 - 追加
int
fOutAdd(
	int piVal					// <I> 値
)
{
	char lc1Buf[1024];
	sprintf(lc1Buf, "%d ", piVal);
	int liLen = strlen(lc1Buf);
	memcpy(scpOut, lc1Buf, liLen);
	scpOut += liLen;

	return 0;
}

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

	// 条件 - 取得
	int liN, liK, liS;
	fgets(lc1Buf, sizeof(lc1Buf), szpFpI);
	sscanf(lc1Buf, "%d%d%d", &liN, &liK, &liS);

	// S を K 個追加
	for (i = 0; i < liK; i++) {
		fOutAdd(liS);
	}

	// !S を (N-K) 個追加
	int liVal;
	if (liS < D_VAL_MAX) {
		liVal = D_VAL_MAX;
	}
	else {
		liVal = 1;
	}
	for (i = 0; i < liN - liK; i++) {
		fOutAdd(liVal);
	}

	// 出力
	*scpOut = '\0';
	scpOut--;
	*scpOut = '\n';
	fOutLine(sc1Out);

	return 0;
}

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

	// データ - 初期化
	scpOut = sc1Out;											// 出力位置

	// 入力 - セット
#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();

	// 残データ有無
#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	sc1Out
	.comm	sc1Out,2000000,32
	.local	scpOut
	.comm	scpOut,8,8
	.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
	.section	.rodata
.LC1:
	.string	"%d "
	.text
	.globl	fOutAdd
	.type	fOutAdd, @function
fOutAdd:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1072, %rsp
	movl	%edi, -1060(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-1060(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC1(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %eax
	movslq	%eax, %rdx
	movq	scpOut(%rip), %rax
	leaq	-1040(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movq	scpOut(%rip), %rdx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, scpOut(%rip)
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fOutAdd, .-fOutAdd
	.section	.rodata
.LC2:
	.string	"%d%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1072, %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	-1052(%rbp), %rsi
	leaq	-1056(%rbp), %rcx
	leaq	-1060(%rbp), %rdx
	leaq	-1040(%rbp), %rax
	movq	%rsi, %r8
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1048(%rbp)
	jmp	.L8
.L9:
	movl	-1052(%rbp), %eax
	movl	%eax, %edi
	call	fOutAdd
	addl	$1, -1048(%rbp)
.L8:
	movl	-1056(%rbp), %eax
	cmpl	%eax, -1048(%rbp)
	jl	.L9
	movl	-1052(%rbp), %eax
	cmpl	$999999999, %eax
	jg	.L10
	movl	$1000000000, -1044(%rbp)
	jmp	.L11
.L10:
	movl	$1, -1044(%rbp)
.L11:
	movl	$0, -1048(%rbp)
	jmp	.L12
.L13:
	movl	-1044(%rbp), %eax
	movl	%eax, %edi
	call	fOutAdd
	addl	$1, -1048(%rbp)
.L12:
	movl	-1060(%rbp), %eax
	movl	-1056(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -1048(%rbp)
	jl	.L13
	movq	scpOut(%rip), %rax
	movb	$0, (%rax)
	movq	scpOut(%rip), %rax
	subq	$1, %rax
	movq	%rax, scpOut(%rip)
	movq	scpOut(%rip), %rax
	movb	$10, (%rax)
	leaq	sc1Out(%rip), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fMain, .-fMain
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB9:
	.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
	leaq	sc1Out(%rip), %rax
	movq	%rax, scpOut(%rip)
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.LFE10:
	.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	sc1Out
	.comm	sc1Out,2000000,32
	.local	scpOut
	.comm	scpOut,8,8
	.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
	.section	.rodata
.LC1:
	.string	"%d "
	.text
	.globl	fOutAdd
	.type	fOutAdd, @function
fOutAdd:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1072, %rsp
	movl	%edi, -1060(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	-1060(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC1(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -1044(%rbp)
	movl	-1044(%rbp), %eax
	movslq	%eax, %rdx
	movq	scpOut(%rip), %rax
	leaq	-1040(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movq	scpOut(%rip), %rdx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, scpOut(%rip)
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fOutAdd, .-fOutAdd
	.section	.rodata
.LC2:
	.string	"%d%d%d"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1072, %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	-1052(%rbp), %rsi
	leaq	-1056(%rbp), %rcx
	leaq	-1060(%rbp), %rdx
	leaq	-1040(%rbp), %rax
	movq	%rsi, %r8
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -1048(%rbp)
	jmp	.L8
.L9:
	movl	-1052(%rbp), %eax
	movl	%eax, %edi
	call	fOutAdd
	addl	$1, -1048(%rbp)
.L8:
	movl	-1056(%rbp), %eax
	cmpl	%eax, -1048(%rbp)
	jl	.L9
	movl	-1052(%rbp), %eax
	cmpl	$999999999, %eax
	jg	.L10
	movl	$1000000000, -1044(%rbp)
	jmp	.L11
.L10:
	movl	$1, -1044(%rbp)
.L11:
	movl	$0, -1048(%rbp)
	jmp	.L12
.L13:
	movl	-1044(%rbp), %eax
	movl	%eax, %edi
	call	fOutAdd
	addl	$1, -1048(%rbp)
.L12:
	movl	-1060(%rbp), %eax
	movl	-1056(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -1048(%rbp)
	jl	.L13
	movq	scpOut(%rip), %rax
	movb	$0, (%rax)
	movq	scpOut(%rip), %rax
	subq	$1, %rax
	movq	%rax, scpOut(%rip)
	movq	scpOut(%rip), %rax
	movb	$10, (%rax)
	leaq	sc1Out(%rip), %rax
	movq	%rax, %rdi
	call	fOutLine
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fMain, .-fMain
	.globl	fOne
	.type	fOne, @function
fOne:
.LFB9:
	.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
	leaq	sc1Out(%rip), %rax
	movq	%rax, scpOut(%rip)
	movq	stdin(%rip), %rax
	movq	%rax, szpFpI(%rip)
	movl	$0, %eax
	call	fMain
	movl	%eax, -1044(%rbp)
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fOne, .-fOne
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.LFE10:
	.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:
