//
// TimerTriggerGameObject::customObjectSetup from 0x1404bf9c0 to 0x1404bfca6 (742 bytes)
//
// 4 xrefs:
// > ??> @ 0x14061aea0
// > ??> @ 0x1406a8ec0
// > ??> @ 0x1406a8ed0
// > ??> @ 0x1406dce9c
//
// 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 TimerTriggerGameObject::customObjectSetup(
TimerTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int v6; // edi
int v7; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int m_objectID; // ecx
int v10; // ecx
int v11; // ecx
std::_Vector_val>::pointer v12; // rcx
double v13; // xmm0_8
std::_Vector_val>::pointer v14; // rcx
std::_Vector_val>::pointer v15; // rcx
double v16; // xmm6_8
double v17; // xmm0_8
std::_Vector_val>::pointer v18; // rcx
double v19; // xmm0_8
std::_Vector_val>::pointer v20; // rcx
int v21; // eax
std::_Vector_val>::pointer v22; // rcx
int v23; // eax
std::_Vector_val>::pointer v24; // rcx
int v25; // eax
std::_Vector_val>::pointer v26; // rcx
std::_Vector_val>::pointer v27; // rcx
float v28; // xmm0_4
int v29; // eax
std::_Vector_val>::pointer v30; // rcx
std::_Vector_val>::pointer v31; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 80) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 80;
if ( a2->_Mypair._Myval2._Myfirst[80].m_data.m_capacity > 0xF )
m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage;
v7 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);
}
else
{
v7 = 0;
}
m_objectID = a1->m_objectID;
a1->m_itemID = v7;
v10 = m_objectID - 3614;
if ( v10 )
{
v11 = v10 - 1;
if ( v11 )
{
if ( v11 == 2 )
{
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 472) )
{
v12 = a2->_Mypair._Myval2._Myfirst + 472;
if ( a2->_Mypair._Myval2._Myfirst[472].m_data.m_capacity > 0xF )
v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage;
v6 = atoi(v12->m_data.m_smallStorage._Elems);
}
a1->m_controlType = v6;
}
return;
}
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 473) )
{
v14 = a2->_Mypair._Myval2._Myfirst + 473;
if ( a2->_Mypair._Myval2._Myfirst[473].m_data.m_capacity > 0xF )
v14 = (std::_Vector_val>::pointer)v14->m_data.m_bigStorage;
v13 = atof(v14->m_data.m_smallStorage._Elems);
}
else
{
v13 = 0.0;
}
a1->m_targetTime = v13;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 475) )
{
v15 = a2->_Mypair._Myval2._Myfirst + 475;
if ( a2->_Mypair._Myval2._Myfirst[475].m_data.m_capacity > 0xF )
v15 = (std::_Vector_val>::pointer)v15->m_data.m_bigStorage;
a1->m_multiActivate = atoi(v15->m_data.m_smallStorage._Elems) != 0;
}
else
{
a1->m_multiActivate = 0;
}
}
else
{
v16 = 0.0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 467) )
{
v18 = a2->_Mypair._Myval2._Myfirst + 467;
if ( a2->_Mypair._Myval2._Myfirst[467].m_data.m_capacity > 0xF )
v18 = (std::_Vector_val>::pointer)v18->m_data.m_bigStorage;
v17 = atof(v18->m_data.m_smallStorage._Elems);
}
else
{
v17 = 0.0;
}
a1->m_startTime = v17;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 473) )
{
v20 = a2->_Mypair._Myval2._Myfirst + 473;
if ( a2->_Mypair._Myval2._Myfirst[473].m_data.m_capacity > 0xF )
v20 = (std::_Vector_val>::pointer)v20->m_data.m_bigStorage;
v19 = atof(v20->m_data.m_smallStorage._Elems);
}
else
{
v19 = 0.0;
}
a1->m_targetTime = v19;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 474) )
{
v22 = a2->_Mypair._Myval2._Myfirst + 474;
if ( a2->_Mypair._Myval2._Myfirst[474].m_data.m_capacity > 0xF )
v22 = (std::_Vector_val>::pointer)v22->m_data.m_bigStorage;
v21 = atoi(v22->m_data.m_smallStorage._Elems);
}
else
{
v21 = 0;
}
a1->m_stopTimeEnabled = v21 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 468) )
{
v24 = a2->_Mypair._Myval2._Myfirst + 468;
if ( a2->_Mypair._Myval2._Myfirst[468].m_data.m_capacity > 0xF )
v24 = (std::_Vector_val>::pointer)v24->m_data.m_bigStorage;
v23 = atoi(v24->m_data.m_smallStorage._Elems);
}
else
{
v23 = 0;
}
a1->m_dontOverride = v23 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 469) )
{
v26 = a2->_Mypair._Myval2._Myfirst + 469;
if ( a2->_Mypair._Myval2._Myfirst[469].m_data.m_capacity > 0xF )
v26 = (std::_Vector_val>::pointer)v26->m_data.m_bigStorage;
v25 = atoi(v26->m_data.m_smallStorage._Elems);
}
else
{
v25 = 0;
}
a1->m_ignoreTimeWarp = v25 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 470) )
{
v27 = a2->_Mypair._Myval2._Myfirst + 470;
if ( a2->_Mypair._Myval2._Myfirst[470].m_data.m_capacity > 0xF )
v27 = (std::_Vector_val>::pointer)v27->m_data.m_bigStorage;
v16 = atof(v27->m_data.m_smallStorage._Elems);
}
v28 = v16;
a1->m_timeMod = v28;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 471) )
{
v30 = a2->_Mypair._Myval2._Myfirst + 471;
if ( a2->_Mypair._Myval2._Myfirst[471].m_data.m_capacity > 0xF )
v30 = (std::_Vector_val>::pointer)v30->m_data.m_bigStorage;
v29 = atoi(v30->m_data.m_smallStorage._Elems);
}
else
{
v29 = 0;
}
a1->m_startPaused = v29 != 0;
}
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) )
{
v31 = a2->_Mypair._Myval2._Myfirst + 51;
if ( a2->_Mypair._Myval2._Myfirst[51].m_data.m_capacity > 0xF )
v31 = (std::_Vector_val>::pointer)v31->m_data.m_bigStorage;
v6 = atoi(v31->m_data.m_smallStorage._Elems);
}
a1->m_targetGroupID = v6;
}