//
// GJEffectManager::startTimer from 0x100015aac to 0x100015be4 (312 bytes)
//
// 2 xrefs:
// > GJEffectManager::updateTimer @ 0x100015f3c
// > GJBaseGameLayer::activateTimerTrigger @ 0x1001fc3fc
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJEffectManager::startTimer(
GJEffectManager *a1,
int a2,
double a3,
double a4,
bool a5,
bool a6,
bool a7,
float a8,
bool a9,
int a10,
std::vector *const a11,
int a12,
int a13)
{
__int64 v14; // x19
_BOOL8 v15; // x20
_BOOL8 v18; // x23
_BOOL8 v19; // x22
__int64 v23; // x0
float v24; // s0
float v25; // s1
_QWORD v26[7]; // [xsp+10h] [xbp-D0h] BYREF
void *__p; // [xsp+48h] [xbp-98h]
void *v28; // [xsp+50h] [xbp-90h]
unsigned int v29; // [xsp+68h] [xbp-78h] BYREF
char v30; // [xsp+6Fh] [xbp-71h] BYREF
v14 = *(_QWORD *)&a10;
v15 = a9;
v18 = a6;
v19 = a5;
v29 = a2;
if ( sub_100018814(&a1->m_timerItemMap, &v29) )
{
v26[0] = &v29;
v23 = sub_10001EC34(&a1->m_timerItemMap, &v29, &unk_10063553F, v26, &v30);
*(_BYTE *)(v23 + 40) = v18;
*(float *)(v23 + 44) = a8;
*(_BYTE *)(v23 + 48) = v15;
*(double *)(v23 + 56) = a4;
*(_BYTE *)(v23 + 64) = v19;
*(_DWORD *)(v23 + 68) = v14;
*(_DWORD *)(v23 + 72) = a12;
*(_DWORD *)(v23 + 76) = a13;
*(_BYTE *)(v23 + 104) = 0;
if ( !a7 )
*(double *)(v23 + 32) = a3;
}
else
{
v24 = a3;
v25 = a4;
sub_100015C00(v26, v29, v19, v15, v18, v14, a11, (unsigned int)a12, v24, v25, a8, a13);
sub_10001F078(&a1->m_timerItemMap, &v29, &v29, v26);
if ( __p )
{
v28 = __p;
operator delete(__p);
}
}
}