//
// PlayerObject::updateTimeMod from 0x344b40 to 0x344c92 (338 bytes)
//
// 7 xrefs:
// > PlayerObject::copyAttributes @ 0x3477b2
// > PlayerObject::resetObject @ 0x347c8a
// > PlayerObject::loadFromCheckpoint @ 0x350924
// > PlayerObject::init @ 0x3511b0
// > MenuGameLayer::resetPlayer @ 0x3a992c
// > GJBaseGameLayer::updateTimeMod @ 0x46fc68
// > GJBaseGameLayer::updateTimeMod @ 0x46fc7e
//
// 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 PlayerObject::updateTimeMod(PlayerObject *a1, float a2, bool a3)
{
float *p_m_playerSpeed; // r5
GameManager *v6; // r0
double v7; // r0
cocos2d::CCMotionStreak *m_shipStreak; // r0
p_m_playerSpeed = &a1->m_playerSpeed;
if ( !a1->m_maybeReducedEffects && a1->m_playEffects && !a3 && *p_m_playerSpeed != a2 )
{
v6 = GameManager::sharedState();
GJBaseGameLayer::playSpeedParticle(v6->m_playLayer, a2);
}
*p_m_playerSpeed = a2;
if ( a2 == 0.9 )
{
a1->m_yStart = 11.1800318;
a1->m_gravity = 0.958199024;
}
else
{
if ( a2 == 0.7 )
{
a1->m_yStart = 10.620032;
a1->m_gravity = 0.940199;
v7 = 5.980002;
goto LABEL_16;
}
if ( a2 == 1.1 )
{
a1->m_yStart = 11.420032;
a1->m_gravity = 0.957199;
v7 = 5.870002;
goto LABEL_16;
}
if ( a2 == 1.3 || a2 == 1.6 )
{
a1->m_yStart = 11.230032;
a1->m_gravity = 0.961199;
v7 = 6.000002;
goto LABEL_16;
}
}
v7 = 5.77000189;
LABEL_16:
a1->m_speedMultiplier = v7;
PlayerObject::updateRobotAnimationSpeed(a1);
if ( a1->m_isBall )
PlayerObject::runRotateAction(a1, 0, 9);
m_shipStreak = a1->m_shipStreak;
if ( m_shipStreak )
updateStreakSettings(m_shipStreak, a1->m_shipStreakType, (int)a1);
}