// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/Strategy.cpp
// Function: Strategy::StrategyAnalyze()
void Strategy::StrategyAnalyze() {
  mIsLastBallFree = mIsBallFree;
  if (mIsBallFree == false) //记录上次不free时的状态，参考WE2008
  {
    mLastController = mController;
    mLastChallenger = mChallenger;
  }

  mIsBallActuralKickable = false;
  mIsBallFree = true;
  mController = 0;

  mMyInterCycle = 150;
  mMinTmInterCycle = 150;
  mMinOppInterCycle = 150;
  mMinIntercCycle = 150;
  mSureTmInterCycle = 150;
  mSureOppInterCycle = 150;
  mSureInterCycle = 150;
  mFastestTm = 0;
  mFastestOpp = 0;
  mSureTm = 0;
  mSureOpp = 0;

  mBallInterPos = mWorldState.GetBall().GetPos();
  mBallFreeCycleLeft = 0;
  mBallOutCycle = 1000;

  mController = 0;
  mChallenger = 0;

  if (mForbiddenDribble) {
    if (!mSelfState.IsKickable()) {
      mForbiddenDribble = false;
    }
  }

  BallPossessionAnalyse();

  SituationAnalyse();

  // And once they are over, roll back formation. Formation will be updated by
  // BehaviorData when needed.
  mFormation.Rollback("Strategy");

  if (mSelfState.GetTackleProb(false) < FLOAT_EPS) {
    if (mIsBallFree) {
      if (mMyTackleInfo.mMinCycle >= mSureInterCycle ||
          (mController > 0 && mController != mSelfState.GetUnum())) {
        mMyTackleInfo.mRes = IR_Failure;
      }
    }
  } else {
    mMyTackleInfo.mRes = IR_Success;
    mMyTackleInfo.mMinCycle = 0;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movb 0x41(%rdi), %al
movb %al, 0x50(%rdi)
testb %al, %al
jne 0x4ca02
movq 0x48(%rbx), %rax
movq %rax, 0x5c(%rbx)
movw $0x100, 0x40(%rbx)      # imm = 0x100
xorl %eax, %eax
movl %eax, 0x48(%rbx)
movaps 0x2211c(%rip), %xmm0    # 0x6eb30
movups %xmm0, 0x64(%rbx)
movabsq $0x9600000096, %rcx     # imm = 0x9600000096
movq %rcx, 0x7c(%rbx)
movl $0x96, 0x84(%rbx)
movq %rax, 0x74(%rbx)
movq %rax, 0x88(%rbx)
movq 0x18(%rbx), %rcx
movups 0x38(%rcx), %xmm0
movups %xmm0, 0x90(%rbx)
movq %rax, 0x44(%rbx)
movl $0x3e8, 0xa0(%rbx)      # imm = 0x3E8
movl %eax, 0x4c(%rbx)
cmpb $0x1, 0xa8(%rbx)
jne 0x4ca78
movq 0x28(%rbx), %rax
cmpb $0x0, 0x128(%rax)
jne 0x4ca78
movb $0x0, 0xa8(%rbx)
movq %rbx, %rdi
callq 0x4cbe8
movq %rbx, %rdi
callq 0x4d7a8
movq 0x38(%rbx), %r14
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x220b4(%rip), %rsi     # 0x6eb50
leaq 0x220b5(%rip), %rdx     # 0x6eb58
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x13766
movq %r14, %rdi
movq %r15, %rsi
callq 0x27876
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x4cacf
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x94e0
movq 0x28(%rbx), %rdx
movsd 0x1e565(%rip), %xmm0    # 0x6b040
ucomisd 0x140(%rdx), %xmm0
jbe 0x4cb14
cmpb $0x1, 0x41(%rbx)
jne 0x4cb28
movl 0x124(%rbx), %esi
movl $0x1, %eax
movl $0x13c, %ecx            # imm = 0x13C
cmpl 0x84(%rbx), %esi
jge 0x4cb25
movl 0x48(%rbx), %esi
testl %esi, %esi
jle 0x4cb28
cmpl 0x11c(%rdx), %esi
jne 0x4cb25
jmp 0x4cb28
movl $0x2, 0x13c(%rbx)
xorl %eax, %eax
movl $0x124, %ecx            # imm = 0x124
movl %eax, (%rbx,%rcx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x4cb4d
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x94e0
movq %rbx, %rdi
callq 0x98b0
nop