//
// GJBaseGameLayer::activateTimerTrigger from 0x9a8134 to 0x9a8238 (260 bytes)
//
// 2 xrefs:
// > TimerTriggerGameObject::triggerObject @ 0x8993e0
// > ??> @ 0x73858
//
// 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:11 +0000
//
__int64 __fastcall GJBaseGameLayer::activateTimerTrigger(__int64 result, __int64 a2, __int64 a3)
{
int v4; // w8
int v5; // w1
v4 = *(_DWORD *)(a2 + 1028);
switch ( v4 )
{
case 3615:
return GJEffectManager::runTimerTrigger(
*(_QWORD *)(result + 2152),
*(unsigned int *)(a2 + 1680),
*(unsigned __int8 *)(a2 + 1865),
*(unsigned int *)(a2 + 1464),
a3,
*(unsigned int *)(a2 + 916),
*(unsigned int *)(a2 + 1672),
*(double *)(a2 + 1848));
case 3617:
v5 = *(_DWORD *)(a2 + 1868);
if ( v5 )
{
if ( v5 == 1 )
return GJEffectManager::pauseTimer(*(GJEffectManager **)(result + 2152), *(_DWORD *)(a2 + 1680));
}
else
{
return GJEffectManager::resumeTimer(*(GJEffectManager **)(result + 2152), *(_DWORD *)(a2 + 1680));
}
break;
case 3614:
return GJEffectManager::startTimer(
*(_QWORD *)(result + 2152),
*(unsigned int *)(a2 + 1680),
*(unsigned __int8 *)(a2 + 1856),
*(unsigned __int8 *)(a2 + 1864) ^ 1u,
*(unsigned __int8 *)(a2 + 1857),
*(unsigned __int8 *)(a2 + 1858),
*(unsigned int *)(a2 + 1464),
a3,
*(double *)(a2 + 1840),
*(double *)(a2 + 1848),
*(float *)(a2 + 1860),
*(_DWORD *)(a2 + 916),
*(_DWORD *)(a2 + 1672));
}
return result;
}