// File: /workspace/github_cpp_makefile_star2_O2/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 %rdi, %r14
movq 0x8(%rdi), %r15
decl %edx
movslq %edx, %r13
testl %ecx, %ecx
movq %rsi, -0x40(%rbp)
je 0x5367d
imulq $0x178, %r13, %rax      # imm = 0x178
movb $0x1, 0x1ba(%r15,%rax)
movq %rax, -0x38(%rbp)
andl $0x0, 0x118(%r15,%rax)
movq (%r14), %rax
movl 0x1c(%rsi), %ecx
cmpl 0x18(%rax), %ecx
movq %r13, -0x60(%rbp)
jne 0x5341d
movl 0x14(%rax), %eax
cmpl %eax, 0x18(%rsi)
jne 0x5341d
callq 0x38d94
movq -0x40(%rbp), %rbx
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x5584e
leaq -0x78(%rbp), %r15
movsd %xmm0, (%r15)
movl 0x28(%r14), %esi
movq %r14, %rdi
callq 0x5593e
addsd 0x10(%rbx), %xmm0
leaq -0x80(%rbp), %rsi
movsd %xmm0, (%rsi)
movq %r15, %rdi
callq 0xd15b
leaq -0x50(%rbp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
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, (%rsi)
movsd %xmm1, 0x8(%rsi)
movq %r14, %r12
movq -0x38(%rbp), %r14
leaq (%rcx,%r14), %rdi
addq $0xa8, %rdi
movl 0x28(%r12), %edx
movsd 0x18(%r12), %xmm0
callq 0xde1c
callq 0x38d94
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x55720
movslq 0x14(%r12), %rax
movq 0x8(%r12), %r15
imulq $0x178, %rax, %rax      # imm = 0x178
addsd -0xa8(%rax,%r15), %xmm0
movsd %xmm0, 0xd0(%r15,%r14)
movq %r12, %r14
movl 0x28(%r14), %r12d
leal 0x1(%r12), %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x4c81e
testq %rax, %rax
je 0x5399a
movq %r14, -0x68(%rbp)
movq -0x38(%rbp), %r14
movl 0xc0(%rax,%r14), %ebx
pushq $0x9
popq %rax
subl %r12d, %eax
cmpl %eax, %ebx
jge 0x539ab
addl %ebx, %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x4c81e
movsd 0xb0(%r15,%r14), %xmm2
subsd 0xb0(%rax,%r14), %xmm2
movsd 0xb8(%r15,%r14), %xmm1
subsd 0xb8(%rax,%r14), %xmm1
incl %ebx
cvtsi2sd %ebx, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, -0x88(%rbp)
divsd %xmm0, %xmm1
movsd %xmm1, -0x70(%rbp)
movq -0x68(%rbp), %rbx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x559b8
movq (%rbx), %rax
cmpb $0x0, 0x1b2(%rax)
movq %r14, %r13
jne 0x534dd
cmpb $0x0, 0x1b1(%rax)
jne 0x534dd
cmpb $0x1, 0x1b0(%rax)
jne 0x53e51
movsd 0x50b3(%rip), %xmm2     # 0x58598
divsd %xmm2, %xmm0
movsd %xmm0, -0x30(%rbp)
divsd %xmm2, %xmm1
movsd %xmm1, -0x58(%rbp)
movq -0x60(%rbp), %r12
callq 0x38d94
movq -0x68(%rbp), %r14
movslq 0x14(%r14), %rcx
movq 0x8(%r14), %r15
imulq $0x178, %rcx, %rbx      # imm = 0x178
movslq 0x44(%r15,%rbx), %rcx
movq 0x5c38(%rax), %rax
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
movsd -0x30(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, -0x30(%rbp)
movsd -0x58(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, -0x58(%rbp)
movl 0x28(%r14), %esi
incl %esi
movq %r15, %rdi
callq 0x4c81e
movsd -0xc8(%r15,%rbx), %xmm0
movsd -0xc0(%r15,%rbx), %xmm1
subsd -0xc8(%rax,%rbx), %xmm0
movsd -0x30(%rbp), %xmm2
subsd %xmm0, %xmm2
addsd -0x88(%rbp), %xmm2
movsd %xmm2, -0x30(%rbp)
subsd -0xc0(%rax,%rbx), %xmm1
movsd -0x58(%rbp), %xmm0
subsd %xmm1, %xmm0
addsd -0x70(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd %xmm2, -0x50(%rbp)
movsd %xmm0, -0x48(%rbp)
callq 0x38d94
movq (%r14), %rcx
movq 0x5c38(%rax), %rax
movslq 0x3c(%rcx,%r12,4), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3098(%rax,%rcx), %xmm0
movsd %xmm0, -0x70(%rbp)
movsd %xmm0, -0x78(%rbp)
movsd -0x58(%rbp), %xmm1
mulsd %xmm1, %xmm1
movsd -0x30(%rbp), %xmm0
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0xa8, %rdi
callq 0xd344
movsd (%rax), %xmm0
mulsd -0x70(%rbp), %xmm0
mulsd 0x4f7c(%rip), %xmm0     # 0x585a0
movsd -0x30(%rbp), %xmm1
ucomisd %xmm0, %xmm1
movq 0x8(%r14), %rax
jbe 0x539d3
cmpb $0x1, 0x21c(%rax,%r13)
jne 0x539d3
leaq (%rax,%r13), %r15
addq $0xa8, %r15
leaq -0x50(%rbp), %rdi
callq 0xcd30
movq 0x8(%r14), %rax
movl 0x160(%rax,%r13), %esi
movsd 0x168(%rax,%r13), %xmm1
movq %r15, %rdi
callq 0x382a6
jmp 0x53a00
imulq $0x178, %r13, %r12      # imm = 0x178
movb $0x1, 0x11e2(%r15,%r12)
andl $0x0, 0x1140(%r15,%r12)
movq (%r14), %rax
movl 0x1c(%rsi), %ecx
cmpl 0x18(%rax), %ecx
jne 0x53775
movl 0x14(%rax), %eax
cmpl %eax, 0x18(%rsi)
jne 0x53775
callq 0x38d94
movq -0x40(%rbp), %rbx
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x5584e
leaq -0x78(%rbp), %r15
movsd %xmm0, (%r15)
movl 0x28(%r14), %esi
movq %r14, %rdi
callq 0x5593e
addsd 0x10(%rbx), %xmm0
leaq -0x80(%rbp), %rsi
movsd %xmm0, (%rsi)
movq %r15, %rdi
callq 0xd15b
leaq -0x50(%rbp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
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, (%rsi)
movsd %xmm1, 0x8(%rsi)
leaq (%rcx,%r12), %rdi
addq $0x10d0, %rdi           # imm = 0x10D0
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xde1c
callq 0x38d94
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x55720
movslq 0x14(%r14), %rax
movq 0x8(%r14), %r15
imulq $0x178, %rax, %rax      # imm = 0x178
addsd -0xa8(%r15,%rax), %xmm0
movsd %xmm0, 0x10f8(%r15,%r12)
movq %r14, %rax
movq %r12, %r14
movq %rax, -0x68(%rbp)
movl 0x28(%rax), %ebx
leal 0x1(%rbx), %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x4c81e
testq %rax, %rax
je 0x539c3
movq %r13, -0x60(%rbp)
movl 0x10e8(%rax,%r14), %r13d
pushq $0x9
popq %rax
subl %ebx, %eax
cmpl %eax, %r13d
jge 0x539bf
addl %r13d, %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x4c81e
movsd 0x10d8(%r15,%r14), %xmm1
subsd 0x10d8(%rax,%r14), %xmm1
movsd 0x10e0(%r15,%r14), %xmm2
subsd 0x10e0(%rax,%r14), %xmm2
incl %r13d
cvtsi2sd %r13d, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, -0x58(%rbp)
divsd %xmm0, %xmm2
movsd %xmm2, -0x70(%rbp)
movq -0x68(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x559b8
movq (%rbx), %rax
cmpb $0x0, 0x1b2(%rax)
movq %r14, %r12
jne 0x53837
cmpb $0x0, 0x1b1(%rax)
jne 0x53837
cmpb $0x1, 0x1b0(%rax)
jne 0x53e64
movsd 0x4d59(%rip), %xmm2     # 0x58598
divsd %xmm2, %xmm0
movsd %xmm0, -0x38(%rbp)
divsd %xmm2, %xmm1
movsd %xmm1, -0x30(%rbp)
movq -0x60(%rbp), %r13
callq 0x38d94
movq -0x68(%rbp), %r14
movslq 0x14(%r14), %rcx
movq 0x8(%r14), %r15
imulq $0x178, %rcx, %rbx      # imm = 0x178
movslq 0x44(%r15,%rbx), %rcx
movq 0x5c38(%rax), %rax
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
movsd -0x38(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, -0x38(%rbp)
movsd -0x30(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, -0x30(%rbp)
movl 0x28(%r14), %esi
incl %esi
movq %r15, %rdi
callq 0x4c81e
movsd -0xc8(%r15,%rbx), %xmm0
subsd -0xc8(%rax,%rbx), %xmm0
movsd -0xc0(%r15,%rbx), %xmm1
movsd -0x38(%rbp), %xmm2
subsd %xmm0, %xmm2
subsd -0xc0(%rax,%rbx), %xmm1
addsd -0x58(%rbp), %xmm2
movsd -0x30(%rbp), %xmm0
subsd %xmm1, %xmm0
addsd -0x70(%rbp), %xmm0
movsd %xmm2, -0x50(%rbp)
movsd %xmm0, -0x48(%rbp)
leaq 0x10d0(%r15,%r12), %rdi
movsd 0x60(%rdi), %xmm1
movsd %xmm1, -0x38(%rbp)
movsd %xmm1, -0x78(%rbp)
mulsd %xmm0, %xmm0
mulsd %xmm2, %xmm2
addsd %xmm0, %xmm2
sqrtsd %xmm2, %xmm0
movsd %xmm0, -0x30(%rbp)
callq 0xd344
movsd (%rax), %xmm0
mulsd -0x38(%rbp), %xmm0
mulsd 0x4c5f(%rip), %xmm0     # 0x585a0
movsd -0x30(%rbp), %xmm1
ucomisd %xmm0, %xmm1
movq 0x8(%r14), %rax
jbe 0x53b4b
cmpb $0x1, 0x1244(%rax,%r12)
jne 0x53b4b
leaq (%rax,%r12), %r15
addq $0x10d0, %r15           # imm = 0x10D0
leaq -0x50(%rbp), %rdi
callq 0xcd30
movq 0x8(%r14), %rax
movl 0x1188(%rax,%r12), %esi
movsd 0x1190(%rax,%r12), %xmm1
movq %r15, %rdi
callq 0x382a6
jmp 0x53b78
movq -0x60(%rbp), %r12
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %r13
jmp 0x53ab2
movq -0x60(%rbp), %r12
movq -0x40(%rbp), %rdi
movq %r14, %r13
movq -0x68(%rbp), %r14
jmp 0x53ab2
movq -0x60(%rbp), %r13
movq -0x40(%rbp), %rdi
movq %r14, %r12
movq -0x68(%rbp), %r14
jmp 0x53c14
leaq (%rax,%r13), %rdi
addq $0xa8, %rdi
callq 0xd344
movsd (%rax), %xmm0
mulsd -0x70(%rbp), %xmm0
ucomisd -0x30(%rbp), %xmm0
jb 0x53a00
movq 0x8(%r14), %rax
movb $0x1, 0x21c(%rax,%r13)
movsd -0x50(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
ucomisd -0x70(%rbp), %xmm0
jbe 0x53a49
leaq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0xcd30
leaq -0x80(%rbp), %rsi
movsd %xmm0, (%rsi)
leaq -0x78(%rbp), %rdi
callq 0xd15b
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
callq 0x38d94
movq (%r14), %rcx
movq 0x5c38(%rax), %rax
movslq 0x3c(%rcx,%r12,4), %rcx
imulq $0x3700, %rcx, %rcx     # imm = 0x3700
movsd 0x3020(%rax,%rcx), %xmm0
leaq -0x50(%rbp), %rsi
mulsd (%rsi), %xmm0
movsd %xmm0, (%rsi)
movsd 0x3020(%rax,%rcx), %xmm0
mulsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x8(%rsi)
movq 0x8(%r14), %rax
leaq (%rax,%r13), %rdi
addq $0xa8, %rdi
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xdde8
movq 0x8(%r14), %r15
movq -0x40(%rbp), %rdi
andl $0x0, 0x1cc(%r15,%r13)
cmpb $0x1, 0x40(%rdi)
jne 0x53e42
movq (%r14), %rax
movl 0x4c(%rdi), %ecx
movl 0x18(%rax), %edx
cmpl %edx, %ecx
jne 0x53b44
movl 0x14(%rax), %esi
cmpl %esi, 0x48(%rdi)
jne 0x53b44
leaq (%r15,%r13), %rbx
addq $0xa8, %rbx
cmpb $0x1, 0x44(%rdi)
jne 0x53cad
cmpl $0x0, 0xc8(%rbx)
jne 0x53b0f
callq 0x3db2c
movl 0x3320(%rax), %eax
decl %eax
movl %eax, 0xc8(%rbx)
movq 0x8(%r14), %r15
leaq (%r15,%r13), %rdi
addq $0xa8, %rdi
xorpd %xmm0, %xmm0
leaq -0x50(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xdde8
movq (%r14), %rax
movl 0x18(%rax), %ecx
movq -0x40(%rbp), %rdi
jmp 0x53cb4
movl %edx, %ecx
jmp 0x53cb4
leaq (%rax,%r12), %rdi
addq $0x10d0, %rdi           # imm = 0x10D0
callq 0xd344
movsd (%rax), %xmm0
mulsd -0x38(%rbp), %xmm0
ucomisd -0x30(%rbp), %xmm0
jb 0x53b78
movq 0x8(%r14), %rax
movb $0x1, 0x1244(%rax,%r12)
movsd -0x50(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
ucomisd -0x38(%rbp), %xmm0
jbe 0x53bc1
leaq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0xcd30
leaq -0x80(%rbp), %rsi
movsd %xmm0, (%rsi)
leaq -0x78(%rbp), %rdi
callq 0xd15b
movsd %xmm0, (%r15)
movsd %xmm1, 0x8(%r15)
movq 0x8(%r14), %rdi
addq %r12, %rdi
movl $0x10d0, %ebx           # imm = 0x10D0
addq %rbx, %rdi
callq 0xd344
movsd (%rax), %xmm0
leaq -0x50(%rbp), %rsi
mulsd (%rsi), %xmm0
movsd %xmm0, (%rsi)
movsd (%rax), %xmm0
mulsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x8(%rsi)
movq 0x8(%r14), %rdi
addq %r12, %rdi
addq %rbx, %rdi
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xdde8
movq 0x8(%r14), %r15
movq -0x40(%rbp), %rdi
andl $0x0, 0x11f4(%r15,%r12)
cmpb $0x1, 0x40(%rdi)
jne 0x53e42
movq (%r14), %rax
movl 0x4c(%rdi), %ecx
movl 0x18(%rax), %edx
cmpl %edx, %ecx
jne 0x53ca6
movl 0x14(%rax), %esi
cmpl %esi, 0x48(%rdi)
jne 0x53ca6
leaq (%r15,%r12), %rbx
addq $0x10d0, %rbx           # imm = 0x10D0
cmpb $0x1, 0x44(%rdi)
jne 0x53d2f
cmpl $0x0, 0xc8(%rbx)
jne 0x53c71
callq 0x3db2c
movl 0x3320(%rax), %eax
decl %eax
movl %eax, 0xc8(%rbx)
movq 0x8(%r14), %r15
leaq (%r15,%r12), %rdi
addq $0x10d0, %rdi           # imm = 0x10D0
xorpd %xmm0, %xmm0
leaq -0x50(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xdde8
movq (%r14), %rax
movl 0x18(%rax), %ecx
movq -0x40(%rbp), %rdi
jmp 0x53d36
movl %edx, %ecx
jmp 0x53d36
andl $0x0, 0xc8(%rbx)
cmpl %ecx, 0x64(%rdi)
jne 0x53db1
movl 0x14(%rax), %edx
cmpl %edx, 0x60(%rdi)
jne 0x53db1
movq 0x8(%r14), %rdx
leaq (%rdx,%r13), %rbx
addq $0x1cc, %rbx            # imm = 0x1CC
cmpb $0x1, 0x5c(%rdi)
jne 0x53dae
cmpl $0x0, (%rbx)
jne 0x53cfa
callq 0x3db2c
movl 0x33e8(%rax), %eax
decl %eax
movl %eax, (%rbx)
movq 0x8(%r14), %rdx
leaq (%rdx,%r13), %rdi
addq $0xa8, %rdi
xorpd %xmm0, %xmm0
leaq -0x50(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xdde8
movq (%r14), %rax
movl 0x18(%rax), %ecx
movq -0x40(%rbp), %rdi
jmp 0x53db1
andl $0x0, 0xc8(%rbx)
cmpl %ecx, 0x64(%rdi)
jne 0x53dfb
movl 0x14(%rax), %edx
cmpl %edx, 0x60(%rdi)
jne 0x53dfb
movq 0x8(%r14), %rdx
leaq (%rdx,%r12), %rbx
addq $0x11f4, %rbx           # imm = 0x11F4
cmpb $0x1, 0x5c(%rdi)
jne 0x53df8
cmpl $0x0, (%rbx)
jne 0x53d7c
callq 0x3db2c
movl 0x33e8(%rax), %eax
decl %eax
movl %eax, (%rbx)
movq 0x8(%r14), %rdx
leaq (%rdx,%r12), %rdi
addq $0x10d0, %rdi           # imm = 0x10D0
xorpd %xmm0, %xmm0
leaq -0x50(%rbp), %rsi
movapd %xmm0, (%rsi)
movl 0x28(%r14), %edx
movsd 0x18(%r14), %xmm0
callq 0xdde8
movq (%r14), %rax
movl 0x18(%rax), %ecx
movq -0x40(%rbp), %rdi
jmp 0x53dfb
andl $0x0, (%rbx)
movq 0x8(%r14), %rdx
cmpl %ecx, 0x58(%rdi)
jne 0x53dcd
movl 0x14(%rax), %ecx
cmpl %ecx, 0x54(%rdi)
jne 0x53dcd
movb 0x50(%rdi), %cl
movb %cl, 0x1b9(%rdx,%r13)
movl 0xc0(%rax,%r12,4), %eax
movl 0x218(%rdx,%r13), %ecx
testl %ecx, %ecx
je 0x53deb
cmpl $0x2, %eax
jne 0x53e42
cmpl $0x1, %ecx
jne 0x53e42
leaq (%rdx,%r13), %rcx
addq $0x218, %rcx            # imm = 0x218
jmp 0x53e40
andl $0x0, (%rbx)
movq 0x8(%r14), %rdx
cmpl %ecx, 0x58(%rdi)
jne 0x53e17
movl 0x14(%rax), %ecx
cmpl %ecx, 0x54(%rdi)
jne 0x53e17
movb 0x50(%rdi), %cl
movb %cl, 0x11e1(%rdx,%r12)
movl 0xec(%rax,%r13,4), %eax
movl 0x1240(%rdx,%r12), %ecx
testl %ecx, %ecx
je 0x53e35
cmpl $0x2, %eax
jne 0x53e42
cmpl $0x1, %ecx
jne 0x53e42
leaq (%rdx,%r12), %rcx
addq $0x1240, %rcx           # imm = 0x1240
movl %eax, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x60(%rbp), %r12
movsd %xmm0, -0x30(%rbp)
movsd %xmm1, -0x58(%rbp)
jmp 0x534fb
movq -0x60(%rbp), %r13
movsd %xmm0, -0x38(%rbp)
movsd %xmm1, -0x30(%rbp)
jmp 0x53855
nop