//
// GJBaseGameLayer::updateTimeWarp from 0x854904 to 0x85498c (136 bytes)
//
// 4 xrefs:
// > PlayLayer::updateTimeWarp @ 0x5c8ba0
// > ??> @ 0x67b18
// > ??> @ 0x1155318
// > ??> @ 0x1190798
//
// 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 GJBaseGameLayer::updateTimeWarp(GJBaseGameLayer *a1, float a2)
{
float v2; // s2
if ( a2 > 2.0 )
{
a1->m_gameState.m_timeWarp = 2.0;
a1->m_gameState.m_queuedTimeWarp = 0.0;
return;
}
v2 = 0.1;
if ( a2 <= 0.1 )
{
LABEL_9:
a1->m_gameState.m_timeWarp = v2;
a1->m_gameState.m_queuedTimeWarp = 0.0;
return;
}
if ( a2 > 2.0 )
{
v2 = 2.0;
goto LABEL_9;
}
a1->m_gameState.m_timeWarp = a2;
a1->m_gameState.m_queuedTimeWarp = 0.0;
if ( a2 == 1.0 )
a1->applyTimeWarp(a1, 1.0);
}