//
// PlayerObject::updateTimeMod from 0x62e048 to 0x62e1b4 (364 bytes)
//
// 12 xrefs:
// > PlayerObject::copyAttributes @ 0x631de4
// > PlayerObject::resetObject @ 0x632688
// > PlayerObject::loadFromCheckpoint @ 0x63b558
// > PlayerObject::init @ 0x63dc98
// > MenuGameLayer::resetPlayer @ 0x6c9530
// > MenuGameLayer::resetPlayer @ 0x6c95d0
// > MenuGameLayer::resetPlayer @ 0x6c9634
// > MenuGameLayer::resetPlayer @ 0x6c9648
// > MenuGameLayer::resetPlayer @ 0x6c965c
// > GJBaseGameLayer::updateTimeMod @ 0x85b270
// > GJBaseGameLayer::updateTimeMod @ 0x85b294
// > ??> @ 0xc1308
//
// 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)
{
cocos2d::CCMotionStreak *m_shipStreak; // x0
GameManager *v6; // x0
if ( !a1->m_maybeReducedEffects && a1->m_playEffects > (unsigned int)a3 && a1->m_playerSpeed != a2 )
{
v6 = GameManager::sharedState();
GJBaseGameLayer::playSpeedParticle(v6->m_playLayer, a2);
}
a1->m_playerSpeed = a2;
if ( a2 == 0.9 )
{
a1->m_yStart = 11.1800318;
a1->m_gravity = 0.958199024;
a1->m_speedMultiplier = 5.77000189;
goto LABEL_5;
}
if ( a2 != 0.7 )
{
if ( a2 == 1.1 )
{
a1->m_yStart = 11.420032;
a1->m_gravity = 0.957199;
a1->m_speedMultiplier = 5.870002;
}
else if ( a2 == 1.3 || a2 == 1.6 )
{
a1->m_yStart = 11.230032;
a1->m_gravity = 0.961199;
a1->m_speedMultiplier = 6.000002;
}
else
{
a1->m_speedMultiplier = 5.77000189;
}
LABEL_5:
PlayerObject::updateRobotAnimationSpeed(a1);
if ( !a1->m_isBall )
goto LABEL_6;
LABEL_10:
PlayerObject::runRotateAction(a1, 0, 9);
m_shipStreak = a1->m_shipStreak;
if ( m_shipStreak )
goto LABEL_7;
return;
}
a1->m_yStart = 10.620032;
a1->m_gravity = 0.940199;
a1->m_speedMultiplier = 5.980002;
PlayerObject::updateRobotAnimationSpeed(a1);
if ( a1->m_isBall )
goto LABEL_10;
LABEL_6:
m_shipStreak = a1->m_shipStreak;
if ( m_shipStreak )
LABEL_7:
updateStreakSettings(m_shipStreak, a1->m_shipStreakType, (__int64)a1);
}