// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %rax
cmpb $0x1, 0x175(%rax)
jne 0x10177
testb $0x1, 0x138(%rax)
je 0x10177
movq 0x38(%rbx), %rax
cmpl $0x0, 0x5c(%rax)
js 0x102a9
movq 0x8(%rbx), %rsi
leaq -0x88(%rbp), %r12
movq %r12, %rdi
callq 0x13e24
leaq 0x48(%rbx), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x13e6e
leaq -0x88(%rbp), %rdi
callq 0x13e44
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x173ea
movq %r12, %rdi
movq %r15, %rsi
callq 0x17434
leaq -0x88(%rbp), %rdi
callq 0x1740a
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x14cb8
movq %r12, %rdi
movq %r15, %rsi
callq 0x14d02
leaq -0x88(%rbp), %rdi
callq 0x14cd8
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x11c94
movq %r12, %rdi
movq %r15, %rsi
callq 0x11cde
leaq -0x88(%rbp), %rdi
callq 0x11cb4
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x16546
movq %r12, %rdi
movq %r15, %rsi
callq 0x16566
leaq -0x88(%rbp), %rdi
callq 0x1651c
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x13778
movq %r12, %rdi
movq %r15, %rsi
callq 0x137c2
leaq -0x88(%rbp), %rdi
callq 0x13798
cmpq %r15, (%r15)
je 0x102c7
movq %r15, %rdi
callq 0x10370
movq 0x48(%rbx), %rsi
addq $0x10, %rsi
movq %r14, %rdi
callq 0x10530
cmpq $0x2, 0x58(%rbx)
jb 0x102c7
movq (%r15), %rbx
movsd 0x46dc5(%rip), %xmm0    # 0x57048
movq (%rbx), %rbx
cmpq %r15, %rbx
je 0x102c7
leaq 0x10(%rbx), %rdi
movsd %xmm0, -0x28(%rbp)
movsd -0x28(%rbp), %xmm0
callq 0x10bba
movsd -0x28(%rbp), %xmm0
addsd %xmm0, %xmm0
jmp 0x10283
movq 0x8(%rbx), %rax
movq 0xc0(%rax), %rax
testq %rax, %rax
je 0x102c7
movl (%rax), %eax
orl $0x2, %eax
cmpl $0x7, %eax
je 0x10177
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x13798
jmp 0x10338
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x1651c
jmp 0x10338
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x11cb4
jmp 0x10338
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x14cd8
jmp 0x10338
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x1740a
jmp 0x10338
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x13e44
movq %rbx, %rdi
callq 0x98b0