// File: /workspace/github_cpp_makefile_star2_O3/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 0x543a6
movq %rax, 0x28(%rsp)
callq 0x543a6
movq %rax, 0x68(%rsp)
movq %rax, %rdi
callq 0x543d1
movl $0x9c41, %eax           # imm = 0x9C41
movq 0x33ca9(%rip), %r13     # 0x75fe8
movl %eax, %ebp
andl $0x7, %eax
cmpl 0x40(%rsp), %eax
jne 0x42873
movq 0x28(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x549d9
leaq 0x70(%rsp), %rdi
leaq 0x1da03(%rip), %rsi     # 0x5fd6c
leaq 0x37d00(%rip), %rdx     # 0x7a070
callq 0x3a6e0
movl $0xd1b71759, %edx       # imm = 0xD1B71759
movl $0x4, %ebx
movl %ebp, 0x24(%rsp)
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x423b3
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x423b8
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x423ba
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x42385
addl $-0x3, %ebx
jmp 0x423ba
addl $-0x2, %ebx
jmp 0x423ba
decl %ebx
movl %ebx, %esi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
movl $0x2d, %edx
callq 0x64b0
movq (%rsp), %rdi
movl %ebx, %esi
movl 0x24(%rsp), %edx
callq 0x3a768
movq 0x70(%rsp), %rcx
movl $0xf, %edi
leaq 0x80(%rsp), %rax
cmpq %rax, %rcx
je 0x42400
movq 0x80(%rsp), %rdi
movq 0x78(%rsp), %r8
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x42430
movl $0xf, %edi
leaq 0x10(%rsp), %r9
cmpq %r9, %rsi
je 0x4242b
movq 0x10(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x4243c
leaq 0x70(%rsp), %rdi
callq 0x60d0
jmp 0x42448
movq %rsp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6470
leaq 0xbd8(%rsp), %rsi
movq %rsi, 0xbc8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x42479
movq %rdx, 0xbc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xbd8(%rsp)
jmp 0x42481
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 0x1caff(%rip), %rsi     # 0x5efaf
callq 0x6800
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x424dd
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x424e5
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 0x42522
movq 0xbd8(%rsp), %rsi
incq %rsi
callq 0x6410
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4253d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6410
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4255f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6410
imull $0x26e978d5, 0x24(%rsp), %eax # imm = 0x26E978D5
rorl $0x3, %eax
cmpl $0x418937, %eax         # imm = 0x418937
ja 0x425ad
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r13, %rdi
callq 0x6490
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x63c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x6290
movq 0x48(%rsp), %r12
movq %r12, %rdi
leaq 0xbc8(%rsp), %rsi
callq 0x4595b
cmpl $0x0, 0xbcc(%rsp)
jle 0x42853
xorl %ebp, %ebp
movl $0x1, %ebx
leaq 0xbc8(%rsp), %rdi
movl %ebp, %esi
callq 0x45908
movl %eax, %r14d
movl %ebp, 0x44(%rsp)
movl %ebx, %esi
movq %r12, %rbp
movq %r13, %r12
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x49ac7
leaq 0x34293(%rip), %rax     # 0x768b0
movslq (%rax), %rax
movsd 0x70(%rsp,%rax,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x42652
movupd 0x30(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rsp)
jmp 0x4265f
movq %rsp, %rdi
leaq 0x30(%rsp), %rdx
callq 0x3b174
leaq 0x3424a(%rip), %rax     # 0x768b0
movl (%rax), %esi
testl %esi, %esi
jle 0x426c8
xorl %r15d, %r15d
leaq 0x1ab1f07a(%rip), %rax  # 0x1ab616f0
movl (%rax,%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 0x426a9
movupd 0x30(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rsp)
jmp 0x426b6
movq %rsp, %rdi
leaq 0x30(%rsp), %rdx
callq 0x3b174
incq %r15
leaq 0x341f0(%rip), %rax     # 0x768b0
movslq (%rax), %rsi
cmpq %rsi, %r15
jl 0x4266f
movq (%rsp), %r15
movq 0x8(%rsp), %r13
cmpq %r13, %r15
je 0x4270c
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 0x3b2b3
movq %r15, %rdi
movq %r13, %rsi
callq 0x3b366
leaq 0x341a6(%rip), %rax     # 0x768b0
movl (%rax), %esi
testl %esi, %esi
movq %r12, %r13
movq %rbp, %r12
movl 0x44(%rsp), %ebp
js 0x4279e
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
movslq %esi, %rsi
movq %rax, %rdi
shlq $0x4, %rdi
addq (%rsp), %rdi
movl %edx, %r8d
xorl %edx, %edx
testq %rax, %rax
je 0x4274f
movsd (%rdi), %xmm0
ucomisd -0x10(%rdi), %xmm0
jne 0x4274f
jp 0x4274f
incl %r8d
movl %r8d, %edx
cmpl %r14d, 0x8(%rdi)
je 0x4276a
leaq 0x1(%rax), %r9
addq $0x10, %rdi
movl %edx, %r8d
cmpq %rsi, %rax
movq %r9, %rax
jl 0x42735
jmp 0x42799
movl %eax, %ecx
subl %edx, %ecx
movslq %ecx, %rcx
leaq 0x37918(%rip), %rsi     # 0x7a090
lock
incl (%rsi,%rcx,4)
leaq 0x3412d(%rip), %rcx     # 0x768b0
movslq (%rcx), %rsi
leaq 0x1(%rax), %rdi
movb $0x1, %cl
cmpq %rsi, %rax
movq %rdi, %rax
jl 0x42724
jmp 0x4281c
testb $0x1, %cl
jne 0x4281c
testq %r12, %r12
je 0x427bb
movq %r12, %rdi
callq 0x6160
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x6490
jmp 0x427d4
movq (%r13), %rax
movq -0x18(%rax), %rax
leaq (%rax,%r13), %rdi
movl 0x20(%r13,%rax), %esi
orl $0x1, %esi
callq 0x6700
movl $0x1, %edx
movq %r13, %rdi
leaq 0x1ae1d(%rip), %rsi     # 0x5d600
callq 0x6490
movq %r13, %rdi
movl %ebp, %esi
callq 0x6730
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x63c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x6290
movq 0x28(%rsp), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x55ae8
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x42841
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x6410
xorl $0x3, %ebx
incl %ebp
cmpl 0xbcc(%rsp), %ebp
jl 0x425d7
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4286f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6410
movl 0x24(%rsp), %ebp
incl %ebp
cmpl $0x11171, %ebp          # imm = 0x11171
movl %ebp, %eax
jne 0x4233f
movq 0x28(%rsp), %rdi
callq 0x543c1
movq 0x68(%rsp), %rdi
callq 0x543c1
addq $0x4c68, %rsp           # imm = 0x4C68
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x428f6
movq %rax, %rbx
movq 0xbc8(%rsp), %rdi
leaq 0xbd8(%rsp), %rax
cmpq %rax, %rdi
je 0x428db
movq 0xbd8(%rsp), %rsi
incq %rsi
callq 0x6410
jmp 0x428db
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x428f6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6410
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x42954
movq 0x80(%rsp), %rsi
jmp 0x4294c
jmp 0x42916
jmp 0x4291f
movq %rax, %rbx
jmp 0x42938
jmp 0x4291f
jmp 0x4291f
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x42938
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x6410
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x42954
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6410
movq %rbx, %rdi
callq 0x6760