// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/ActionEffector.cpp
// Function: ActionEffector::CheckCommands(Observer*)
void ActionEffector::CheckCommands(Observer *observer) {
  CheckCommandQueue(observer);
  Reset();

  /**
   * 下面通过sense中server发来的命令数据和自己的纪录数据进行比较，判断是否漏发命令
   * 按照sense中的顺序排列
   */
  if (observer->Sense().GetKickCount() != mKickCount) {
    if (observer->Sense().GetKickCount() < mKickCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a kick" << std::endl;
    }
    mKickCount = observer->Sense().GetKickCount();
  }

  if (observer->Sense().GetDashCount() != mDashCount) {
    if (observer->Sense().GetDashCount() < mDashCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a dash" << std::endl;
    }
    mDashCount = observer->Sense().GetDashCount();
  }

  if (observer->Sense().GetTurnCount() != mTurnCount) {
    if (observer->Sense().GetTurnCount() < mTurnCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a turn" << std::endl;
    }
    mTurnCount = observer->Sense().GetTurnCount();
  }

  if (observer->Sense().GetSayCount() != mSayCount) {
    if (observer->Sense().GetSayCount() < mSayCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a say" << std::endl;
      mIsSayMissed = true;
    }
    mSayCount = observer->Sense().GetSayCount();
  }

  if (observer->Sense().GetTurnNeckCount() != mTurnNeckCount) {
    if (observer->Sense().GetTurnNeckCount() < mTurnNeckCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a turn_neck" << std::endl;
    }
    mTurnNeckCount = observer->Sense().GetTurnNeckCount();
  }

  if (observer->Sense().GetCatchCount() != mCatchCount) {
    if (observer->Sense().GetCatchCount() < mCatchCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a catch" << std::endl;
    }
    mCatchCount = observer->Sense().GetCatchCount();
  }

  if (observer->Sense().GetMoveCount() != mMoveCount) {
    if (observer->Sense().GetMoveCount() < mMoveCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a move" << std::endl;
    }
    mMoveCount = observer->Sense().GetMoveCount();
  }

  if (observer->Sense().GetChangeViewCount() != mChangeViewCount) {
    if (observer->Sense().GetChangeViewCount() < mChangeViewCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a change_view" << std::endl;
    }
    mChangeViewCount = observer->Sense().GetChangeViewCount();
  }

  if (observer->Sense().GetArmCount() != mPointtoCount) {
    if (observer->Sense().GetArmCount() < mPointtoCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a pointto" << std::endl;
    }
    mPointtoCount = observer->Sense().GetArmCount();
  }

  if (observer->Sense().GetFocusCount() != mAttentiontoCount) {
    if (observer->Sense().GetFocusCount() < mAttentiontoCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a attentionto" << std::endl;
    }
    mAttentiontoCount = observer->Sense().GetFocusCount();
  }

  if (observer->Sense().GetTackleCount() != mTackleCount) {
    if (observer->Sense().GetTackleCount() < mTackleCount) {
      std::cout << observer->CurrentTime() << " "
                << PlayerParam::instance().teamName() << " "
                << observer->SelfUnum() << " miss a tackle" << std::endl;
    }
    mTackleCount = observer->Sense().GetTackleCount();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0xd492
movq %rbx, %rdi
callq 0xdfe0
movl 0xe54(%rbx), %eax
cmpl %eax, 0x158(%r14)
je 0xd800
jge 0xd7f3
leaq 0xc(%r14), %rsi
movq 0x79864(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x61489(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d951(%rip), %rsi     # 0x6b110
movl $0xc, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x158(%r14), %eax
movl %eax, 0xe54(%rbx)
movl 0xe44(%rbx), %eax
cmpl %eax, 0x15c(%r14)
je 0xd8c8
jge 0xd8bb
leaq 0xc(%r14), %rsi
movq 0x7979c(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x613c1(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d896(%rip), %rsi     # 0x6b11d
movl $0xc, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x15c(%r14), %eax
movl %eax, 0xe44(%rbx)
movl 0xe40(%rbx), %eax
cmpl %eax, 0x160(%r14)
je 0xd990
jge 0xd983
leaq 0xc(%r14), %rsi
movq 0x796d4(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x612f9(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d7db(%rip), %rsi     # 0x6b12a
movl $0xc, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x160(%r14), %eax
movl %eax, 0xe40(%rbx)
movl 0xe4c(%rbx), %eax
cmpl %eax, 0x164(%r14)
je 0xda5f
jge 0xda52
leaq 0xc(%r14), %rsi
movq 0x7960c(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x61231(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d720(%rip), %rsi     # 0x6b137
movl $0xb, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movb $0x1, 0xead(%rbx)
movl 0x164(%r14), %eax
movl %eax, 0xe4c(%rbx)
movl 0xe48(%rbx), %eax
cmpl %eax, 0x168(%r14)
je 0xdb27
jge 0xdb1a
leaq 0xc(%r14), %rsi
movq 0x7953d(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x61162(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d65d(%rip), %rsi     # 0x6b143
movl $0x11, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x168(%r14), %eax
movl %eax, 0xe48(%rbx)
movl 0xe60(%rbx), %eax
cmpl %eax, 0x16c(%r14)
je 0xdbef
jge 0xdbe2
leaq 0xc(%r14), %rsi
movq 0x79475(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x6109a(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d5a7(%rip), %rsi     # 0x6b155
movl $0xd, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x16c(%r14), %eax
movl %eax, 0xe60(%rbx)
movl 0xe64(%rbx), %eax
cmpl %eax, 0x170(%r14)
je 0xdcb7
jge 0xdcaa
leaq 0xc(%r14), %rsi
movq 0x793ad(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x60fd2(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d4ed(%rip), %rsi     # 0x6b163
movl $0xc, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x170(%r14), %eax
movl %eax, 0xe64(%rbx)
movl 0xe68(%rbx), %eax
cmpl %eax, 0x174(%r14)
je 0xdd7f
jge 0xdd72
leaq 0xc(%r14), %rsi
movq 0x792e5(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x60f0a(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d432(%rip), %rsi     # 0x6b170
movl $0x13, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x174(%r14), %eax
movl %eax, 0xe68(%rbx)
movl 0xe5c(%rbx), %eax
cmpl %eax, 0x190(%r14)
je 0xde47
jge 0xde3a
leaq 0xc(%r14), %rsi
movq 0x7921d(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x60e42(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d37e(%rip), %rsi     # 0x6b184
movl $0xf, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x190(%r14), %eax
movl %eax, 0xe5c(%rbx)
movl 0xe50(%rbx), %eax
cmpl %eax, 0x19c(%r14)
je 0xdf0f
jge 0xdf02
leaq 0xc(%r14), %rsi
movq 0x79155(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x60d7a(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d2c6(%rip), %rsi     # 0x6b194
movl $0x13, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x19c(%r14), %eax
movl %eax, 0xe50(%rbx)
movl 0xe58(%rbx), %eax
cmpl %eax, 0x1a4(%r14)
je 0xdfd7
jge 0xdfca
leaq 0xc(%r14), %rsi
movq 0x7908d(%rip), %rdi     # 0x86fc0
callq 0xea74
movq %rax, %r15
leaq 0x60cb2(%rip), %r12     # 0x6ebf4
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x9880
movq %rax, %r15
leaq 0x5d212(%rip), %rsi     # 0x6b1a8
movl $0xe, %edx
movq %rax, %rdi
callq 0x9560
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r15, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movl 0x1a4(%r14), %eax
movl %eax, 0xe58(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq