// File: /workspace/github_cpp_makefile_star2_O3/SethKasmann[P]clever-girl/src/test.cpp
// Function: ccrTest()
void ccrTest()
{
	for (int i = 0; i < ccrTotalTests; ++i)
	{
		State s(ccrFen[i]);
		history.clear();
		history.push(std::make_pair(nullMove, s.getKey()));
		SearchInfo si;
		si.moveTime = allocate_time(10000000, 0, 40);
		si.clock.set();
		// Clear the game list.
		ttable.clear();
		lineManager.clearPv();

		int score;
		for (int d = 1; d < 9; ++d)
		{
			score = scout_search(s, si, d, 0, Neg_inf, Pos_inf, true, false, true);
			if (si.quit)
				break;
		}

		Move pv = lineManager.getPvMove();

		std::cout << s;
		std::cout << "bestmove " << getSrc(pv) << toString(pv) << std::endl;
		std::cout << ccrResults[i] << '\n';
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x598, %rsp            # imm = 0x598
xorl %r14d, %r14d
leaq 0x90(%rsp), %rbx
leaq 0x30(%rsp), %r15
movl $0x1, %r13d
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movq %rax, %rcx
shlq $0x5, %rcx
leaq 0x14aa20(%rip), %rax    # 0x1637a0
movq %rcx, 0x28(%rsp)
leaq (%rax,%rcx), %rsi
movq %rbx, %rdi
callq 0x1655c
leaq 0x141908(%rip), %r12    # 0x15a6a0
movq %r12, %rdi
callq 0x14924
movq 0xa8(%rsp), %rax
movw $0x0, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x18dd0
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%r12)
jmp 0x18ddb
movq %r12, %rdi
movq %r15, %rdx
callq 0x14a78
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movabsq $0x3200000000, %rax     # imm = 0x3200000000
movq %rax, 0x40(%rsp)
movq %r14, 0x4c(%rsp)
movb %r14b, 0x6a(%rsp)
leaq 0x70(%rsp), %rax
movq %r14, 0x10(%rax)
movups %xmm0, (%rax)
movb %r14b, -0x8(%rax)
movq %r14, -0x10(%rax)
movq $0x7a120, 0x58(%rsp)    # imm = 0x7A120
callq 0x4060
movq %rax, 0x60(%rsp)
leaq 0x14b7c6(%rip), %rcx    # 0x1645f0
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
cmpq %rcx, %rax
je 0x18e54
movq %r14, (%rax)
movw $0x0, 0x8(%rax)
movq %r14, 0xc(%rax)
movl $0x0, 0x14(%rax)
movb $0x1, 0x18(%rax)
addq $0x20, %rax
jmp 0x18e31
leaq 0x13c885(%rip), %rdi    # 0x1556e0
callq 0xf946
movl $0x1, %r12d
subq $0x8, %rsp
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
xorl %ecx, %ecx
movl $0xffff3cb0, %r8d       # imm = 0xFFFF3CB0
movl $0xc350, %r9d           # imm = 0xC350
pushq %r13
pushq $0x0
pushq %r13
callq 0x15414
addq $0x20, %rsp
cmpl $0x7, %r12d
ja 0x18ea0
incl %r12d
cmpb $0x0, 0x6a(%rsp)
je 0x18e66
leaq 0x13c839(%rip), %rdi    # 0x1556e0
xorl %esi, %esi
callq 0xf8fa
movl %eax, %r12d
movq 0xc0e8(%rip), %rdi      # 0x24fa0
movq %rbx, %rsi
callq 0x18775
movl $0x9, %edx
movq 0xc0d4(%rip), %rdi      # 0x24fa0
leaq 0x53bf(%rip), %rsi      # 0x1e292
callq 0x4290
movl %r12d, %esi
andl $0x3f, %esi
movq 0xc0bb(%rip), %rdi      # 0x24fa0
callq 0x4160
movq %rax, %rbp
movzwl %r12w, %esi
movq %rsp, %rdi
callq 0xfb3b
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x4290
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4230
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18f4f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4250
leaq 0x14ab6a(%rip), %rax    # 0x163ac0
movq 0x28(%rsp), %rcx
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
movq 0xc035(%rip), %rdi      # 0x24fa0
callq 0x4290
movb $0xa, (%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rsp, %rsi
callq 0x4290
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x18f9e
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq 0x20(%rsp), %rax
incq %rax
cmpq $0x19, %rax
jne 0x18d6d
addq $0x598, %rsp            # imm = 0x598
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x18fe8
jmp 0x18fe8
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18feb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4250
jmp 0x18feb
jmp 0x18fe8
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x19005
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq %rbx, %rdi
callq 0x43b0
nopl (%rax)