//
// GJBaseGameLayer::updateTimeWarp from 0x99852c to 0x9985b4 (136 bytes)
//
// 4 xrefs:
// > PlayLayer::updateTimeWarp @ 0x6f26d0
// > ??> @ 0x8ca70
// > ??> @ 0x1435f58
// > ??> @ 0x1475828
//
// 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 12:58:03 +0000
//
float __fastcall GJBaseGameLayer::updateTimeWarp(GJBaseGameLayer *this, float a2)
{
float v2; // s2
bool v3; // zf
float result; // s0
if ( a2 > 2.0 )
{
result = 0.0;
*((float *)this + 204) = 2.0;
*((_DWORD *)this + 205) = 0;
return result;
}
v2 = 0.1;
if ( a2 <= 0.1 )
{
LABEL_10:
*((float *)this + 204) = v2;
*((_DWORD *)this + 205) = 0;
return 0.0;
}
if ( a2 > 2.0 )
{
v2 = 2.0;
goto LABEL_10;
}
*((float *)this + 204) = a2;
v3 = a2 == 1.0;
result = 0.0;
*((_DWORD *)this + 205) = 0;
if ( v3 )
(*(void (__fastcall **)(GJBaseGameLayer *, float))(*(_QWORD *)this + 1472LL))(this, 1.0);
return result;
}