//
// GJEffectManager::updateTimer from 0x100015e98 to 0x100015f64 (204 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::activateItemEditTrigger @ 0x1001fbde0
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x1001fc1e8
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x1001fc29c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJEffectManager::updateTimer(GJEffectManager *a1, int a2, double a3)
{
int v4; // w8
double v5; // d8
__int64 v6; // x0
std::vector __p; // [xsp+10h] [xbp-40h] BYREF
int v8; // [xsp+2Ch] [xbp-24h] BYREF
v4 = a2 & ~(a2 >> 31);
if ( v4 >= 9999 )
v4 = 9999;
v8 = v4;
v5 = 9999999.0;
if ( a3 <= 9999999.0 )
{
v5 = a3;
if ( a3 < -9999999.0 )
v5 = -9999999.0;
}
v6 = sub_100018814(&a1->m_timerItemMap, &v8);
if ( v6 )
{
*(double *)(v6 + 32) = v5;
}
else
{
memset(&__p, 0, sizeof(__p));
GJEffectManager::startTimer(a1, v8, v5, 0.0, 0, 0, 1, 1.0, 0, 0, &__p, 0, 0);
if ( __p.__begin_ )
{
__p.__end_ = __p.__begin_;
operator delete(__p.__begin_);
}
}
}