// File: /workspace/github_cpp_makefile_star2_O1/kobanium[P]Ray/src/learn/MovePredictionTest.cpp
// Function: PredictionTestWorker(int)
static void
PredictionTestWorker( const int thread_id )
{
  game_info_t *game = AllocateGame();
  game_info_t *init_game = AllocateGame();

  InitializeBoard(init_game);
  
  for (int i = KIFU_START; i <= KIFU_END; i++) {
    if (i % TEST_WORKER_THREADS == thread_id) {
      CopyGame(game, init_game);

      const std::string filename = KIFU_PATH + PATH_SEPARATOR + std::to_string(i) + ".sgf";

      if (i % 1000 == 0) {
        std::cerr << filename << std::endl;
      }
      CheckMovePrediction(game, filename.c_str());
    }
  }

  FreeGame(game);
  FreeGame(init_game);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4c68, %rsp           # imm = 0x4C68
movl %edi, 0x40(%rsp)
callq 0x53e60
movq %rax, 0x28(%rsp)
callq 0x53e60
movq %rax, 0x68(%rsp)
movq %rax, %rdi
callq 0x53e8b
movl $0x9c41, %eax           # imm = 0x9C41
leaq 0x33849(%rip), %r12     # 0x758b0
leaq 0x1ab1e682(%rip), %r13  # 0x1ab606f0
movl %eax, %ebp
andl $0x7, %eax
cmpl 0x40(%rsp), %eax
jne 0x42598
movq 0x28(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x5432c
leaq 0x70(%rsp), %rdi
leaq 0x1dc54(%rip), %rsi     # 0x5fcec
leaq 0x36fd1(%rip), %rdx     # 0x79070
callq 0x3a852
movl $0xd1b71759, %edx       # imm = 0xD1B71759
movl $0x4, %ebx
movl %ebp, 0x20(%rsp)
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x420e2
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x420e7
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x420e9
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x420b4
addl $-0x3, %ebx
jmp 0x420e9
addl $-0x2, %ebx
jmp 0x420e9
decl %ebx
movl %ebx, %esi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
movl $0x2d, %edx
callq 0x64c0
movq (%rsp), %rdi
movl %ebx, %esi
movl 0x20(%rsp), %edx
callq 0x3a8da
movq 0x70(%rsp), %rcx
movl $0xf, %esi
leaq 0x80(%rsp), %rax
cmpq %rax, %rcx
je 0x4212f
movq 0x80(%rsp), %rsi
movq 0x78(%rsp), %r8
movq 0x8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x4215c
movl $0xf, %esi
leaq 0x10(%rsp), %rdi
cmpq %rdi, (%rsp)
je 0x42157
movq 0x10(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4216c
movq (%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x60d0
jmp 0x42178
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6480
leaq 0xbd8(%rsp), %rsi
movq %rsi, 0xbc8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x421a9
movq %rdx, 0xbc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xbd8(%rsp)
jmp 0x421b1
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xbd0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xbc8(%rsp), %rdi
leaq 0x1cd6f(%rip), %rsi     # 0x5ef4f
callq 0x6810
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4220d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x42215
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xbc8(%rsp), %rdi
leaq 0xbd8(%rsp), %rax
cmpq %rax, %rdi
je 0x42252
movq 0xbd8(%rsp), %rsi
incq %rsi
callq 0x6420
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4226d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6420
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4228f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6420
imull $0x26e978d5, 0x20(%rsp), %eax # imm = 0x26E978D5
rorl $0x3, %eax
cmpl $0x418937, %eax         # imm = 0x418937
ja 0x422e1
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x32d36(%rip), %rdi     # 0x74fe8
callq 0x64a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x63d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x62a0
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
leaq 0xbc8(%rsp), %rsi
callq 0x4562f
cmpl $0x0, 0xbcc(%rsp)
jle 0x42578
xorl %ebp, %ebp
movl $0x1, 0x24(%rsp)
leaq 0xbc8(%rsp), %rdi
movl %ebp, %esi
callq 0x455dc
movl %eax, %r14d
movl %ebp, 0x44(%rsp)
movq %rbx, %rbp
movq %r13, %rbx
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
leaq 0x70(%rsp), %rdx
callq 0x4985e
movslq (%r12), %rax
movsd 0x70(%rsp,%rax,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x42388
movupd 0x30(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rsp)
movq %rbx, %r13
jmp 0x42398
movq %rsp, %rdi
leaq 0x30(%rsp), %rdx
callq 0x3b302
movq %rbx, %r13
cmpl $0x0, (%r12)
jle 0x423ef
xorl %r15d, %r15d
movl (%r13,%r15,4), %eax
movsd 0x70(%rsp,%r15,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x423d6
movupd 0x30(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rsp)
jmp 0x423e3
movq %rsp, %rdi
leaq 0x30(%rsp), %rdx
callq 0x3b302
incq %r15
movslq (%r12), %rax
cmpq %rax, %r15
jl 0x423a2
movq (%rsp), %r15
movq 0x8(%rsp), %r13
cmpq %r13, %r15
je 0x4242a
movq %r13, %rax
subq %r15, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3b441
movq %r15, %rdi
movq %r13, %rsi
callq 0x3b4f4
cmpl $0x0, (%r12)
movq %rbx, %r13
movq %rbp, %rbx
movl 0x44(%rsp), %ebp
js 0x424ae
xorl %eax, %eax
movq $-0x1, %rcx
xorl %edx, %edx
xorl %edi, %edi
movl $0x0, %esi
testq %rax, %rax
je 0x4246e
movq (%rsp), %rsi
movsd (%rsi,%rax,4), %xmm0
ucomisd -0x10(%rsi,%rax,4), %xmm0
movl $0x0, %esi
jne 0x4246e
jp 0x4246e
incl %edi
movl %edi, %esi
movq (%rsp), %rdi
cmpl %r14d, 0x8(%rdi,%rax,4)
jne 0x42493
movslq %esi, %rdx
shlq $0x2, %rdx
movq %rax, %rdi
subq %rdx, %rdi
leaq 0x36c03(%rip), %rdx     # 0x79090
lock
incl (%rdi,%rdx)
movb $0x1, %dl
movslq (%r12), %r8
addq $0x4, %rax
incq %rcx
movl %esi, %edi
cmpq %r8, %rcx
jl 0x42448
testb $0x1, %dl
jne 0x4253d
testq %rbx, %rbx
je 0x424cf
movq %rbx, %rdi
callq 0x6160
movq 0x32b26(%rip), %rdi     # 0x74fe8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x64a0
jmp 0x424ed
movq 0x32b12(%rip), %rcx     # 0x74fe8
movq (%rcx), %rax
movq -0x18(%rax), %rax
leaq (%rcx,%rax), %rdi
movl 0x20(%rcx,%rax), %esi
orl $0x1, %esi
callq 0x6710
movl $0x1, %edx
movq 0x32aef(%rip), %rdi     # 0x74fe8
leaq 0x1b100(%rip), %rsi     # 0x5d600
callq 0x64a0
movq 0x32adc(%rip), %rdi     # 0x74fe8
movl %ebp, %esi
callq 0x6740
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x63d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x62a0
movq 0x28(%rsp), %rdi
movl %r14d, %esi
movl 0x24(%rsp), %edx
callq 0x55134
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x42564
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x6420
xorl $0x3, 0x24(%rsp)
incl %ebp
cmpl 0xbcc(%rsp), %ebp
jl 0x4230e
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x42594
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6420
movl 0x20(%rsp), %ebp
incl %ebp
cmpl $0x11171, %ebp          # imm = 0x11171
movl %ebp, %eax
jne 0x4206e
movq 0x28(%rsp), %rdi
callq 0x53e7b
movq 0x68(%rsp), %rdi
callq 0x53e7b
addq $0x4c68, %rsp           # imm = 0x4C68
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x42600
movq %rax, %rbx
jmp 0x4261b
movq %rax, %rbx
movq 0xbc8(%rsp), %rdi
leaq 0xbd8(%rsp), %rax
cmpq %rax, %rdi
je 0x42600
movq 0xbd8(%rsp), %rsi
incq %rsi
callq 0x6420
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4261b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6420
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x42679
movq 0x80(%rsp), %rsi
jmp 0x42671
jmp 0x4263b
jmp 0x42644
movq %rax, %rbx
jmp 0x4265d
jmp 0x42644
jmp 0x42644
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4265d
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x6420
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x42679
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6420
movq %rbx, %rdi
callq 0x6770
nop