//
// GJBaseGameLayer::activateTimerTrigger from 0x10012b560 to 0x10012b684 (292 bytes)
//
// 1 xrefs:
// > TimerTriggerGameObject::triggerObject @ 0x1001c404b
//
// 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::activateTimerTrigger(__int64 a1, __int64 a2, __int64 a3)
{
int v3; // ecx
__int64 result; // rax
v3 = *(_DWORD *)(a2 + 1028);
if ( v3 == 3617 )
{
result = *(unsigned int *)(a2 + 1868);
if ( (_DWORD)result == 1 )
{
return sub_1002D7700(*(_QWORD *)(a1 + 2152), *(unsigned int *)(a2 + 1680));
}
else if ( !(_DWORD)result )
{
return sub_1002D78A0(*(_QWORD *)(a1 + 2152), *(unsigned int *)(a2 + 1680));
}
}
else
{
result = a3;
if ( v3 == 3615 )
{
return GJEffectManager::runTimerTrigger(
*(_QWORD *)(a1 + 2152),
*(_DWORD *)(a2 + 1680),
*(unsigned __int8 *)(a2 + 1865),
*(_DWORD *)(a2 + 1464),
a3,
*(_DWORD *)(a2 + 916),
*(_DWORD *)(a2 + 1672));
}
else if ( v3 == 3614 )
{
return GJEffectManager::startTimer(
*(_QWORD *)(a1 + 2152),
*(_DWORD *)(a2 + 1680),
*(unsigned __int8 *)(a2 + 1856),
*(unsigned __int8 *)(a2 + 1864) ^ 1u,
*(unsigned __int8 *)(a2 + 1857),
*(unsigned __int8 *)(a2 + 1858),
*(_DWORD *)(a2 + 1464),
a3,
*(_DWORD *)(a2 + 916),
*(_DWORD *)(a2 + 1672));
}
}
return result;
}