// File: /workspace/github_cpp_makefile_star2_O2/kobanium[P]Ray/src/learn/MinorizationMaximization.cpp
// Function: TestingWorker(train_thread_arg_t*)
static void
TestingWorker( train_thread_arg_t *targ )
{
  game_info_t *game = AllocateGame();
  game_info_t *init_game = AllocateGame();

  InitializeBoard(init_game);

  for (int i = TEST_KIFU_START_INDEX; i <= TEST_KIFU_LAST_INDEX; i++) {
    if (i % TRAIN_THREAD_NUM == targ->id) {
      std::ostringstream oss;

      oss << TEST_KIFU_PATH << PATH_SEPARATOR << i << ".sgf";
      if (targ->id == 0) {
        std::cerr << "Test : " << oss.str() << std::endl;
      }
      CopyGame(game, init_game);
      CheckAccuracy(game, oss.str());
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5ec8, %rsp           # imm = 0x5EC8
movq %rdi, 0x30(%rsp)
callq 0x3b148
movq %rax, %r14
callq 0x3b148
movq %rax, 0x48(%rsp)
movq %rax, %rdi
callq 0x3b173
leaq 0x4748(%r14), %rax
movq %rax, 0x40(%rsp)
movq %r14, %r15
addq $0x97372, %r15          # imm = 0x97372
movl $0x9c41, %edx           # imm = 0x9C41
leaq 0x1e28(%rsp), %r12
leaq 0x1880(%rsp), %r13
leaq 0x18(%rsp), %rbp
movq %r15, 0x38(%rsp)
cmpl $0x11171, %edx          # imm = 0x11171
je 0x2bae2
movl %edx, %eax
andl $0x7, %eax
movq 0x30(%rsp), %rcx
cmpl (%rcx), %eax
jne 0x2badb
movl %edx, 0x1c(%rsp)
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0x6530
movq %rbx, %rdi
leaq 0x1b729(%rip), %rsi     # 0x46d2d
callq 0x63c0
movq %rax, %rdi
leaq 0x38aed(%rip), %rsi     # 0x64100
callq 0x6350
movq %rax, %rdi
movl 0x1c(%rsp), %esi
callq 0x6700
movq %rax, %rdi
leaq 0x1a971(%rip), %rsi     # 0x45f9f
callq 0x63c0
movq 0x30(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x2b67e
movq 0x359ac(%rip), %rdi     # 0x60ff0
leaq 0x1b67b(%rip), %rsi     # 0x46cc6
callq 0x63c0
movq %rax, %rbx
movq %r12, %rdi
leaq 0x80(%rsp), %rsi
callq 0x6640
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6350
movq %rax, %rdi
callq 0x6190
movq %r12, %rdi
callq 0x6838
movq %r14, %rdi
movq 0x48(%rsp), %rsi
callq 0x3b5f2
leaq 0x58(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x6640
leaq 0x1f0(%rsp), %rdi
callq 0x2c034
andl $0x0, 0x18(%rsp)
movq 0x58(%rsp), %rdi
movq %r12, %rsi
callq 0x2ee83
xorl %esi, %esi
movl $0x0, 0x14(%rsp)
pushq $0x1
popq %rax
movl %eax, 0xc(%rsp)
leaq 0x361dc(%rip), %rbx     # 0x618b0
cmpl 0x1e2c(%rsp), %esi
jge 0x2bac3
movq %r12, %rdi
movl %esi, 0x2c(%rsp)
callq 0x2ee30
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x10(%rsp)
je 0x2ba9b
pushq $0x8
popq %rax
cmpq $0x1698, %rax           # imm = 0x1698
je 0x2b71e
andq $0x0, 0x1e8(%rsp,%rax)
andl $0x0, 0x1f0(%rsp,%rax)
addq $0x10, %rax
jmp 0x2b6ff
xorl %eax, %eax
movslq (%rbx), %rcx
cmpq %rcx, %rax
jge 0x2b748
leaq 0x1ab20fc1(%rip), %rcx  # 0x1ab4c6f0
movslq (%rcx,%rax,4), %rcx
imulq $0x6, %rcx, %rcx
andw $0x0, 0x4(%r15,%rcx)
andl $0x0, (%r15,%rcx)
incq %rax
jmp 0x2b720
andl $0x0, 0x18(%rsp)
movq %r14, %rdi
movl 0xc(%rsp), %esi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x3d72a
movq %r14, %rdi
movl 0xc(%rsp), %esi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x3f312
movl 0x43b0(%r14), %eax
addl $-0x2, %eax
cmpl %eax, 0x43c8(%r14)
jne 0x2b796
movq %r14, %rdi
movl 0xc(%rsp), %esi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x3ea88
movslq 0x14(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x1f8(%rsp), %rbp
xorl %r13d, %r13d
movslq (%rbx), %rax
cmpq %rax, %r13
jge 0x2ba0d
leaq 0x1ab20f32(%rip), %rax  # 0x1ab4c6f0
movl (%rax,%r13,4), %ebx
movq %r14, %rdi
movl %ebx, %esi
movl 0xc(%rsp), %edx
callq 0x3beae
xorpd %xmm0, %xmm0
testb %al, %al
je 0x2b9f2
movq %r14, %rdi
movl 0xc(%rsp), %esi
movl %ebx, %edx
callq 0x3f18e
movq %r14, %rdi
movl 0xc(%rsp), %esi
movl %ebx, %edx
callq 0x3ec62
movslq %ebx, %rax
imulq $0x6, %rax, %rcx
movq 0x38(%rsp), %rdi
movzbl (%rdi,%rcx), %edx
movsd 0x187f8(%rip), %xmm5    # 0x44008
testq %rdx, %rdx
je 0x2b828
movq 0x3897c(%rip), %rsi     # 0x64198
movq (%rsi), %rsi
shll $0x5, %edx
movsd 0x18(%rsi,%rdx), %xmm5
movslq %ecx, %rdx
movzbl 0x1(%rdi,%rdx), %edx
movsd 0x187d0(%rip), %xmm0    # 0x44008
testq %rdx, %rdx
je 0x2b850
movq 0x3896c(%rip), %rsi     # 0x641b0
movq (%rsi), %rsi
shll $0x5, %edx
movsd 0x18(%rsi,%rdx), %xmm0
movzbl 0x97374(%r14,%rcx), %edx
movsd 0x187a7(%rip), %xmm1    # 0x44008
testq %rdx, %rdx
je 0x2b879
movq 0x3895b(%rip), %rsi     # 0x641c8
movq (%rsi), %rsi
shll $0x5, %edx
movsd 0x18(%rsi,%rdx), %xmm1
movzbl 0x97375(%r14,%rcx), %edx
movsd 0x1877e(%rip), %xmm2    # 0x44008
testq %rdx, %rdx
je 0x2b8a2
movq 0x3894a(%rip), %rsi     # 0x641e0
movq (%rsi), %rsi
shll $0x5, %edx
movsd 0x18(%rsi,%rdx), %xmm2
movzbl 0x97376(%r14,%rcx), %edx
movsd 0x18755(%rip), %xmm3    # 0x44008
testq %rdx, %rdx
je 0x2b8cb
movq 0x38939(%rip), %rsi     # 0x641f8
movq (%rsi), %rsi
shll $0x5, %edx
movsd 0x18(%rsi,%rdx), %xmm3
movzbl 0x97377(%r14,%rcx), %ecx
movsd 0x1872c(%rip), %xmm4    # 0x44008
testq %rcx, %rcx
je 0x2b8f4
movq 0x38928(%rip), %rdx     # 0x64210
movq (%rdx), %rdx
shll $0x5, %ecx
movsd 0x18(%rdx,%rcx), %xmm4
mulsd %xmm0, %xmm5
mulsd %xmm1, %xmm5
mulsd %xmm2, %xmm5
mulsd %xmm3, %xmm5
mulsd %xmm4, %xmm5
movsd %xmm5, 0x20(%rsp)
cmpl $0x0, 0x14(%rsp)
je 0x2b981
cmpl $0x2, 0x43b0(%r14)
jl 0x2b981
leaq 0x1aacd35a(%rip), %rdx  # 0x1aaf8c80
movq 0x50(%rsp), %rdi
movl (%rdx,%rdi,4), %ecx
subl (%rdx,%rax,4), %ecx
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
leaq 0x1aace071(%rip), %rsi  # 0x1aaf99b0
movl (%rsi,%rdi,4), %ecx
subl (%rsi,%rax,4), %ecx
movl %ecx, %eax
negl %eax
cmovsl %ecx, %eax
imulq $0x4c, %rdx, %rcx
addq 0x35631(%rip), %rcx     # 0x60f88
movl (%rcx,%rax,4), %eax
addl $-0x2, %eax
cmpl $0x2, %eax
ja 0x2b981
shll $0x5, %eax
movq 0x387e4(%rip), %rcx     # 0x64150
movq (%rcx), %rcx
movsd 0x20(%rsp), %xmm0
mulsd 0x18(%rcx,%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x40(%rsp), %rdi
movl %ebx, %esi
callq 0x37bd2
movl %eax, %eax
movq 0x387a2(%rip), %rcx     # 0x64138
movslq (%rcx,%rax,4), %r15
movq 0x40(%rsp), %rdi
movl %ebx, %esi
callq 0x37bc6
movl %eax, %eax
movq 0x38771(%rip), %rcx     # 0x64120
movslq (%rcx,%rax,4), %r12
leaq 0x38886(%rip), %rdi     # 0x64240
movq %r15, %rsi
callq 0x26ccc
testq %rdx, (%rax)
leaq 0x387b4(%rip), %rax     # 0x64180
leaq 0x38795(%rip), %rcx     # 0x64168
cmoveq %rcx, %rax
movq (%rax), %rax
cmoveq %r12, %r15
movq (%rax), %rax
shlq $0x5, %r15
movsd 0x20(%rsp), %xmm0
mulsd 0x18(%rax,%r15), %xmm0
movsd %xmm0, -0x8(%rbp)
movl %ebx, (%rbp)
incq %r13
addq $0x10, %rbp
leaq 0x35ea8(%rip), %rbx     # 0x618b0
jmp 0x2b7ab
leaq 0x1f0(%rsp), %rdi
leaq 0x1880(%rsp), %rsi
callq 0x2c04e
movq 0x38(%rsp), %r15
leaq 0x1e28(%rsp), %r12
leaq 0x1880(%rsp), %r13
leaq 0x18(%rsp), %rbp
movl (%rbx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
cmovlel %eax, %ecx
shlq $0x2, %rcx
xorl %esi, %esi
cmpq %rax, %rcx
je 0x2ba9b
xorl %edx, %edx
testq %rax, %rax
je 0x2ba71
movsd 0x1f0(%rsp,%rax,4), %xmm0
ucomisd 0x1e0(%rsp,%rax,4), %xmm0
jne 0x2ba71
jp 0x2ba71
incl %esi
movl %esi, %edx
movl 0x10(%rsp), %esi
cmpl %esi, 0x1f8(%rsp,%rax,4)
je 0x2ba86
addq $0x4, %rax
movl %edx, %esi
jmp 0x2ba4b
movslq %edx, %rcx
shlq $0x2, %rcx
subq %rcx, %rax
leaq 0x387d1(%rip), %rcx     # 0x64268
lock
incl (%rax,%rcx)
movq %r14, %rdi
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0x3c2f8
xorl $0x3, 0xc(%rsp)
movl 0x2c(%rsp), %esi
incl %esi
movl 0x10(%rsp), %eax
movl %eax, 0x14(%rsp)
jmp 0x2b6d4
leaq 0x58(%rsp), %rdi
callq 0x6838
leaq 0x78(%rsp), %rdi
callq 0x60a0
movl 0x1c(%rsp), %edx
incl %edx
jmp 0x2b5cb
addq $0x5ec8, %rsp           # imm = 0x5EC8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2bb05
movq %rax, %rbx
leaq 0x1e28(%rsp), %rdi
jmp 0x2bb14
jmp 0x2bb0c
movq %rax, %rbx
jmp 0x2bb19
jmp 0x2bb0c
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x6838
leaq 0x78(%rsp), %rdi
callq 0x60a0
movq %rbx, %rdi
callq 0x6740
nop