// File: /workspace/github_cpp_makefile_star2_O2/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 0xbe66
movq %rbx, %rdi
callq 0xc6be
movl 0x158(%r14), %eax
cmpl 0xe54(%rbx), %eax
je 0xc17b
jge 0xc175
leaq 0xc(%r14), %rsi
movq 0x6aeae(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4ea86(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4afa2(%rip), %rsi     # 0x57100
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x158(%r14), %eax
movl %eax, 0xe54(%rbx)
movl 0x15c(%r14), %eax
cmpl 0xe44(%rbx), %eax
je 0xc200
jge 0xc1fa
leaq 0xc(%r14), %rsi
movq 0x6ae29(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4ea01(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4af2a(%rip), %rsi     # 0x5710d
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x15c(%r14), %eax
movl %eax, 0xe44(%rbx)
movl 0x160(%r14), %eax
cmpl 0xe40(%rbx), %eax
je 0xc285
jge 0xc27f
leaq 0xc(%r14), %rsi
movq 0x6ada4(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e97c(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4aeb2(%rip), %rsi     # 0x5711a
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x160(%r14), %eax
movl %eax, 0xe40(%rbx)
movl 0x164(%r14), %eax
cmpl 0xe4c(%rbx), %eax
je 0xc311
jge 0xc30b
leaq 0xc(%r14), %rsi
movq 0x6ad1f(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e8f7(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4ae3a(%rip), %rsi     # 0x57127
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movb $0x1, 0xead(%rbx)
movl 0x164(%r14), %eax
movl %eax, 0xe4c(%rbx)
movl 0x168(%r14), %eax
cmpl 0xe48(%rbx), %eax
je 0xc396
jge 0xc390
leaq 0xc(%r14), %rsi
movq 0x6ac93(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e86b(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4adba(%rip), %rsi     # 0x57133
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x168(%r14), %eax
movl %eax, 0xe48(%rbx)
movl 0x16c(%r14), %eax
cmpl 0xe60(%rbx), %eax
je 0xc41b
jge 0xc415
leaq 0xc(%r14), %rsi
movq 0x6ac0e(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e7e6(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4ad47(%rip), %rsi     # 0x57145
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x16c(%r14), %eax
movl %eax, 0xe60(%rbx)
movl 0x170(%r14), %eax
cmpl 0xe64(%rbx), %eax
je 0xc4a0
jge 0xc49a
leaq 0xc(%r14), %rsi
movq 0x6ab89(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e761(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4acd0(%rip), %rsi     # 0x57153
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x170(%r14), %eax
movl %eax, 0xe64(%rbx)
movl 0x174(%r14), %eax
cmpl 0xe68(%rbx), %eax
je 0xc525
jge 0xc51f
leaq 0xc(%r14), %rsi
movq 0x6ab04(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e6dc(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4ac58(%rip), %rsi     # 0x57160
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x174(%r14), %eax
movl %eax, 0xe68(%rbx)
movl 0x190(%r14), %eax
cmpl 0xe5c(%rbx), %eax
je 0xc5aa
jge 0xc5a4
leaq 0xc(%r14), %rsi
movq 0x6aa7f(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e657(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4abe7(%rip), %rsi     # 0x57174
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x190(%r14), %eax
movl %eax, 0xe5c(%rbx)
movl 0x19c(%r14), %eax
cmpl 0xe50(%rbx), %eax
je 0xc62f
jge 0xc629
leaq 0xc(%r14), %rsi
movq 0x6a9fa(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e5d2(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4ab72(%rip), %rsi     # 0x57184
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x19c(%r14), %eax
movl %eax, 0xe50(%rbx)
movl 0x1a4(%r14), %eax
cmpl 0xe58(%rbx), %eax
je 0xc6b4
jge 0xc6ae
leaq 0xc(%r14), %rsi
movq 0x6a975(%rip), %rdi     # 0x76fc0
callq 0xd465
leaq 0x4e54d(%rip), %r15     # 0x5aba4
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movq %rax, %r12
callq 0x38d94
leaq 0x3138(%rax), %rsi
movq %r12, %rdi
callq 0x9430
movq %rax, %rdi
movq %r15, %rsi
callq 0x94b0
movl 0x2c(%r14), %esi
movq %rax, %rdi
callq 0x9890
leaq 0x4ab01(%rip), %rsi     # 0x57198
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
movl 0x1a4(%r14), %eax
movl %eax, 0xe58(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop