//
// GJBaseGameLayer::updateTimeWarp from 0x1001fd44c to 0x1001fd48c (64 bytes)
//
// 3 xrefs:
// > PlayLayer::updateTimeWarp @ 0x10011b8bc
// > ??> @ 0x1007c0c28
// > ??> @ 0x1007f4388
//
// 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 GJBaseGameLayer::updateTimeWarp(GJBaseGameLayer *a1, float a2)
{
float v2; // s0
if ( a2 > 2.0 )
a2 = 2.0;
v2 = fmaxf(a2, 0.1);
a1->m_gameState.m_timeWarp = v2;
a1->m_gameState.m_queuedTimeWarp = 0.0;
if ( v2 == 1.0 )
((void (__fastcall *)(GJBaseGameLayer *, float))a1->applyTimeWarp)(a1, 1.0);
}