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

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

// 内部定数
#define D_WATER_MAX		30										// 最大水種類数
#define D_SUGAR_MAX		1500									// 最大砂糖種類数
#define D_ON			1										// 汎用フラグ - ON
#define D_OFF			0										// 汎用フラグ - OFF

// 内部変数
static int si1W[D_WATER_MAX + 5];								// 水種類
static int siWCnt;												// 水種類数
static int si1S[D_SUGAR_MAX + 5];								// 砂糖種類
static int siSCnt;												// 砂糖種類数

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

// 実行メイン
int
fMain(
	int piTNo					// <I> テスト番号 1～
)
{
	int i, j;
	char lc1Buf[1024], lc1Out[1024];

	// データ初期化
	memset(si1W, D_OFF, sizeof(si1W));							// 水種類
	siWCnt = 0;													// 水種類数
	memset(si1S, D_OFF, sizeof(si1S));							// 砂糖種類
	siSCnt = 0;													// 砂糖種類数

	// テストファイルオープン
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", piTNo);
	szpFpT = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", piTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#endif

	// 設定取得
	int liW1, liW2, liS1, liS2, liSL, liAL;
#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpT);
#else
	fgets(lc1Buf, sizeof(lc1Buf), stdin);
#endif
	sscanf(lc1Buf, "%d%d%d%d%d%d", &liW1, &liW2, &liS1, &liS2, &liSL, &liAL);

	// 限界濃度
	double ldLimit = (double)liSL / (double)(liSL + 100);

	// 水種類作成
	int liCnt1 = liAL / 100 / liW1;						// 追加回数
	for (i = 0; i <= liCnt1; i++) {
		int liCnt2 = (liAL / 100 - liW1 * i) / liW2;		// 追加回数
		for (j = 0; j <= liCnt2; j++) {
			int liW = liW1 * i + liW2 * j;						// 重さ
			if (liW <= liAL / 100) {
				si1W[liW] = D_ON;
			}
		}
	}
	for (i = 0; i <= D_WATER_MAX; i++) {
		if (si1W[i] == D_ON) {
			si1W[siWCnt] = i;
			siWCnt++;
		}
	}

	// 砂糖種類作成
	liCnt1 = liAL / 2 / liS1;							// 追加回数
	for (i = 0; i <= liCnt1; i++) {
		int liCnt2 = (liAL / 2 - liS1 * i) / liS2;			// 追加回数
		for (j = 0; j <= liCnt2; j++) {
			int liS = liS1 * i + liS2 * j;						// 重さ
			if (liS <= liAL / 2) {
				si1S[liS] = D_ON;
			}
		}
	}
	for (i = 0; i <= D_SUGAR_MAX; i++) {
		if (si1S[i] == D_ON) {
			si1S[siSCnt] = i;
			siSCnt++;
		}
	}

	// 水と砂糖を混ぜる
	double ldMax = -1;
	int liSum, liS;
	for (i = 0; i < siWCnt; i++) {
		for (j = 0; j < siSCnt; j++) {

			// 重さチェック
			int liWeight = si1W[i] * 100 + si1S[j];
			if (liWeight > liAL) {
				continue;
			}

			// 濃度チェック
			double ldCon = (double)si1S[j] / (double)liWeight;
			if (ldCon > ldLimit) {
				continue;
			}

			// 最大濃度
			if (ldMax < ldCon) {
				ldMax = ldCon;
				liSum = liWeight;
				liS = si1S[j];
			}
		}
	}

	// 結果セット
	sprintf(lc1Out, "%d %d\n", liSum, liS);

	// 結果表示
#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, lc1Out)) {
		siRes = -1;
	}
#else
	printf("%s", lc1Out);
#endif

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

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

	return 0;
}

int
main()
{

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

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	si1W
	.comm	si1W,140,32
	.local	siWCnt
	.comm	siWCnt,4,4
	.local	si1S
	.comm	si1S,6020,32
	.local	siSCnt
	.comm	siSCnt,4,4
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%s"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2176, %rsp
	movl	%edi, -2164(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$140, %edx
	movl	$0, %esi
	leaq	si1W(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, siWCnt(%rip)
	movl	$6020, %edx
	movl	$0, %esi
	leaq	si1S(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, siSCnt(%rip)
	movq	stdin(%rip), %rdx
	leaq	-2064(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2140(%rbp), %r8
	leaq	-2144(%rbp), %rdi
	leaq	-2148(%rbp), %rcx
	leaq	-2152(%rbp), %rdx
	leaq	-2064(%rbp), %rax
	leaq	-2132(%rbp), %rsi
	pushq	%rsi
	leaq	-2136(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	addq	$16, %rsp
	movl	-2136(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-2136(%rbp), %eax
	addl	$100, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2080(%rbp)
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-2152(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2112(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L2
.L6:
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-2152(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-2148(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2096(%rbp)
	movl	$0, -2124(%rbp)
	jmp	.L3
.L5:
	movl	-2152(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	-2148(%rbp), %eax
	imull	-2124(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -2092(%rbp)
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%eax, -2092(%rbp)
	jg	.L4
	movl	-2092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	$1, (%rdx,%rax)
.L4:
	addl	$1, -2124(%rbp)
.L3:
	movl	-2124(%rbp), %eax
	cmpl	-2096(%rbp), %eax
	jle	.L5
	addl	$1, -2128(%rbp)
.L2:
	movl	-2128(%rbp), %eax
	cmpl	-2112(%rbp), %eax
	jle	.L6
	movl	$0, -2128(%rbp)
	jmp	.L7
.L9:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	siWCnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	si1W(%rip), %rdx
	movl	-2128(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	siWCnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, siWCnt(%rip)
.L8:
	addl	$1, -2128(%rbp)
.L7:
	cmpl	$30, -2128(%rbp)
	jle	.L9
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	-2144(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2112(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L10
.L14:
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-2144(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	-2140(%rbp), %esi
	cltd
	idivl	%esi
	movl	%eax, -2104(%rbp)
	movl	$0, -2124(%rbp)
	jmp	.L11
.L13:
	movl	-2144(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	-2140(%rbp), %eax
	imull	-2124(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -2100(%rbp)
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -2100(%rbp)
	jg	.L12
	movl	-2100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	$1, (%rdx,%rax)
.L12:
	addl	$1, -2124(%rbp)
.L11:
	movl	-2124(%rbp), %eax
	cmpl	-2104(%rbp), %eax
	jle	.L13
	addl	$1, -2128(%rbp)
.L10:
	movl	-2128(%rbp), %eax
	cmpl	-2112(%rbp), %eax
	jle	.L14
	movl	$0, -2128(%rbp)
	jmp	.L15
.L17:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L16
	movl	siSCnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	si1S(%rip), %rdx
	movl	-2128(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	siSCnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, siSCnt(%rip)
.L16:
	addl	$1, -2128(%rbp)
.L15:
	cmpl	$1500, -2128(%rbp)
	jle	.L17
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -2088(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L18
.L26:
	movl	$0, -2124(%rbp)
	jmp	.L19
.L25:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	$100, %eax, %ecx
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -2108(%rbp)
	movl	-2132(%rbp), %eax
	cmpl	%eax, -2108(%rbp)
	jg	.L30
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-2108(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	movsd	-2072(%rbp), %xmm0
	comisd	-2080(%rbp), %xmm0
	ja	.L31
	movsd	-2072(%rbp), %xmm0
	comisd	-2088(%rbp), %xmm0
	jbe	.L21
	movsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2088(%rbp)
	movl	-2108(%rbp), %eax
	movl	%eax, -2120(%rbp)
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -2116(%rbp)
	jmp	.L21
.L30:
	nop
	jmp	.L21
.L31:
	nop
.L21:
	addl	$1, -2124(%rbp)
.L19:
	movl	siSCnt(%rip), %eax
	cmpl	%eax, -2124(%rbp)
	jl	.L25
	addl	$1, -2128(%rbp)
.L18:
	movl	siWCnt(%rip), %eax
	cmpl	%eax, -2128(%rbp)
	jl	.L26
	movl	-2116(%rbp), %ecx
	movl	-2120(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fMain, .-fMain
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %edi
	call	fMain
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	-1074790400
	.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
.LC1:
	.string	"%d%d%d%d%d%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%s"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$17, %ecx
	movl	$1024, %esi
	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	si1W(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	leaq	si1S(%rip), %rbx
	subq	$2120, %rsp
	.cfi_def_cfa_offset 2176
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 2104(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %r12
	movl	$0, siWCnt(%rip)
	movl	$0, siSCnt(%rip)
	rep stosq
	movl	$752, %ecx
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r12, %rdi
	call	fgets@PLT
	leaq	44(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%r12, %rdi
	leaq	28(%rsp), %rcx
	pushq	%rax
	.cfi_def_cfa_offset 2184
	leaq	.LC1(%rip), %rsi
	leaq	48(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 2192
	xorl	%eax, %eax
	leaq	52(%rsp), %r9
	leaq	48(%rsp), %r8
	call	__isoc99_sscanf@PLT
	movslq	60(%rsp), %rsi
	movl	56(%rsp), %eax
	pxor	%xmm2, %xmm2
	pxor	%xmm0, %xmm0
	movl	40(%rsp), %r12d
	movq	%rsi, %rdi
	imulq	$1374389535, %rsi, %rsi
	cvtsi2sdl	%eax, %xmm2
	addl	$100, %eax
	cvtsi2sdl	%eax, %xmm0
	movl	%edi, %eax
	sarl	$31, %eax
	sarq	$37, %rsi
	subl	%eax, %esi
	movl	%esi, %eax
	divsd	%xmm0, %xmm2
	cltd
	idivl	%r12d
	popq	%rdx
	.cfi_def_cfa_offset 2184
	popq	%rcx
	.cfi_def_cfa_offset 2176
	testl	%eax, %eax
	js	.L7
	movl	28(%rsp), %ecx
	movl	%esi, %r9d
	cmpl	$1, %ecx
	jne	.L58
	movslq	%r12d, %r15
	movq	%rbp, %r13
	leal	1(%rax), %r14d
	xorl	%r10d, %r10d
	salq	$2, %r15
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%r9d, %r9d
	js	.L8
	leal	(%r9,%r10), %r8d
	movq	%r13, %rdx
	movl	%r10d, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%ecx, %eax
.L10:
	cmpl	%eax, %esi
	jl	.L9
	movl	$1, (%rdx)
.L9:
	leal	1(%rax), %ecx
	addq	$4, %rdx
	cmpl	%r8d, %eax
	jne	.L41
.L8:
	addl	$1, %r11d
	subl	%r12d, %r9d
	addl	%r12d, %r10d
	addq	%r15, %r13
	cmpl	%r14d, %r11d
	jne	.L11
.L7:
	movl	siWCnt(%rip), %ecx
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	%ecx, %r9d
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, 0(%rbp,%rax,4)
	jne	.L16
	movslq	%r9d, %rdx
	addl	$1, %r9d
	movl	%eax, 0(%rbp,%rdx,4)
	movl	$1, %edx
.L16:
	addq	$1, %rax
	cmpq	$31, %rax
	jne	.L3
	testb	%dl, %dl
	je	.L42
	movl	%r9d, siWCnt(%rip)
.L17:
	movl	%edi, %esi
	movl	32(%rsp), %r12d
	shrl	$31, %esi
	addl	%edi, %esi
	sarl	%esi
	movl	%esi, %eax
	cltd
	idivl	%r12d
	testl	%eax, %eax
	js	.L23
	movl	36(%rsp), %ecx
	movl	%esi, %r10d
	cmpl	$1, %ecx
	jne	.L59
	movslq	%r12d, %r15
	leaq	si1S(%rip), %r13
	leal	1(%rax), %r14d
	xorl	%ebp, %ebp
	salq	$2, %r15
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L27:
	testl	%r10d, %r10d
	js	.L24
	leal	(%r10,%r11), %r8d
	movq	%r13, %rdx
	movl	%r11d, %eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%ecx, %eax
.L26:
	cmpl	%eax, %esi
	jl	.L25
	movl	$1, (%rdx)
.L25:
	leal	1(%rax), %ecx
	addq	$4, %rdx
	cmpl	%r8d, %eax
	jne	.L43
.L24:
	addl	$1, %ebp
	subl	%r12d, %r10d
	addl	%r12d, %r11d
	addq	%r15, %r13
	cmpl	%r14d, %ebp
	jne	.L27
.L23:
	movl	siSCnt(%rip), %ecx
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	%ecx, %esi
	.p2align 4,,10
	.p2align 3
.L19:
	cmpl	$1, (%rbx,%rax,4)
	jne	.L32
	movslq	%esi, %rdx
	addl	$1, %esi
	movl	%eax, (%rbx,%rdx,4)
	movl	$1, %edx
.L32:
	addq	$1, %rax
	cmpq	$1501, %rax
	jne	.L19
	testb	%dl, %dl
	je	.L44
	movl	%esi, siSCnt(%rip)
.L33:
	testl	%r9d, %r9d
	jle	.L34
	leaq	si1W(%rip), %r10
	leal	-1(%r9), %edx
	movl	(%rsp), %ebp
	movl	4(%rsp), %r12d
	leaq	4(%r10), %rax
	movsd	.LC0(%rip), %xmm3
	leaq	(%rax,%rdx,4), %r11
	leal	-1(%rsi), %eax
	leaq	4+si1S(%rip), %rdx
	leaq	(%rdx,%rax,4), %r9
	.p2align 4,,10
	.p2align 3
.L35:
	testl	%esi, %esi
	jle	.L39
	imull	$100, (%r10), %r8d
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L37:
	movl	(%rax), %ecx
	leal	(%r8,%rcx), %edx
	cmpl	%edx, %edi
	jl	.L36
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm0
	cvtsi2sdl	%edx, %xmm1
	divsd	%xmm1, %xmm0
	comisd	%xmm2, %xmm0
	ja	.L36
	comisd	%xmm3, %xmm0
	jbe	.L36
	movl	%ecx, %r12d
	movl	%edx, %ebp
	movapd	%xmm0, %xmm3
.L36:
	addq	$4, %rax
	cmpq	%rax, %r9
	jne	.L37
.L39:
	addq	$4, %r10
	cmpq	%r11, %r10
	jne	.L35
	movl	%ebp, (%rsp)
	movl	%r12d, 4(%rsp)
.L34:
	movl	4(%rsp), %r9d
	movl	(%rsp), %r8d
	movl	$1024, %edx
	xorl	%eax, %eax
	leaq	1072(%rsp), %r12
	movl	$1, %esi
	leaq	.LC2(%rip), %rcx
	movq	%r12, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	2104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$2120, %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
.L42:
	.cfi_restore_state
	movl	%ecx, %r9d
	jmp	.L17
.L44:
	movl	%ecx, %esi
	jmp	.L33
.L59:
	movslq	%r12d, %rdx
	addl	$1, %eax
	movslq	%ecx, %r8
	movl	%edi, 8(%rsp)
	salq	$2, %rdx
	movl	%r9d, 12(%rsp)
	salq	$2, %r8
	xorl	%r14d, %r14d
	leaq	si1S(%rip), %r15
	xorl	%r11d, %r11d
	movq	%rdx, %rdi
	movl	%eax, %r9d
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r10d, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	js	.L31
	leal	1(%rax), %r13d
	movq	%r15, %rbp
	movl	%r14d, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	%edx, %esi
	jl	.L29
	movl	$1, 0(%rbp)
.L29:
	addl	$1, %eax
	addl	%ecx, %edx
	addq	%r8, %rbp
	cmpl	%r13d, %eax
	jne	.L30
.L31:
	addl	$1, %r11d
	subl	%r12d, %r10d
	addl	%r12d, %r14d
	addq	%rdi, %r15
	cmpl	%r9d, %r11d
	jne	.L22
	movl	8(%rsp), %edi
	movl	12(%rsp), %r9d
	jmp	.L23
.L58:
	addl	$1, %eax
	movslq	%r12d, %rdx
	movslq	%ecx, %r8
	movl	%edi, 12(%rsp)
	movl	%eax, 8(%rsp)
	salq	$2, %rdx
	movq	%rbp, %r15
	salq	$2, %r8
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
	movq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r9d, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	js	.L15
	leal	1(%rax), %r13d
	movq	%r15, %r11
	movl	%r14d, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edx, %esi
	jl	.L13
	movl	$1, (%r11)
.L13:
	addl	$1, %eax
	addl	%ecx, %edx
	addq	%r8, %r11
	cmpl	%r13d, %eax
	jne	.L14
.L15:
	addl	$1, %r10d
	subl	%r12d, %r9d
	addl	%r12d, %r14d
	addq	%rdi, %r15
	cmpl	8(%rsp), %r10d
	jne	.L6
	movl	12(%rsp), %edi
	jmp	.L7
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	fMain, .-fMain
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%edi, %edi
	call	fMain
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.local	siSCnt
	.comm	siSCnt,4,4
	.local	si1S
	.comm	si1S,6020,32
	.local	siWCnt
	.comm	siWCnt,4,4
	.local	si1W
	.comm	si1W,140,32
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	-1074790400
	.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
.LC1:
	.string	"%d%d%d%d%d%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%s"
	.text
	.p2align 4
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$17, %ecx
	movl	$1024, %esi
	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	si1W(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	leaq	si1S(%rip), %rbx
	subq	$2120, %rsp
	.cfi_def_cfa_offset 2176
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 2104(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %r12
	movl	$0, siWCnt(%rip)
	movl	$0, siSCnt(%rip)
	rep stosq
	movl	$752, %ecx
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r12, %rdi
	call	fgets@PLT
	leaq	44(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%r12, %rdi
	leaq	28(%rsp), %rcx
	pushq	%rax
	.cfi_def_cfa_offset 2184
	leaq	.LC1(%rip), %rsi
	leaq	48(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 2192
	xorl	%eax, %eax
	leaq	52(%rsp), %r9
	leaq	48(%rsp), %r8
	call	__isoc99_sscanf@PLT
	movslq	60(%rsp), %rsi
	movl	56(%rsp), %eax
	pxor	%xmm2, %xmm2
	pxor	%xmm0, %xmm0
	movl	40(%rsp), %r12d
	movq	%rsi, %rdi
	imulq	$1374389535, %rsi, %rsi
	cvtsi2sdl	%eax, %xmm2
	addl	$100, %eax
	cvtsi2sdl	%eax, %xmm0
	movl	%edi, %eax
	sarl	$31, %eax
	sarq	$37, %rsi
	subl	%eax, %esi
	movl	%esi, %eax
	divsd	%xmm0, %xmm2
	cltd
	idivl	%r12d
	popq	%rdx
	.cfi_def_cfa_offset 2184
	popq	%rcx
	.cfi_def_cfa_offset 2176
	testl	%eax, %eax
	js	.L7
	movl	28(%rsp), %ecx
	movl	%esi, %r9d
	cmpl	$1, %ecx
	jne	.L58
	movslq	%r12d, %r15
	movq	%rbp, %r13
	leal	1(%rax), %r14d
	xorl	%r10d, %r10d
	salq	$2, %r15
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%r9d, %r9d
	js	.L8
	leal	(%r9,%r10), %r8d
	movq	%r13, %rdx
	movl	%r10d, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%ecx, %eax
.L10:
	cmpl	%eax, %esi
	jl	.L9
	movl	$1, (%rdx)
.L9:
	leal	1(%rax), %ecx
	addq	$4, %rdx
	cmpl	%r8d, %eax
	jne	.L41
.L8:
	addl	$1, %r11d
	subl	%r12d, %r9d
	addl	%r12d, %r10d
	addq	%r15, %r13
	cmpl	%r14d, %r11d
	jne	.L11
.L7:
	movl	siWCnt(%rip), %ecx
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	%ecx, %r9d
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, 0(%rbp,%rax,4)
	jne	.L16
	movslq	%r9d, %rdx
	addl	$1, %r9d
	movl	%eax, 0(%rbp,%rdx,4)
	movl	$1, %edx
.L16:
	addq	$1, %rax
	cmpq	$31, %rax
	jne	.L3
	testb	%dl, %dl
	je	.L42
	movl	%r9d, siWCnt(%rip)
.L17:
	movl	%edi, %esi
	movl	32(%rsp), %r12d
	shrl	$31, %esi
	addl	%edi, %esi
	sarl	%esi
	movl	%esi, %eax
	cltd
	idivl	%r12d
	testl	%eax, %eax
	js	.L23
	movl	36(%rsp), %ecx
	movl	%esi, %r10d
	cmpl	$1, %ecx
	jne	.L59
	movslq	%r12d, %r15
	leaq	si1S(%rip), %r13
	leal	1(%rax), %r14d
	xorl	%ebp, %ebp
	salq	$2, %r15
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L27:
	testl	%r10d, %r10d
	js	.L24
	leal	(%r10,%r11), %r8d
	movq	%r13, %rdx
	movl	%r11d, %eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%ecx, %eax
.L26:
	cmpl	%eax, %esi
	jl	.L25
	movl	$1, (%rdx)
.L25:
	leal	1(%rax), %ecx
	addq	$4, %rdx
	cmpl	%r8d, %eax
	jne	.L43
.L24:
	addl	$1, %ebp
	subl	%r12d, %r10d
	addl	%r12d, %r11d
	addq	%r15, %r13
	cmpl	%r14d, %ebp
	jne	.L27
.L23:
	movl	siSCnt(%rip), %ecx
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	%ecx, %esi
	.p2align 4,,10
	.p2align 3
.L19:
	cmpl	$1, (%rbx,%rax,4)
	jne	.L32
	movslq	%esi, %rdx
	addl	$1, %esi
	movl	%eax, (%rbx,%rdx,4)
	movl	$1, %edx
.L32:
	addq	$1, %rax
	cmpq	$1501, %rax
	jne	.L19
	testb	%dl, %dl
	je	.L44
	movl	%esi, siSCnt(%rip)
.L33:
	testl	%r9d, %r9d
	jle	.L34
	leaq	si1W(%rip), %r10
	leal	-1(%r9), %edx
	movl	(%rsp), %ebp
	movl	4(%rsp), %r12d
	leaq	4(%r10), %rax
	movsd	.LC0(%rip), %xmm3
	leaq	(%rax,%rdx,4), %r11
	leal	-1(%rsi), %eax
	leaq	4+si1S(%rip), %rdx
	leaq	(%rdx,%rax,4), %r9
	.p2align 4,,10
	.p2align 3
.L35:
	testl	%esi, %esi
	jle	.L39
	imull	$100, (%r10), %r8d
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L37:
	movl	(%rax), %ecx
	leal	(%r8,%rcx), %edx
	cmpl	%edx, %edi
	jl	.L36
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm0
	cvtsi2sdl	%edx, %xmm1
	divsd	%xmm1, %xmm0
	comisd	%xmm2, %xmm0
	ja	.L36
	comisd	%xmm3, %xmm0
	jbe	.L36
	movl	%ecx, %r12d
	movl	%edx, %ebp
	movapd	%xmm0, %xmm3
.L36:
	addq	$4, %rax
	cmpq	%rax, %r9
	jne	.L37
.L39:
	addq	$4, %r10
	cmpq	%r11, %r10
	jne	.L35
	movl	%ebp, (%rsp)
	movl	%r12d, 4(%rsp)
.L34:
	movl	4(%rsp), %r9d
	movl	(%rsp), %r8d
	movl	$1024, %edx
	xorl	%eax, %eax
	leaq	1072(%rsp), %r12
	movl	$1, %esi
	leaq	.LC2(%rip), %rcx
	movq	%r12, %rdi
	call	__sprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	2104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$2120, %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
.L42:
	.cfi_restore_state
	movl	%ecx, %r9d
	jmp	.L17
.L44:
	movl	%ecx, %esi
	jmp	.L33
.L59:
	movslq	%r12d, %rdx
	addl	$1, %eax
	movslq	%ecx, %r8
	movl	%edi, 8(%rsp)
	salq	$2, %rdx
	movl	%r9d, 12(%rsp)
	salq	$2, %r8
	xorl	%r14d, %r14d
	leaq	si1S(%rip), %r15
	xorl	%r11d, %r11d
	movq	%rdx, %rdi
	movl	%eax, %r9d
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r10d, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	js	.L31
	leal	1(%rax), %r13d
	movq	%r15, %rbp
	movl	%r14d, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	%edx, %esi
	jl	.L29
	movl	$1, 0(%rbp)
.L29:
	addl	$1, %eax
	addl	%ecx, %edx
	addq	%r8, %rbp
	cmpl	%r13d, %eax
	jne	.L30
.L31:
	addl	$1, %r11d
	subl	%r12d, %r10d
	addl	%r12d, %r14d
	addq	%rdi, %r15
	cmpl	%r9d, %r11d
	jne	.L22
	movl	8(%rsp), %edi
	movl	12(%rsp), %r9d
	jmp	.L23
.L58:
	addl	$1, %eax
	movslq	%r12d, %rdx
	movslq	%ecx, %r8
	movl	%edi, 12(%rsp)
	movl	%eax, 8(%rsp)
	salq	$2, %rdx
	movq	%rbp, %r15
	salq	$2, %r8
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
	movq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r9d, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	js	.L15
	leal	1(%rax), %r13d
	movq	%r15, %r11
	movl	%r14d, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edx, %esi
	jl	.L13
	movl	$1, (%r11)
.L13:
	addl	$1, %eax
	addl	%ecx, %edx
	addq	%r8, %r11
	cmpl	%r13d, %eax
	jne	.L14
.L15:
	addl	$1, %r10d
	subl	%r12d, %r9d
	addl	%r12d, %r14d
	addq	%rdi, %r15
	cmpl	8(%rsp), %r10d
	jne	.L6
	movl	12(%rsp), %edi
	jmp	.L7
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	fMain, .-fMain
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%edi, %edi
	call	fMain
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.local	siSCnt
	.comm	siSCnt,4,4
	.local	si1S
	.comm	si1S,6020,32
	.local	siWCnt
	.comm	siWCnt,4,4
	.local	si1W
	.comm	si1W,140,32
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	-1074790400
	.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 <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// 内部定数
#define D_WATER_MAX		30										// 最大水種類数
#define D_SUGAR_MAX		1500									// 最大砂糖種類数
#define D_ON			1										// 汎用フラグ - ON
#define D_OFF			0										// 汎用フラグ - OFF

// 内部変数
static int si1W[D_WATER_MAX + 5];								// 水種類
static int siWCnt;												// 水種類数
static int si1S[D_SUGAR_MAX + 5];								// 砂糖種類
static int siSCnt;												// 砂糖種類数

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

// 実行メイン
int
fMain(
	int piTNo					// <I> テスト番号 1～
)
{
	int i, j;
	char lc1Buf[1024], lc1Out[1024];

	// データ初期化
	memset(si1W, D_OFF, sizeof(si1W));							// 水種類
	siWCnt = 0;													// 水種類数
	memset(si1S, D_OFF, sizeof(si1S));							// 砂糖種類
	siSCnt = 0;													// 砂糖種類数

	// テストファイルオープン
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", piTNo);
	szpFpT = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", piTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#endif

	// 設定取得
	int liW1, liW2, liS1, liS2, liSL, liAL;
#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpT);
#else
	fgets(lc1Buf, sizeof(lc1Buf), stdin);
#endif
	sscanf(lc1Buf, "%d%d%d%d%d%d", &liW1, &liW2, &liS1, &liS2, &liSL, &liAL);

	// 限界濃度
	double ldLimit = (double)liSL / (double)(liSL + 100);

	// 水種類作成
	int liCnt1 = liAL / 100 / liW1;						// 追加回数
	for (i = 0; i <= liCnt1; i++) {
		int liCnt2 = (liAL / 100 - liW1 * i) / liW2;		// 追加回数
		for (j = 0; j <= liCnt2; j++) {
			int liW = liW1 * i + liW2 * j;						// 重さ
			if (liW <= liAL / 100) {
				si1W[liW] = D_ON;
			}
		}
	}
	for (i = 0; i <= D_WATER_MAX; i++) {
		if (si1W[i] == D_ON) {
			si1W[siWCnt] = i;
			siWCnt++;
		}
	}

	// 砂糖種類作成
	liCnt1 = liAL / 2 / liS1;							// 追加回数
	for (i = 0; i <= liCnt1; i++) {
		int liCnt2 = (liAL / 2 - liS1 * i) / liS2;			// 追加回数
		for (j = 0; j <= liCnt2; j++) {
			int liS = liS1 * i + liS2 * j;						// 重さ
			if (liS <= liAL / 2) {
				si1S[liS] = D_ON;
			}
		}
	}
	for (i = 0; i <= D_SUGAR_MAX; i++) {
		if (si1S[i] == D_ON) {
			si1S[siSCnt] = i;
			siSCnt++;
		}
	}

	// 水と砂糖を混ぜる
	double ldMax = -1;
	int liSum, liS;
	for (i = 0; i < siWCnt; i++) {
		for (j = 0; j < siSCnt; j++) {

			// 重さチェック
			int liWeight = si1W[i] * 100 + si1S[j];
			if (liWeight > liAL) {
				continue;
			}

			// 濃度チェック
			double ldCon = (double)si1S[j] / (double)liWeight;
			if (ldCon > ldLimit) {
				continue;
			}

			// 最大濃度
			if (ldMax < ldCon) {
				ldMax = ldCon;
				liSum = liWeight;
				liS = si1S[j];
			}
		}
	}

	// 結果セット
	sprintf(lc1Out, "%d %d\n", liSum, liS);

	// 結果表示
#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, lc1Out)) {
		siRes = -1;
	}
#else
	printf("%s", lc1Out);
#endif

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

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

	return 0;
}

int
main()
{

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

	return 0;
}


1 2 10 20 15 179
 26 19 22 26 55 2802
 1 2 5 20 15 179
 26 29 22 26 55 2802
 1 1 5 20 27 179
 17 19 22 47 55 2802
 14 29 22 26 55 2802
 1 3 10 20 15 243
 5 31 22 26 55 2802
 2 1 1 20 17 179

110 10
 2802 902
 115 15
 2802 202
 125 25
 2635 935
 2170 770
 230 30
 1550 550
 117 17

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

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

// 内部定数
#define D_WATER_MAX		30										// 最大水種類数
#define D_SUGAR_MAX		1500									// 最大砂糖種類数
#define D_ON			1										// 汎用フラグ - ON
#define D_OFF			0										// 汎用フラグ - OFF

// 内部変数
static int si1W[D_WATER_MAX + 5];								// 水種類
static int siWCnt;												// 水種類数
static int si1S[D_SUGAR_MAX + 5];								// 砂糖種類
static int siSCnt;												// 砂糖種類数

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

// 実行メイン
int
fMain(
	int piTNo					// <I> テスト番号 1～
)
{
	int i, j;
	char lc1Buf[1024], lc1Out[1024];

	// データ初期化
	memset(si1W, D_OFF, sizeof(si1W));							// 水種類
	siWCnt = 0;													// 水種類数
	memset(si1S, D_OFF, sizeof(si1S));							// 砂糖種類
	siSCnt = 0;													// 砂糖種類数

	// テストファイルオープン
#ifdef D_TEST
	sprintf(lc1Buf, ".\\Test\\T%d.txt", piTNo);
	szpFpT = fopen(lc1Buf, "r");
	sprintf(lc1Buf, ".\\Test\\A%d.txt", piTNo);
	szpFpA = fopen(lc1Buf, "r");
	siRes = 0;
#endif

	// 設定取得
	int liW1, liW2, liS1, liS2, liSL, liAL;
#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpT);
#else
	fgets(lc1Buf, sizeof(lc1Buf), stdin);
#endif
	sscanf(lc1Buf, "%d%d%d%d%d%d", &liW1, &liW2, &liS1, &liS2, &liSL, &liAL);

	// 限界濃度
	double ldLimit = (double)liSL / (double)(liSL + 100);

	// 水種類作成
	int liCnt1 = liAL / 100 / liW1;						// 追加回数
	for (i = 0; i <= liCnt1; i++) {
		int liCnt2 = (liAL / 100 - liW1 * i) / liW2;		// 追加回数
		for (j = 0; j <= liCnt2; j++) {
			int liW = liW1 * i + liW2 * j;						// 重さ
			if (liW <= liAL / 100) {
				si1W[liW] = D_ON;
			}
		}
	}
	for (i = 0; i <= D_WATER_MAX; i++) {
		if (si1W[i] == D_ON) {
			si1W[siWCnt] = i;
			siWCnt++;
		}
	}

	// 砂糖種類作成
	liCnt1 = liAL / 2 / liS1;							// 追加回数
	for (i = 0; i <= liCnt1; i++) {
		int liCnt2 = (liAL / 2 - liS1 * i) / liS2;			// 追加回数
		for (j = 0; j <= liCnt2; j++) {
			int liS = liS1 * i + liS2 * j;						// 重さ
			if (liS <= liAL / 2) {
				si1S[liS] = D_ON;
			}
		}
	}
	for (i = 0; i <= D_SUGAR_MAX; i++) {
		if (si1S[i] == D_ON) {
			si1S[siSCnt] = i;
			siSCnt++;
		}
	}

	// 水と砂糖を混ぜる
	double ldMax = -1;
	int liSum, liS;
	for (i = 0; i < siWCnt; i++) {
		for (j = 0; j < siSCnt; j++) {

			// 重さチェック
			int liWeight = si1W[i] * 100 + si1S[j];
			if (liWeight > liAL) {
				continue;
			}

			// 濃度チェック
			double ldCon = (double)si1S[j] / (double)liWeight;
			if (ldCon > ldLimit) {
				continue;
			}

			// 最大濃度
			if (ldMax < ldCon) {
				ldMax = ldCon;
				liSum = liWeight;
				liS = si1S[j];
			}
		}
	}

	// 結果セット
	sprintf(lc1Out, "%d %d\n", liSum, liS);

	// 結果表示
#ifdef D_TEST
	fgets(lc1Buf, sizeof(lc1Buf), szpFpA);
	if (strcmp(lc1Buf, lc1Out)) {
		siRes = -1;
	}
#else
	printf("%s", lc1Out);
#endif

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

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

	return 0;
}

int
main()
{

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

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	si1W
	.comm	si1W,140,32
	.local	siWCnt
	.comm	siWCnt,4,4
	.local	si1S
	.comm	si1S,6020,32
	.local	siSCnt
	.comm	siSCnt,4,4
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%s"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2176, %rsp
	movl	%edi, -2164(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$140, %edx
	movl	$0, %esi
	leaq	si1W(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, siWCnt(%rip)
	movl	$6020, %edx
	movl	$0, %esi
	leaq	si1S(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, siSCnt(%rip)
	movq	stdin(%rip), %rdx
	leaq	-2064(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2140(%rbp), %r8
	leaq	-2144(%rbp), %rdi
	leaq	-2148(%rbp), %rcx
	leaq	-2152(%rbp), %rdx
	leaq	-2064(%rbp), %rax
	leaq	-2132(%rbp), %rsi
	pushq	%rsi
	leaq	-2136(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	addq	$16, %rsp
	movl	-2136(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-2136(%rbp), %eax
	addl	$100, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2080(%rbp)
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-2152(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2112(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L2
.L6:
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-2152(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-2148(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2096(%rbp)
	movl	$0, -2124(%rbp)
	jmp	.L3
.L5:
	movl	-2152(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	-2148(%rbp), %eax
	imull	-2124(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -2092(%rbp)
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%eax, -2092(%rbp)
	jg	.L4
	movl	-2092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	$1, (%rdx,%rax)
.L4:
	addl	$1, -2124(%rbp)
.L3:
	movl	-2124(%rbp), %eax
	cmpl	-2096(%rbp), %eax
	jle	.L5
	addl	$1, -2128(%rbp)
.L2:
	movl	-2128(%rbp), %eax
	cmpl	-2112(%rbp), %eax
	jle	.L6
	movl	$0, -2128(%rbp)
	jmp	.L7
.L9:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	siWCnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	si1W(%rip), %rdx
	movl	-2128(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	siWCnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, siWCnt(%rip)
.L8:
	addl	$1, -2128(%rbp)
.L7:
	cmpl	$30, -2128(%rbp)
	jle	.L9
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	-2144(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2112(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L10
.L14:
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-2144(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	-2140(%rbp), %esi
	cltd
	idivl	%esi
	movl	%eax, -2104(%rbp)
	movl	$0, -2124(%rbp)
	jmp	.L11
.L13:
	movl	-2144(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	-2140(%rbp), %eax
	imull	-2124(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -2100(%rbp)
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -2100(%rbp)
	jg	.L12
	movl	-2100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	$1, (%rdx,%rax)
.L12:
	addl	$1, -2124(%rbp)
.L11:
	movl	-2124(%rbp), %eax
	cmpl	-2104(%rbp), %eax
	jle	.L13
	addl	$1, -2128(%rbp)
.L10:
	movl	-2128(%rbp), %eax
	cmpl	-2112(%rbp), %eax
	jle	.L14
	movl	$0, -2128(%rbp)
	jmp	.L15
.L17:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L16
	movl	siSCnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	si1S(%rip), %rdx
	movl	-2128(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	siSCnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, siSCnt(%rip)
.L16:
	addl	$1, -2128(%rbp)
.L15:
	cmpl	$1500, -2128(%rbp)
	jle	.L17
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -2088(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L18
.L26:
	movl	$0, -2124(%rbp)
	jmp	.L19
.L25:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	$100, %eax, %ecx
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -2108(%rbp)
	movl	-2132(%rbp), %eax
	cmpl	%eax, -2108(%rbp)
	jg	.L30
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-2108(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	movsd	-2072(%rbp), %xmm0
	comisd	-2080(%rbp), %xmm0
	ja	.L31
	movsd	-2072(%rbp), %xmm0
	comisd	-2088(%rbp), %xmm0
	jbe	.L21
	movsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2088(%rbp)
	movl	-2108(%rbp), %eax
	movl	%eax, -2120(%rbp)
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -2116(%rbp)
	jmp	.L21
.L30:
	nop
	jmp	.L21
.L31:
	nop
.L21:
	addl	$1, -2124(%rbp)
.L19:
	movl	siSCnt(%rip), %eax
	cmpl	%eax, -2124(%rbp)
	jl	.L25
	addl	$1, -2128(%rbp)
.L18:
	movl	siWCnt(%rip), %eax
	cmpl	%eax, -2128(%rbp)
	jl	.L26
	movl	-2116(%rbp), %ecx
	movl	-2120(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fMain, .-fMain
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %edi
	call	fMain
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	-1074790400
	.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	si1W
	.comm	si1W,140,32
	.local	siWCnt
	.comm	siWCnt,4,4
	.local	si1S
	.comm	si1S,6020,32
	.local	siSCnt
	.comm	siSCnt,4,4
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%d"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%s"
	.text
	.globl	fMain
	.type	fMain, @function
fMain:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2176, %rsp
	movl	%edi, -2164(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$140, %edx
	movl	$0, %esi
	leaq	si1W(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, siWCnt(%rip)
	movl	$6020, %edx
	movl	$0, %esi
	leaq	si1S(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, siSCnt(%rip)
	movq	stdin(%rip), %rdx
	leaq	-2064(%rbp), %rax
	movl	$1024, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2140(%rbp), %r8
	leaq	-2144(%rbp), %rdi
	leaq	-2148(%rbp), %rcx
	leaq	-2152(%rbp), %rdx
	leaq	-2064(%rbp), %rax
	leaq	-2132(%rbp), %rsi
	pushq	%rsi
	leaq	-2136(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	addq	$16, %rsp
	movl	-2136(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-2136(%rbp), %eax
	addl	$100, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2080(%rbp)
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-2152(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2112(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L2
.L6:
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	-2152(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	-2148(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2096(%rbp)
	movl	$0, -2124(%rbp)
	jmp	.L3
.L5:
	movl	-2152(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	-2148(%rbp), %eax
	imull	-2124(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -2092(%rbp)
	movl	-2132(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%eax, -2092(%rbp)
	jg	.L4
	movl	-2092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	$1, (%rdx,%rax)
.L4:
	addl	$1, -2124(%rbp)
.L3:
	movl	-2124(%rbp), %eax
	cmpl	-2096(%rbp), %eax
	jle	.L5
	addl	$1, -2128(%rbp)
.L2:
	movl	-2128(%rbp), %eax
	cmpl	-2112(%rbp), %eax
	jle	.L6
	movl	$0, -2128(%rbp)
	jmp	.L7
.L9:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L8
	movl	siWCnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	si1W(%rip), %rdx
	movl	-2128(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	siWCnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, siWCnt(%rip)
.L8:
	addl	$1, -2128(%rbp)
.L7:
	cmpl	$30, -2128(%rbp)
	jle	.L9
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	-2144(%rbp), %edi
	cltd
	idivl	%edi
	movl	%eax, -2112(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L10
.L14:
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-2144(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	-2140(%rbp), %esi
	cltd
	idivl	%esi
	movl	%eax, -2104(%rbp)
	movl	$0, -2124(%rbp)
	jmp	.L11
.L13:
	movl	-2144(%rbp), %eax
	imull	-2128(%rbp), %eax
	movl	%eax, %edx
	movl	-2140(%rbp), %eax
	imull	-2124(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -2100(%rbp)
	movl	-2132(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -2100(%rbp)
	jg	.L12
	movl	-2100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	$1, (%rdx,%rax)
.L12:
	addl	$1, -2124(%rbp)
.L11:
	movl	-2124(%rbp), %eax
	cmpl	-2104(%rbp), %eax
	jle	.L13
	addl	$1, -2128(%rbp)
.L10:
	movl	-2128(%rbp), %eax
	cmpl	-2112(%rbp), %eax
	jle	.L14
	movl	$0, -2128(%rbp)
	jmp	.L15
.L17:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L16
	movl	siSCnt(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	si1S(%rip), %rdx
	movl	-2128(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	siSCnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, siSCnt(%rip)
.L16:
	addl	$1, -2128(%rbp)
.L15:
	cmpl	$1500, -2128(%rbp)
	jle	.L17
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -2088(%rbp)
	movl	$0, -2128(%rbp)
	jmp	.L18
.L26:
	movl	$0, -2124(%rbp)
	jmp	.L19
.L25:
	movl	-2128(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1W(%rip), %rax
	movl	(%rdx,%rax), %eax
	imull	$100, %eax, %ecx
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -2108(%rbp)
	movl	-2132(%rbp), %eax
	cmpl	%eax, -2108(%rbp)
	jg	.L30
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-2108(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	movsd	-2072(%rbp), %xmm0
	comisd	-2080(%rbp), %xmm0
	ja	.L31
	movsd	-2072(%rbp), %xmm0
	comisd	-2088(%rbp), %xmm0
	jbe	.L21
	movsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2088(%rbp)
	movl	-2108(%rbp), %eax
	movl	%eax, -2120(%rbp)
	movl	-2124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	si1S(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -2116(%rbp)
	jmp	.L21
.L30:
	nop
	jmp	.L21
.L31:
	nop
.L21:
	addl	$1, -2124(%rbp)
.L19:
	movl	siSCnt(%rip), %eax
	cmpl	%eax, -2124(%rbp)
	jl	.L25
	addl	$1, -2128(%rbp)
.L18:
	movl	siWCnt(%rip), %eax
	cmpl	%eax, -2128(%rbp)
	jl	.L26
	movl	-2116(%rbp), %ecx
	movl	-2120(%rbp), %edx
	leaq	-1040(%rbp), %rax
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	leaq	-1040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fMain, .-fMain
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, %edi
	call	fMain
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	-1074790400
	.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:
