// File: /workspace/github_cpp_makefile_star2_O3/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 $0x2c8, %rsp            # imm = 0x2C8
movq %rsi, -0x38(%rbp)
movq %rdi, %r12
callq 0x43dce
cmpb $0x1, 0x5c49(%rax)
jne 0x39074
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
cmpl 0x7c(%r12), %eax
jne 0x38c6a
movl 0x78(%r12), %eax
movq -0x38(%rbp), %rcx
cmpl %eax, (%rcx)
je 0x39074
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, 0x78(%r12)
movq 0x20(%r12), %rax
subq 0x18(%r12), %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rcx
movq %rcx, -0x40(%rbp)
testl %ecx, %ecx
jle 0x39074
leaq 0x48(%r12), %rax
movq %rax, -0x108(%rbp)
leaq -0x58(%rbp), %r15
leaq 0x30(%r12), %rax
movq %rax, -0x78(%rbp)
leaq -0x2d8(%rbp), %r13
movq -0x40(%rbp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, -0x40(%rbp)
xorl %eax, %eax
movq %r12, -0x48(%rbp)
movq %rax, -0x110(%rbp)
imulq $0x38, %rax, %rcx
movq 0x18(%r12), %rsi
movq %rcx, -0x30(%rbp)
addq %rcx, %rsi
movq -0x108(%rbp), %rdi
callq 0x39650
movq %r15, -0x68(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0xefd6
movq 0x38(%r12), %rcx
subq 0x30(%r12), %rcx
sarq $0x3, %rcx
movabsq $-0x7dc11f7047dc11f7, %rax # imm = 0x823EE08FB823EE09
imulq %rax, %rcx
movl $0x0, %r14d
testl %ecx, %ecx
jle 0x38e3c
movq %rcx, -0x70(%rbp)
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %rcx, -0x118(%rbp)
movl $0x30, %r12d
xorl %r15d, %r15d
xorl %eax, %eax
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq %r13, %rbx
movq %r13, -0x2e8(%rbp)
movq 0xb0(%rax,%r15), %rsi
movq 0xb8(%rax,%r15), %rdx
addq %rsi, %rdx
leaq -0x2e8(%rbp), %rdi
callq 0xefd6
movq -0x2e8(%rbp), %rdi
movq -0x2e0(%rbp), %r14
movq -0x60(%rbp), %r13
cmpq %r14, %r13
movq %r14, %rdx
cmovbq %r13, %rdx
testq %rdx, %rdx
je 0x38dcc
movq -0x68(%rbp), %rsi
movq %r12, -0x120(%rbp)
movq %rdi, %r12
callq 0x94f0
movq %r12, %rdi
movq -0x120(%rbp), %r12
testl %eax, %eax
je 0x38dcc
xorl %r14d, %r14d
jmp 0x38dd3
cmpq %r13, %r14
sete %r14b
movq %rbx, %r13
cmpq %rbx, %rdi
je 0x38dea
movq -0x2d8(%rbp), %rsi
incq %rsi
callq 0x94e0
testb %r14b, %r14b
jne 0x38e10
movq -0x80(%rbp), %rax
incq %rax
addq $0x38, %r12
addq $0x1c8, %r15            # imm = 0x1C8
cmpq %rax, -0x118(%rbp)
jne 0x38d51
jmp 0x38e45
movq -0x48(%rbp), %rcx
movq (%rcx), %rax
cmpb $0x1, (%rax,%r12)
movq -0x80(%rbp), %r14
je 0x38e38
movq 0x30(%rcx), %rax
incl 0x54(%rax,%r15)
movq 0x18(%rcx), %rax
movq -0x30(%rbp), %rcx
movb $0x0, 0x30(%rax,%rcx)
movq -0x70(%rbp), %rcx
cmpl %ecx, %r14d
jne 0x38f46
leaq -0x2e8(%rbp), %rdi
callq 0x3776c
leaq -0xd0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
leaq -0xe0(%rbp), %rdi
leaq -0x58(%rbp), %r15
callq 0xefd6
movq -0x48(%rbp), %r12
leaq -0x238(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x92a0
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x38eb3
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x94e0
movq 0x18(%r12), %rax
leaq -0xb0(%rbp), %rcx
movq %rcx, -0xc0(%rbp)
movq -0x30(%rbp), %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0xefd6
leaq -0x218(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x92a0
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x38f17
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x94e0
movl 0x80(%r12), %eax
movl %eax, -0x298(%rbp)
movq -0x78(%rbp), %rdi
leaq -0x2e8(%rbp), %rsi
callq 0x396d0
leaq -0x2e8(%rbp), %rdi
callq 0x378ac
jmp 0x3904b
movq -0x48(%rbp), %r12
movq 0x18(%r12), %rax
movq -0x30(%rbp), %rcx
cmpb $0x1, 0x30(%rax,%rcx)
leaq -0x58(%rbp), %r15
leaq -0x100(%rbp), %rbx
jne 0x3904b
leaq -0x90(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0xefd6
movq 0x18(%r12), %rax
leaq -0xf0(%rbp), %rcx
movq %rcx, -0x100(%rbp)
movq -0x30(%rbp), %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xefd6
movq %r12, %rdi
leaq -0xa0(%rbp), %rsi
movq %rbx, %rdx
callq 0x38b30
movq %rax, %rbx
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x38ff0
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x94e0
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x39012
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x94e0
movl %r14d, %r14d
imulq $0x1c8, %r14, %rdi      # imm = 0x1C8
addq 0x30(%r12), %rdi
movq -0x38(%rbp), %rax
movq (%rax), %rdx
movq %rbx, %rsi
callq 0x37fd2
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)
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x39060
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x94e0
movq -0x110(%rbp), %rax
incq %rax
cmpq -0x40(%rbp), %rax
jne 0x38cd1
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x390b0
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x94e0
jmp 0x390b0
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x39132
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x94e0
jmp 0x39132
jmp 0x3912f
jmp 0x3912f
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x39121
movq -0xd0(%rbp), %rsi
jmp 0x39114
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x39121
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x94e0
jmp 0x39121
movq %rax, %rbx
leaq -0x2e8(%rbp), %rdi
callq 0x378ac
jmp 0x39132
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x3914b
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x94e0
movq %rbx, %rdi
callq 0x98b0
nop