// File: /workspace/github_cpp_makefile_star2_O3/wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::UpdateSpecificUnknownPlayer(UnknownPlayerObserver const&, int, bool)
void WorldStateUpdater::UpdateSpecificUnknownPlayer(
    const UnknownPlayerObserver &player, Unum unum, bool is_teammate) {
  if (is_teammate) {
    Teammate(unum).SetIsAlive(true);
    Teammate(unum).UpdateGuessedTimes(0);
    //位置更新
    if (player.GetDir().time() == mpObserver->LatestSightTime()) {
      Vector vec = Polar2Vector(
          PlayerParam::instance().ConvertSightDist(player.Dist()),
          GetNeckGlobalDirFromSightDelay(mSightDelay) + player.Dir());
      vec = GetSelf().GetPos() + vec;
      Teammate(unum).UpdatePos(vec, mSightDelay, mPlayerConf);

      double eps = PlayerParam::instance().GetEpsInSight(player.Dist()) +
                   SelfState().GetPosEps();
      Teammate(unum).UpdatePosEps(eps);
    }

    if (mpWorldState->GetHistory(1 + mSightDelay)) {
      //更新近距离位置
      int delay = mpWorldState->GetHistory(1 + mSightDelay)
                      ->Teammate(unum)
                      .GetPosDelay();
      if (delay < HistoryState::HISTORY_SIZE - 1 - mSightDelay) {
        Vector vel = Teammate(unum).GetPos() -
                     mpWorldState->GetHistory(1 + mSightDelay + delay)
                         ->Teammate(unum)
                         .GetPos();
        vel /= (delay + 1);

        // use  speed of self sense instead of pos of self sight to reduce the
        // error
        Vector self_vel = GetSelfVelFromSightDelay(mSightDelay);
        if (mpObserver->Sense().IsCollideWithBall() ||
            mpObserver->Sense().IsCollideWithPlayer() ||
            mpObserver->Sense().IsCollideWithPost()) {
          self_vel /= -0.1;
        }
        self_vel /= PlayerParam::instance()
                        .HeteroPlayer(SelfState().GetPlayerType())
                        .playerDecay();
        Vector self_vel_pos =
            SelfState().GetPos() - mpWorldState->GetHistory(1 + mSightDelay)
                                       ->Teammate(GetSelfUnum())
                                       .GetPos();
        vel += self_vel - self_vel_pos;

        double max_speed = PlayerParam::instance()
                               .HeteroPlayer(mpObserver->GetTeammateType(unum))
                               .effectiveSpeedMax();
        //根据速度大致猜测朝向 有视觉时会覆盖
        if (vel.Mod() > max_speed *
                            mpWorldState->GetTeammate(unum).GetPlayerDecay() *
                            0.8 &&
            GetTeammate(unum).IsBodyDirMayChanged()) {
          //				Logger::instance().GetTextLogger("bodydir") <<
          //mpWorldState->CurrentTime().T() << "\t" <<
          //mpWorldState->CurrentTime().S() << "\t" << unum<< "\t" << vel.Dir()
          //<< "\t" << GetTeammate(unum).GetBodyDir() << "\n";
          Teammate(unum).UpdateBodyDir(vel.Dir(),
                                       GetTeammate(unum).GetBodyDirDelay(),
                                       GetTeammate(unum).GetBodyDirConf());
          //				Teammate(unum).UpdateBodyDirMayChanged(false);
        } else if (vel.Mod() <=
                   max_speed *
                       mpWorldState->GetTeammate(unum).GetPlayerDecay()) {
          Teammate(unum).UpdateBodyDirMayChanged(true);
        }

        //			Logger::instance().GetTextLogger("bodydir") <<
        //mpWorldState->CurrentTime().T() << "\t" <<
        //mpWorldState->CurrentTime().S() << "\t" << unum<< "\t" <<
        //GetTeammate(unum).GetBodyDir() << "\n";
        if (vel.Mod() > max_speed) {
          vel = Polar2Vector(max_speed, vel.Dir());
        }

        vel *= PlayerParam::instance()
                   .HeteroPlayer(mpObserver->GetTeammateType(unum))
                   .playerDecay();

        Teammate(unum).UpdateVel(vel, mSightDelay, mPlayerConf);
      }
    }

    //既然不知道这个队员,直接置０
    Teammate(unum).UpdateFoulChargedCycle(0);

    //是否铲球
    if (player.IsKnownSide()) {
      if (player.GetIsTackling().time() == mpObserver->LatestSightTime()) {
        if (player.IsTackling()) {
          if (Teammate(unum).GetTackleBan() == 0) {
            Teammate(unum).UpdateTackleBan(
                ServerParam::instance().tackleCycles() - 1);
          }
          // tackle 速度一定为0
          Teammate(unum).UpdateVel(Vector(0, 0), mSightDelay, mPlayerConf);
        } else {
          Teammate(unum).UpdateTackleBan(0);
        }
      }
      if (player.GetIsLying().time() == mpObserver->LatestSightTime()) {
        if (player.IsLying()) {
          if (Teammate(unum).GetFoulChargedCycle() == 0) {
            Teammate(unum).UpdateFoulChargedCycle(
                ServerParam::instance().foulCycles() - 1);
          }
          Teammate(unum).UpdateVel(Vector(0, 0), mSightDelay, mPlayerConf);
        } else {
          Teammate(unum).UpdateFoulChargedCycle(0);
        }
      }
      //是否上周期踢过球
      if (player.GetIsKicked().time() == mpObserver->LatestSightTime()) {
        Teammate(unum).UpdateKicked(player.IsKicked());
      }

      Teammate(unum).UpdateCardType(mpObserver->GetTeammateCardType(unum));
    }

  } else {
    Opponent(unum).SetIsAlive(true);
    Opponent(unum).UpdateGuessedTimes(0);
    //位置更新
    if (player.GetDir().time() == mpObserver->LatestSightTime()) {
      Vector vec = Polar2Vector(
          PlayerParam::instance().ConvertSightDist(player.Dist()),
          GetNeckGlobalDirFromSightDelay(mSightDelay) + player.Dir());
      vec = GetSelf().GetPos() + vec;
      Opponent(unum).UpdatePos(vec, mSightDelay, mPlayerConf);

      double eps = PlayerParam::instance().GetEpsInSight(player.Dist()) +
                   SelfState().GetPosEps();
      Opponent(unum).UpdatePosEps(eps);
    }

    if (mpWorldState->GetHistory(1 + mSightDelay)) {
      //近距离速度更新
      int delay = mpWorldState->GetHistory(1 + mSightDelay)
                      ->Opponent(unum)
                      .GetPosDelay();
      if (delay < HistoryState::HISTORY_SIZE - 1 - mSightDelay) {
        Vector vel = Opponent(unum).GetPos() -
                     mpWorldState->GetHistory(1 + mSightDelay + delay)
                         ->Opponent(unum)
                         .GetPos();
        vel /= (delay + 1);

        // use  speed of self sense instead of pos of self sight to reduce the
        // error
        Vector self_vel = GetSelfVelFromSightDelay();
        if (mpObserver->Sense().IsCollideWithBall() ||
            mpObserver->Sense().IsCollideWithPlayer() ||
            mpObserver->Sense().IsCollideWithPost()) {
          self_vel /= -0.1;
        }
        self_vel /= PlayerParam::instance()
                        .HeteroPlayer(SelfState().GetPlayerType())
                        .playerDecay();
        Vector self_vel_pos =
            SelfState().GetPos() - mpWorldState->GetHistory(1 + mSightDelay)
                                       ->Teammate(GetSelfUnum())
                                       .GetPos();
        vel += self_vel - self_vel_pos;

        double max_speed = GetOpponent(unum).GetEffectiveSpeedMax();

        //根据速度预测对手身体朝向
        if (vel.Mod() > max_speed * GetOpponent(unum).GetPlayerDecay() * 0.8 &&
            GetOpponent(unum).IsBodyDirMayChanged()) {
          //				Logger::instance().GetTextLogger("bodydir") <<
          //mpWorldState->CurrentTime().T() << "\t" <<
          //mpWorldState->CurrentTime().S() << "\t" << unum + TEAMSIZE<< "\t" <<
          //vel.Dir() << "\t" << GetOpponent(unum).GetBodyDir() << "\n";
          Opponent(unum).UpdateBodyDir(vel.Dir(),
                                       GetOpponent(unum).GetBodyDirDelay(),
                                       GetOpponent(unum).GetBodyDirConf());
          //				Opponent(unum).UpdateBodyDirMayChanged(false);
        } else if (vel.Mod() <=
                   max_speed * GetOpponent(unum).GetPlayerDecay()) {
          Opponent(unum).UpdateBodyDirMayChanged(true);
        }

        //			Logger::instance().GetTextLogger("bodydir") <<
        //mpWorldState->CurrentTime().T() << "\t" <<
        //mpWorldState->CurrentTime().S() << "\t" << unum + TEAMSIZE<< "\t" <<
        //GetOpponent(unum).GetBodyDir() << "\n";
        if (vel.Mod() > max_speed) {
          vel = Polar2Vector(max_speed, vel.Dir());
        }
        vel *= GetOpponent(unum).GetPlayerDecay();

        Opponent(unum).UpdateVel(vel, mSightDelay, mPlayerConf);
      }
    }

    //既然不知道这个队员,置０
    Opponent(unum).UpdateFoulChargedCycle(0);

    //是否铲球
    if (player.IsKnownSide()) {
      if (player.GetIsTackling().time() == mpObserver->LatestSightTime()) {
        if (player.IsTackling()) {
          if (Opponent(unum).GetTackleBan() == 0) {
            Opponent(unum).UpdateTackleBan(
                ServerParam::instance().tackleCycles() - 1);
          }
          Opponent(unum).UpdateVel(Vector(0, 0), mSightDelay, mPlayerConf);
        } else {
          Opponent(unum).UpdateTackleBan(0);
        }
      }
      if (player.GetIsLying().time() == mpObserver->LatestSightTime()) {
        if (player.IsLying()) {
          if (Opponent(unum).GetFoulChargedCycle() == 0) {
            Opponent(unum).UpdateFoulChargedCycle(
                ServerParam::instance().foulCycles() - 1);
          }
          Opponent(unum).UpdateVel(Vector(0, 0), mSightDelay, mPlayerConf);
        } else {
          Opponent(unum).UpdateFoulChargedCycle(0);
        }
      }
      //是否上周期踢过球
      if (player.GetIsKicked().time() == mpObserver->LatestSightTime()) {
        Opponent(unum).UpdateKicked(player.IsKicked());
      }

      Opponent(unum).UpdateCardType(mpObserver->GetOpponentCardType(unum));
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
decl %edx
movslq %edx, %r12
imulq $0x178, %r12, %r13      # imm = 0x178
testl %ecx, %ecx
je 0x64721
movb $0x1, 0x1ba(%rax,%r13)
movl $0x0, 0x118(%rax,%r13)
movq (%r14), %rcx
movl 0x1c(%rbx), %edx
cmpl 0x18(%rcx), %edx
jne 0x6491e
movl 0x14(%rcx), %ecx
cmpl %ecx, 0x18(%rbx)
jne 0x6491e
movq %r12, -0x40(%rbp)
callq 0x43dce
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x677a6
movsd %xmm0, -0x50(%rbp)
movl 0x28(%r14), %eax
testl %eax, %eax
je 0x6483a
cmpl $0xa, %eax
movl $0xa, %ecx
cmovll %eax, %ecx
movq 0x8(%r14), %rax
movq 0x8(%rax), %rax
movslq %ecx, %rcx
imulq $0x66666667, %rcx, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rdx
addl %esi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
movl 0x14b90(%rax), %esi
subl %ecx, %edx
leal (%rsi,%rdx), %ecx
addl $0xa, %ecx
movslq %ecx, %rcx
imulq $0x66666667, %rcx, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rdx
addl %esi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %ecx
movslq %ecx, %rcx
imulq $0x2128, %rcx, %r12     # imm = 0x2128
addq %rax, %r12
movq %r13, -0x30(%rbp)
movq %rbx, %r13
movslq 0x14(%r14), %rbx
callq 0x49360
movq %rax, %r15
callq 0x49360
imulq $0x178, %rbx, %rcx      # imm = 0x178
movq %r13, %rbx
movq -0x30(%rbp), %r13
movsd -0x38(%rcx,%r12), %xmm1
maxsd 0x3168(%r15), %xmm1
movsd 0x3160(%rax), %xmm0
minsd %xmm1, %xmm0
movslq 0x14(%r14), %rax
movq 0x8(%r14), %rcx
imulq $0x178, %rax, %rax      # imm = 0x178
addsd -0x20(%rcx,%rax), %xmm0
jmp 0x64859
movb $0x1, 0x11e2(%rax,%r13)
movl $0x0, 0x1140(%rax,%r13)
movq (%r14), %rcx
movl 0x1c(%rbx), %edx
cmpl 0x18(%rcx), %edx
jne 0x64dd7
movl 0x14(%rcx), %ecx
cmpl %ecx, 0x18(%rbx)
jne 0x64dd7
movq %r12, -0x40(%rbp)
callq 0x43dce
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x677a6
movsd %xmm0, -0x50(%rbp)
movl 0x28(%r14), %eax
testl %eax, %eax
je 0x64cf3
cmpl $0xa, %eax
movl $0xa, %ecx
cmovll %eax, %ecx
movq 0x8(%r14), %rax
movq 0x8(%rax), %rax
movslq %ecx, %rcx
imulq $0x66666667, %rcx, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rdx
addl %esi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
movl 0x14b90(%rax), %esi
subl %ecx, %edx
leal (%rsi,%rdx), %ecx
addl $0xa, %ecx
movslq %ecx, %rcx
imulq $0x66666667, %rcx, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rdx
addl %esi, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %ecx
movslq %ecx, %rcx
movq %r13, -0x30(%rbp)
movq %rbx, %r13
imulq $0x2128, %rcx, %rbx     # imm = 0x2128
addq %rax, %rbx
movslq 0x14(%r14), %r12
callq 0x49360
movq %rax, %r15
callq 0x49360
imulq $0x178, %r12, %rcx      # imm = 0x178
movsd -0x38(%rcx,%rbx), %xmm1
movq %r13, %rbx
movq -0x30(%rbp), %r13
maxsd 0x3168(%r15), %xmm1
movsd 0x3160(%rax), %xmm0
minsd %xmm1, %xmm0
movslq 0x14(%r14), %rax
movq 0x8(%r14), %rcx
imulq $0x178, %rax, %rax      # imm = 0x178
addsd -0x20(%rcx,%rax), %xmm0
jmp 0x64d12
movslq 0x14(%r14), %rax
movq 0x8(%r14), %rcx
imulq $0x178, %rax, %rax      # imm = 0x178
leaq (%rax,%rcx), %rdi
addq $-0xd0, %rdi
callq 0x59a22
addsd 0x10(%rbx), %xmm0
mulsd 0x47ea(%rip), %xmm0     # 0x69050
divsd 0x47da(%rip), %xmm0     # 0x69048
leaq -0x70(%rbp), %r15
leaq -0x80(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x92d0
movsd (%r12), %xmm0
movsd -0x50(%rbp), %xmm1
mulsd %xmm1, %xmm0
mulsd (%r15), %xmm1
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
movslq 0x14(%r14), %rax
movq 0x8(%r14), %rcx
imulq $0x178, %rax, %rax      # imm = 0x178
addsd -0xc8(%rax,%rcx), %xmm0
addsd -0xc0(%rax,%rcx), %xmm1
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
leaq 0xa8(%rcx,%r13), %rdi
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
leaq -0x70(%rbp), %rsi
callq 0xf572
callq 0x43dce
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x675e6
movslq 0x14(%r14), %rcx
movq 0x8(%r14), %rax
imulq $0x178, %rcx, %rcx      # imm = 0x178
addsd -0xa8(%rcx,%rax), %xmm0
movsd %xmm0, 0xd0(%rax,%r13)
movq -0x40(%rbp), %r12
movl 0x28(%r14), %esi
movl %esi, %edx
movq %rax, %rdi
incl %edx
je 0x64997
cmpl $0x9, %esi
jg 0x6539f
movq 0x8(%rax), %rcx
movslq %edx, %rdi
imulq $0x66666667, %rdi, %r8  # imm = 0x66666667
movq %r8, %r9
shrq $0x3f, %r9
sarq $0x22, %r8
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
movl 0x14b90(%rcx), %r9d
subl %edi, %r8d
leal (%r9,%r8), %edi
addl $0xa, %edi
movslq %edi, %rdi
imulq $0x66666667, %rdi, %r8  # imm = 0x66666667
movq %r8, %r9
shrq $0x3f, %r9
sarq $0x22, %r8
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
subl %r8d, %edi
movslq %edi, %rdi
imulq $0x2128, %rdi, %rdi     # imm = 0x2128
addq %rcx, %rdi
movl 0xc0(%rdi,%r13), %ecx
movl $0x9, %edi
subl %esi, %edi
cmpl %edi, %ecx
jge 0x6539f
leaq (%rax,%r13), %rdi
addq $0xb0, %rdi
addl %ecx, %edx
je 0x64a18
movq 0x8(%rax), %r8
movslq %edx, %rax
imulq $0x66666667, %rax, %rdx # imm = 0x66666667
movq %rdx, %r9
shrq $0x3f, %r9
sarq $0x22, %rdx
addl %r9d, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
movl 0x14b90(%r8), %r9d
subl %eax, %edx
leal (%r9,%rdx), %eax
addl $0xa, %eax
cltq
imulq $0x66666667, %rax, %rdx # imm = 0x66666667
movq %rdx, %r9
shrq $0x3f, %r9
sarq $0x22, %rdx
addl %r9d, %edx
addl %edx, %edx
leal (%rdx,%rdx,4), %edx
subl %edx, %eax
cltq
imulq $0x2128, %rax, %rax     # imm = 0x2128
addq %r8, %rax
movsd (%rdi), %xmm1
movsd 0x8(%rdi), %xmm0
subsd 0xb0(%rax,%r13), %xmm1
subsd 0xb8(%rax,%r13), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd %xmm0, -0x68(%rbp)
incl %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, -0x88(%rbp)
divsd %xmm0, %xmm1
movsd %xmm1, -0x58(%rbp)
movsd %xmm1, -0x70(%rbp)
movq %r14, %rdi
callq 0x678ce
movq (%r14), %rax
cmpb $0x0, 0x1b2(%rax)
jne 0x64a88
cmpb $0x0, 0x1b1(%rax)
jne 0x64a88
cmpb $0x1, 0x1b0(%rax)
jne 0x6523f
movsd 0x5b38(%rip), %xmm2     # 0x6a5c8
divsd %xmm2, %xmm0
movapd %xmm0, -0x40(%rbp)
divsd %xmm2, %xmm1
movapd %xmm1, -0x50(%rbp)
movsd -0x30(%rbp), %xmm0
divsd -0x88(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0x43dce
movslq 0x14(%r14), %rcx
movq 0x8(%r14), %rsi
imulq $0x178, %rcx, %rdx      # imm = 0x178
decq %rcx
addq %rsi, %rdx
addq $-0xd0, %rdx
movslq 0x114(%rdx), %rdi
movq 0x5c38(%rax), %rax
imulq $0x3700, %rdi, %rdi     # imm = 0x3700
movsd 0x3020(%rax,%rdi), %xmm0
movapd -0x40(%rbp), %xmm2
divsd %xmm0, %xmm2
movapd -0x50(%rbp), %xmm3
divsd %xmm0, %xmm3
movl 0x28(%r14), %edi
incl %edi
movq %rbx, -0x78(%rbp)
je 0x64b6e
movq 0x8(%rsi), %rax
movslq %edi, %rsi
imulq $0x66666667, %rsi, %rdi # imm = 0x66666667
movq %rdi, %r8
shrq $0x3f, %r8
sarq $0x22, %rdi
addl %r8d, %edi
addl %edi, %edi
leal (%rdi,%rdi,4), %edi
movl 0x14b90(%rax), %r8d
subl %esi, %edi
leal (%r8,%rdi), %esi
addl $0xa, %esi
movslq %esi, %rsi
imulq $0x66666667, %rsi, %rdi # imm = 0x66666667
movq %rdi, %r8
shrq $0x3f, %r8
sarq $0x22, %rdi
addl %r8d, %edi
addl %edi, %edi
leal (%rdi,%rdi,4), %edi
subl %edi, %esi
movslq %esi, %rsi
imulq $0x2128, %rsi, %rsi     # imm = 0x2128
addq %rax, %rsi
imulq $0x178, %rcx, %rax      # imm = 0x178
movsd 0x8(%rdx), %xmm0
movsd 0x10(%rdx), %xmm1
subsd 0xb0(%rsi,%rax), %xmm0
subsd 0xb8(%rsi,%rax), %xmm1
subsd %xmm0, %xmm2
subsd %xmm1, %xmm3
addsd -0x58(%rbp), %xmm2
movapd %xmm2, -0x40(%rbp)
addsd -0x30(%rbp), %xmm3
movapd %xmm3, -0x50(%rbp)
callq 0x43dce
movq 0x5c38(%rax), %rax
movq (%r14), %rcx
movq 0x8(%r14), %rbx
movslq 0x3c(%rcx,%r12,4), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3098(%rax,%rcx), %xmm0
movsd %xmm0, -0x30(%rbp)
movapd -0x50(%rbp), %xmm0
mulsd %xmm0, %xmm0
movapd -0x40(%rbp), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
sqrtsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
callq 0x43dce
movq 0x5c38(%rax), %rax
movslq 0x1bc(%rbx,%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
mulsd -0x30(%rbp), %xmm0
mulsd 0x59a3(%rip), %xmm0     # 0x6a5d0
movsd -0x58(%rbp), %xmm1
ucomisd %xmm0, %xmm1
movq 0x8(%r14), %r15
jbe 0x64ca4
cmpb $0x1, 0x21c(%r15,%r13)
jne 0x64ca4
addq %r13, %r15
addq $0xa8, %r15
movapd 0x43b7(%rip), %xmm0     # 0x69010
movapd -0x40(%rbp), %xmm1
movapd %xmm1, %xmm2
andpd %xmm0, %xmm2
movsd 0x43d2(%rip), %xmm3     # 0x69040
ucomisd %xmm2, %xmm3
movq -0x78(%rbp), %rbx
jbe 0x6518d
andpd -0x50(%rbp), %xmm0
ucomisd %xmm0, %xmm3
jbe 0x6518d
movl 0xb8(%r15), %eax
movsd 0xc0(%r15), %xmm4
xorpd %xmm0, %xmm0
jmp 0x6527c
callq 0x43dce
movq 0x5c38(%rax), %rax
movslq 0x1bc(%r15,%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
mulsd -0x30(%rbp), %xmm0
ucomisd -0x58(%rbp), %xmm0
movq -0x78(%rbp), %rbx
movapd -0x40(%rbp), %xmm1
jb 0x65295
movq 0x8(%r14), %rax
movb $0x1, 0x21c(%rax,%r13)
jmp 0x65295
movslq 0x14(%r14), %rax
movq 0x8(%r14), %rcx
imulq $0x178, %rax, %rax      # imm = 0x178
leaq (%rax,%rcx), %rdi
addq $-0xd0, %rdi
callq 0x59a22
addsd 0x10(%rbx), %xmm0
mulsd 0x4331(%rip), %xmm0     # 0x69050
divsd 0x4321(%rip), %xmm0     # 0x69048
leaq -0x70(%rbp), %r15
leaq -0x80(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x92d0
movsd (%r12), %xmm0
movsd -0x50(%rbp), %xmm1
mulsd %xmm1, %xmm0
mulsd (%r15), %xmm1
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
movslq 0x14(%r14), %rax
movq 0x8(%r14), %rcx
imulq $0x178, %rax, %rax      # imm = 0x178
addsd -0xc8(%rax,%rcx), %xmm0
addsd -0xc0(%rax,%rcx), %xmm1
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
leaq 0x10d0(%rcx,%r13), %rdi
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
leaq -0x70(%rbp), %rsi
callq 0xf572
callq 0x43dce
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x675e6
movslq 0x14(%r14), %rcx
movq 0x8(%r14), %rax
imulq $0x178, %rcx, %rcx      # imm = 0x178
addsd -0xa8(%rax,%rcx), %xmm0
movsd %xmm0, 0x10f8(%rax,%r13)
movq -0x40(%rbp), %r12
movl 0x28(%r14), %esi
movl %esi, %ecx
movq %rax, %rdi
incl %ecx
je 0x64e50
cmpl $0x9, %esi
jg 0x6564f
movq 0x8(%rax), %rdx
movslq %ecx, %rdi
imulq $0x66666667, %rdi, %r8  # imm = 0x66666667
movq %r8, %r9
shrq $0x3f, %r9
sarq $0x22, %r8
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
movl 0x14b90(%rdx), %r9d
subl %edi, %r8d
leal (%r9,%r8), %edi
addl $0xa, %edi
movslq %edi, %rdi
imulq $0x66666667, %rdi, %r8  # imm = 0x66666667
movq %r8, %r9
shrq $0x3f, %r9
sarq $0x22, %r8
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
subl %r8d, %edi
movslq %edi, %rdi
imulq $0x2128, %rdi, %rdi     # imm = 0x2128
addq %rdx, %rdi
movl 0x10e8(%rdi,%r13), %edx
movl $0x9, %edi
subl %esi, %edi
cmpl %edi, %edx
jge 0x6564f
leaq (%rax,%r13), %rsi
addq $0x10d8, %rsi           # imm = 0x10D8
movq %rax, %r8
addl %edx, %ecx
je 0x64edc
movq 0x8(%rax), %rdi
movslq %ecx, %rcx
imulq $0x66666667, %rcx, %r8  # imm = 0x66666667
movq %r8, %r9
shrq $0x3f, %r9
sarq $0x22, %r8
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
movl 0x14b90(%rdi), %r9d
subl %ecx, %r8d
leal (%r9,%r8), %ecx
addl $0xa, %ecx
movslq %ecx, %rcx
imulq $0x66666667, %rcx, %r8  # imm = 0x66666667
movq %r8, %r9
shrq $0x3f, %r9
sarq $0x22, %r8
addl %r9d, %r8d
addl %r8d, %r8d
leal (%r8,%r8,4), %r8d
subl %r8d, %ecx
movslq %ecx, %rcx
imulq $0x2128, %rcx, %r8      # imm = 0x2128
addq %rdi, %r8
movsd (%rsi), %xmm1
subsd 0x10d8(%r8,%r13), %xmm1
movsd 0x8(%rsi), %xmm4
subsd 0x10e0(%r8,%r13), %xmm4
movsd %xmm4, -0x68(%rbp)
incl %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, -0x30(%rbp)
movsd %xmm1, -0x70(%rbp)
movslq 0x14(%r14), %rcx
imulq $0x178, %rcx, %rcx      # imm = 0x178
movsd -0xa0(%rcx,%rax), %xmm2
movsd -0x98(%rcx,%rax), %xmm3
movq (%r14), %rax
cmpb $0x0, 0x1b2(%rax)
jne 0x64f54
cmpb $0x0, 0x1b1(%rax)
jne 0x64f54
cmpb $0x1, 0x1b0(%rax)
jne 0x65249
movsd 0x566c(%rip), %xmm1     # 0x6a5c8
divsd %xmm1, %xmm2
movapd %xmm2, -0x40(%rbp)
divsd %xmm1, %xmm3
movapd %xmm3, -0x50(%rbp)
divsd %xmm0, %xmm4
movsd %xmm4, -0x58(%rbp)
callq 0x43dce
movslq 0x14(%r14), %rcx
movq 0x8(%r14), %r15
imulq $0x178, %rcx, %rdx      # imm = 0x178
decq %rcx
addq %r15, %rdx
addq $-0xd0, %rdx
movslq 0x114(%rdx), %rsi
movq 0x5c38(%rax), %rax
imulq $0x3700, %rsi, %rsi     # imm = 0x3700
movsd 0x3020(%rax,%rsi), %xmm0
movapd -0x40(%rbp), %xmm2
divsd %xmm0, %xmm2
movapd -0x50(%rbp), %xmm3
divsd %xmm0, %xmm3
movl 0x28(%r14), %edi
movq %r15, %rsi
incl %edi
je 0x65030
movq 0x8(%r15), %rax
movslq %edi, %rsi
imulq $0x66666667, %rsi, %rdi # imm = 0x66666667
movq %rdi, %r8
shrq $0x3f, %r8
sarq $0x22, %rdi
addl %r8d, %edi
addl %edi, %edi
leal (%rdi,%rdi,4), %edi
movl 0x14b90(%rax), %r8d
subl %esi, %edi
leal (%r8,%rdi), %esi
addl $0xa, %esi
movslq %esi, %rsi
imulq $0x66666667, %rsi, %rdi # imm = 0x66666667
movq %rdi, %r8
shrq $0x3f, %r8
sarq $0x22, %rdi
addl %r8d, %edi
addl %edi, %edi
leal (%rdi,%rdi,4), %edi
subl %edi, %esi
movslq %esi, %rsi
imulq $0x2128, %rsi, %rsi     # imm = 0x2128
addq %rax, %rsi
imulq $0x178, %rcx, %rax      # imm = 0x178
movsd 0x8(%rdx), %xmm0
movsd 0x10(%rdx), %xmm1
subsd 0xb0(%rsi,%rax), %xmm0
subsd %xmm0, %xmm2
subsd 0xb8(%rsi,%rax), %xmm1
subsd %xmm1, %xmm3
addsd -0x30(%rbp), %xmm2
addsd -0x58(%rbp), %xmm3
movsd 0x1130(%r15,%r13), %xmm0
movsd %xmm0, -0x30(%rbp)
movapd %xmm3, -0x50(%rbp)
movapd %xmm3, %xmm0
mulsd %xmm3, %xmm0
movapd %xmm2, -0x40(%rbp)
movapd %xmm2, %xmm1
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
sqrtsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
callq 0x43dce
movq 0x5c38(%rax), %rax
movslq 0x11e4(%r15,%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
mulsd -0x30(%rbp), %xmm0
mulsd 0x5501(%rip), %xmm0     # 0x6a5d0
movsd -0x58(%rbp), %xmm1
ucomisd %xmm0, %xmm1
movq 0x8(%r14), %r15
jbe 0x65142
cmpb $0x1, 0x1244(%r15,%r13)
jne 0x65142
addq %r13, %r15
addq $0x10d0, %r15           # imm = 0x10D0
movapd 0x3f15(%rip), %xmm0     # 0x69010
movapd -0x40(%rbp), %xmm1
movapd %xmm1, %xmm2
andpd %xmm0, %xmm2
movsd 0x3f30(%rip), %xmm3     # 0x69040
ucomisd %xmm2, %xmm3
jbe 0x651e6
andpd -0x50(%rbp), %xmm0
ucomisd %xmm0, %xmm3
jbe 0x651e6
movl 0xb8(%r15), %eax
movsd 0xc0(%r15), %xmm4
xorpd %xmm0, %xmm0
jmp 0x65524
callq 0x43dce
movq 0x5c38(%rax), %rax
movslq 0x11e4(%r15,%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
mulsd -0x30(%rbp), %xmm0
ucomisd -0x58(%rbp), %xmm0
movapd -0x40(%rbp), %xmm1
jb 0x6553d
movq 0x8(%r14), %rax
movb $0x1, 0x1244(%rax,%r13)
jmp 0x6553d
movapd -0x50(%rbp), %xmm0
callq 0x90d0
mulsd 0x3ea9(%rip), %xmm0     # 0x69048
divsd 0x3ea9(%rip), %xmm0     # 0x69050
movq 0x8(%r14), %rcx
movl 0x160(%rcx,%r13), %eax
movsd 0x168(%rcx,%r13), %xmm4
movsd 0x3e9b(%rip), %xmm2     # 0x69060
ucomisd %xmm0, %xmm2
jbe 0x65253
movsd 0x3e99(%rip), %xmm3     # 0x69070
addsd %xmm3, %xmm0
ucomisd %xmm0, %xmm2
ja 0x651d7
jmp 0x65277
movapd -0x50(%rbp), %xmm0
callq 0x90d0
mulsd 0x3e50(%rip), %xmm0     # 0x69048
divsd 0x3e50(%rip), %xmm0     # 0x69050
movq 0x8(%r14), %rcx
movl 0x1188(%rcx,%r13), %eax
movsd 0x1190(%rcx,%r13), %xmm4
movsd 0x3e42(%rip), %xmm2     # 0x69060
ucomisd %xmm0, %xmm2
jbe 0x654fb
movsd 0x3e40(%rip), %xmm3     # 0x69070
addsd %xmm3, %xmm0
ucomisd %xmm0, %xmm2
ja 0x65230
jmp 0x6551f
movapd %xmm0, -0x40(%rbp)
jmp 0x64a9d
movapd %xmm2, -0x40(%rbp)
jmp 0x64f69
ucomisd 0x3ded(%rip), %xmm0     # 0x69048
jb 0x65277
movsd 0x3e03(%rip), %xmm2     # 0x69068
movsd 0x3ddb(%rip), %xmm3     # 0x69048
addsd %xmm2, %xmm0
ucomisd %xmm3, %xmm0
jae 0x6526d
movapd -0x40(%rbp), %xmm1
movsd %xmm0, 0xb0(%r15)
movl %eax, 0xb8(%r15)
movsd %xmm4, 0xc0(%r15)
movsd -0x58(%rbp), %xmm0
ucomisd -0x30(%rbp), %xmm0
jbe 0x6533a
movq %r12, %rbx
movapd 0x3d60(%rip), %xmm3     # 0x69010
movapd %xmm1, %xmm0
andpd %xmm3, %xmm0
movsd 0x3d80(%rip), %xmm2     # 0x69040
ucomisd %xmm0, %xmm2
jbe 0x652d5
andpd -0x50(%rbp), %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm3, %xmm2
ja 0x652f7
movapd -0x50(%rbp), %xmm0
callq 0x90d0
mulsd 0x3d61(%rip), %xmm0     # 0x69048
movsd 0x3d61(%rip), %xmm1     # 0x69050
divsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
divsd 0x3d49(%rip), %xmm0     # 0x69048
leaq -0x80(%rbp), %r15
leaq -0x90(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x92d0
movsd (%r12), %xmm1
movsd -0x30(%rbp), %xmm0
mulsd %xmm0, %xmm1
movapd %xmm1, -0x40(%rbp)
mulsd (%r15), %xmm0
movapd %xmm0, -0x50(%rbp)
movq %rbx, %r12
movq -0x78(%rbp), %rbx
callq 0x43dce
movq (%r14), %rcx
movq 0x5c38(%rax), %rax
movslq 0x3c(%rcx,%r12,4), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
movapd -0x40(%rbp), %xmm1
mulsd %xmm0, %xmm1
leaq -0x70(%rbp), %rsi
movsd %xmm1, (%rsi)
movapd -0x50(%rbp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsi)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0xa8, %rdi
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xf53c
movq 0x8(%r14), %rax
movl $0x0, 0x1cc(%rax,%r13)
cmpb $0x1, 0x40(%rbx)
jne 0x657a0
movq (%r14), %rcx
movl 0x4c(%rbx), %edx
movl 0x18(%rcx), %esi
cmpl %esi, %edx
jne 0x6542b
movl 0x14(%rcx), %edi
cmpl %edi, 0x48(%rbx)
jne 0x6542b
leaq (%rax,%r13), %r15
addq $0xa8, %r15
cmpb $0x1, 0x44(%rbx)
jne 0x6542f
cmpl $0x0, 0xc8(%r15)
jne 0x653fd
callq 0x49360
movl 0x3320(%rax), %eax
decl %eax
movl %eax, 0xc8(%r15)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0xa8, %rdi
xorpd %xmm0, %xmm0
leaq -0x70(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xf53c
movq (%r14), %rcx
movl 0x18(%rcx), %edx
jmp 0x6543a
movl %esi, %edx
jmp 0x6543a
movl $0x0, 0xc8(%r15)
cmpl %edx, 0x64(%rbx)
jne 0x654ab
movl 0x14(%rcx), %eax
cmpl %eax, 0x60(%rbx)
jne 0x654ab
movq 0x8(%r14), %rax
leaq (%rax,%r13), %r15
addq $0x1cc, %r15            # imm = 0x1CC
cmpb $0x1, 0x5c(%rbx)
jne 0x654a4
cmpl $0x0, (%r15)
jne 0x65476
callq 0x49360
movl 0x33e8(%rax), %eax
decl %eax
movl %eax, (%r15)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0xa8, %rdi
xorpd %xmm0, %xmm0
leaq -0x70(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xf53c
movq (%r14), %rcx
movl 0x18(%rcx), %edx
jmp 0x654ab
movl $0x0, (%r15)
movq 0x8(%r14), %rax
cmpl %edx, 0x58(%rbx)
jne 0x654c7
movl 0x14(%rcx), %edx
cmpl %edx, 0x54(%rbx)
jne 0x654c7
movb 0x50(%rbx), %dl
movb %dl, 0x1b9(%rax,%r13)
movl 0xc0(%rcx,%r12,4), %ecx
movl 0x218(%rax,%r13), %edx
testl %edx, %edx
je 0x654ed
cmpl $0x2, %ecx
jne 0x657a0
cmpl $0x1, %edx
jne 0x657a0
addq %r13, %rax
addq $0x218, %rax            # imm = 0x218
jmp 0x6579e
ucomisd 0x3b45(%rip), %xmm0     # 0x69048
jb 0x6551f
movsd 0x3b5b(%rip), %xmm2     # 0x69068
movsd 0x3b33(%rip), %xmm3     # 0x69048
addsd %xmm2, %xmm0
ucomisd %xmm3, %xmm0
jae 0x65515
movapd -0x40(%rbp), %xmm1
movsd %xmm0, 0xb0(%r15)
movl %eax, 0xb8(%r15)
movsd %xmm4, 0xc0(%r15)
movq %rbx, -0x78(%rbp)
movsd -0x58(%rbp), %xmm0
ucomisd -0x30(%rbp), %xmm0
jbe 0x655e2
movq %r12, %rbx
movapd 0x3ab4(%rip), %xmm3     # 0x69010
movapd %xmm1, %xmm0
andpd %xmm3, %xmm0
movsd 0x3ad4(%rip), %xmm2     # 0x69040
ucomisd %xmm0, %xmm2
jbe 0x65581
andpd -0x50(%rbp), %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm3, %xmm2
ja 0x655a3
movapd -0x50(%rbp), %xmm0
callq 0x90d0
mulsd 0x3ab5(%rip), %xmm0     # 0x69048
movsd 0x3ab5(%rip), %xmm1     # 0x69050
divsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
divsd 0x3a9d(%rip), %xmm0     # 0x69048
leaq -0x80(%rbp), %r15
leaq -0x90(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x92d0
movsd (%r12), %xmm1
movsd -0x30(%rbp), %xmm0
mulsd %xmm0, %xmm1
movapd %xmm1, -0x40(%rbp)
mulsd (%r15), %xmm0
movapd %xmm0, -0x50(%rbp)
movq %rbx, %r12
movq 0x8(%r14), %rbx
callq 0x43dce
movq 0x5c38(%rax), %rax
movslq 0x11e4(%rbx,%r13), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
movapd -0x40(%rbp), %xmm1
mulsd %xmm0, %xmm1
leaq -0x70(%rbp), %rsi
movsd %xmm1, (%rsi)
movapd -0x50(%rbp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsi)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0x10d0, %rdi           # imm = 0x10D0
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xf53c
movq 0x8(%r14), %rax
movq -0x78(%rbp), %rbx
movl $0x0, 0x11f4(%rax,%r13)
cmpb $0x1, 0x40(%rbx)
jne 0x657a0
movq (%r14), %rcx
movl 0x4c(%rbx), %edx
movl 0x18(%rcx), %esi
cmpl %esi, %edx
jne 0x656db
movl 0x14(%rcx), %edi
cmpl %edi, 0x48(%rbx)
jne 0x656db
leaq (%rax,%r13), %r15
addq $0x10d0, %r15           # imm = 0x10D0
cmpb $0x1, 0x44(%rbx)
jne 0x656df
cmpl $0x0, 0xc8(%r15)
jne 0x656ad
callq 0x49360
movl 0x3320(%rax), %eax
decl %eax
movl %eax, 0xc8(%r15)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0x10d0, %rdi           # imm = 0x10D0
xorpd %xmm0, %xmm0
leaq -0x70(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xf53c
movq (%r14), %rcx
movl 0x18(%rcx), %edx
jmp 0x656ea
movl %esi, %edx
jmp 0x656ea
movl $0x0, 0xc8(%r15)
cmpl %edx, 0x64(%rbx)
jne 0x6575b
movl 0x14(%rcx), %eax
cmpl %eax, 0x60(%rbx)
jne 0x6575b
movq 0x8(%r14), %rax
leaq (%rax,%r13), %r15
addq $0x11f4, %r15           # imm = 0x11F4
cmpb $0x1, 0x5c(%rbx)
jne 0x65754
cmpl $0x0, (%r15)
jne 0x65726
callq 0x49360
movl 0x33e8(%rax), %eax
decl %eax
movl %eax, (%r15)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0x10d0, %rdi           # imm = 0x10D0
xorpd %xmm0, %xmm0
leaq -0x70(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xf53c
movq (%r14), %rcx
movl 0x18(%rcx), %edx
jmp 0x6575b
movl $0x0, (%r15)
movq 0x8(%r14), %rax
cmpl %edx, 0x58(%rbx)
jne 0x65777
movl 0x14(%rcx), %edx
cmpl %edx, 0x54(%rbx)
jne 0x65777
movb 0x50(%rbx), %dl
movb %dl, 0x11e1(%rax,%r13)
movl 0xec(%rcx,%r12,4), %ecx
movl 0x1240(%rax,%r13), %edx
testl %edx, %edx
je 0x65795
cmpl $0x2, %ecx
jne 0x657a0
cmpl $0x1, %edx
jne 0x657a0
addq %r13, %rax
addq $0x1240, %rax           # imm = 0x1240
movl %ecx, (%rax)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop