LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/ActionEffector.h
// Function: GetMaxKickRand(Vector const&, Vector const&, int, double)
inline double GetMaxKickRand(const Vector &ball_2_player,
                             const Vector &ball_vel, const int player_type,
                             const double kick_power) {
  double dir_diff = fabs(ball_2_player.Dir());
  double dist_ball =
      ball_2_player.Mod() -
      PlayerParam::instance().HeteroPlayer(player_type).playerSize() -
      ServerParam::instance().ballSize();

  double pos_rate = 0.5 + 0.25 * (dir_diff / 180.0 +
                                  dist_ball / PlayerParam::instance()
                                                  .HeteroPlayer(player_type)
                                                  .kickableMargin());

  double speed_rate =
      0.5 + 0.5 * (ball_vel.Mod() / (ServerParam::instance().ballSpeedMax() *
                                     ServerParam::instance().ballDecay()));

  return (PlayerParam::instance().HeteroPlayer(player_type).kickRand() *
          (kick_power / ServerParam::instance().maxPower()) *
          (pos_rate + speed_rate));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movsd %xmm0, -0x40(%rbp)
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
callq 0xcd30
andps 0x2c5a3(%rip), %xmm0    # 0x57010
movaps %xmm0, -0x30(%rbp)
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
movsd %xmm0, -0x20(%rbp)
callq 0x38d94
movq 0x5c38(%rax), %rax
movslq %r14d, %rcx
imulq $0x3700, %rcx, %r14     # imm = 0x3700
movsd -0x20(%rbp), %xmm0
subsd 0x3038(%rax,%r14), %xmm0
movsd %xmm0, -0x20(%rbp)
callq 0x3db2c
movsd -0x20(%rbp), %xmm0
subsd 0x30d8(%rax), %xmm0
movsd %xmm0, -0x20(%rbp)
movapd -0x30(%rbp), %xmm0
divsd 0x2c589(%rip), %xmm0    # 0x57068
movapd %xmm0, -0x30(%rbp)
callq 0x38d94
movq 0x5c38(%rax), %rax
movsd -0x20(%rbp), %xmm0
divsd 0x3040(%rax,%r14), %xmm0
addsd -0x30(%rbp), %xmm0
mulsd 0x2c56c(%rip), %xmm0    # 0x57078
addsd 0x2cd34(%rip), %xmm0    # 0x57848
movsd %xmm0, -0x20(%rbp)
movsd (%rbx), %xmm0
movsd 0x8(%rbx), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0x3db2c
movsd 0x30f8(%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
callq 0x3db2c
movsd -0x38(%rbp), %xmm1
mulsd 0x30e0(%rax), %xmm1
movsd -0x30(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd 0x2ccdc(%rip), %xmm1    # 0x57848
mulsd %xmm1, %xmm0
addsd %xmm1, %xmm0
addsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0x38d94
movq 0x5c38(%rax), %rax
movsd 0x3048(%rax,%r14), %xmm0
movsd %xmm0, -0x20(%rbp)
callq 0x3db2c
movsd -0x40(%rbp), %xmm0
divsd 0x3130(%rax), %xmm0
mulsd -0x20(%rbp), %xmm0
mulsd -0x30(%rbp), %xmm0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/ActionEffector.h
// Function: GetMaxTurnAngle(int, double)
inline AngleDeg GetMaxTurnAngle(const int player_type,
                                const double player_speed) {
  return (
      ServerParam::instance().maxMoment() /
      (1.0 + PlayerParam::instance().HeteroPlayer(player_type).inertiaMoment() *
                 player_speed));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, -0x18(%rbp)
movl %edi, %ebx
callq 0x3db2c
movsd 0x3140(%rax), %xmm0
movsd %xmm0, -0x10(%rbp)
callq 0x38d94
movq 0x5c38(%rax), %rax
movslq %ebx, %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd -0x18(%rbp), %xmm0
mulsd 0x3028(%rax,%rcx), %xmm0
addsd 0x2c3d3(%rip), %xmm0    # 0x57048
movsd -0x10(%rbp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Kicker.h
// Function: Kicker::NearestPoint(Vector const&)
inline int NearestPoint(const Vector &p) {
    double ang = 0.0;
    double value = p.Mod();
    int idxA;
    if (value < mD1) {
      double fix = 180.0 / mNlayer[0];
      ang = p.Dir() + fix;
      ang = GetNormalizeAngleDeg(ang, 0.0);
      idxA = int(ang * mNlayer[0] / 360.0);
      return idxA;
    } else if (value > mD2) {
      double fix = 180.0 / mNlayer[2];
      ang = p.Dir() + fix;
      ang = GetNormalizeAngleDeg(ang, 0.0);
      idxA = int(ang * mNlayer[2] / 360.0);
      return mNlayer[0] + mNlayer[1] + idxA;
    } else {
      double fix = 180.0 / mNlayer[1];
      ang = p.Dir() + fix;
      ang = GetNormalizeAngleDeg(ang, 0.0);
      idxA = int(ang * mNlayer[1] / 360.0);
      return mNlayer[0] + idxA;
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movsd (%rsi), %xmm0
movsd 0x8(%rsi), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
movsd 0x20(%rdi), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x2ad04
cvtsi2sdl 0x10(%rbx), %xmm0
movsd 0x2c3a1(%rip), %xmm1    # 0x57068
divsd %xmm0, %xmm1
movsd %xmm1, -0x10(%rbp)
movq %rsi, %rdi
callq 0xcd30
addsd -0x10(%rbp), %xmm0
leaq -0x18(%rbp), %rdi
andq $0x0, (%rdi)
callq 0xd305
cvtsi2sdl 0x10(%rbx), %xmm1
mulsd %xmm0, %xmm1
divsd 0x2c39d(%rip), %xmm1    # 0x57098
cvttsd2si %xmm1, %eax
jmp 0x2ada2
ucomisd 0x28(%rbx), %xmm0
jbe 0x2ad5a
cvtsi2sdl 0x18(%rbx), %xmm0
movsd 0x2c350(%rip), %xmm1    # 0x57068
divsd %xmm0, %xmm1
movsd %xmm1, -0x10(%rbp)
movq %rsi, %rdi
callq 0xcd30
addsd -0x10(%rbp), %xmm0
leaq -0x18(%rbp), %rdi
andq $0x0, (%rdi)
callq 0xd305
cvtsi2sdl 0x18(%rbx), %xmm1
mulsd %xmm0, %xmm1
divsd 0x2c34c(%rip), %xmm1    # 0x57098
cvttsd2si %xmm1, %ecx
movl 0x14(%rbx), %eax
addl 0x10(%rbx), %eax
addl %ecx, %eax
jmp 0x2ada2
cvtsi2sdl 0x14(%rbx), %xmm0
movsd 0x2c301(%rip), %xmm1    # 0x57068
divsd %xmm0, %xmm1
movsd %xmm1, -0x10(%rbp)
movq %rsi, %rdi
callq 0xcd30
addsd -0x10(%rbp), %xmm0
leaq -0x18(%rbp), %rdi
andq $0x0, (%rdi)
callq 0xd305
cvtsi2sdl 0x14(%rbx), %xmm1
mulsd %xmm0, %xmm1
divsd 0x2c2fd(%rip), %xmm1    # 0x57098
cvttsd2si %xmm1, %eax
addl 0x10(%rbx), %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: SightLogger::SetPlayerTypeMsg(char const*)
void SightLogger::SetPlayerTypeMsg(const char *msg) {
  mPlayerTypeMsg += msg;
  mPlayerTypeMsg += "\n";
  mLoggedPlayerTypeCount++;

  if (mLoggedPlayerTypeCount >= PlayerParam::instance().playerTypes()) {
    mHeaderReady = true;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x2c0(%rdi), %r14
movq %r14, %rdi
callq 0x9960
leaq 0x2d52b(%rip), %rsi     # 0x58ced
movq %r14, %rdi
callq 0x9960
movl 0x2e0(%rbx), %r14d
incl %r14d
movl %r14d, 0x2e0(%rbx)
callq 0x38d94
cmpl 0x3008(%rax), %r14d
jl 0x2b7f0
movb $0x1, 0x2e4(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: SightLogger::LogBallInfo(BallState const&)
void SightLogger::LogBallInfo(const BallState &ball) {
  if (PlayerParam::instance().SaveDecLog()) {
    DecLock();
    LogDec();

    std::stringstream ss;
    ss << "pos [" << ball.GetPosDelay() << ", " << ball.GetPosConf() << "]"
       << '#' << "vel [" << ball.GetVelDelay() << ", " << ball.GetVelConf()
       << "]" << '#';
    AddPoint(ball.GetPos(), ss.str().c_str(), White);

    DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %r14
movq %rdi, %r15
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2c470
leaq 0x228(%r15), %rbx
movq %rbx, %rdi
callq 0x4206e
movq 0x258(%r15), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r15)
leaq -0x1c0(%rbp), %rdi
callq 0x9360
leaq -0x1b0(%rbp), %rdi
leaq 0x2c66d(%rip), %rsi     # 0x58a00
callq 0x94b0
movl 0x18(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x2c279(%rip), %rsi     # 0x58624
movq %rax, %rdi
callq 0x94b0
movsd 0x20(%r14), %xmm0
movq %rax, %rdi
callq 0x97e0
leaq 0x2cfc2(%rip), %rsi     # 0x5938a
movq %rax, %rdi
callq 0x94b0
pushq $0x23
popq %rsi
movq %rax, %rdi
callq 0x9570
leaq 0x2c624(%rip), %rsi     # 0x58a06
movq %rax, %rdi
callq 0x94b0
movl 0x40(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x2c227(%rip), %rsi     # 0x58624
movq %rax, %rdi
callq 0x94b0
movsd 0x48(%r14), %xmm0
movq %rax, %rdi
callq 0x97e0
leaq 0x2cf70(%rip), %rsi     # 0x5938a
movq %rax, %rdi
callq 0x94b0
pushq $0x23
popq %rsi
movq %rax, %rdi
callq 0x9570
leaq -0x1a8(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x97b0
addq $0x8, %r14
movq -0x38(%rbp), %rdx
pushq $0x7
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2d722
leaq -0x38(%rbp), %rdi
callq 0x9240
movq %rbx, %rdi
callq 0x4208a
leaq -0x1c0(%rbp), %rdi
callq 0x9390
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x9240
jmp 0x2c491
jmp 0x2c48e
movq %rax, %rbx
leaq -0x1c0(%rbp), %rdi
callq 0x9390
movq %rbx, %rdi
callq 0x98b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: SightLogger::LogPlayerInfo(PlayerState const&)
void SightLogger::LogPlayerInfo(const PlayerState &player) {
  if (PlayerParam::instance().SaveDecLog()) {
    DecLock();
    LogDec();

    std::stringstream ss;
    ss << "pos [" << player.GetPosDelay() << ", " << player.GetPosConf() << "]"
       << '#' << "vel [" << player.GetVelDelay() << ", " << player.GetVelConf()
       << "]" << '#' << "dir [" << player.GetBodyDirDelay() << ", "
       << player.GetBodyDirConf() << "]" << '#' << "neck ["
       << player.GetNeckDirDelay() << ", " << player.GetNeckDirConf() << "]";
    AddPoint(player.GetPos(), ss.str().c_str(), White);

    DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %r14
movq %rdi, %r15
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2c68b
leaq 0x228(%r15), %rbx
movq %rbx, %rdi
callq 0x4206e
movq 0x258(%r15), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r15)
leaq -0x1c0(%rbp), %rdi
callq 0x9360
leaq -0x1b0(%rbp), %rdi
leaq 0x2c4f7(%rip), %rsi     # 0x58a00
callq 0x94b0
movl 0x18(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x2c103(%rip), %rsi     # 0x58624
movq %rax, %rdi
callq 0x94b0
movsd 0x20(%r14), %xmm0
movq %rax, %rdi
callq 0x97e0
leaq 0x2ce4c(%rip), %rsi     # 0x5938a
movq %rax, %rdi
callq 0x94b0
pushq $0x23
popq %rsi
movq %rax, %rdi
callq 0x9570
leaq 0x2c4ae(%rip), %rsi     # 0x58a06
movq %rax, %rdi
callq 0x94b0
movl 0x40(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x2c0b1(%rip), %rsi     # 0x58624
movq %rax, %rdi
callq 0x94b0
movsd 0x48(%r14), %xmm0
movq %rax, %rdi
callq 0x97e0
leaq 0x2cdfa(%rip), %rsi     # 0x5938a
movq %rax, %rdi
callq 0x94b0
pushq $0x23
popq %rsi
movq %rax, %rdi
callq 0x9570
leaq 0x2c462(%rip), %rsi     # 0x58a0c
movq %rax, %rdi
callq 0x94b0
movl 0xb8(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x2c05c(%rip), %rsi     # 0x58624
movq %rax, %rdi
callq 0x94b0
movsd 0xc0(%r14), %xmm0
movq %rax, %rdi
callq 0x97e0
leaq 0x2cda2(%rip), %rsi     # 0x5938a
movq %rax, %rdi
callq 0x94b0
pushq $0x23
popq %rsi
movq %rax, %rdi
callq 0x9570
leaq 0x2c410(%rip), %rsi     # 0x58a12
movq %rax, %rdi
callq 0x94b0
movl 0xa0(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x2c004(%rip), %rsi     # 0x58624
movq %rax, %rdi
callq 0x94b0
movsd 0xa8(%r14), %xmm0
movq %rax, %rdi
callq 0x97e0
leaq 0x2cd4a(%rip), %rsi     # 0x5938a
movq %rax, %rdi
callq 0x94b0
leaq -0x1a8(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x97b0
addq $0x8, %r14
movq -0x38(%rbp), %rdx
pushq $0x7
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2d722
leaq -0x38(%rbp), %rdi
callq 0x9240
movq %rbx, %rdi
callq 0x4208a
leaq -0x1c0(%rbp), %rdi
callq 0x9390
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x9240
jmp 0x2c6ac
jmp 0x2c6a9
movq %rax, %rbx
leaq -0x1c0(%rbp), %rdi
callq 0x9390
movq %rbx, %rdi
callq 0x98b0
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: SightLogger::LogSight()
void SightLogger::LogSight() {
  if (mHeaderReady) {
    mSightMutex.Lock();

    if (mServerPlayMode != mpObserver->GetServerPlayMode()) {
      mServerPlayMode = mpObserver->GetServerPlayMode();
      mServerPlayMode_dirty = true;
    }

    mTime = mpWorldState->CurrentTime();

    if (mLeftScore != mpWorldState->GetTeammateScore() ||
        mRightScore != mpWorldState->GetOpponentScore() ||
        mLeftName != PlayerParam::instance().teamName() ||
        mRightName != PlayerParam::instance().opponentTeamName()) {
      mLeftName = PlayerParam::instance().teamName();
      mRightName = PlayerParam::instance().opponentTeamName();
      mLeftScore = mpWorldState->GetTeammateScore();
      mRightScore = mpWorldState->GetOpponentScore();
      mTeamState_dirty = true;
    }

    mpBall = &(mpWorldState->Ball());

    for (Unum i = 1; i <= TEAMSIZE; ++i) {
      mpLeftTeam[i] = &(mpWorldState->Teammate(i));
      mpRightTeam[i] = &(mpWorldState->Opponent(i));
    }

    mSightMutex.UnLock();
  }
}

// Assembly:
cmpb $0x1, 0x2e4(%rdi)
jne 0x2c80a
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x200(%rdi), %r14
movq %r14, %rdi
callq 0x4206e
movq 0x250(%rbx), %rax
movl 0x24(%rax), %eax
cmpl %eax, 0x2e8(%rbx)
je 0x2c708
movl %eax, 0x2e8(%rbx)
movb $0x1, 0x2ec(%rbx)
movq 0x258(%rbx), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x2f0(%rbx)
movl 0x2f8(%rbx), %ecx
cmpl 0x2118(%rax), %ecx
jne 0x2c778
movl 0x2fc(%rbx), %ecx
cmpl 0x211c(%rax), %ecx
jne 0x2c778
leaq 0x308(%rbx), %r15
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r15, %rdi
callq 0x2d715
testb %al, %al
jne 0x2c778
leaq 0x328(%rbx), %r15
callq 0x38d94
leaq 0x3160(%rax), %rsi
movq %r15, %rdi
callq 0x2d715
testb %al, %al
je 0x2c81d
callq 0x38d94
leaq 0x3138(%rax), %rsi
leaq 0x308(%rbx), %rdi
callq 0x92b0
callq 0x38d94
leaq 0x3160(%rax), %rsi
leaq 0x328(%rbx), %rdi
callq 0x92b0
movq 0x258(%rbx), %rax
movl 0x2118(%rax), %ecx
movl %ecx, 0x2f8(%rbx)
movl 0x211c(%rax), %ecx
movl %ecx, 0x2fc(%rbx)
movb $0x1, 0x348(%rbx)
leaq 0x30(%rax), %rcx
movq %rcx, 0x350(%rbx)
addq $0x10d0, %rax           # imm = 0x10D0
pushq $-0x58
popq %rcx
testq %rcx, %rcx
je 0x2c80b
leaq -0x1028(%rax), %rdx
movq %rdx, 0x3b0(%rbx,%rcx)
movq %rax, 0x408(%rbx,%rcx)
addq $0x8, %rcx
addq $0x178, %rax            # imm = 0x178
jmp 0x2c7e2
retq
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4208a
movq 0x258(%rbx), %rax
jmp 0x2c7ce
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: TextLogger::TextLogger(Observer*, char const*)
TextLogger::TextLogger(Observer *observer, const char *log_name) {
  char file_name[256];

  Assert(std::string(log_name) != std::string("msg"));
  Assert(std::string(log_name) != std::string("sight"));

  sprintf(file_name, "Logfiles/%s-%d-%s.log",
          PlayerParam::instance().teamName().c_str(), observer->SelfUnum(),
          log_name);
  os.open(file_name);
  if (!os.good()) {
    PRINT_ERROR("open log file error");
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x9880
leaq 0x200(%rbx), %r14
movq %r14, %rdi
callq 0x9360
callq 0x38d94
movq 0x3138(%rax), %rdx
movl 0x2c(%r12), %ecx
leaq 0x2c1ac(%rip), %rsi     # 0x58a19
leaq -0x120(%rbp), %r12
movq %r12, %rdi
movq %r15, %r8
xorl %eax, %eax
callq 0x9100
pushq $0x10
popq %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9080
movq (%rbx), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%rbx,%rax)
je 0x2c8f2
movq 0x4a74c(%rip), %rdi     # 0x76ff0
leaq 0x2c0c6(%rip), %rsi     # 0x58971
callq 0x94b0
leaq 0x2e8bb(%rip), %rsi     # 0x5b172
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
movl $0x135, %esi            # imm = 0x135
callq 0x9890
leaq 0x2cb4c(%rip), %rsi     # 0x5941f
movq %rax, %rdi
callq 0x94b0
leaq 0x2c14d(%rip), %rsi     # 0x58a2f
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x2c912
movq %rax, %r15
movq %r14, %rdi
callq 0x9390
movq %rbx, %rdi
callq 0x9720
movq %r15, %rdi
callq 0x98b0
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: TextLogger::Flush()
void TextLogger::Flush() {
  if (PlayerParam::instance().SaveTextLog()) {
    os << mBuffer.str();
    os.flush();
  }
  mBuffer.str("");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
callq 0x38d94
cmpb $0x1, 0x5c45(%rax)
jne 0x2c9d9
leaq 0x218(%rbx), %rsi
leaq -0x38(%rbp), %r14
movq %r14, %rdi
callq 0x97b0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9430
leaq -0x38(%rbp), %rdi
callq 0x9240
movq %rbx, %rdi
callq 0x9340
leaq 0x2bd80(%rip), %rsi     # 0x58760
leaq -0x38(%rbp), %rdi
leaq -0x11(%rbp), %rdx
callq 0x10e4a
addq $0x218, %rbx            # imm = 0x218
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x9750
leaq -0x38(%rbp), %rdi
callq 0x9240
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2ca14
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x9240
jmp 0x2ca25
movq %rax, %rbx
movq %rbx, %rdi
callq 0x98b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::~Logger()
Logger::~Logger() {
  delete mpSightLogger;
  for (std::map<std::string, TextLogger *>::iterator i = mTextLoggers.begin();
       i != mTextLoggers.end(); ++i) {
    delete i->second;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x49ec5(%rip), %rax     # 0x76990
movq %rax, (%rdi)
movq 0x20(%rdi), %r14
testq %r14, %r14
je 0x2cadf
movq %r14, %rdi
callq 0x2b69e
movl $0x450, %esi            # imm = 0x450
movq %r14, %rdi
callq 0x94f0
movq 0x40(%rbx), %r14
leaq 0x30(%rbx), %r12
cmpq %r12, %r14
je 0x2cb24
movq 0x40(%r14), %r15
testq %r15, %r15
je 0x2cb0a
movq %r15, %rdi
callq 0x2c956
movl $0x388, %esi            # imm = 0x388
movq %r15, %rdi
callq 0x94f0
movq %r14, %rdi
callq 0x9350
movq %rax, %r14
jmp 0x2caf4
leaq 0x28(%rbx), %r14
addq $0x58, %rbx
movq %rbx, %rdi
callq 0x41f58
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2db30
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::Flush()
void Logger::Flush() {
  if (mpSightLogger) {
    mpSightLogger->Flush();
  }

  for (std::map<std::string, TextLogger *>::iterator i = mTextLoggers.begin();
       i != mTextLoggers.end(); ++i) {
    i->second->Flush();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0x2cbc2
callq 0x2b7f6
movq 0x40(%rbx), %r14
addq $0x30, %rbx
cmpq %rbx, %r14
je 0x2cbe5
movq 0x40(%r14), %rdi
callq 0x2c98e
movq %r14, %rdi
callq 0x9350
movq %rax, %r14
jmp 0x2cbca
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::GetTextLogger(char const*)
TextLogger &Logger::GetTextLogger(const char *log_name) {
  if (PlayerParam::instance().SaveTextLog()) {
    std::map<std::string, TextLogger *>::iterator logger =
        mTextLoggers.find(log_name);
    if (logger == mTextLoggers.end()) {
      logger = mTextLoggers
                   .insert(std::make_pair(log_name,
                                          new TextLogger(mpObserver, log_name)))
                   .first;
    }
    return *(logger->second);
  } else {
    return mTextLoggerNull;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x38d94
cmpb $0x1, 0x5c45(%rax)
jne 0x2cccf
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
movq %rbx, %rsi
callq 0x10e4a
leaq 0x28(%r14), %r15
leaq -0x48(%rbp), %rsi
movq %r15, %rdi
callq 0x2e0a4
movq %rax, %r12
leaq -0x48(%rbp), %rdi
callq 0x9240
leaq 0x30(%r14), %rax
cmpq %rax, %r12
jne 0x2ccc8
movl $0x388, %edi            # imm = 0x388
callq 0x94d0
movq %rax, %r12
movq 0x10(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x2c826
leaq -0x48(%rbp), %rsi
movq %rbx, (%rsi)
movq %r12, 0x8(%rsi)
movq %r15, %rdi
callq 0x2e12e
movq %rax, %r12
movq 0x40(%r12), %rax
jmp 0x2ccd6
leaq 0x3194e2(%rip), %rax    # 0x3461b8
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x388, %esi            # imm = 0x388
movq %r12, %rdi
callq 0x94f0
jmp 0x2cd06
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x9240
jmp 0x2cd06
movq %rax, %rbx
movq %rbx, %rdi
callq 0x98b0
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::SetFlushCond()
void Logger::SetFlushCond() {
  if (PlayerParam::instance().SaveSightLog() ||
      PlayerParam::instance().SaveDecLog() ||
      PlayerParam::instance().SaveTextLog())
    mCondFlush.Set();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x38d94
cmpb $0x0, 0x5c43(%rax)
jne 0x2cd41
callq 0x38d94
cmpb $0x0, 0x5c44(%rax)
jne 0x2cd41
callq 0x38d94
cmpb $0x1, 0x5c45(%rax)
jne 0x2cd53
addq $0x58, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x42020
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::InitSightLogger(ServerMsgType, char const*)
void Logger::InitSightLogger(ServerMsgType msg_type, const char *msg) {
  if (PlayerParam::instance().SaveSightLog()) {
    switch (msg_type) {
    case ServerParam_Msg:
      GetSightLogger()->SetServerParamMsg(msg);
      break;
    case PlayerParam_Msg:
      GetSightLogger()->SetPlayerParamMsg(msg);
      break;
    case PlayerType_Msg:
      GetSightLogger()->SetPlayerTypeMsg(msg);
      break;
    default:
      break;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
callq 0x38d94
cmpb $0x1, 0x5c43(%rax)
jne 0x2cdaa
cmpl $0xa, %r15d
je 0x2cdd2
cmpl $0x7, %r15d
je 0x2cdb5
cmpl $0x6, %r15d
jne 0x2cdaa
movq %r14, %rdi
callq 0x2cbea
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2b746
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x2cbea
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2b774
movq %r14, %rdi
callq 0x2cbea
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2b7a2
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogPoint(Vector const&, SightLogger::Color, char const*)
void Logger::LogPoint(const Vector &target, SightLogger::Color color,
                      const char *comment) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();
    pSightLogger->AddPoint(target, comment, color);
    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2ce9f
movq %r12, %rdi
callq 0x2cbea
movq %rax, %r12
leaq 0x228(%rax), %r13
movq %r13, %rdi
callq 0x4206e
movq 0x258(%r12), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r12)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x2d722
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4208a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogGoToPoint(Vector const&, Vector const&, char const*)
void Logger::LogGoToPoint(const Vector &start, const Vector &target,
                          const char *comment) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();
    pSightLogger->AddPoint(target, comment, SightLogger::Red);
    pSightLogger->AddCircle(target, 0.2, SightLogger::Red);
    pSightLogger->AddLine(start, target, SightLogger::Red);
    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2cf48
movq %r15, %rdi
callq 0x2cbea
movq %rax, %r13
leaq 0x228(%rax), %r15
movq %r15, %rdi
callq 0x4206e
movq 0x258(%r13), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r13)
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x2d722
movabsq $0x3fc999999999999a, %rax # imm = 0x3FC999999999999A
leaq -0x30(%rbp), %rdx
movq %rax, (%rdx)
movq %r13, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x2d7dc
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d81c
movq %r15, %rdi
callq 0x4208a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogShoot(Vector const&, Vector const&, char const*)
void Logger::LogShoot(const Vector &start, const Vector &target,
                      const char *comment) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();
    pSightLogger->AddPoint(target, comment, SightLogger::Purple);
    pSightLogger->AddLine(start, target, SightLogger::Purple);
    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2cfe9
movq %r12, %rdi
callq 0x2cbea
movq %rax, %r12
leaq 0x228(%rax), %r13
movq %r13, %rdi
callq 0x4206e
movq 0x258(%r12), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r12)
pushq $0x6
popq %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movl %ecx, %r15d
callq 0x2d722
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %r15d, %ecx
callq 0x2d81c
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4208a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogIntercept(Vector const&, char const*)
void Logger::LogIntercept(const Vector &interpt, const char *comment) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();
    pSightLogger->AddPoint(interpt, comment, SightLogger::Cyan);
    pSightLogger->AddCircle(interpt, 0.1, SightLogger::Cyan);
    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2d085
movq %r15, %rdi
callq 0x2cbea
movq %rax, %r15
leaq 0x228(%rax), %r12
movq %r12, %rdi
callq 0x4206e
movq 0x258(%r15), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r15)
pushq $0x5
popq %r13
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl %r13d, %ecx
callq 0x2d722
movabsq $0x3fb999999999999a, %rax # imm = 0x3FB999999999999A
leaq -0x30(%rbp), %rdx
movq %rax, (%rdx)
movq %r15, %rdi
movq %rbx, %rsi
movl %r13d, %ecx
callq 0x2d7dc
movq %r12, %rdi
callq 0x4208a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogLine(Vector const&, Vector const&, SightLogger::Color, char const*)
void Logger::LogLine(const Vector &begin, const Vector &end,
                     SightLogger::Color color, const char *comment) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();
    pSightLogger->AddPoint(end, comment, color);
    pSightLogger->AddLine(begin, end, color);
    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2d125
movq %r13, %rdi
callq 0x2cbea
movq %rax, %r13
movq %r15, -0x30(%rbp)
leaq 0x228(%rax), %r15
movq %r15, %rdi
callq 0x4206e
movq 0x258(%r13), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r13)
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x2d722
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x2d81c
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4208a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogCircle(Vector const&, double const&, SightLogger::Color)
void Logger::LogCircle(const Vector &o, const double &r,
                       SightLogger::Color color) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();
    pSightLogger->AddCircle(o, r, color);
    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2d1af
movq %r12, %rdi
callq 0x2cbea
movq %rax, %r12
leaq 0x228(%rax), %r13
movq %r13, %rdi
callq 0x4206e
movq 0x258(%r12), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r12)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x2d7dc
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4208a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogRectangular(Rectangular const&, SightLogger::Color)
void Logger::LogRectangular(const Rectangular &rect, SightLogger::Color color) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();

    pSightLogger->AddLine(rect.TopLeftCorner(), rect.TopRightCorner(), color);
    pSightLogger->AddLine(rect.TopLeftCorner(), rect.BottomLeftCorner(), color);
    pSightLogger->AddLine(rect.BottomLeftCorner(), rect.BottomRightCorner(),
                          color);
    pSightLogger->AddLine(rect.BottomRightCorner(), rect.TopRightCorner(),
                          color);

    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2d314
movq %r15, %rdi
callq 0x2cbea
movq %rax, %r12
leaq 0x228(%rax), %rdi
movq %rdi, -0x30(%rbp)
callq 0x4206e
movq 0x258(%r12), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r12)
movsd (%r14), %xmm0
movsd 0x10(%r14), %xmm1
leaq -0x50(%rbp), %r13
movsd %xmm0, (%r13)
movsd %xmm1, 0x8(%r13)
movsd 0x8(%r14), %xmm0
leaq -0x40(%rbp), %r15
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq 0x2d81c
movsd (%r14), %xmm0
movsd 0x10(%r14), %xmm1
movsd %xmm0, (%r13)
movsd %xmm1, 0x8(%r13)
movsd 0x18(%r14), %xmm1
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
leaq -0x50(%rbp), %r15
leaq -0x40(%rbp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %ebx, %ecx
callq 0x2d81c
movsd (%r14), %xmm0
movsd 0x18(%r14), %xmm1
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
movsd 0x8(%r14), %xmm0
movsd %xmm0, (%r13)
movsd %xmm1, 0x8(%r13)
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %ebx, %ecx
callq 0x2d81c
movsd 0x8(%r14), %xmm0
movsd 0x18(%r14), %xmm1
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
movsd 0x10(%r14), %xmm1
movsd %xmm0, (%r13)
movsd %xmm1, 0x8(%r13)
leaq -0x50(%rbp), %rsi
leaq -0x40(%rbp), %rdx
movq %r12, %rdi
movl %ebx, %ecx
callq 0x2d81c
movq -0x30(%rbp), %rdi
callq 0x4208a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogDribble(Vector const&, Vector const&, char const*, bool)
void Logger::LogDribble(const Vector &start, const Vector &target,
                        const char *comment, bool is_execute) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();

    pSightLogger->AddPoint(target, comment, SightLogger::Blue);
    if (is_execute) {
      pSightLogger->AddLine(start, target, SightLogger::Blue);
    }

    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r15d
movq %rcx, %r13
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2d3bd
movq %r12, -0x30(%rbp)
movq %r14, %rdi
callq 0x2cbea
movq %rax, %r14
leaq 0x228(%rax), %r12
movq %r12, %rdi
callq 0x4206e
movq 0x258(%r14), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r14)
pushq $0x1
popq %rcx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x2d722
testb %r15b, %r15b
je 0x2d3a7
pushq $0x1
popq %rcx
movq %r14, %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rdx
callq 0x2d81c
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4208a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: Logger::LogPass(bool, Vector const&, Vector const&, char const*, bool)
void Logger::LogPass(const bool reverse, const Vector &start,
                     const Vector &target, const char *comment,
                     bool is_execute) {
  if (PlayerParam::instance().SaveDecLog()) {
    SightLogger *pSightLogger = GetSightLogger();
    pSightLogger->DecLock();
    pSightLogger->LogDec();

    pSightLogger->AddPoint(reverse ? target.Rotate(180.0) : target, comment,
                           SightLogger::Red);
    if (is_execute) {
      pSightLogger->AddLine(reverse ? start.Rotate(180.0) : start,
                            reverse ? target.Rotate(180.0) : target,
                            SightLogger::Red);
    }

    pSightLogger->DecUnLock();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, %r12d
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, -0x48(%rbp)
movl %esi, %r13d
movq %rdi, %r15
callq 0x38d94
cmpb $0x1, 0x5c44(%rax)
jne 0x2d4e9
movq %r15, %rdi
callq 0x2cbea
movq %rax, %r15
leaq 0x228(%rax), %rdi
movq %rdi, -0x68(%rbp)
callq 0x4206e
movq 0x258(%r15), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2f0(%r15)
movabsq $0x4066800000000000, %rax # imm = 0x4066800000000000
testb %r13b, %r13b
je 0x2d459
leaq -0x60(%rbp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0xd02c
movsd %xmm0, -0x40(%rbp)
movsd %xmm1, -0x38(%rbp)
jmp 0x2d461
movups (%r14), %xmm0
movaps %xmm0, -0x40(%rbp)
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2d722
testb %r12b, %r12b
je 0x2d4e0
testb %r13b, %r13b
je 0x2d4bb
leaq -0x78(%rbp), %rsi
movabsq $0x4066800000000000, %rbx # imm = 0x4066800000000000
movq %rbx, (%rsi)
movq -0x48(%rbp), %rdi
callq 0xd02c
movsd %xmm0, -0x40(%rbp)
movsd %xmm1, -0x38(%rbp)
leaq -0x70(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, %rdi
callq 0xd02c
movsd %xmm0, -0x60(%rbp)
movsd %xmm1, -0x58(%rbp)
jmp 0x2d4ce
movq -0x48(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x40(%rbp)
movups (%r14), %xmm0
movaps %xmm0, -0x60(%rbp)
leaq -0x40(%rbp), %rsi
leaq -0x60(%rbp), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x2d81c
movq -0x68(%rbp), %rdi
callq 0x4208a
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.h
// Function: SightLogger::PointShape::PointShape(Vector const&, SightLogger::Color, char const*)
PointShape(const Vector &point, Color color, const char *cmt = 0)
        : ItemShape(color) {
      x = point.X();
      y = point.Y();
      if (cmt) {
        comment.assign(cmt);
      }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, (%rdi)
leaq 0x28(%rdi), %rax
movq %rax, 0x18(%rdi)
andq $0x0, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movsd (%rsi), %xmm0
movsd %xmm0, 0x8(%rdi)
movsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x10(%rdi)
testq %rcx, %rcx
je 0x2d8d0
movq %rdi, %rbx
addq $0x18, %rbx
movq %rbx, %rdi
movq %rcx, %rsi
callq 0x9970
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x9240
movq %r14, %rdi
callq 0x98b0
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::Construct(int, int*)
void Net::Construct(int layers, int *units) {
  if (layers == 0)
    return;
  mLayers = layers;
  mUnits = new int[mLayers];
  if (units != 0) {
    for (int i = 0; i < mLayers; ++i) {
      mUnits[i] = units[i];
    }
  }

  Memaloc();
  SetDefaultValue();
}

// Assembly:
testl %esi, %esi
je 0x2e41e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
movl %esi, (%rdi)
movl %esi, %eax
shlq $0x2, %rax
testl %esi, %esi
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
callq 0x9050
movq %rax, 0x8(%rbx)
testq %r14, %r14
je 0x2e404
xorl %ecx, %ecx
testl %r15d, %r15d
cmovlel %ecx, %r15d
cmpq %rcx, %r15
je 0x2e404
movl (%r14,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
jmp 0x2e3f3
movq %rbx, %rdi
callq 0x2e670
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2e7f6
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::Construct(char const*)
void Net::Construct(const char *fname) {
  FILE *fp;
  if ((fp = fopen(fname, "r")) == 0) {
    perror("BPN::Construct(char *fname)");
    exit(1);
  }
#ifdef BINARY
  if (fread(&mLayers, sizeof(mLayers), 1, fp) < 1) {
    Assert(0);
  }
  mUnits = new int[mLayers];
  if (fread(mUnits, sizeof(*mUnits), mLayers, fp) < 1) {
    Assert(0);
  }
  if (fread(&mEta, sizeof(mEta), 1, fp) < 1) {
    Assert(0);
  }
  if (fread(&mAlpha, sizeof(mAlpha), 1, fp) < 1) {
    Assert(0);
  }
  Memaloc();
  InitWeight();

  for (int i = 1; i < mLayers; ++i) {
    for (int j = 0; j < mUnits[i]; ++j) {
      if (fread(mWeight[i][j], sizeof(*mWeight[i][j]), mUnits[i - 1] + 1, fp) <
          1) {
        Assert(0);
      }
    }
  }
#else
  fscanf(fp, "#mLayers\n%d\n#mUnits\n", &mLayers);
  mUnits = new int[mLayers];
  for (int i = 0; i < mLayers; ++i) {
    fscanf(fp, "%d ", &mUnits[i]);
  }
  fscanf(fp, "\n#mEta\n%lf\n#mAlpha\n%lf\n#mWeight\n", &mEta, &mAlpha);
  int tmp;
  Memaloc();
  InitWeight();

  for (int i = 1; i < mLayers; ++i) {
    fscanf(fp, "#Layer %d\n", &tmp);
    for (int j = 0; j < mUnits[i]; ++j) {
      for (int k = 0; k < mUnits[i - 1] + 1; ++k) {
        fscanf(fp, "%lf ", &mWeight[i][j][k]);
      }
      fscanf(fp, "\n");
    }
    fscanf(fp, "\n");
  }
#endif
  fclose(fp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x2d0f1(%rip), %rsi     # 0x5b540
movq %rax, %rdi
callq 0x95a0
testq %rax, %rax
je 0x2e53a
movq %rax, %r14
pushq $0x4
popq %r12
pushq $0x1
popq %r15
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x9740
movslq (%rbx), %r13
leaq (,%r13,4), %rax
testq %r13, %r13
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
callq 0x9050
movq %rax, 0x8(%rbx)
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x9740
leaq 0x38(%rbx), %rdi
pushq $0x8
popq %r12
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x9740
leaq 0x40(%rbx), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x9740
movq %rbx, %rdi
callq 0x2e670
movq %rbx, %rdi
callq 0x2e828
movslq (%rbx), %rax
cmpq %rax, %r15
jge 0x2e524
xorl %r13d, %r13d
movq 0x8(%rbx), %rax
movslq (%rax,%r15,4), %rcx
cmpq %rcx, %r13
jge 0x2e51f
movq 0x10(%rbx), %rcx
movq (%rcx,%r15,8), %rcx
movq (%rcx,%r13,8), %rdi
movslq -0x4(%rax,%r15,4), %rdx
incq %rdx
movq %r12, %rsi
movq %r14, %rcx
callq 0x9740
incq %r13
jmp 0x2e4ee
incq %r15
jmp 0x2e4e3
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x94c0
leaq 0x2a5ce(%rip), %rdi     # 0x58b0f
callq 0x9410
pushq $0x1
popq %rdi
callq 0x95d0
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::Destroy()
void Net::Destroy() {
  if (mUnits == 0)
    return;
  for (int i = 1; i < mLayers; ++i) {
    for (int j = 0; j < mUnits[i]; ++j) {
      delete[] mWeight[i][j];
      delete[] mDeltaWeight[i][j];
    }
    delete[] mWeight[i];
    delete[] mDeltaWeight[i];
  }
  delete[] mWeight;
  delete[] mDeltaWeight;

  for (int i = 1; i < mLayers; ++i) {
    delete[] mOutput[i];
    delete[] mDelta[i];
  }
  delete[] mOutput;
  delete[] mDelta;

  delete[] mUnits;
  if (mLogName != 0)
    delete[] mLogName;
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x2e66e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jge 0x2e5de
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
movslq (%rax,%r14,4), %rax
movq (%rcx,%r14,8), %rdi
cmpq %rax, %r15
jge 0x2e5bd
movq (%rdi,%r15,8), %rdi
testq %rdi, %rdi
je 0x2e5a2
callq 0x9630
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x2e5b8
callq 0x9630
incq %r15
jmp 0x2e57f
testq %rdi, %rdi
je 0x2e5c7
callq 0x9630
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x2e5d9
callq 0x9630
incq %r14
jmp 0x2e574
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x2e5ec
callq 0x9630
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x2e5fa
callq 0x9630
pushq $0x1
popq %r14
movslq (%rbx), %rax
movq 0x28(%rbx), %rdi
cmpq %rax, %r14
jge 0x2e62f
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x2e618
callq 0x9630
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x2e62a
callq 0x9630
incq %r14
jmp 0x2e5fe
testq %rdi, %rdi
je 0x2e639
callq 0x9630
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x2e647
callq 0x9630
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x2e655
callq 0x9630
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
leaq 0x8(%rsp), %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
je 0x2e66e
jmp 0x9630
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::Memaloc()
void Net::Memaloc() {
  mWeight = new real **[mLayers];
  mDeltaWeight = new real **[mLayers];
  for (int i = 1; i < mLayers; ++i) {
    mWeight[i] = new real *[mUnits[i]];
    mDeltaWeight[i] = new real *[mUnits[i]];
    for (int j = 0; j < mUnits[i]; ++j) {
      mWeight[i][j] = new real[mUnits[i - 1] + 1];      // one bias
      mDeltaWeight[i][j] = new real[mUnits[i - 1] + 1]; // one bias
    }
  }

  mOutput = new real *[mLayers];
  mDelta = new real *[mLayers];
  for (int i = 1; i < mLayers; ++i) {
    mOutput[i] = new real[mUnits[i]];
    mDelta[i] = new real[mUnits[i]];
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq (%rdi), %r15
leaq (,%r15,8), %r14
testq %r15, %r15
pushq $-0x1
popq %r12
cmovsq %r12, %r14
movq %r14, %rdi
callq 0x9050
movq %rax, 0x10(%rbx)
movq %r14, -0x30(%rbp)
movq %r14, %rdi
callq 0x9050
movq %rax, 0x18(%rbx)
pushq $0x1
popq %r13
cmpq %r15, %r13
jge 0x2e774
movq 0x8(%rbx), %rax
movslq (%rax,%r13,4), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
cmovsq %r12, %rdi
callq 0x9050
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%r13,8)
movq 0x8(%rbx), %rax
movslq (%rax,%r13,4), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
cmovsq %r12, %rdi
callq 0x9050
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r13,8)
xorl %r14d, %r14d
movq 0x8(%rbx), %rax
movslq (%rax,%r13,4), %rcx
cmpq %rcx, %r14
jge 0x2e76c
movslq -0x4(%rax,%r13,4), %rax
cmpq %r12, %rax
leaq 0x8(,%rax,8), %rdi
cmovlq %r12, %rdi
callq 0x9050
movq 0x10(%rbx), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%r14,8)
movq 0x8(%rbx), %rax
movslq -0x4(%rax,%r13,4), %rax
cmpq $-0x1, %rax
leaq 0x8(,%rax,8), %rdi
cmovlq %r12, %rdi
callq 0x9050
movq 0x18(%rbx), %rcx
movq (%rcx,%r13,8), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
jmp 0x2e70b
incq %r13
jmp 0x2e6b7
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x9050
movq %rax, 0x28(%rbx)
movq %r14, %rdi
callq 0x9050
movq %rax, 0x20(%rbx)
pushq $0x1
popq %r14
cmpq %r15, %r14
jge 0x2e7e6
movq 0x8(%rbx), %rax
movslq (%rax,%r14,4), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
cmovsq %r12, %rdi
callq 0x9050
movq 0x28(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
movq 0x8(%rbx), %rax
movslq (%rax,%r14,4), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
cmovsq %r12, %rdi
callq 0x9050
movq 0x20(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
jmp 0x2e794
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::SetDefaultValue()
void Net::SetDefaultValue() {
  SetLearningRate(0.7);
  SetAlpha(0.0);
  SetDesiredError(0.01);
  SetMaxEpochs(1000);
  InitWeight();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movabsq $0x3fe6666666666666, %rax # imm = 0x3FE6666666666666
movq %rax, 0x38(%rdi)
andq $0x0, 0x40(%rdi)
movabsq $0x3f847ae147ae147b, %rax # imm = 0x3F847AE147AE147B
movq %rax, 0x48(%rdi)
movl $0x3e8, 0x50(%rdi)      # imm = 0x3E8
popq %rbp
jmp 0x2e828
// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::InitWeight()
void Net::InitWeight() {
  for (int i = 1; i < mLayers; ++i) {
    for (int j = 0; j < mUnits[i]; ++j) {
      for (int k = 0; k < mUnits[i - 1] + 1; ++k) {
        mWeight[i][j][k] = small_rand();
        mDeltaWeight[i][j][k] = 0.0;
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jge 0x2e89d
movq 0x8(%rbx), %rax
xorl %r15d, %r15d
movslq (%rax,%r14,4), %rcx
cmpq %rcx, %r15
jge 0x2e898
xorl %r12d, %r12d
movslq -0x4(%rax,%r14,4), %rcx
cmpq %rcx, %r12
jg 0x2e893
movq %rbx, %rdi
callq 0x2efd6
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rax
movsd %xmm0, (%rax,%r12,8)
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15,8), %rax
andq $0x0, (%rax,%r12,8)
incq %r12
movq 0x8(%rbx), %rax
jmp 0x2e855
incq %r15
jmp 0x2e849
incq %r14
jmp 0x2e83a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq