// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/WorldState.cpp
// Function: WorldStateUpdater::UpdateSpecificPlayer(PlayerObserver const&, int, bool)
void WorldStateUpdater::UpdateSpecificPlayer(const PlayerObserver &player,
                                             Unum unum, bool is_teammate) {
  //根据底层的parser类的信息
  //更新的有：位置，速度，身体角度，头部角度，手指向，是否铲球
  //原则是：只有结果是最新时才更新

  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 (player.GetDirChg().time() == mpObserver->LatestSightTime()) {
      //公式：relPos = polar2vector(1.0, ballAngle)
      Vector vec = Polar2Vector(1.0, player.Dir());
      double distChg = player.DistChg();
      double dirChg = player.DirChg();
      double dist = player.Dist();
      //计算公式见USTC_Material 第七章
      //公式：relVel = (distChg * relPos.x() - (dirChg * PI / 180 * ballDist *
      //relPos.y()),distChg * rpos.y() + (dirChg * PI / 180 * ballDist *
      //relPos.x())
      Vector relvel =
          Vector(distChg * vec.X() - (dirChg * M_PI / 180 * dist * vec.Y()),
                 distChg * vec.Y() + (dirChg * M_PI / 180 * dist * vec.X()));
      //公式：ballVel = playerVel() + relVel.rotate(neckGlobalAngle)
      relvel = GetSelfVelFromSightDelay(mSightDelay) +
               relvel.Rotate(GetNeckGlobalDirFromSightDelay(mSightDelay));
      Teammate(unum).UpdateVel(relvel, mSightDelay, mPlayerConf);
    } else if (player.GetDir().time() ==
               mpObserver->LatestSightTime()) //只看到位置但是看不到速度的情况
    {
      //	if (player.Dist() < ServerParam::instance().visibleDistance() *
      //2)

      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" << Teammate(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" <<
          //Teammate(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);
        }
      }
    }

    //身体角度
    if (player.GetBodyDir().time() == mpObserver->LatestSightTime()) {
      AngleDeg angle = player.BodyDir();
      angle = angle + GetNeckGlobalDirFromSightDelay(mSightDelay);
      Teammate(unum).UpdateBodyDir(angle, mSightDelay, mPlayerConf);
      Teammate(unum).UpdateBodyDirMayChanged(false);
    }

    //头部角度
    if (player.GetHeadDir().time() == mpObserver->LatestSightTime()) {
      AngleDeg angle = player.HeadDir() - player.BodyDir();
      Teammate(unum).UpdateNeckDir(angle, mSightDelay, mPlayerConf);
    }

    //手指向
    if (player.GetIsPointing().time() == mpObserver->LatestSightTime()) {
      if (player.IsPointing()) {
        Teammate(unum).UpdateArmPoint(
            player.PointDir() + GetNeckGlobalDirFromSightDelay(mSightDelay),
            mSightDelay, mPlayerConf);
        Teammate(unum).SetIsPointing(true);
      } else {
        Teammate(unum).SetIsPointing(false);
      }
    }

    //是否铲球
    if (player.GetIsTackling().time() == mpObserver->LatestSightTime()) {
      if (player.IsTackling()) {
        if (Teammate(unum).GetTackleBan() == 0) {
          Teammate(unum).UpdateTackleBan(
              ServerParam::instance().tackleCycles() - 1);
        }
        // tacle速度一定为零
        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);
      }
    }

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

    //是否上周期踢过球
    if (player.GetIsKicked().time() == mpObserver->LatestSightTime()) {
      Teammate(unum).UpdateKicked(player.IsKicked());
    }
  } 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 (player.GetDirChg().time() == mpObserver->LatestSightTime()) {
      //公式：relPos = polar2vector(1.0, ballAngle)
      Vector vec = Polar2Vector(1.0, player.Dir());
      double distChg = player.DistChg();
      double dirChg = player.DirChg();
      double dist = player.Dist();
      //计算公式见USTC_Material 第七章
      //公式：relVel = (distChg * relPos.x() - (dirChg * PI / 180 * ballDist *
      //relPos.y()),distChg * rpos.y() + (dirChg * PI / 180 * ballDist *
      //relPos.x())
      Vector relvel =
          Vector(distChg * vec.X() - (dirChg * M_PI / 180 * dist * vec.Y()),
                 distChg * vec.Y() + (dirChg * M_PI / 180 * dist * vec.X()));

      //公式：ballVel = playerVel() + relVel.rotate(neckGlobalAngle)
      relvel = GetSelfVelFromSightDelay(mSightDelay) +
               relvel.Rotate(GetNeckGlobalDirFromSightDelay(mSightDelay));
      Opponent(unum).UpdateVel(relvel, mSightDelay, mPlayerConf);
    } else if (player.GetDir().time() ==
               mpObserver
                   ->LatestSightTime()) //只看到球的位置但是看不到速度的情况
    {
      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" << Opponent(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"
          //<< Opponent(unum).GetBodyDir() << "\n";
          if (vel.Mod() > max_speed) {
            vel = Polar2Vector(max_speed, vel.Dir());
          }
          vel *= GetOpponent(unum).GetPlayerDecay();

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

    //身体角度
    if (player.GetBodyDir().time() == mpObserver->LatestSightTime()) {
      AngleDeg angle = player.BodyDir();
      angle = angle + GetNeckGlobalDirFromSightDelay(mSightDelay);
      Opponent(unum).UpdateBodyDir(angle, mSightDelay, mPlayerConf);
      Opponent(unum).UpdateBodyDirMayChanged(false);
    }

    //头部角度
    if (player.GetHeadDir().time() == mpObserver->LatestSightTime()) {
      AngleDeg angle = player.HeadDir() - player.BodyDir();
      Opponent(unum).UpdateNeckDir(angle, mSightDelay, mPlayerConf);
    }

    //手指向
    if (player.GetIsPointing().time() == mpObserver->LatestSightTime()) {
      if (player.IsPointing()) {
        Opponent(unum).UpdateArmPoint(
            player.PointDir() + GetNeckGlobalDirFromSightDelay(mSightDelay),
            mSightDelay, mPlayerConf);
      }
    }

    //是否铲球
    if (player.GetIsTackling().time() == mpObserver->LatestSightTime()) {
      if (player.IsTackling()) {
        if (Opponent(unum).GetTackleBan() == 0) {
          Opponent(unum).UpdateTackleBan(
              ServerParam::instance().tackleCycles() - 1);
        }
        // tackle速度一定为零
        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);
      }
    }

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

    //是否上周期踢过球
    if (player.GetIsKicked().time() == mpObserver->LatestSightTime()) {
      Opponent(unum).UpdateKicked(player.IsKicked());
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x5e0, %rsp            # imm = 0x5E0
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
andb $0x1, %al
movb %al, -0x15(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x350(%rbp)
testb $0x1, -0x15(%rbp)
je 0xb6b61
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movl $0x1, %esi
callq 0x288a0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
xorl %esi, %esi
callq 0xbc810
movq -0x10(%rbp), %rdi
callq 0xbd1d0
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x358(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x358(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb5c69
jmp 0xb5db9
callq 0x798a0
movq %rax, -0x378(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd3a0
movq -0x378(%rbp), %rdi
movsd (%rax), %xmm0
callq 0xbd220
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x30(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movsd %xmm0, -0x370(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd470
movsd -0x370(%rbp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x112c0
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x28(%rbp)
movsd %xmm1, -0x20(%rbp)
callq 0xbcea0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq %rax, %rdi
leaq -0x28(%rbp), %rsi
callq 0x11360
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x48(%rbp)
movsd %xmm1, -0x40(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movq -0x350(%rbp), %rax
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x28(%rbp), %rsi
callq 0x142f0
callq 0x798a0
movq %rax, -0x368(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd3a0
movq -0x368(%rbp), %rdi
movsd (%rax), %xmm0
callq 0xbca60
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x360(%rbp)
callq 0xbc740
movq %rax, %rdi
addq $0x8, %rdi
callq 0xbcf40
movsd -0x360(%rbp), %xmm0
movq -0x350(%rbp), %rdi
addsd (%rax), %xmm0
movsd %xmm0, -0x50(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
addq $0x8, %rdi
movsd -0x50(%rbp), %xmm0
callq 0xbc830
movq -0x10(%rbp), %rdi
callq 0xbd490
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x380(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x380(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb5dfb
jmp 0xb6052
movsd 0xb20d(%rip), %xmm0     # 0xc1010
movsd %xmm0, -0x68(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd470
movq %rax, %rsi
leaq -0x68(%rbp), %rdi
callq 0x112c0
movsd %xmm0, -0x60(%rbp)
movsd %xmm1, -0x58(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd4b0
movsd (%rax), %xmm0
movsd %xmm0, -0x70(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd4d0
movsd (%rax), %xmm0
movsd %xmm0, -0x78(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd3a0
movsd (%rax), %xmm0
movsd %xmm0, -0x80(%rbp)
movsd -0x70(%rbp), %xmm0
movsd %xmm0, -0x3a8(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x176f0
movsd (%rax), %xmm0
movsd %xmm0, -0x3a0(%rbp)
movsd 0xb1c9(%rip), %xmm0     # 0xc1050
mulsd -0x78(%rbp), %xmm0
movsd 0xb194(%rip), %xmm1     # 0xc1028
divsd %xmm1, %xmm0
mulsd -0x80(%rbp), %xmm0
movsd %xmm0, -0x3b0(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x17700
movsd -0x3b0(%rbp), %xmm1
movsd -0x3a8(%rbp), %xmm0
movsd -0x3a0(%rbp), %xmm2
mulsd (%rax), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x98(%rbp)
movsd -0x70(%rbp), %xmm0
movsd %xmm0, -0x390(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x17700
movsd (%rax), %xmm0
movsd %xmm0, -0x388(%rbp)
movsd 0xb135(%rip), %xmm0     # 0xc1050
mulsd -0x78(%rbp), %xmm0
movsd 0xb100(%rip), %xmm1     # 0xc1028
divsd %xmm1, %xmm0
mulsd -0x80(%rbp), %xmm0
movsd %xmm0, -0x398(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x176f0
movsd -0x398(%rbp), %xmm1
movsd -0x390(%rbp), %xmm0
movsd -0x388(%rbp), %xmm2
mulsd (%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0xa0(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x98(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x11a10
movq -0x350(%rbp), %rdi
movl 0x28(%rdi), %esi
callq 0xbd4f0
movq -0x350(%rbp), %rdi
movsd %xmm0, -0xc0(%rbp)
movsd %xmm1, -0xb8(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movsd %xmm0, -0xd8(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x11110
movsd %xmm0, -0xd0(%rbp)
movsd %xmm1, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x11360
movq -0x350(%rbp), %rdi
movsd %xmm0, -0xb0(%rbp)
movsd %xmm1, -0xa8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x88(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movq -0x350(%rbp), %rax
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x90(%rbp), %rsi
callq 0x142a0
jmp 0xb65f2
movq -0x10(%rbp), %rdi
callq 0xbd1d0
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x3b8(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x3b8(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb6094
jmp 0xb65f0
movq -0x350(%rbp), %rax
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
callq 0xab550
cmpq $0x0, %rax
je 0xb65ee
movq -0x350(%rbp), %rax
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
callq 0xab550
movq %rax, %rdi
leaq -0x14(%rbp), %rsi
callq 0x1a9d0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x1ddd0
movq -0x350(%rbp), %rdx
movl %eax, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
movl $0x9, %ecx
subl 0x28(%rdx), %ecx
cmpl %ecx, %eax
jge 0xb65ec
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x3c0(%rbp)
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
addl -0xdc(%rbp), %esi
callq 0xab550
movq %rax, %rdi
leaq -0x14(%rbp), %rsi
callq 0x1a9d0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq -0x3c0(%rbp), %rdi
movq %rax, %rsi
callq 0x110a0
movsd %xmm0, -0xf0(%rbp)
movsd %xmm1, -0xe8(%rbp)
movl -0xdc(%rbp), %eax
addl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0xf8(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x98290
movq -0x350(%rbp), %rdi
movl 0x28(%rdi), %esi
callq 0xbd4f0
movq -0x350(%rbp), %rax
movsd %xmm0, -0x108(%rbp)
movsd %xmm1, -0x100(%rbp)
movq (%rax), %rdi
callq 0x119d0
movq %rax, %rdi
callq 0xbcec0
testb $0x1, %al
jne 0xb6217
movq -0x350(%rbp), %rax
movq (%rax), %rdi
callq 0x119d0
movq %rax, %rdi
callq 0xbcee0
testb $0x1, %al
jne 0xb6217
movq -0x350(%rbp), %rax
movq (%rax), %rdi
callq 0x119d0
movq %rax, %rdi
callq 0xbd600
testb $0x1, %al
jne 0xb6217
jmp 0xb623a
movsd 0xd361(%rip), %xmm0     # 0xc3580
movsd %xmm0, -0x110(%rbp)
leaq -0x108(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x98290
callq 0x798a0
movq -0x350(%rbp), %rdi
movq %rax, -0x3f0(%rbp)
callq 0xbc740
movq %rax, %rdi
callq 0x10a60
movq -0x3f0(%rbp), %rdi
movl %eax, -0x114(%rbp)
leaq -0x114(%rbp), %rsi
callq 0x129d0
movq %rax, %rdi
callq 0x12fe0
movq %rax, %rsi
leaq -0x108(%rbp), %rdi
callq 0x98290
movq -0x350(%rbp), %rdi
callq 0xbc740
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x3e0(%rbp)
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
callq 0xab550
movq -0x350(%rbp), %rdi
movq %rax, -0x3e8(%rbp)
callq 0xbd620
movq -0x3e8(%rbp), %rdi
movl %eax, -0x12c(%rbp)
leaq -0x12c(%rbp), %rsi
callq 0x1a9d0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq -0x3e0(%rbp), %rdi
movq %rax, %rsi
callq 0x110a0
movsd %xmm0, -0x128(%rbp)
movsd %xmm1, -0x120(%rbp)
leaq -0x108(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x110a0
movsd %xmm0, -0x140(%rbp)
movsd %xmm1, -0x138(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x32ae0
callq 0x798a0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x3d8(%rbp)
movq (%rax), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7b0
movq -0x3d8(%rbp), %rdi
movq %rax, %rsi
callq 0x129d0
movq %rax, %rdi
callq 0x29430
movsd (%rax), %xmm0
movsd %xmm0, -0x148(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x104e0
movq -0x350(%rbp), %rax
movsd %xmm0, -0x3c8(%rbp)
movsd -0x148(%rbp), %xmm0
movsd %xmm0, -0x3d0(%rbp)
movq 0x8(%rax), %rdi
leaq -0x14(%rbp), %rsi
callq 0x12520
movq %rax, %rdi
callq 0x11740
movsd -0x3d0(%rbp), %xmm1
movsd -0x3c8(%rbp), %xmm0
mulsd (%rax), %xmm1
movsd 0xc129(%rip), %xmm2     # 0xc2518
mulsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb6497
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbd640
movq %rax, %rdi
callq 0xbd670
testb $0x1, %al
jne 0xb641a
jmp 0xb6497
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, -0x408(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x10520
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x3f8(%rbp)
movl -0x14(%rbp), %esi
callq 0xbd640
movq %rax, %rdi
callq 0x5c650
movq -0x350(%rbp), %rdi
movl %eax, -0x3fc(%rbp)
movl -0x14(%rbp), %esi
callq 0xbd640
movq %rax, %rdi
callq 0x32a60
movq -0x408(%rbp), %rdi
movl -0x3fc(%rbp), %esi
movaps %xmm0, %xmm1
movsd -0x3f8(%rbp), %xmm0
callq 0x77ef0
jmp 0xb650f
leaq -0xf0(%rbp), %rdi
callq 0x104e0
movq -0x350(%rbp), %rax
movsd %xmm0, -0x410(%rbp)
movsd -0x148(%rbp), %xmm0
movsd %xmm0, -0x418(%rbp)
movq 0x8(%rax), %rdi
leaq -0x14(%rbp), %rsi
callq 0x12520
movq %rax, %rdi
callq 0x11740
movsd -0x418(%rbp), %xmm0
movsd -0x410(%rbp), %xmm1
mulsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb650d
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movl $0x1, %esi
callq 0xbd690
jmp 0xb650f
leaq -0xf0(%rbp), %rdi
callq 0x104e0
ucomisd -0x148(%rbp), %xmm0
jbe 0xb6578
leaq -0xf0(%rbp), %rdi
callq 0x10520
movsd %xmm0, -0x160(%rbp)
leaq -0x148(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x112c0
movsd %xmm0, -0x158(%rbp)
movsd %xmm1, -0x150(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0xe8(%rbp)
callq 0x798a0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x420(%rbp)
movq (%rax), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7b0
movq -0x420(%rbp), %rdi
movq %rax, %rsi
callq 0x129d0
movq %rax, %rdi
callq 0x12fe0
movq %rax, %rsi
leaq -0xf0(%rbp), %rdi
callq 0x113f0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movq -0x350(%rbp), %rax
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0xf0(%rbp), %rsi
callq 0x142a0
jmp 0xb65ee
jmp 0xb65f0
jmp 0xb65f2
movq -0x10(%rbp), %rdi
callq 0xbd6c0
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x428(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x428(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb6634
jmp 0xb66c6
movq -0x10(%rbp), %rdi
callq 0xbd6e0
movq -0x350(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x168(%rbp)
movsd -0x168(%rbp), %xmm0
movsd %xmm0, -0x430(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movq -0x350(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0x430(%rbp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x168(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movq -0x350(%rbp), %rax
movsd -0x168(%rbp), %xmm0
movl 0x28(%rax), %esi
movsd 0x18(%rax), %xmm1
callq 0x77ef0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
xorl %esi, %esi
callq 0xbd690
movq -0x10(%rbp), %rdi
callq 0xbd700
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x438(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x438(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb6705
jmp 0xb6765
movq -0x10(%rbp), %rdi
callq 0xbd720
movsd (%rax), %xmm0
movsd %xmm0, -0x440(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd6e0
movsd -0x440(%rbp), %xmm0
movq -0x350(%rbp), %rdi
subsd (%rax), %xmm0
movsd %xmm0, -0x170(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movq -0x350(%rbp), %rax
movsd -0x170(%rbp), %xmm0
movl 0x28(%rax), %esi
movsd 0x18(%rax), %xmm1
callq 0x77f60
movq -0x10(%rbp), %rdi
callq 0xbd740
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x448(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x448(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb67a7
jmp 0xb6860
movq -0x10(%rbp), %rdi
callq 0xbd780
testb $0x1, (%rax)
je 0xb6845
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, -0x458(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd7b0
movq -0x350(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x450(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movq -0x458(%rbp), %rdi
movq -0x350(%rbp), %rax
movaps %xmm0, %xmm1
movsd -0x450(%rbp), %xmm0
addsd %xmm1, %xmm0
movl 0x28(%rax), %esi
movsd 0x18(%rax), %xmm1
xorps %xmm2, %xmm2
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, %edx
callq 0x78090
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
movl $0x1, %esi
callq 0xbd7d0
jmp 0xb685e
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
xorl %esi, %esi
callq 0xbd7d0
jmp 0xb6860
movq -0x10(%rbp), %rdi
callq 0xbd800
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x460(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x460(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb68a2
jmp 0xb6989
movq -0x10(%rbp), %rdi
callq 0xbd820
testb $0x1, (%rax)
je 0xb696e
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
callq 0x12c40
cmpl $0x0, %eax
jne 0xb6904
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, -0x468(%rbp)
callq 0x855e0
movq %rax, %rdi
callq 0x78160
movq -0x468(%rbp), %rdi
movl %eax, %esi
subl $0x1, %esi
callq 0x78140
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, -0x470(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x188(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x190(%rbp)
leaq -0x180(%rbp), %rdi
leaq -0x188(%rbp), %rsi
leaq -0x190(%rbp), %rdx
callq 0x11a10
movq -0x350(%rbp), %rax
movq -0x470(%rbp), %rdi
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x180(%rbp), %rsi
callq 0x142a0
jmp 0xb6987
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
xorl %esi, %esi
callq 0x78140
jmp 0xb6989
movq -0x10(%rbp), %rdi
callq 0xbd840
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x478(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x478(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb69cb
jmp 0xb6ab2
movq -0x10(%rbp), %rdi
callq 0xbd860
testb $0x1, (%rax)
je 0xb6a97
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
callq 0x12c60
cmpl $0x0, %eax
jne 0xb6a2d
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, -0x480(%rbp)
callq 0x855e0
movq %rax, %rdi
callq 0x781a0
movq -0x480(%rbp), %rdi
movl (%rax), %esi
subl $0x1, %esi
callq 0x78180
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, -0x488(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x1a8(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x1b0(%rbp)
leaq -0x1a0(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
leaq -0x1b0(%rbp), %rdx
callq 0x11a10
movq -0x350(%rbp), %rax
movq -0x488(%rbp), %rdi
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x1a0(%rbp), %rsi
callq 0x142a0
jmp 0xb6ab0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rdi
xorl %esi, %esi
callq 0x78180
jmp 0xb6ab2
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x498(%rbp)
movq (%rax), %rdi
movl -0x14(%rbp), %esi
callq 0xbd890
movq -0x498(%rbp), %rdi
movl (%rax), %esi
callq 0x78050
movq -0x10(%rbp), %rdi
callq 0xbd8c0
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x490(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x490(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb6b2a
jmp 0xb6b5c
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc780
movq %rax, -0x4a0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd8e0
movq -0x4a0(%rbp), %rdi
movb (%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x7d2c0
jmp 0xb7aa5
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
movl $0x1, %esi
callq 0x288a0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
xorl %esi, %esi
callq 0xbc810
movq -0x10(%rbp), %rdi
callq 0xbd1d0
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x4a8(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x4a8(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb6bd8
jmp 0xb6d58
callq 0x798a0
movq %rax, -0x4c8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd3a0
movq -0x4c8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0xbd220
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x1c8(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movsd %xmm0, -0x4c0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd470
movsd -0x4c0(%rbp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, -0x1d0(%rbp)
leaq -0x1c8(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x112c0
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x1c0(%rbp)
movsd %xmm1, -0x1b8(%rbp)
callq 0xbcea0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq %rax, %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x11360
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x1e0(%rbp)
movsd %xmm1, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
movq -0x350(%rbp), %rax
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x1c0(%rbp), %rsi
callq 0x142f0
callq 0x798a0
movq %rax, -0x4b8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd3a0
movq -0x4b8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0xbca60
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x4b0(%rbp)
callq 0xbc740
movq %rax, %rdi
addq $0x8, %rdi
callq 0xbcf40
movsd -0x4b0(%rbp), %xmm0
movq -0x350(%rbp), %rdi
addsd (%rax), %xmm0
movsd %xmm0, -0x1e8(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
addq $0x8, %rdi
movsd -0x1e8(%rbp), %xmm0
callq 0xbc830
movq -0x10(%rbp), %rdi
callq 0xbd490
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x4d0(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x4d0(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb6d9a
jmp 0xb7024
movsd 0xa26e(%rip), %xmm0     # 0xc1010
movsd %xmm0, -0x200(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd470
movq %rax, %rsi
leaq -0x200(%rbp), %rdi
callq 0x112c0
movsd %xmm0, -0x1f8(%rbp)
movsd %xmm1, -0x1f0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd4b0
movsd (%rax), %xmm0
movsd %xmm0, -0x208(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd4d0
movsd (%rax), %xmm0
movsd %xmm0, -0x210(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd3a0
movsd (%rax), %xmm0
movsd %xmm0, -0x218(%rbp)
movsd -0x208(%rbp), %xmm0
movsd %xmm0, -0x4f8(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x176f0
movsd (%rax), %xmm0
movsd %xmm0, -0x4f0(%rbp)
movsd 0xa20f(%rip), %xmm0     # 0xc1050
mulsd -0x210(%rbp), %xmm0
movsd 0xa1d7(%rip), %xmm1     # 0xc1028
divsd %xmm1, %xmm0
mulsd -0x218(%rbp), %xmm0
movsd %xmm0, -0x500(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x17700
movsd -0x500(%rbp), %xmm1
movsd -0x4f8(%rbp), %xmm0
movsd -0x4f0(%rbp), %xmm2
mulsd (%rax), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x230(%rbp)
movsd -0x208(%rbp), %xmm0
movsd %xmm0, -0x4e0(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x17700
movsd (%rax), %xmm0
movsd %xmm0, -0x4d8(%rbp)
movsd 0xa16c(%rip), %xmm0     # 0xc1050
mulsd -0x210(%rbp), %xmm0
movsd 0xa134(%rip), %xmm1     # 0xc1028
divsd %xmm1, %xmm0
mulsd -0x218(%rbp), %xmm0
movsd %xmm0, -0x4e8(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x176f0
movsd -0x4e8(%rbp), %xmm1
movsd -0x4e0(%rbp), %xmm0
movsd -0x4d8(%rbp), %xmm2
mulsd (%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x238(%rbp)
leaq -0x228(%rbp), %rdi
leaq -0x230(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0x11a10
movq -0x350(%rbp), %rdi
movl 0x28(%rdi), %esi
callq 0xbd4f0
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x258(%rbp)
movsd %xmm1, -0x250(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movsd %xmm0, -0x270(%rbp)
leaq -0x228(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x11110
movsd %xmm0, -0x268(%rbp)
movsd %xmm1, -0x260(%rbp)
leaq -0x258(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x11360
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x248(%rbp)
movsd %xmm1, -0x240(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x220(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
movq -0x350(%rbp), %rax
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x228(%rbp), %rsi
callq 0x142a0
jmp 0xb7577
movq -0x10(%rbp), %rdi
callq 0xbd1d0
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x508(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x508(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb7066
jmp 0xb7575
movq -0x350(%rbp), %rax
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
callq 0xab550
cmpq $0x0, %rax
je 0xb7573
movq -0x350(%rbp), %rax
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
callq 0xab550
movq %rax, %rdi
leaq -0x14(%rbp), %rsi
callq 0x5c5b0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x1ddd0
movq -0x350(%rbp), %rdx
movl %eax, -0x274(%rbp)
movl -0x274(%rbp), %eax
movl $0x9, %ecx
subl 0x28(%rdx), %ecx
cmpl %ecx, %eax
jge 0xb7571
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x510(%rbp)
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
addl -0x274(%rbp), %esi
callq 0xab550
movq %rax, %rdi
leaq -0x14(%rbp), %rsi
callq 0x5c5b0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq -0x510(%rbp), %rdi
movq %rax, %rsi
callq 0x110a0
movsd %xmm0, -0x288(%rbp)
movsd %xmm1, -0x280(%rbp)
movl -0x274(%rbp), %eax
addl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x290(%rbp)
leaq -0x288(%rbp), %rdi
leaq -0x290(%rbp), %rsi
callq 0x98290
movq -0x350(%rbp), %rdi
xorl %esi, %esi
callq 0xbd4f0
movq -0x350(%rbp), %rax
movsd %xmm0, -0x2a0(%rbp)
movsd %xmm1, -0x298(%rbp)
movq (%rax), %rdi
callq 0x119d0
movq %rax, %rdi
callq 0xbcec0
testb $0x1, %al
jne 0xb71e8
movq -0x350(%rbp), %rax
movq (%rax), %rdi
callq 0x119d0
movq %rax, %rdi
callq 0xbcee0
testb $0x1, %al
jne 0xb71e8
movq -0x350(%rbp), %rax
movq (%rax), %rdi
callq 0x119d0
movq %rax, %rdi
callq 0xbd600
testb $0x1, %al
jne 0xb71e8
jmp 0xb720b
movsd 0xc390(%rip), %xmm0     # 0xc3580
movsd %xmm0, -0x2a8(%rbp)
leaq -0x2a0(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
callq 0x98290
callq 0x798a0
movq -0x350(%rbp), %rdi
movq %rax, -0x538(%rbp)
callq 0xbc740
movq %rax, %rdi
callq 0x10a60
movq -0x538(%rbp), %rdi
movl %eax, -0x2ac(%rbp)
leaq -0x2ac(%rbp), %rsi
callq 0x129d0
movq %rax, %rdi
callq 0x12fe0
movq %rax, %rsi
leaq -0x2a0(%rbp), %rdi
callq 0x98290
movq -0x350(%rbp), %rdi
callq 0xbc740
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x528(%rbp)
movq 0x8(%rax), %rdi
movl 0x28(%rax), %esi
addl $0x1, %esi
callq 0xab550
movq -0x350(%rbp), %rdi
movq %rax, -0x530(%rbp)
callq 0xbd620
movq -0x530(%rbp), %rdi
movl %eax, -0x2c4(%rbp)
leaq -0x2c4(%rbp), %rsi
callq 0x1a9d0
movq %rax, %rdi
addq $0x8, %rdi
callq 0x11090
movq -0x528(%rbp), %rdi
movq %rax, %rsi
callq 0x110a0
movsd %xmm0, -0x2c0(%rbp)
movsd %xmm1, -0x2b8(%rbp)
leaq -0x2a0(%rbp), %rdi
leaq -0x2c0(%rbp), %rsi
callq 0x110a0
movsd %xmm0, -0x2d8(%rbp)
movsd %xmm1, -0x2d0(%rbp)
leaq -0x288(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
callq 0x32ae0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbd900
movq %rax, %rdi
callq 0x1d810
movsd (%rax), %xmm0
movsd %xmm0, -0x2e0(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x104e0
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x518(%rbp)
movsd -0x2e0(%rbp), %xmm0
movsd %xmm0, -0x520(%rbp)
movl -0x14(%rbp), %esi
callq 0xbd900
movq %rax, %rdi
callq 0x11740
movsd -0x520(%rbp), %xmm1
movsd -0x518(%rbp), %xmm0
mulsd (%rax), %xmm1
movsd 0xb17e(%rip), %xmm2     # 0xc2518
mulsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb7442
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbd900
movq %rax, %rdi
callq 0xbd670
testb $0x1, %al
jne 0xb73c5
jmp 0xb7442
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, -0x550(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x10520
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x540(%rbp)
movl -0x14(%rbp), %esi
callq 0xbd900
movq %rax, %rdi
callq 0x5c650
movq -0x350(%rbp), %rdi
movl %eax, -0x544(%rbp)
movl -0x14(%rbp), %esi
callq 0xbd900
movq %rax, %rdi
callq 0x32a60
movq -0x550(%rbp), %rdi
movl -0x544(%rbp), %esi
movaps %xmm0, %xmm1
movsd -0x540(%rbp), %xmm0
callq 0x77ef0
jmp 0xb74b5
leaq -0x288(%rbp), %rdi
callq 0x104e0
movq -0x350(%rbp), %rdi
movsd %xmm0, -0x558(%rbp)
movsd -0x2e0(%rbp), %xmm0
movsd %xmm0, -0x560(%rbp)
movl -0x14(%rbp), %esi
callq 0xbd900
movq %rax, %rdi
callq 0x11740
movsd -0x560(%rbp), %xmm0
movsd -0x558(%rbp), %xmm1
mulsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb74b3
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
movl $0x1, %esi
callq 0xbd690
jmp 0xb74b5
leaq -0x288(%rbp), %rdi
callq 0x104e0
ucomisd -0x2e0(%rbp), %xmm0
jbe 0xb751e
leaq -0x288(%rbp), %rdi
callq 0x10520
movsd %xmm0, -0x2f8(%rbp)
leaq -0x2e0(%rbp), %rdi
leaq -0x2f8(%rbp), %rsi
callq 0x112c0
movsd %xmm0, -0x2f0(%rbp)
movsd %xmm1, -0x2e8(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x288(%rbp)
movq -0x2e8(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbd900
movq %rax, %rdi
callq 0x11740
movq %rax, %rsi
leaq -0x288(%rbp), %rdi
callq 0x113f0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
movq -0x350(%rbp), %rax
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x288(%rbp), %rsi
callq 0x142a0
jmp 0xb7573
jmp 0xb7575
jmp 0xb7577
movq -0x10(%rbp), %rdi
callq 0xbd6c0
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x568(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x568(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb75b9
jmp 0xb764b
movq -0x10(%rbp), %rdi
callq 0xbd6e0
movq -0x350(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x300(%rbp)
movsd -0x300(%rbp), %xmm0
movsd %xmm0, -0x570(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movq -0x350(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0x570(%rbp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x300(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
movq -0x350(%rbp), %rax
movsd -0x300(%rbp), %xmm0
movl 0x28(%rax), %esi
movsd 0x18(%rax), %xmm1
callq 0x77ef0
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
xorl %esi, %esi
callq 0xbd690
movq -0x10(%rbp), %rdi
callq 0xbd700
movq %rax, %rdi
callq 0x28aa0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x578(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x578(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb768a
jmp 0xb76ea
movq -0x10(%rbp), %rdi
callq 0xbd720
movsd (%rax), %xmm0
movsd %xmm0, -0x580(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd6e0
movsd -0x580(%rbp), %xmm0
movq -0x350(%rbp), %rdi
subsd (%rax), %xmm0
movsd %xmm0, -0x308(%rbp)
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
movq -0x350(%rbp), %rax
movsd -0x308(%rbp), %xmm0
movl 0x28(%rax), %esi
movsd 0x18(%rax), %xmm1
callq 0x77f60
movq -0x10(%rbp), %rdi
callq 0xbd740
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x588(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x588(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb7729
jmp 0xb77a7
movq -0x10(%rbp), %rdi
callq 0xbd780
testb $0x1, (%rax)
je 0xb77a5
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, -0x598(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd7b0
movq -0x350(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x590(%rbp)
movl 0x28(%rdi), %esi
callq 0xbd3c0
movq -0x350(%rbp), %rax
movq -0x598(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0x590(%rbp), %xmm0
addsd %xmm1, %xmm0
movl 0x28(%rax), %esi
movsd 0x18(%rax), %xmm1
xorps %xmm2, %xmm2
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, %edx
callq 0x78090
jmp 0xb77a7
movq -0x10(%rbp), %rdi
callq 0xbd800
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x5a0(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x5a0(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb77e9
jmp 0xb78d0
movq -0x10(%rbp), %rdi
callq 0xbd820
testb $0x1, (%rax)
je 0xb78b5
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
callq 0x12c40
cmpl $0x0, %eax
jne 0xb784b
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, -0x5a8(%rbp)
callq 0x855e0
movq %rax, %rdi
callq 0x78160
movq -0x5a8(%rbp), %rdi
movl %eax, %esi
subl $0x1, %esi
callq 0x78140
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, -0x5b0(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x320(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x328(%rbp)
leaq -0x318(%rbp), %rdi
leaq -0x320(%rbp), %rsi
leaq -0x328(%rbp), %rdx
callq 0x11a10
movq -0x350(%rbp), %rax
movq -0x5b0(%rbp), %rdi
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x318(%rbp), %rsi
callq 0x142a0
jmp 0xb78ce
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
xorl %esi, %esi
callq 0x78140
jmp 0xb78d0
movq -0x10(%rbp), %rdi
callq 0xbd840
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x5b8(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x5b8(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb7912
jmp 0xb79f9
movq -0x10(%rbp), %rdi
callq 0xbd860
testb $0x1, (%rax)
je 0xb79de
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
callq 0x12c60
cmpl $0x0, %eax
jne 0xb7974
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, -0x5c0(%rbp)
callq 0x855e0
movq %rax, %rdi
callq 0x781a0
movq -0x5c0(%rbp), %rdi
movl (%rax), %esi
subl $0x1, %esi
callq 0x78180
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, -0x5c8(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x340(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x348(%rbp)
leaq -0x338(%rbp), %rdi
leaq -0x340(%rbp), %rsi
leaq -0x348(%rbp), %rdx
callq 0x11a10
movq -0x350(%rbp), %rax
movq -0x5c8(%rbp), %rdi
movl 0x28(%rax), %edx
movsd 0x18(%rax), %xmm0
leaq -0x338(%rbp), %rsi
callq 0x142a0
jmp 0xb79f7
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rdi
xorl %esi, %esi
callq 0x78180
jmp 0xb79f9
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x5d8(%rbp)
movq (%rax), %rdi
movl -0x14(%rbp), %esi
callq 0xbd930
movq -0x5d8(%rbp), %rdi
movl (%rax), %esi
callq 0x78050
movq -0x10(%rbp), %rdi
callq 0xbd8c0
movq %rax, %rdi
callq 0xbd760
movq %rax, %rcx
movq -0x350(%rbp), %rax
movq %rcx, -0x5d0(%rbp)
movq (%rax), %rdi
callq 0xbc870
movq -0x5d0(%rbp), %rdi
movq %rax, %rsi
callq 0x120a0
testb $0x1, %al
jne 0xb7a71
jmp 0xb7aa3
movq -0x350(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xbc7e0
movq %rax, -0x5e0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xbd8e0
movq -0x5e0(%rbp), %rdi
movb (%rax), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x7d2c0
jmp 0xb7aa5
addq $0x5e0, %rsp            # imm = 0x5E0
popq %rbp
retq
nop