// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/PlayerParam.cpp
// Function: PlayerParam::init(int, char**)
void PlayerParam::init(int argc, char **argv) {
  ParseFromCmdLine(
      argc, argv); //首先分析命令行，因为有可能命令行里面改了配置文件的路径
  ParseFromConfigFile(M_player_conf_file.c_str()); //分析配置文件
  ParseFromCmdLine(
      argc, argv); //再次分析命令行，因为命令行有权更改配置文件里面的默认设置
  MaintainConsistency();

  std::ifstream file("data/eps0.1");

  memset(mSightChange, 0, sizeof(mSightChange));
  if (!file) {
    PRINT_ERROR("date/eps0.1 not exist");
    return;
  }

  int i = 0;
  while (!file.eof()) {
    if (i >= SIGHTSIZE) {
      //    PRINT_ERROR("mSightChange not big enough!!!!!!!");
      break;
    }
    file >> mSightChange[i][0] >> mSightChange[i][1] >> mSightChange[i][2];
    i++;
  }
  file.close();

  std::ifstream file1("data/eps0.01");
  memset(mMarkChange, 0, sizeof(mMarkChange));
  if (!file1) {
    PRINT_ERROR("file data/eps0.01 not exist");
    return;
  }
  i = 0;
  while (!file1.eof()) {

    if (i >= MARKSIZE) {
      //	 PRINT_ERROR("mMarkChange not big enough!!!!!!!!");
      break;
    }
    file1 >> mMarkChange[i][0] >> mMarkChange[i][1] >> mMarkChange[i][2];
    i++;
  }
  file1.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
callq 0x34298
movq 0x30d8(%rbx), %rsi
movq %rbx, %rdi
callq 0x343fa
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x34298
movq %rbx, %rdi
callq 0x38fe8
leaq 0x20281(%rip), %rsi     # 0x59c5d
leaq -0x430(%rbp), %r15
pushq $0x8
popq %rdx
movq %r15, %rdi
callq 0x9920
leaq 0x3208(%rbx), %r14
movl $0x5d0, %edx            # imm = 0x5D0
movq %r14, %rdi
xorl %esi, %esi
callq 0x92c0
movq (%r15), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x410(%rbp,%rax)
je 0x39a6f
movq 0x3d5d4(%rip), %rdi     # 0x76ff0
leaq 0x20246(%rip), %rsi     # 0x59c69
callq 0x94b0
leaq 0x21743(%rip), %rsi     # 0x5b172
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
movl $0x165, %esi            # imm = 0x165
callq 0x9890
leaq 0x1f9d4(%rip), %rsi     # 0x5941f
movq %rax, %rdi
callq 0x94b0
leaq 0x20226(%rip), %rsi     # 0x59c80
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
jmp 0x39bc9
xorl %r12d, %r12d
testb $0x2, -0x410(%rbp,%rax)
jne 0x39ab9
cmpq $0x3d, %r12
ja 0x39ab9
movq %r15, %rdi
movq %r14, %rsi
callq 0x9320
leaq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x9320
leaq 0x10(%r14), %rsi
movq %rax, %rdi
callq 0x9320
incq %r12
movq -0x430(%rbp), %rax
movq -0x18(%rax), %rax
addq $0x18, %r14
jmp 0x39a72
leaq -0x430(%rbp), %rdi
callq 0x9120
leaq 0x201ca(%rip), %rsi     # 0x59c96
leaq -0x228(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x9920
addq $0x37d8, %rbx           # imm = 0x37D8
movl $0x2460, %edx           # imm = 0x2460
movq %rbx, %rdi
xorl %esi, %esi
callq 0x92c0
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x208(%rbp,%rax)
je 0x39b5d
movq 0x3d4e3(%rip), %rdi     # 0x76ff0
leaq 0x20155(%rip), %rsi     # 0x59c69
callq 0x94b0
leaq 0x21652(%rip), %rsi     # 0x5b172
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
movl $0x177, %esi            # imm = 0x177
callq 0x9890
leaq 0x1f8e3(%rip), %rsi     # 0x5941f
movq %rax, %rdi
callq 0x94b0
leaq 0x20158(%rip), %rsi     # 0x59ca3
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
jmp 0x39bbd
xorl %r15d, %r15d
leaq -0x228(%rbp), %r14
testb $0x2, -0x208(%rbp,%rax)
jne 0x39bb1
cmpq $0x183, %r15            # imm = 0x183
ja 0x39bb1
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9320
leaq 0x8(%rbx), %rsi
movq %rax, %rdi
callq 0x9320
leaq 0x10(%rbx), %rsi
movq %rax, %rdi
callq 0x9320
incq %r15
movq -0x228(%rbp), %rax
movq -0x18(%rax), %rax
addq $0x18, %rbx
jmp 0x39b67
leaq -0x228(%rbp), %rdi
callq 0x9120
leaq -0x228(%rbp), %rdi
callq 0x9180
leaq -0x430(%rbp), %rdi
callq 0x9180
addq $0x410, %rsp            # imm = 0x410
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x39bfe
jmp 0x39bfe
jmp 0x39bed
jmp 0x39bfe
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x9180
jmp 0x39c01
movq %rax, %rbx
leaq -0x430(%rbp), %rdi
callq 0x9180
movq %rbx, %rdi
callq 0x98b0
nop