// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/BehaviorAttack.cpp
// Function: BehaviorAttackPlanner::Plan(std::__cxx11::list<ActiveBehavior, std::allocator<ActiveBehavior>>&)
void BehaviorAttackPlanner::Plan(std::list<ActiveBehavior> &behavior_list) {
  if (mSelfState.IsBallCatchable() && mStrategy.IsLastOppControl() &&
      (!(mAgent.IsLastActiveBehaviorInActOf(BT_Pass) ||
         mAgent.IsLastActiveBehaviorInActOf(BT_Dribble))))
    return;

  BehaviorInterceptPlanner(mAgent).Plan(mActiveBehaviorList);
  BehaviorShootPlanner(mAgent).Plan(mActiveBehaviorList);
  BehaviorPassPlanner(mAgent).Plan(mActiveBehaviorList);
  BehaviorDribblePlanner(mAgent).Plan(mActiveBehaviorList);
  BehaviorPositionPlanner(mAgent).Plan(mActiveBehaviorList);
  BehaviorHoldPlanner(mAgent).Plan(mActiveBehaviorList);

  if (!mActiveBehaviorList.empty()) {
    mActiveBehaviorList.sort(std::greater<ActiveBehavior>());
    behavior_list.push_back(mActiveBehaviorList.front());

    if (mActiveBehaviorList.size() > 1) { //允许非最优行为提交视觉请求
      double plus = 1.0;
      ActiveBehaviorPtr it = mActiveBehaviorList.begin();
      for (++it; it != mActiveBehaviorList.end(); ++it) {
        it->SubmitVisualRequest(plus);
        plus *= 2.0;
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %rax
cmpb $0x1, 0x175(%rax)
jne 0x12847
testb $0x1, 0x138(%rax)
je 0x12847
movq 0x38(%rbx), %rax
cmpl $0x0, 0x5c(%rax)
js 0x129aa
movq 0x8(%rbx), %rsi
leaq -0x90(%rbp), %r12
movq %r12, %rdi
callq 0x17178
leaq 0x48(%rbx), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x171d8
leaq -0x90(%rbp), %rdi
callq 0x171ac
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x1b612
movq %r12, %rdi
movq %r15, %rsi
callq 0x1b672
leaq -0x90(%rbp), %rdi
callq 0x1b646
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x183b8
movq %r12, %rdi
movq %r15, %rsi
callq 0x18418
leaq -0x90(%rbp), %rdi
callq 0x183ec
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x14770
movq %r12, %rdi
movq %r15, %rsi
callq 0x147d0
leaq -0x90(%rbp), %rdi
callq 0x147a4
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x1a496
movq %r12, %rdi
movq %r15, %rsi
callq 0x1a4ca
leaq -0x90(%rbp), %rdi
callq 0x1a46a
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x1668e
movq %r12, %rdi
movq %r15, %rsi
callq 0x166ee
leaq -0x90(%rbp), %rdi
callq 0x166c2
cmpq %r15, (%r15)
je 0x129d1
movq %r15, %rdi
callq 0x12a4c
movq 0x48(%rbx), %r12
addq $0x10, %r12
movl $0xb8, %edi
callq 0x94c0
movq %rax, %r13
leaq 0x10(%rax), %rdi
movl $0xa8, %edx
movq %r12, %rsi
callq 0x93e0
movq %r13, %rdi
movq %r14, %rsi
callq 0x90b0
incq 0x10(%r14)
cmpq $0x2, 0x58(%rbx)
jb 0x129d1
movq (%r15), %rax
movq (%rax), %rbx
cmpq %r15, %rbx
je 0x129d1
movsd 0x586d4(%rip), %xmm0    # 0x6b058
movsd %xmm0, -0x30(%rbp)
leaq 0x10(%rbx), %rdi
movsd -0x30(%rbp), %xmm0
callq 0x1324c
movsd -0x30(%rbp), %xmm0
addsd %xmm0, %xmm0
movq (%rbx), %rbx
cmpq %r15, %rbx
jne 0x12984
jmp 0x129d1
movq 0x8(%rbx), %rax
movq 0xc0(%rax), %rax
testq %rax, %rax
je 0x129d1
cmpl $0x7, (%rax)
je 0x12847
testq %rax, %rax
je 0x129d1
cmpl $0x5, (%rax)
je 0x12847
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x166c2
jmp 0x12a44
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x1a46a
jmp 0x12a44
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x147a4
jmp 0x12a44
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x183ec
jmp 0x12a44
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x1b646
jmp 0x12a44
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x171ac
movq %rbx, %rdi
callq 0x98b0