LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::DoDecision()
void VisualSystem::DoDecision() {
  if (!mpAgent->IsNewSight()) {
    if (mCanForceChangeViewWidth) {
      mViewWidth = VW_Narrow; //重置为窄视角
    } else {
      mViewWidth = mpSelfState->GetViewWidth();
    }
  }

  DoInfoGather();          //提请求
  EvaluateVisualRequest(); //评价

  if (!ForceSearchBall()) {
    DealVisualRequest(); //处理请求
    DoVisualExecute();   //视觉执行
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
cmpb $0x0, 0x28(%rax)
jne 0x5833b
movl $0x1, %eax
cmpb $0x0, 0x639(%rbx)
jne 0x58335
movq 0x20(%rbx), %rax
movl 0x118(%rax), %eax
movl %eax, 0x640(%rbx)
movq %rbx, %rdi
callq 0x58cb0
movq %rbx, %rdi
callq 0x5890c
movq %rbx, %rdi
callq 0x5afdc
testb %al, %al
je 0x5835e
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq %rbx, %rdi
callq 0x583a8
movq %rbx, %rdi
callq 0x58560
movq %rbx, %rdi
callq 0x58686
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5a870
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::SetVisualRing()
void VisualSystem::SetVisualRing() {
  mVisualRing.Clear();

  for (int i = -TEAMSIZE; i <= TEAMSIZE; ++i) {
    const VisualRequest &visual_request = mVisualRequest[i];

    if (!visual_request.mValid)
      continue;

    for (double dir = -5.0; dir <= 5.0; dir += 1.0) {
      mVisualRing.Score(visual_request.mPrePos.Dir() - mPreBodyDir + dir) +=
          visual_request.mScore / 11.0;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x680(%rdi), %r14
movl $0xb48, %edx            # imm = 0xB48
movq %r14, %rdi
xorl %esi, %esi
callq 0x92b0
leaq 0x30(%rbx), %rax
movq %rax, -0x30(%rbp)
movq $-0xb, %r13
movl $0xb, %r15d
subq %r13, %r15
testq %r13, %r13
cmovnsq %r13, %r15
shlq $0x6, %r15
movq -0x30(%rbp), %rax
cmpb $0x1, 0x10(%rax,%r15)
jne 0x5866a
addq -0x30(%rbp), %r15
movl $0xfffffffb, %r12d      # imm = 0xFFFFFFFB
movsd 0x13d49(%rip), %xmm3    # 0x6c318
movsd %xmm3, -0x40(%rbp)
movsd 0x28(%r15), %xmm0
divsd 0x17056(%rip), %xmm0    # 0x6f638
movsd %xmm0, -0x38(%rbp)
movq %r15, %rdi
callq 0xe804
movsd -0x40(%rbp), %xmm3
xorpd %xmm1, %xmm1
subsd 0x648(%rbx), %xmm0
addsd %xmm3, %xmm0
ucomisd %xmm0, %xmm1
jbe 0x5861e
movsd 0x12a5e(%rip), %xmm2    # 0x6b070
addsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
ja 0x58612
jmp 0x5863e
movsd 0x12a4a(%rip), %xmm1    # 0x6b070
ucomisd %xmm1, %xmm0
movsd 0x12a36(%rip), %xmm2    # 0x6b068
jb 0x5863e
addsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jae 0x58634
cvttsd2si %xmm0, %eax
cltq
movsd -0x38(%rbp), %xmm0
addsd (%r14,%rax,8), %xmm0
movsd %xmm0, (%r14,%rax,8)
addsd 0x129fb(%rip), %xmm3    # 0x6b058
incl %r12d
cmpl $0x6, %r12d
jne 0x585cf
incq %r13
cmpq $0xc, %r13
jne 0x58599
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::RaiseBall(double)
void VisualSystem::RaiseBall(double eva) {
  const Strategy &strategy = mpAgent->GetStrategy();

  if (mpWorldState->GetPlayMode() < PM_Our_Mode &&
      mpWorldState->GetPlayMode() > PM_Play_On) {
    eva = Min(2.0, eva);
  }

  if (eva < FLOAT_EPS) {
    if (strategy.IsBallFree() && mpWorldState->GetPlayMode() == PM_Play_On) {
      if (mpBallState->GetVelDelay() <=
          mpWorldState->CurrentTime() -
              strategy.GetLastBallFreeTime()) { //球free后曾看到过球速
        //在球即将不再free时要看球,其他可以不看,但上限是3个周期,其间可以收集些别的信息
        eva =
            Max(Min(strategy.IsMyControl() ? double(strategy.GetMyInterCycle())
                                           : strategy.GetBallFreeCycleLeft(),
                    3.0),
                1.0);
      } else { //球free后还未看到过球速
        eva = 1.0;
        SetForceSeeBall();
      }
    } else if (strategy.IsTmControl()) {
      double ball_dis = (mPreBallPos - mPreSelfPos).Mod();
      eva = ball_dis / 20.0 + 1.0;
      eva = Max(eva, 3.0);
    } else {
      double ball_dis = (mPreBallPos - mPreSelfPos).Mod();
      eva = ball_dis / 20.0;
      eva = Max(eva, 2.0);
    }
  }

  mVisualRequest.GetOfBall().mFreq = Min(mVisualRequest.GetOfBall().mFreq, eva);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movsd %xmm0, -0x20(%rbp)
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x38(%rdi), %rsi
callq 0xf5c4
movq %rax, %r14
movq 0x10(%rbx), %rdi
movl 0x1c(%rdi), %eax
leal -0x2(%rax), %ecx
cmpl $0x13, %ecx
jb 0x591b0
movsd -0x20(%rbp), %xmm2
jmp 0x591bd
movsd -0x20(%rbp), %xmm2
minsd 0x125c3(%rip), %xmm2    # 0x6b780
movsd 0x11e7b(%rip), %xmm0    # 0x6b040
ucomisd %xmm2, %xmm0
jbe 0x592af
cmpl $0x1, %eax
jne 0x5920d
cmpb $0x0, 0x41(%r14)
je 0x5920d
movq 0x18(%rbx), %rax
movl 0x40(%rax), %r15d
addq $0x10, %rdi
movq %r14, %rsi
addq $0x54, %rsi
callq 0x55ef4
cmpl %eax, %r15d
jle 0x59271
movq %rbx, %rdi
callq 0x592c4
movsd 0x11e50(%rip), %xmm2    # 0x6b058
jmp 0x592af
movl 0x48(%r14), %r14d
movsd 0x650(%rbx), %xmm0
movsd 0x658(%rbx), %xmm1
subsd 0x660(%rbx), %xmm0
subsd 0x668(%rbx), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x5924d
sqrtsd %xmm0, %xmm0
jmp 0x59252
callq 0x93c0
divsd 0x13d4e(%rip), %xmm0    # 0x6cfa8
testl %r14d, %r14d
jle 0x592a3
addsd 0x11df1(%rip), %xmm0    # 0x6b058
movsd 0x129b1(%rip), %xmm2    # 0x6bc20
jmp 0x592ab
movq %r14, %rdi
callq 0x4c97e
movzbl %al, %eax
shll $0x5, %eax
xorps %xmm0, %xmm0
cvtsi2sdl 0x44(%r14,%rax), %xmm0
movsd 0x1298f(%rip), %xmm1    # 0x6bc20
minsd %xmm0, %xmm1
movsd 0x11dbb(%rip), %xmm2    # 0x6b058
maxsd %xmm1, %xmm2
jmp 0x592af
movsd 0x124d5(%rip), %xmm2    # 0x6b780
maxsd %xmm0, %xmm2
minsd 0x48(%rbx), %xmm2
movsd %xmm2, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::DoInfoGatherForGoalie()
void VisualSystem::DoInfoGatherForGoalie() {
  const Strategy &strategy = mpAgent->GetStrategy();

  RaiseBall();
  for (Unum i = 1; i <= TEAMSIZE; i++) {
    if (i != mpSelfState->GetUnum()) {
      RaisePlayer(i, 50);
    }
    RaisePlayer(-i, 50);
  }

  //特殊视觉请求
  if (mpInfoState->GetPositionInfo().GetBallDistToTeammate(
          mpSelfState->GetUnum()) < 26.0) {
    SetForceSeeBall();
    if (strategy.IsOppControl()) {
      RaisePlayer(strategy.GetController(), 2.0);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x38(%rdi), %rsi
callq 0xf5c4
movq %rax, %r14
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x59178
movl $0x1, %r15d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
cmpl 0x11c(%rax), %r15d
je 0x59827
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x1265e(%rip), %xmm0    # 0x6be80
callq 0x58f34
movq %rbx, %rdi
movl %r12d, %esi
movsd 0x1264b(%rip), %xmm0    # 0x6be80
callq 0x58f34
incl %r15d
decl %r12d
cmpl $-0xc, %r12d
jne 0x59807
movq 0x28(%rbx), %rdi
callq 0x2adf8
movq 0x20(%rbx), %rcx
movl 0x11c(%rcx), %esi
movq %rax, %rdi
callq 0x4846e
movsd 0x15ddf(%rip), %xmm0    # 0x6f648
ucomisd (%rax), %xmm0
jbe 0x5987f
movq %rbx, %rdi
callq 0x592c4
movl 0x48(%r14), %esi
testl %esi, %esi
js 0x59888
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movsd 0x11ef0(%rip), %xmm0    # 0x6b780
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x58f34
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::GetBestVisualActionWithViewWidth(ViewWidth, bool)
VisualSystem::VisualAction
VisualSystem::GetBestVisualActionWithViewWidth(ViewWidth view_width,
                                               bool force) {
  if (force || GetSenseBallCycle() >= NewSightComeCycle(view_width)) {
    AngleDeg max_turn_ang = mCanTurn ? mpSelfState->GetMaxTurnAngle() : 0.0;
    AngleDeg half_view_angle = sight::ViewAngle(view_width) * 0.5;
    AngleDeg neck_left_most =
        ServerParam::instance().minNeckAngle() -
        max_turn_ang; //脖子可以到达的极限角度（相对于当前身体正前方而言）
    AngleDeg neck_right_most =
        ServerParam::instance().maxNeckAngle() + max_turn_ang;
    AngleDeg left_most = neck_left_most - half_view_angle;
    AngleDeg right_most = neck_right_most + half_view_angle;

    VisualAction best_visual_action = mVisualRing.GetBestVisualAction(
        left_most, right_most, half_view_angle * 2.0);

    best_visual_action.mScore /= NewSightWaitCycle(view_width);

    Assert(!IsInvalid(best_visual_action.mScore));

    return best_visual_action;
  } else {
    return VisualAction();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %r14d
movq %rdi, %rbx
testl %edx, %edx
jne 0x5ad7d
movq %rbx, %rdi
callq 0x5ae48
xorl %ecx, %ecx
cmpl $0x2, %r14d
sete %cl
incl %ecx
cmpl $0x3, %r14d
cmovel %r14d, %ecx
movq 0x20(%rbx), %rdx
subl 0x18(%rdx), %ecx
cmpl $0x2, %ecx
movl $0x1, %edx
cmovgel %ecx, %edx
cmpl %edx, %eax
jge 0x5ad7d
xorpd %xmm0, %xmm0
movsd 0x10320(%rip), %xmm1    # 0x6b098
jmp 0x5ae3f
xorps %xmm0, %xmm0
cmpb $0x1, 0x63c(%rbx)
jne 0x5ad95
movq 0x20(%rbx), %rax
movsd 0x158(%rax), %xmm0
leal -0x1(%r14), %eax
cmpl $0x2, %eax
movsd %xmm0, -0x20(%rbp)
ja 0x5adb3
movl %eax, %eax
leaq 0x14914(%rip), %rcx     # 0x6f6c0
movsd (%rcx,%rax,8), %xmm0
jmp 0x5adbb
movsd 0x10e6d(%rip), %xmm0    # 0x6bc28
movsd %xmm0, -0x18(%rbp)
callq 0x4a75c
movsd 0x3168(%rax), %xmm0
subsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0x4a75c
movsd -0x20(%rbp), %xmm1
addsd 0x3160(%rax), %xmm1
movsd -0x18(%rbp), %xmm2
movsd -0x28(%rbp), %xmm0
subsd %xmm2, %xmm0
addsd %xmm2, %xmm1
leaq 0x680(%rbx), %rdi
addsd %xmm2, %xmm2
callq 0x5aa7a
xorl %eax, %eax
cmpl $0x2, %r14d
sete %al
incl %eax
cmpl $0x3, %r14d
cmovel %r14d, %eax
movq 0x20(%rbx), %rcx
movl 0x18(%rcx), %ecx
subl %ecx, %eax
cmpl $0x2, %eax
movl $0x1, %edx
cmovgel %eax, %edx
addl %ecx, %edx
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
divsd %xmm2, %xmm1
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::GetSenseBallCycle()
int VisualSystem::GetSenseBallCycle() {
  if (mSenseBallCycle == 0) { //用拦截模型来算什么时候可以感知到球
    if (mVisualRequest[0].mValid) {
      if (mVisualRequest[0].PreDistance() <
          ServerParam::instance().visibleDistance()) {
        mSenseBallCycle = 1;
      } else {
        PlayerInterceptInfo int_info;
        VirtualSelf virtual_self(*mpSelfState);

        virtual_self.UpdateIsGoalie(
            false); //否则会用可扑范围代替感知范围计算截球

        int_info.mRes = IR_None;
        int_info.mpPlayer = &virtual_self;

        InterceptInfo::CalcTightInterception(*mpBallState, &int_info);

        mSenseBallCycle = int_info.mMinCycle;
        mSenseBallCycle = Max(mSenseBallCycle, 1);
      }
    } else {
      mSenseBallCycle = 1000;
    }
  }

  return mSenseBallCycle;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdi, %rbx
cmpl $0x0, 0x11c8(%rdi)
jne 0x5af99
cmpb $0x1, 0x40(%rbx)
jne 0x5ae94
movsd 0x30(%rbx), %xmm0
movsd 0x38(%rbx), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x5aea3
sqrtsd %xmm0, %xmm0
jmp 0x5aea8
movl $0x3e8, 0x11c8(%rbx)    # imm = 0x3E8
jmp 0x5af99
callq 0x93c0
movsd %xmm0, -0x20(%rbp)
callq 0x4a75c
movsd 0x3178(%rax), %xmm0
ucomisd -0x20(%rbp), %xmm0
jbe 0x5aed0
movl $0x1, 0x11c8(%rbx)
jmp 0x5af99
movabsq $0x100000000, %rax      # imm = 0x100000000
leaq -0xb0(%rbp), %r14
movq %rax, (%r14)
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
movq %rax, 0x58(%r14)
movq $0x0, 0x60(%r14)
movl $0x3e8, 0x74(%r14)      # imm = 0x3E8
movabsq $0x408f400000000000, %rax # imm = 0x408F400000000000
movq %rax, 0x78(%r14)
movq %rax, 0x80(%r14)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x88(%r14)
movq 0x20(%rbx), %rsi
leaq -0x228(%rbp), %r15
movq %r15, %rdi
callq 0x5b346
movb $0x0, 0x175(%r15)
movl $0x0, 0x8c(%r14)
movq %r15, 0x60(%r14)
movq 0x18(%rbx), %rdi
movl $0x1, %r15d
movq %r14, %rsi
movl $0x1, %edx
callq 0x2b50a
movl -0x3c(%rbp), %eax
cmpl $0x2, %eax
cmovgel %eax, %r15d
movl %r15d, 0x11c8(%rbx)
leaq 0x2a334(%rip), %rax     # 0x852b0
movq %rax, -0x228(%rbp)
movq -0x1c0(%rbp), %rdi
testq %rdi, %rdi
je 0x5af99
movl $0x670, %esi            # imm = 0x670
callq 0x94e0
movl 0x11c8(%rbx), %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x2a2f9(%rip), %rax     # 0x852b0
movq %rax, -0x228(%rbp)
movq -0x1c0(%rbp), %rdi
testq %rdi, %rdi
je 0x5afd4
movl $0x670, %esi            # imm = 0x670
callq 0x94e0
movq %rbx, %rdi
callq 0x98b0
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::ForceSearchBall()
bool VisualSystem::ForceSearchBall() {
  if (!mpSelfState->IsIdling() && !mVisualRequest[0].mValid) { // force to scan
    mpAgent->GetActionEffector().ResetForScan();

    if (NewSightComeCycle(VW_Wide) == 1) {
      mpAgent->ChangeView(VW_Wide);
    } else if (NewSightComeCycle(VW_Normal) == 1) {
      mpAgent->ChangeView(VW_Normal);
    } else {
      mpAgent->ChangeView(VW_Narrow);
    }

    mpAgent->Turn(sight::ViewAngle(VW_Narrow) - 5.0);

    return true;
  }
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x20(%rdi), %rcx
xorl %eax, %eax
cmpl $0x0, 0xc8(%rcx)
jg 0x5b07c
cmpl $0x0, 0x124(%rcx)
jg 0x5b07c
movq %rdi, %rbx
cmpb $0x0, 0x40(%rdi)
je 0x5b00c
xorl %eax, %eax
jmp 0x5b07c
movq 0x8(%rbx), %rdi
callq 0xef28
movq %rax, %rdi
callq 0xe042
movq 0x20(%rbx), %rax
movl 0x18(%rax), %r14d
cmpl $0x2, %r14d
jl 0x5b03e
movq 0x8(%rbx), %rdi
callq 0xef28
movq %rax, %rdi
movl $0x3, %esi
jmp 0x5b05c
movq 0x8(%rbx), %rdi
callq 0xef28
movq %rax, %rdi
cmpl $0x1, %r14d
jne 0x5b057
movl $0x2, %esi
jmp 0x5b05c
movl $0x1, %esi
callq 0xc742
movq 0x8(%rbx), %rdi
callq 0xef28
movsd 0x145f6(%rip), %xmm0    # 0x6f668
movq %rax, %rdi
callq 0xbc38
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::SetForceSeePlayer(int)
void VisualSystem::SetForceSeePlayer(Unum i) {
  if (i != 0) {
    mForceToSeeObject[i] = true;
    mHighPriorityPlayerSet.insert(GetVisualRequest(i));

    Logger::instance().GetTextLogger("force_to_see")
        << mpWorldState->CurrentTime() << ": player " << i << std::endl;
  }
}

// Assembly:
testl %esi, %esi
je 0x5b19c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movslq %esi, %rax
movl $0xb, %ecx
subq %rax, %rcx
movq %rax, %rdx
shlq $0x6, %rdx
movq %rcx, %rsi
shlq $0x6, %rsi
testl %ebx, %ebx
cmovnsq %rax, %rcx
leaq 0x608(%rdi), %rdi
movb $0x1, 0x5f0(%r14,%rcx)
leaq 0x30(%r14,%rdx), %rax
leaq 0x30(%r14,%rsi), %rcx
cmovnsq %rax, %rcx
leaq -0x20(%rbp), %rsi
movq %rcx, (%rsi)
callq 0x5b782
callq 0x35b4a
leaq 0x145a4(%rip), %rsi     # 0x6f692
movq %rax, %rdi
callq 0x35d5e
movq %rax, %r15
movq 0x10(%r14), %r14
callq 0x450ba
cmpb $0x1, 0x5c45(%rax)
jne 0x5b121
addq $0x10, %r14
movq %r15, %rdi
addq $0x210, %rdi            # imm = 0x210
movq %r14, %rsi
callq 0xea74
leaq 0x1457e(%rip), %rsi     # 0x6f6a6
movq %r15, %rdi
callq 0x5b4fa
movq %rax, %r14
callq 0x450ba
cmpb $0x1, 0x5c45(%rax)
jne 0x5b14f
leaq 0x210(%r14), %rdi
movl %ebx, %esi
callq 0x9880
callq 0x450ba
cmpb $0x1, 0x5c45(%rax)
jne 0x5b192
movq %r14, %rbx
addq $0x210, %rbx            # imm = 0x210
movq 0x210(%r14), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::UpdatePredictInfo()
inline void VisualSystem::UpdatePredictInfo() {
  mPreBodyDir = mpAgent->GetSelfBodyDirWithQueuedActions();
  mPreSelfPos = mpAgent->GetSelfPosWithQueuedActions();

  const Unum kickale_player =
      mpAgent->GetInfoState().GetPositionInfo().GetPlayerWithBall();
  if (kickale_player != 0 && kickale_player != mpSelfState->GetUnum()) {
    mPreBallPos = mpBallState->GetPos();
  } else {
    mPreBallPos = mpAgent->GetBallPosWithQueuedActions();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0xef28
movq %rax, %rdi
callq 0xe29c
movsd %xmm0, 0x648(%rbx)
movq 0x8(%rbx), %rdi
callq 0xef28
movq %rax, %rdi
callq 0xe16e
movsd %xmm0, 0x660(%rbx)
movsd %xmm1, 0x668(%rbx)
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rdi
callq 0x2adf8
movq %rax, %rdi
callq 0x5b5a2
testl %eax, %eax
je 0x5b206
movq 0x20(%rbx), %rcx
cmpl 0x11c(%rcx), %eax
jne 0x5b229
movq 0x8(%rbx), %rdi
callq 0xef28
movq %rax, %rdi
callq 0xe2e2
movsd %xmm0, 0x650(%rbx)
movsd %xmm1, 0x658(%rbx)
jmp 0x5b238
movq 0x18(%rbx), %rax
movups 0x8(%rax), %xmm0
movups %xmm0, 0x650(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/PositionInfo.h
// Function: PositionInfo::GetClosestOpponentDistToBall()
double GetClosestOpponentDistToBall() {
    return GetClosestOpponentToBall() == 0
               ? HUGE_VALUE
               : mpWorldState->GetOpponent(GetClosestOpponentToBall())
                     .GetPos()
                     .Dist(mpWorldState->GetBall().GetPos());
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x150fe
testl %eax, %eax
je 0x5b2a8
movq 0x10(%rbx), %r14
movq %rbx, %rdi
callq 0x150fe
decl %eax
cltq
imulq $0x178, %rax, %rax      # imm = 0x178
movq 0x10(%rbx), %rcx
movsd 0x10d8(%r14,%rax), %xmm0
movsd 0x10e0(%r14,%rax), %xmm1
subsd 0x38(%rcx), %xmm0
subsd 0x40(%rcx), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x5b2b5
sqrtsd %xmm0, %xmm0
jmp 0x5b2b0
movsd 0x104a0(%rip), %xmm0    # 0x6b750
popq %rbx
popq %r14
popq %rbp
retq
popq %rbx
popq %r14
popq %rbp
jmp 0x93c0
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldModel.cpp
// Function: WorldModel::WorldModel()
WorldModel::WorldModel() {
  mpHistoryState[0] = new HistoryState;
  mpWorldState[0] = new WorldState(mpHistoryState[0]); //队友的世界状态

  mpHistoryState[1] = new HistoryState;
  mpWorldState[1] =
      new WorldState(mpHistoryState[1]); //供反算时用的，对手的世界状态
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2b4e8(%rip), %rax     # 0x86d38
movq %rax, (%rdi)
movl $0x14b98, %edi          # imm = 0x14B98
callq 0x94c0
movq %rax, %r14
movq %rax, %rdi
callq 0x5ba3a
movl $0x0, 0x14b90(%r14)
movq %r14, 0x18(%rbx)
movl $0x2128, %edi           # imm = 0x2128
callq 0x94c0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x5bb80
movq %r15, 0x8(%rbx)
movl $0x14b98, %edi          # imm = 0x14B98
callq 0x94c0
movq %rax, %r14
movq %rax, %rdi
callq 0x5ba3a
movl $0x0, 0x14b90(%r14)
movq %r14, 0x20(%rbx)
movl $0x2128, %edi           # imm = 0x2128
callq 0x94c0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x5bb80
movq %r15, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5b8e2
jmp 0x5b8ef
movq %rax, %rbx
movl $0x2128, %esi           # imm = 0x2128
movq %r15, %rdi
jmp 0x5b8fa
movq %rax, %rbx
movl $0x14b98, %esi          # imm = 0x14B98
movq %r14, %rdi
callq 0x94e0
movq %rbx, %rdi
callq 0x98b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldModel.cpp
// Function: WorldModel::~WorldModel()
WorldModel::~WorldModel() {
  delete mpWorldState[0];
  delete mpHistoryState[0];

  delete mpWorldState[1];
  delete mpHistoryState[1];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x2b41b(%rip), %rax     # 0x86d38
movq %rax, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x5b92f
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x5b963
movl $0x12a68, %r15d         # imm = 0x12A68
movq $-0x2128, %r12          # imm = 0xDED8
leaq (%r14,%r15), %rdi
callq 0x5ba9a
addq %r12, %r15
cmpq %r12, %r15
jne 0x5b945
movl $0x14b98, %esi          # imm = 0x14B98
movq %r14, %rdi
callq 0x94e0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x5b972
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
je 0x5b9ae
movl $0x12a68, %r14d         # imm = 0x12A68
movq $-0x2128, %r15          # imm = 0xDED8
leaq (%rbx,%r14), %rdi
callq 0x5ba9a
addq %r15, %r14
cmpq %r15, %r14
jne 0x5b988
movl $0x14b98, %esi          # imm = 0x14B98
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x94e0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldModel.cpp
// Function: WorldModel::Update(Observer*)
void WorldModel::Update(Observer *observer) {
  //存储一下当前的世界
  mpHistoryState[0]->UpdateHistory(*mpWorldState[0]);
  mpHistoryState[1]->UpdateHistory(*mpWorldState[1]);

  mpWorldState[0]->UpdateFromObserver(observer); //自己方决策使用的世界状态
  mpWorldState[1]->GetReverseFrom(
      mpWorldState[0]); //可供反算对手时使用的世界状态
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rsi
movq 0x18(%rdi), %rdi
callq 0x69ec6
movq 0x10(%r14), %rsi
movq 0x20(%r14), %rdi
callq 0x69ec6
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x5be66
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x5bec8
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldState::WorldState(HistoryState*)
WorldState::WorldState(HistoryState *history_state)
    : mpHistory(history_state), mCurrentTime(Time(-3, 0)),
      mPlayMode(PM_No_Mode), mPlayModeTime(Time(-3, 0)), mIsBallDropped(false),
      mTeammateGoalieUnum(0), mOpponentGoalieUnum(0), mTeammateScore(0),
      mOpponentScore(0), mIsCycleStopped(false) {
  //为各个球员分配号码
  for (Unum i = 1; i <= TEAMSIZE; i++) {
    mTeammate[i].UpdateUnum(i);
    mOpponent[i].UpdateUnum(-i);

    mPlayerList.push_back(&mTeammate[i]);
    mPlayerList.push_back(&mOpponent[i]);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x2b1cd(%rip), %rax     # 0x86d68
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
movq %rax, 0x10(%rdi)
movl $0x0, 0x1c(%rdi)
movq %rax, 0x24(%rdi)
movb $0x0, 0x2c(%rdi)
addq $0x30, %rdi
callq 0x3d64c
leaq 0xa8(%rbx), %rdi
callq 0x3d7f2
leaq 0x10d0(%rbx), %r14
movq %r14, %rdi
callq 0x3d7f2
leaq 0x20f8(%rbx), %rax
movq %rax, -0x38(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2111(%rbx)
movups %xmm0, 0x2108(%rbx)
movq %rbx, -0x30(%rbp)
movups %xmm0, 0x20f8(%rbx)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq $-0xb, %r12
leaq -0x40(%rbp), %r15
leaq -0x1028(%r14), %rax
leal 0xc(%r12), %ecx
movl %ecx, -0xf0c(%r14)
movl %r13d, 0x11c(%r14)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6aa9a
movq %r14, -0x40(%rbp)
movq %rbx, %rdi
movq %r15, %rbx
movq %r15, %rsi
callq 0x6aa9a
decl %r13d
addq $0x178, %r14            # imm = 0x178
incq %r12
movq %rbx, %r15
jne 0x5bc16
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x5bce0
movq %rax, %r14
jmp 0x5bd15
jmp 0x5bc85
movq %rax, %r14
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x5bca7
movq -0x30(%rbp), %rax
movq 0x2108(%rax), %rsi
subq %rdi, %rsi
callq 0x94e0
movl $0x1fe8, %r15d          # imm = 0x1FE8
leaq 0x295fc(%rip), %r12     # 0x852b0
movq -0x30(%rbp), %rbx
movq %r12, -0x68(%rbx,%r15)
movq (%rbx,%r15), %rdi
testq %rdi, %rdi
je 0x5bcd0
movl $0x670, %esi            # imm = 0x670
callq 0x94e0
addq $-0x178, %r15           # imm = 0xFE88
cmpq $0xfc0, %r15            # imm = 0xFC0
jne 0x5bcb8
movl $0xf58, %r15d           # imm = 0xF58
leaq 0x295c3(%rip), %r12     # 0x852b0
movq %r12, (%rbx,%r15)
movq 0x68(%rbx,%r15), %rdi
testq %rdi, %rdi
je 0x5bd05
movl $0x670, %esi            # imm = 0x670
callq 0x94e0
addq $-0x178, %r15           # imm = 0xFE88
cmpq $-0xd0, %r15
jne 0x5bced
leaq 0x29594(%rip), %rax     # 0x852b0
movq %rax, 0x30(%rbx)
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0x5bd36
movl $0x670, %esi            # imm = 0x670
callq 0x94e0
movq %r14, %rdi
callq 0x98b0
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldState::GetHistory(int) const
WorldState *WorldState::GetHistory(int i) const {
  if (i == 0) {
    return const_cast<WorldState *>(this);
  } else if (i > HistoryState::HISTORY_SIZE) {
    return 0;
  }

  return mpHistory->GetHistory(i);
}

// Assembly:
movq %rdi, %rax
testl %esi, %esi
je 0x5bd4c
cmpl $0xa, %esi
jle 0x5bd4d
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rax), %rcx
movslq %esi, %rax
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rax
addl %edx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
movl 0x14b90(%rcx), %edx
subl %esi, %eax
addl %edx, %eax
addl $0xa, %eax
cltq
imulq $0x66666667, %rax, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rdx
addl %esi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %eax
cltq
imulq $0x2128, %rax, %rax     # imm = 0x2128
addq %rcx, %rax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: HistoryState::GetHistory(int)
WorldState *HistoryState::GetHistory(int num) {
  Assert(num > 0);

  num = num % HISTORY_SIZE;
  num = (mNum + HISTORY_SIZE - num) % HISTORY_SIZE;

  return &mRecord[num];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
movl 0x14b90(%rdi), %edx
subl %eax, %ecx
leal (%rdx,%rcx), %eax
addl $0xa, %eax
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cltq
imulq $0x2128, %rax, %rax     # imm = 0x2128
addq %rdi, %rax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldState::GetReverseFrom(WorldState*)
void WorldState::GetReverseFrom(WorldState *world_state) {
  mCurrentTime = world_state->CurrentTime();
  mPlayMode = world_state->GetPlayMode();
  mIsCycleStopped = world_state->mIsCycleStopped;
  mPlayModeTime = world_state->mPlayModeTime;

  mTeammateGoalieUnum = world_state->mOpponentGoalieUnum;
  mOpponentGoalieUnum = world_state->mTeammateGoalieUnum;

  mTeammateScore = world_state->mOpponentScore;
  mOpponentScore = world_state->mTeammateScore;

  Ball().GetReverseFrom(world_state->Ball());

  for (Unum i = 1; i <= TEAMSIZE; ++i) {
    Opponent(i).GetReverseFrom(world_state->Teammate(i));
    Teammate(i).GetReverseFrom(world_state->Opponent(i));
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rax
movq %rax, 0x10(%rdi)
movl 0x1c(%rsi), %eax
movl %eax, 0x1c(%rdi)
movb 0x2120(%rsi), %al
movb %al, 0x2120(%rdi)
movq 0x24(%rsi), %rax
movq %rax, 0x24(%rdi)
movl 0x2114(%rsi), %eax
movl %eax, 0x2110(%rdi)
movl 0x2110(%rsi), %eax
movl %eax, 0x2114(%rdi)
movl 0x211c(%rsi), %eax
movl %eax, 0x2118(%rdi)
movl 0x2118(%rsi), %eax
movl %eax, 0x211c(%rdi)
addq $0x30, %rdi
addq $0x30, %rsi
callq 0x69f08
movl $0x10d0, %eax           # imm = 0x10D0
addq %rax, %r14
addq %rax, %rbx
movl $0xb, %r15d
movq $-0x1028, %r12          # imm = 0xEFD8
movl $0x178, %r13d           # imm = 0x178
leaq (%rbx,%r12), %rsi
movq %r14, %rdi
callq 0x46a5c
leaq (%r14,%r12), %rdi
movq %rbx, %rsi
callq 0x46a5c
addq %r13, %r14
addq %r13, %rbx
decq %r15
jne 0x5bf59
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::UpdateFieldInfo()
void WorldStateUpdater::UpdateFieldInfo() {
  mpWorldState->mCurrentTime = mpObserver->CurrentTime();
  mpWorldState->mIsBallDropped = mpObserver->IsBallDropped();
  mpWorldState->mKickOffMode = mpObserver->GetKickOffMode();

  if (mpWorldState->mPlayMode != mpObserver->GetPlayMode()) {
    mpWorldState->mLastPlayMode = mpWorldState->mPlayMode;
    mpWorldState->mPlayMode = mpObserver->GetPlayMode();
    mpWorldState->mPlayModeTime = mpObserver->CurrentTime();
  }

  Formation::instance.SetOpponentGoalieUnum(
      mpObserver->OppGoalieUnum()); // 设置OpponentFormation的守门员号码
  mpWorldState->mTeammateGoalieUnum = PlayerParam::instance().ourGoalieUnum();
  mpWorldState->mOpponentGoalieUnum = mpObserver->OppGoalieUnum();

  mpWorldState->mTeammateScore = mpObserver->OurScore();
  mpWorldState->mOpponentScore = mpObserver->OppScore();

  if (mpWorldState->GetHistory(1) &&
      mpWorldState->GetHistory(1)->CurrentTime().T() ==
          mpWorldState->mCurrentTime.T()) {
    mpWorldState->mIsCycleStopped = true;
  } else {
    mpWorldState->mIsCycleStopped = false;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq 0xc(%rax), %rax
movq %rax, 0x10(%rcx)
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movb 0x118(%rax), %dl
movb %dl, 0x2c(%rcx)
movl 0x20(%rax), %edx
movl %edx, 0x18(%rcx)
movl 0x1c(%rcx), %edx
cmpl 0x1c(%rax), %edx
je 0x5df8d
movl %edx, 0x20(%rcx)
movl 0x1c(%rax), %edx
movl %edx, 0x1c(%rcx)
movq 0xc(%rax), %rax
movq %rax, 0x24(%rcx)
movq (%rbx), %rax
movl 0x30(%rax), %esi
leaq 0x300d6(%rip), %rdi     # 0x8e070
callq 0x2816c
callq 0x450ba
movl 0x31a0(%rax), %ecx
movq 0x8(%rbx), %rax
movl %ecx, 0x2110(%rax)
movq (%rbx), %rcx
movl 0x30(%rcx), %edx
movl %edx, 0x2114(%rax)
movl 0x34(%rcx), %edx
movl %edx, 0x2118(%rax)
movl 0x38(%rcx), %ecx
movl %ecx, 0x211c(%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x5e017
movl 0x14b90(%rcx), %edx
addl $0x9, %edx
movslq %edx, %rdx
imulq $0x66666667, %rdx, %rsi # imm = 0x66666667
movq %rsi, %rdi
shrq $0x3f, %rdi
sarq $0x22, %rsi
addl %edi, %esi
addl %esi, %esi
leal (%rsi,%rsi,4), %esi
subl %esi, %edx
movslq %edx, %rdx
imulq $0x2128, %rdx, %rdx     # imm = 0x2128
movl 0x10(%rcx,%rdx), %edx
movb $0x1, %cl
cmpl 0x10(%rax), %edx
je 0x5e019
xorl %ecx, %ecx
movb %cl, 0x2120(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::EstimateWorld(bool, int)
void WorldStateUpdater::EstimateWorld(bool is_estimate_to_now, int cycle) {
  /**预估自己的信息*/
  EstimateSelf(is_estimate_to_now, cycle);

  /**预估球的信息*/
  EstimateBall(is_estimate_to_now, cycle);

  /**预估球员的信息*/
  EstimatePlayers();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
callq 0x680cc
movq %r15, %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x687e6
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x68bba
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::UpdateSightDelay()
void WorldStateUpdater::UpdateSightDelay() {
  mSightDelay = mpObserver->CurrentTime() - mpObserver->LatestSightTime();
  mBallConf = ComputeConf(PlayerParam::instance().ballConfDecay(), mSightDelay);
  mPlayerConf =
      ComputeConf(PlayerParam::instance().playerConfDecay(), mSightDelay);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rsi
leaq 0xc(%rsi), %rdi
addq $0x14, %rsi
callq 0x55ef4
movl %eax, 0x28(%rbx)
callq 0x450ba
movl 0x28(%rbx), %ecx
movsd 0xbe8c(%rip), %xmm0     # 0x6b058
testl %ecx, %ecx
jle 0x5f1e8
movsd 0x3200(%rax), %xmm1
movsd 0xbe78(%rip), %xmm0     # 0x6b058
mulsd %xmm1, %xmm0
decl %ecx
jne 0x5f1e0
movsd %xmm0, 0x20(%rbx)
callq 0x450ba
movl 0x28(%rbx), %ecx
testl %ecx, %ecx
movsd 0xbe59(%rip), %xmm1     # 0x6b058
jle 0x5f219
movsd 0x31f8(%rax), %xmm0
movsd 0xbe47(%rip), %xmm1     # 0x6b058
mulsd %xmm0, %xmm1
decl %ecx
jne 0x5f211
movsd %xmm1, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::UpdateKnownPlayers()
void WorldStateUpdater::UpdateKnownPlayers() {
  //暂时定队友的位置为最新的时间表示看到

  //更新看到的队友
  for (int i = 1; i <= TEAMSIZE; i++) {
    if (i == mSelfUnum) {
      continue;
    }

    if (mpObserver->Teammate(i).GetDir().time() ==
        mpObserver->LatestSightTime()) {
      UpdateSpecificPlayer(mpObserver->Teammate(i), i, true);
    }
  }

  //更新看到的对手
  for (int i = 1; i <= TEAMSIZE; i++) {
    if (mpObserver->Opponent(i).GetDir().time() ==
        mpObserver->LatestSightTime()) {
      UpdateSpecificPlayer(mpObserver->Opponent(i), i, false);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %r14d
movl $0x1870, %r15d          # imm = 0x1870
movl 0x14(%rbx), %eax
cmpq %rax, %r14
je 0x5f971
movq (%rbx), %rsi
movl 0x1c(%rsi,%r15), %eax
cmpl 0x18(%rsi), %eax
jne 0x5f971
movl 0x14(%rsi), %eax
cmpl %eax, 0x18(%rsi,%r15)
jne 0x5f971
addq %r15, %rsi
movq %rbx, %rdi
movl %r14d, %edx
movl $0x1, %ecx
callq 0x6423c
incq %r14
addq $0xa8, %r15
cmpq $0xc, %r14
jne 0x5f93f
movl $0x1, %r14d
movl $0x1fa8, %r15d          # imm = 0x1FA8
movq (%rbx), %rsi
movl 0x1c(%rsi,%r15), %eax
cmpl 0x18(%rsi), %eax
jne 0x5f9b4
movl 0x14(%rsi), %eax
cmpl %eax, 0x18(%rsi,%r15)
jne 0x5f9b4
addq %r15, %rsi
movq %rbx, %rdi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x6423c
incl %r14d
addq $0xa8, %r15
cmpq $0x26e0, %r15           # imm = 0x26E0
jne 0x5f98d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::EstimateToNow()
void WorldStateUpdater::EstimateToNow() {
  if (mSightDelay > 0 && mSightDelay <= HistoryState::HISTORY_SIZE) {
    //保存与sense相关的信息 主要有 mSelfVel mNeckDir
    const Vector &vel = SelfState().GetVel();

    SelfState().UpdateVel(
        mpWorldState->GetHistory(mSightDelay)->mTeammate[mSelfUnum].GetVel());
    int cycle = mSightDelay;
    for (int i = 0; i < cycle; i++) {
      EstimateWorld(true, cycle - i);
    }

    //恢复现场 此时应该看见了 delay可设置为0
    SelfState().UpdateVel(vel);
  }
}

// Assembly:
movl 0x28(%rdi), %esi
leal -0x1(%rsi), %eax
cmpl $0x9, %eax
ja 0x62731
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x14(%rdi), %rax
movq 0x8(%rdi), %rdx
imulq $0x178, %rax, %rax      # imm = 0x178
leaq (%rdx,%rax), %r14
addq $-0x178, %r14           # imm = 0xFE88
leaq (%rdx,%rax), %rdi
addq $-0xd0, %rdi
movl $0xd8, %ecx
addq %rcx, %r14
movq 0x8(%rdx), %rdx
movl %esi, %r8d
movl $0xcccccccd, %r9d       # imm = 0xCCCCCCCD
imulq %r8, %r9
shrq $0x23, %r9
addl %r9d, %r9d
leal (%r9,%r9,4), %r8d
movl 0x14b90(%rdx), %r9d
subl %esi, %r8d
leal (%r9,%r8), %esi
addl $0xa, %esi
movslq %esi, %rsi
imulq $0x66666667, %rsi, %r8  # imm = 0x66666667
movq %r8, %r9
shrq $0x3f, %r9
sarq $0x22, %r8
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
subl %r8d, %esi
movslq %esi, %rsi
imulq $0x2128, %rsi, %rsi     # imm = 0x2128
addq %rdx, %rsi
addq %rax, %rsi
addq $-0x178, %rsi           # imm = 0xFE88
addq %rcx, %rsi
movsd 0x8982(%rip), %xmm0     # 0x6b058
xorl %edx, %edx
callq 0xf64c
movl 0x28(%rbx), %r15d
testl %r15d, %r15d
jle 0x626fb
movq %rbx, %rdi
movl $0x1, %esi
movl %r15d, %edx
callq 0x5f16a
decl %r15d
jne 0x626e6
movslq 0x14(%rbx), %rax
movq 0x8(%rbx), %rcx
imulq $0x178, %rax, %rax      # imm = 0x178
leaq (%rax,%rcx), %rdi
addq $-0xd0, %rdi
movsd 0x893b(%rip), %xmm0     # 0x6b058
movq %r14, %rsi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xf64c
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::EvaluateConf()
void WorldStateUpdater::EvaluateConf() {
  for (int i = 1; i <= TEAMSIZE; i++) {
    if (i != mSelfUnum) {
      EvaluatePlayer(Teammate(i));
    }

    EvaluatePlayer(Opponent(i));
  }

  //根据delay置球员生死
  int dead_level = 100;
  for (int i = 1; i <= TEAMSIZE; i++) {
    if (i != mSelfUnum && GetTeammate(i).IsAlive()) {
      if (GetTeammate(i).GetPosDelay() > dead_level) {
        Teammate(i).SetIsAlive(false);
      }
    }

    if (GetOpponent(i).IsAlive()) {
      if (GetOpponent(i).GetPosDelay() > dead_level) {
        Opponent(i).SetIsAlive(false);
      }
    }
  }

  // evaluate ball
  EvaluateBall();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %r14d
movl $0xa8, %r15d
movl 0x14(%rbx), %eax
cmpq %rax, %r14
je 0x62faa
movq 0x8(%rbx), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x68e86
movq 0x8(%rbx), %rax
leaq (%rax,%r15), %rsi
addq $0x1028, %rsi           # imm = 0x1028
movq %rbx, %rdi
callq 0x68e86
incq %r14
addq $0x178, %r15            # imm = 0x178
cmpq $0xc, %r14
jne 0x62f93
movl $0x1, %r12d
xorl %r13d, %r13d
movl 0x14(%rbx), %eax
cmpq %rax, %r12
je 0x6304d
movq 0x8(%rbx), %r15
cmpb $0x1, 0x1ba(%r15,%r13)
jne 0x6304d
cmpl $0x65, 0xc0(%r15,%r13)
jl 0x6304d
leaq (%r15,%r13), %r14
addq $0xa8, %r14
leaq 0xb0(%r15,%r13), %rsi
movb $0x0, 0x10a(%rsi)
movl 0x10(%rsi), %edx
xorps %xmm0, %xmm0
movq %r14, %rdi
callq 0xf682
addq %r13, %r15
addq $0xd8, %r15
movl 0x10(%r15), %edx
xorps %xmm0, %xmm0
movq %r14, %rdi
movq %r15, %rsi
callq 0xf64c
xorl %eax, %eax
movq %rax, 0x78(%r15)
movq %rax, 0x90(%r15)
movq 0x8(%rbx), %r15
cmpb $0x1, 0x11e2(%r15,%r13)
jne 0x630b8
cmpl $0x65, 0x10e8(%r15,%r13)
jl 0x630b8
leaq (%r15,%r13), %r14
addq $0x10d0, %r14           # imm = 0x10D0
leaq 0x10d8(%r15,%r13), %rsi
movb $0x0, 0x10a(%rsi)
movl 0x10(%rsi), %edx
xorps %xmm0, %xmm0
movq %r14, %rdi
callq 0xf682
addq %r13, %r15
addq $0x1100, %r15           # imm = 0x1100
movl 0x10(%r15), %edx
xorps %xmm0, %xmm0
movq %r14, %rdi
movq %r15, %rsi
callq 0xf64c
xorl %eax, %eax
movq %rax, 0x78(%r15)
movq %rax, 0x90(%r15)
incq %r12
addq $0x178, %r13            # imm = 0x178
cmpq $0x1028, %r13           # imm = 0x1028
jne 0x62fda
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x69016
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::ComputeConf(double, int)
double WorldStateUpdater::ComputeConf(double decay, int cycle) {
  if (cycle <= 0) {
    return 1;
  }

  double sum = 1;
  for (int i = 0; i < cycle; i++) {
    sum *= decay;
  }
  return sum;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
jle 0x63a72
movapd %xmm0, %xmm1
movsd 0x75f0(%rip), %xmm0     # 0x6b058
mulsd %xmm1, %xmm0
decl %esi
jne 0x63a68
jmp 0x63a7a
movsd 0x75de(%rip), %xmm0     # 0x6b058
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::ComputeSelfDir(double&)
bool WorldStateUpdater::ComputeSelfDir(double &angle) {
  //计算可以看到的线，如果有两个则表示在球场外
  int sample_line = SL_NONE; // mark
  int num = 0;
  double min = 10000; //初始值
  for (int i = 0; i < SL_MAX; i++) {
    if (mpObserver->SideLine((SideLineType)i).GetDir().time() ==
        mpObserver->LatestSightTime()) {
      //必须使用最近的一条线
      if (mpObserver->SideLine((SideLineType)i).Dist() < min) {
        sample_line = i;
        min = mpObserver->SideLine((SideLineType)i).Dist();
      }
      num++;
    }
  }

  //看不到
  if (num == 0) {
    return false;
  }

  //计算公式见USTC_Material 第七章

  // lineRelativeAngle = (line_dir < 0 ) ? (90 + line_dir ) : (line_dir – 90)
  angle = mpObserver->SideLine((SideLineType)sample_line).Dir();

  angle = angle < 0 ? 90 + angle : angle - 90;

  // neckGlobalAngle = lineGlobalAngle – lineRelativeAngle
  angle =
      (mpObserver->SideLine((SideLineType)sample_line)).GlobalPosition().Dir() -
      angle;

  //如果同时看到两条线就表示在场外 加上180
  //具体可参加源码MemPosition.c的Update_self_seen函数处理
  if (num >= 2) {
    angle = 180 + angle;
  }

  //保证角度在180 到 -180 之间
  if (angle > 180) {
    angle -= 360;
  } else if (angle < -180) {
    angle += 360;
  }

  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq (%rdi), %rcx
movl 0x14(%rcx), %edx
movl 0x18(%rcx), %esi
addq $0x26fc, %rcx           # imm = 0x26FC
movl $0x5, %eax
xorl %r8d, %r8d
movsd 0xb866(%rip), %xmm0     # 0x6f760
xorl %r14d, %r14d
cmpl %esi, (%rcx)
jne 0x63f1e
cmpl %edx, -0x4(%rcx)
jne 0x63f1e
movsd -0x1c(%rcx), %xmm1
ucomisd %xmm1, %xmm0
cmoval %r8d, %eax
minsd %xmm0, %xmm1
incl %r14d
movapd %xmm1, %xmm0
incq %r8
addq $0x58, %rcx
cmpq $0x4, %r8
jne 0x63efd
testl %r14d, %r14d
je 0x63fb7
movq (%rdi), %rcx
movl %eax, %eax
imulq $0x58, %rax, %rax
leaq (%rcx,%rax), %rdi
addq $0x2720, %rdi           # imm = 0x2720
movsd -0x30(%rdi), %xmm0
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
leaq 0xb82f(%rip), %rcx      # 0x6f790
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rbx)
callq 0xe804
subsd (%rbx), %xmm0
movsd 0x70cd(%rip), %xmm1     # 0x6b048
cmpl $0x2, %r14d
jl 0x63f85
addsd %xmm1, %xmm0
movsd %xmm0, (%rbx)
ucomisd %xmm1, %xmm0
jbe 0x63f99
movsd 0x70d1(%rip), %xmm1     # 0x6b068
jmp 0x63faf
movsd 0x70bf(%rip), %xmm1     # 0x6b060
ucomisd %xmm0, %xmm1
jbe 0x63fb7
movsd 0x70c1(%rip), %xmm1     # 0x6b070
addsd %xmm1, %xmm0
movsd %xmm0, (%rbx)
testl %r14d, %r14d
setne %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: (anonymous namespace)::LimitToField(Vector)
Vector LimitToField(Vector pos) {
  if (pos.X() > ServerParam::instance().PITCH_LENGTH / 2) {
    pos.SetX(ServerParam::instance().PITCH_LENGTH / 2);
  } else if (pos.X() < -ServerParam::instance().PITCH_LENGTH / 2) {
    pos.SetX(-ServerParam::instance().PITCH_LENGTH / 2);
  }

  if (pos.Y() > ServerParam::instance().PITCH_WIDTH / 2) {
    pos.SetY(ServerParam::instance().PITCH_WIDTH / 2);
  } else if (pos.Y() < -ServerParam::instance().PITCH_WIDTH / 2) {
    pos.SetY(-ServerParam::instance().PITCH_WIDTH / 2);
  }

  return pos;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movsd %xmm1, -0x20(%rbp)
movsd %xmm0, -0x18(%rbp)
callq 0x4a75c
leaq 0x7c35(%rip), %rax      # 0x6df18
movsd (%rax), %xmm0
movsd 0x5589(%rip), %xmm1     # 0x6b878
movsd %xmm0, -0x8(%rbp)
mulsd %xmm0, %xmm1
movsd %xmm1, -0x10(%rbp)
callq 0x4a75c
movsd -0x18(%rbp), %xmm1
ucomisd -0x10(%rbp), %xmm1
ja 0x6633a
movsd -0x8(%rbp), %xmm0
mulsd 0x4d6d(%rip), %xmm0     # 0x6b088
movsd %xmm0, -0x8(%rbp)
ucomisd %xmm1, %xmm0
movsd %xmm1, -0x10(%rbp)
jbe 0x6633a
callq 0x4a75c
movsd -0x8(%rbp), %xmm0
movsd %xmm0, -0x10(%rbp)
callq 0x4a75c
leaq 0x7bda(%rip), %rax      # 0x6df20
movsd (%rax), %xmm0
movsd 0x5526(%rip), %xmm1     # 0x6b878
movsd %xmm0, -0x8(%rbp)
mulsd %xmm0, %xmm1
movsd %xmm1, -0x18(%rbp)
callq 0x4a75c
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm0
ucomisd %xmm1, %xmm0
ja 0x6639b
movsd -0x8(%rbp), %xmm1
mulsd 0x4d06(%rip), %xmm1     # 0x6b088
movsd %xmm1, -0x8(%rbp)
ucomisd %xmm0, %xmm1
movapd %xmm0, %xmm1
jbe 0x6639b
callq 0x4a75c
movsd -0x8(%rbp), %xmm1
movsd -0x10(%rbp), %xmm0
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::GetSeenClosestTeammate()
Unum WorldStateUpdater::GetSeenClosestTeammate() {
  Unum num = 0;
  double min = 20000;
  for (int i = 1; i <= TEAMSIZE; i++) {
    if (i != mSelfUnum) {
      if (mpObserver->Teammate(i).GetDist().time() ==
          mpObserver->CurrentTime()) {
        if (mpObserver->Teammate(i).Dist() < min) {
          min = mpObserver->Teammate(i).Dist();
          num = i;
        }
      }
    }
  }

  return num;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x14(%rdi), %ecx
movq (%rdi), %rdx
leaq 0x187c(%rdx), %rsi
xorl %eax, %eax
movsd 0x93b7(%rip), %xmm0     # 0x6f778
movl $0x1, %edi
cmpq %rdi, %rcx
jne 0x663dd
incq %rdi
addq $0xa8, %rsi
cmpq $0xc, %rdi
jne 0x663c6
jmp 0x66403
movl (%rsi), %r8d
cmpl 0x10(%rdx), %r8d
jne 0x663cb
movl 0xc(%rdx), %r8d
cmpl %r8d, -0x4(%rsi)
jne 0x663cb
movsd -0xc(%rsi), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x663cb
movl %edi, %eax
movapd %xmm1, %xmm0
jmp 0x663cb
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::GetSeenClosestOpponent()
Unum WorldStateUpdater::GetSeenClosestOpponent() {
  Unum num = 0;
  double min = 20000;
  for (int i = 1; i <= TEAMSIZE; i++) {
    if (mpObserver->Opponent(i).GetDist().time() == mpObserver->CurrentTime()) {
      if (mpObserver->Opponent(i).Dist() < min) {
        min = mpObserver->Opponent(i).Dist();
        num = i;
      }
    }
  }

  return num;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movl 0xc(%rcx), %edx
movl 0x10(%rcx), %esi
xorl %edi, %edi
movsd 0x935b(%rip), %xmm0     # 0x6f778
movl $0x1, %r8d
xorl %eax, %eax
cmpl %esi, 0x1fb4(%rcx,%rdi)
jne 0x6644d
cmpl %edx, 0x1fb0(%rcx,%rdi)
jne 0x6644d
movsd 0x1fa8(%rcx,%rdi), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x6644d
movl %r8d, %eax
movapd %xmm1, %xmm0
incl %r8d
addq $0xa8, %rdi
cmpq $0x738, %rdi            # imm = 0x738
jne 0x66425
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::ComputePlayerMaxDist(PlayerState const&)
double WorldStateUpdater::ComputePlayerMaxDist(const PlayerState &state) {
  //计算最大的速度
  double max_speed = PlayerParam::instance()
                         .HeteroPlayer(state.GetPlayerType())
                         .effectiveSpeedMax();

  return max_speed * state.GetPosDelay();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x450ba
movslq 0x114(%rbx), %rcx
movq 0x5c38(%rax), %rax
cvtsi2sdl 0x18(%rbx), %xmm0
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
mulsd 0x3098(%rax,%rcx), %xmm0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq