//
// PlayerObject::updateTimeMod from 0x100218f64 to 0x1002190ac (328 bytes)
//
// 7 xrefs:
// > GJBaseGameLayer::updateTimeMod @ 0x1001e67d8
// > GJBaseGameLayer::updateTimeMod @ 0x1001e6800
// > PlayerObject::init @ 0x100217f24
// > PlayerObject::resetObject @ 0x100226bec
// > PlayerObject::copyAttributes @ 0x10022d35c
// > PlayerObject::loadFromCheckpoint @ 0x10022e318
// > MenuGameLayer::resetPlayer @ 0x10039b268
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall PlayerObject::updateTimeMod(PlayerObject *a1, float a2, bool a3)
{
GameManager *v5; // x0
__int128 v6; // q0
double v7; // d1
int v8; // w2
cocos2d::CCMotionStreak *m_shipStreak; // x0
if ( !a1->m_maybeReducedEffects && a1->m_playEffects && !a3 && a1->m_playerSpeed != a2 )
{
v5 = GameManager::sharedState();
GJBaseGameLayer::playSpeedParticle(v5->m_playLayer, a2);
}
a1->m_playerSpeed = a2;
if ( a2 == 0.9 )
{
v6 = xmmword_10063A750;
v7 = 5.77000189;
LABEL_12:
*(_OWORD *)&a1->m_yStart = v6;
goto LABEL_13;
}
if ( a2 == 0.7 )
{
v6 = xmmword_10063A760;
v7 = 5.980002;
goto LABEL_12;
}
if ( a2 == 1.1 )
{
v6 = xmmword_10063A770;
v7 = 5.870002;
goto LABEL_12;
}
v6 = xmmword_10063A780;
v7 = 6.000002;
if ( a2 == 1.3 || a2 == 1.6 )
goto LABEL_12;
v7 = 5.77000189;
LABEL_13:
a1->m_speedMultiplier = v7;
PlayerObject::updateRobotAnimationSpeed(a1);
if ( a1->m_isBall )
PlayerObject::runRotateAction(a1, 0, v8);
m_shipStreak = a1->m_shipStreak;
if ( m_shipStreak )
sub_1002173A0(m_shipStreak, a1->m_shipStreakType, (__int64)a1);
}