//
// GJBaseGameLayer::updateTimeMod from 0x100282138 to 0x1002821b0 (120 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::setupLevelStart @ 0x100281774
// > GJBaseGameLayer::update @ 0x10029aad4
// > EffectGameObject::triggerObject @ 0x10042c548
//
// 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:01:56 +0000
//
__int64 __fastcall GJBaseGameLayer::updateTimeMod(__int64 result, int a2, __int64 a3, __n128 a4)
{
unsigned __int32 v5; // s8
__int64 v6; // x20
__n128 v7; // q0
v5 = a4.n128_u32[0];
v6 = result;
if ( a2 )
{
*(_DWORD *)(result + 1160) = 0;
*(_BYTE *)(result + 1164) = 0;
result = PlayerObject::updateTimeMod(*(_QWORD *)(result + 3256), a3, a4);
if ( *(_BYTE *)(v6 + 1010) == 1 )
{
v7.n128_u32[0] = v5;
return PlayerObject::updateTimeMod(*(_QWORD *)(v6 + 3264), a3, v7);
}
}
else
{
*(_DWORD *)(result + 1160) = a4.n128_u32[0];
*(_BYTE *)(result + 1164) = a3;
}
return result;
}