// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Trainer.cpp
// Function: Trainer::ReadConfigFile()
void Trainer::ReadConfigFile() {
  //读取配置文件
  char train_file[128];
  sprintf(train_file, "./%s", PlayerParam::instance().trainDataFile().c_str());

  ifstream fin(train_file);

  if (!fin.is_open()) {
    std::cerr << __FILE__ << ':' << __LINE__ << ':'
              << " ERROR: failed to open train data file " << std::endl;
  }
  string conf, section;
  vector<string> content;
  while (getline(fin, conf)) {
    if (conf[0] == '[') {
      if (!content.empty())
        Parse(section, content);

      section = conf.substr(1, conf.rfind(']') - 1); // new section
      content.clear();
    } else if (conf[0] != '#' && (!conf.empty())) {
      content.push_back(conf);
    }
  }

  Parse(section, content);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rdi, -0x30(%rbp)
callq 0x38d94
movq 0x3118(%rax), %rdx
leaq 0x17bd4(%rip), %rsi     # 0x5aedb
leaq -0x340(%rbp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9100
leaq -0x2b8(%rbp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x9920
leaq -0x240(%rbp), %rdi
callq 0x9150
testb %al, %al
jne 0x43387
movq 0x33caf(%rip), %rdi     # 0x76ff0
leaq 0x17a72(%rip), %rsi     # 0x5adba
callq 0x94b0
pushq $0x3a
popq %rsi
movq %rax, %rdi
callq 0x9570
movq %rax, %rdi
movl $0x1da, %esi            # imm = 0x1DA
callq 0x9890
pushq $0x3a
popq %rsi
movq %rax, %rdi
callq 0x9570
leaq 0x17b69(%rip), %rsi     # 0x5aee0
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq -0x80(%rbp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rax)
movb %dl, (%rcx)
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %r14
andq $0x0, 0x10(%r14)
movaps %xmm0, (%r14)
leaq -0x2b8(%rbp), %r15
leaq -0x70(%rbp), %r12
leaq -0xb0(%rbp), %r13
leaq -0x90(%rbp), %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x9110
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x43472
movq -0x70(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x23, %eax
je 0x433d0
cmpl $0x5b, %eax
jne 0x43457
movq -0x50(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x43417
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x4465a
movq %r12, %rdi
pushq $0x5d
popq %rsi
pushq $-0x1
popq %rdx
callq 0x99c0
leaq -0x1(%rax), %rcx
movq %r13, %rdi
movq %r12, %rsi
pushq $0x1
popq %rdx
callq 0x9500
movq %rbx, %rdi
movq %r13, %rsi
callq 0x95f0
movq %r13, %rdi
callq 0x9240
movq %r14, %rdi
callq 0x21ad6
jmp 0x433d0
cmpq $0x0, -0x68(%rbp)
je 0x433d0
movq %r14, %rdi
movq %r12, %rsi
callq 0x21ae4
jmp 0x433d0
leaq -0x90(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq -0x30(%rbp), %rdi
callq 0x4465a
leaq -0x50(%rbp), %rdi
callq 0x21b20
leaq -0x90(%rbp), %rdi
callq 0x9240
leaq -0x70(%rbp), %rdi
callq 0x9240
leaq -0x2b8(%rbp), %rdi
callq 0x9180
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x434cb
movq %rax, %rbx
jmp 0x434ec
jmp 0x434cb
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x21b20
leaq -0x90(%rbp), %rdi
callq 0x9240
leaq -0x70(%rbp), %rdi
callq 0x9240
leaq -0x2b8(%rbp), %rdi
callq 0x9180
movq %rbx, %rdi
callq 0x98b0