//
// GJBaseGameLayer::updateTimeWarp from 0x100299514 to 0x100299554 (64 bytes)
//
// 3 xrefs:
// > PlayLayer::updateTimeWarp @ 0x1001448b8
// > ??> @ 0x100919050
// > ??> @ 0x10094c578
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:02:07 +0000
//
__int64 __fastcall GJBaseGameLayer::updateTimeWarp(__int64 result, float a2)
{
float v2; // s0
if ( a2 > 2.0 )
a2 = 2.0;
v2 = fmaxf(a2, 0.1);
*(float *)(result + 816) = v2;
*(_DWORD *)(result + 820) = 0;
if ( v2 == 1.0 )
return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)result + 1472LL))(result, 1.0);
return result;
}