// File: /workspace/github_cpp_makefile_star2_O3/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 0x12737
testb $0x1, 0x138(%rax)
je 0x12737
movq 0x38(%rbx), %rax
cmpl $0x0, 0x5c(%rax)
js 0x1289a
movq 0x8(%rbx), %rsi
leaq -0x90(%rbp), %r12
movq %r12, %rdi
callq 0x16ee0
leaq 0x48(%rbx), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x16f40
leaq -0x90(%rbp), %rdi
callq 0x16f14
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x1b28e
movq %r12, %rdi
movq %r15, %rsi
callq 0x1b2ee
leaq -0x90(%rbp), %rdi
callq 0x1b2c2
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x180d6
movq %r12, %rdi
movq %r15, %rsi
callq 0x18136
leaq -0x90(%rbp), %rdi
callq 0x1810a
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x145ec
movq %r12, %rdi
movq %r15, %rsi
callq 0x1464c
leaq -0x90(%rbp), %rdi
callq 0x14620
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x1a156
movq %r12, %rdi
movq %r15, %rsi
callq 0x1a18a
leaq -0x90(%rbp), %rdi
callq 0x1a12a
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x16446
movq %r12, %rdi
movq %r15, %rsi
callq 0x164a6
leaq -0x90(%rbp), %rdi
callq 0x1647a
cmpq %r15, (%r15)
je 0x128b8
movq %r15, %rdi
callq 0x12934
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 0x128b8
movq (%r15), %rax
movq (%rax), %rbx
cmpq %r15, %rbx
je 0x128b8
movsd 0x567e4(%rip), %xmm0    # 0x69058
movsd %xmm0, -0x30(%rbp)
leaq 0x10(%rbx), %rdi
movsd -0x30(%rbp), %xmm0
callq 0x13110
movsd -0x30(%rbp), %xmm0
addsd %xmm0, %xmm0
movq (%rbx), %rbx
cmpq %r15, %rbx
jne 0x12874
jmp 0x128b8
movq 0x8(%rbx), %rax
movq 0xc0(%rax), %rax
testq %rax, %rax
je 0x128b8
movl (%rax), %eax
orl $0x2, %eax
cmpl $0x7, %eax
je 0x12737
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x1647a
jmp 0x1292b
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x1a12a
jmp 0x1292b
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x14620
jmp 0x1292b
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x1810a
jmp 0x1292b
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x1b2c2
jmp 0x1292b
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x16f14
movq %rbx, %rdi
callq 0x98b0
nop