// File: /workspace/github_cpp_makefile_star2_O2/wrighteagle2d[P]wrighteaglebase/Debug/../src/NetworkTest.cpp
// Function: NetworkTest::Update(Time const&)
void NetworkTest::Update(const Time &time) {
  if (PlayerParam::instance().NetworkTest()) {
    if (time != CurrentTime) {
      CurrentTime = time; //更新时间
      int i, size = EndTimelist.size();
      for (i = 0; i < size; i++) {
        std::string BeginName = EndtoBegin[EndTimelist[i].Name];
        int k, SUSize = StatUnit.size();
        for (k = 0; k < SUSize; k++) {
          if (StatUnit[k].GetBegin().compare(BeginName) == 0
              /*&&!EndTimelist[i].Name*/) {
            if (!BeginTimelist[k].IsRecord) {
              StatUnit[k].MissBeginIncrement();
              EndTimelist[i].IsRecord = false;
            }
            break;
          }
        }

        if (k == SUSize) {
          StatisticUnit SU;
          SU.setBegin(BeginName);
          SU.setEndName(EndTimelist[i].Name);
          SU.setMyID(mUnum);
          StatUnit.push_back(SU);
        } else if (EndTimelist[i].IsRecord) {
          long Interval = getInterval(BeginName, EndTimelist[i].Name);
          StatUnit[k].SetStatistic(Interval, time);
          EndTimelist[i].IsRecord = false;
          BeginTimelist[k].IsRecord = false;
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, -0x38(%rbp)
movq %rdi, %r12
callq 0x38d94
cmpb $0x1, 0x5c49(%rax)
jne 0x30550
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
cmpl 0x7c(%r12), %eax
jne 0x30562
movl 0x78(%r12), %eax
movq -0x38(%rbp), %rcx
cmpl %eax, (%rcx)
jne 0x30562
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, 0x78(%r12)
movq 0x20(%r12), %rax
subq 0x18(%r12), %rax
pushq $0x38
popq %rcx
cqto
idivq %rcx
leaq 0x48(%r12), %rcx
movq %rcx, -0x50(%rbp)
leaq 0x30(%r12), %rcx
movq %rcx, -0x48(%rbp)
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
movq %rax, -0x58(%rbp)
leaq -0x2d0(%rbp), %r14
xorl %eax, %eax
movq %r12, -0x40(%rbp)
cmpq -0x58(%rbp), %rax
je 0x30550
movq %rax, -0x60(%rbp)
imulq $0x38, %rax, %rcx
movq 0x18(%r12), %rsi
movq %rcx, -0x30(%rbp)
addq %rcx, %rsi
movq -0x50(%rbp), %rdi
callq 0x30c86
leaq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0x9680
movq 0x38(%r12), %rax
subq 0x30(%r12), %rax
cqto
movl $0x1c8, %ecx            # imm = 0x1C8
idivq %rcx
testl %eax, %eax
movl $0x0, %r15d
movq %rax, -0x68(%rbp)
cmovgl %eax, %r15d
movl $0xb0, %r13d
pushq $0x30
popq %r12
xorl %ebx, %ebx
cmpq %rbx, %r15
je 0x30659
movq -0x48(%rbp), %rax
movq (%rax), %rsi
addq %r13, %rsi
movq %r14, %rdi
callq 0x9680
movq %r14, %rdi
leaq -0x88(%rbp), %rsi
callq 0x9070
movq %r14, %rdi
movl %eax, %r14d
callq 0x9240
testl %r14d, %r14d
je 0x3065f
incq %rbx
addq $0x1c8, %r13            # imm = 0x1C8
addq $0x38, %r12
leaq -0x2d0(%rbp), %r14
jmp 0x3060c
movq -0x40(%rbp), %r12
jmp 0x30690
movq -0x40(%rbp), %rcx
movq (%rcx), %rax
cmpb $0x1, (%rax,%r12)
je 0x30683
movq 0x30(%rcx), %rax
incl -0x5c(%rax,%r13)
movq 0x18(%rcx), %rax
movq -0x30(%rbp), %rdx
movb $0x0, 0x30(%rax,%rdx)
movl %ebx, %r15d
movq %rcx, %r12
leaq -0x2d0(%rbp), %r14
cmpl -0x68(%rbp), %r15d
leaq -0x108(%rbp), %rbx
leaq -0xe8(%rbp), %r13
jne 0x30721
movq %r14, %rdi
callq 0x2f384
movq %rbx, %rdi
leaq -0x88(%rbp), %rsi
callq 0x9680
leaq -0x220(%rbp), %rdi
movq %rbx, %rsi
callq 0x92b0
movq %rbx, %rdi
callq 0x9240
movq -0x30(%rbp), %rsi
addq 0x18(%r12), %rsi
movq %r13, %rdi
callq 0x9680
leaq -0x200(%rbp), %rdi
movq %r13, %rsi
callq 0x92b0
movq %r13, %rdi
callq 0x9240
movl 0x80(%r12), %eax
movl %eax, -0x280(%rbp)
movq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0x30cf0
movq %r14, %rdi
callq 0x2f490
jmp 0x307c4
movq 0x18(%r12), %rax
movq -0x30(%rbp), %rcx
cmpb $0x1, 0x30(%rax,%rcx)
jne 0x307c4
leaq -0xc8(%rbp), %r14
movq %r14, %rdi
leaq -0x88(%rbp), %rsi
callq 0x9680
movq 0x18(%r12), %rsi
addq -0x30(%rbp), %rsi
leaq -0xa8(%rbp), %r13
movq %r13, %rdi
callq 0x9680
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x30424
movq %rax, %rbx
movq %r13, %rdi
callq 0x9240
movq %r14, %rdi
callq 0x9240
movl %r15d, %r14d
imulq $0x1c8, %r14, %rdi      # imm = 0x1C8
addq 0x30(%r12), %rdi
movq -0x38(%rbp), %rax
movq (%rax), %rdx
movq %rbx, %rsi
callq 0x2fafe
movq 0x18(%r12), %rax
xorl %edx, %edx
movq -0x30(%rbp), %rcx
movb %dl, 0x30(%rax,%rcx)
movq (%r12), %rax
imulq $0x38, %r14, %rcx
movb %dl, 0x30(%rax,%rcx)
leaq -0x2d0(%rbp), %r14
leaq -0x88(%rbp), %rdi
callq 0x9240
movq -0x60(%rbp), %rax
incq %rax
jmp 0x305aa
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x9240
jmp 0x307f0
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
jmp 0x30835
jmp 0x3083c
movq %rax, %rbx
leaq -0xe8(%rbp), %rdi
jmp 0x30811
movq %rax, %rbx
leaq -0x108(%rbp), %rdi
callq 0x9240
jmp 0x3081d
jmp 0x3083c
movq %rax, %rbx
leaq -0x2d0(%rbp), %rdi
callq 0x2f490
jmp 0x3083f
movq %rax, %rbx
leaq -0x2d0(%rbp), %rdi
callq 0x9240
jmp 0x3083f
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x9240
movq %rbx, %rdi
callq 0x98b0
nop