//
// GJBaseGameLayer::updateTimeWarp from 0x10012d210 to 0x10012d25c (76 bytes)
//
// 4 xrefs:
// > PlayLayer::updateTimeWarp @ 0x1000836f7
// > PlayLayer::updateTimeWarp @ 0x10008370a
// > ??> @ 0x100ac3ec8
// > ??> @ 0x100ac5178
//
// This function is hookable on this platform (idp: pc, 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 12:24:44 +0000
//
__int64 __fastcall GJBaseGameLayer::updateTimeWarp(__int64 a1, float a2)
{
float v2; // xmm1_4
__int64 result; // rax
v2 = fmaxf(fminf(2.0, a2), 0.1);
*(float *)(a1 + 816) = v2;
*(_DWORD *)(a1 + 820) = 0;
if ( v2 == 1.0 )
return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 1472LL))(a1, 1.0);
return result;
}