//
// TriggerControlGameObject::customObjectSetup from 0x1001ef980 to 0x1001efa65 (229 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d78b8
//
// 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 TriggerControlGameObject::customObjectSetup(
TriggerControlGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // r15
bool v6; // r12
int v7; // eax
std::__vector_base::pointer v8; // rdi
const char *longStorage; // rdi
int v10; // ecx
std::__vector_base::pointer v11; // rdi
const char *elems; // rdi
std::__vector_base::pointer v13; // rdi
const char *v14; // rdi
GJActionCommand v15; // eax
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
v6 = 0;
v7 = 0;
if ( begin[51] )
{
v8 = a2->__begin_;
if ( (a2->__begin_[51].m_data.m_short.sizex2 & 1) != 0 )
longStorage = v8[51].m_data.m_long.longStorage;
else
longStorage = v8[51].m_data.m_short.shortStorage.__elems_;
v7 = atoi(longStorage);
}
if ( v7 <= 0 )
v7 = 0;
v10 = 9999;
if ( v7 < 9999 )
v10 = v7;
a1->m_targetGroupID = v10;
if ( begin[535] )
{
v11 = a2->__begin_;
if ( (a2->__begin_[535].m_data.m_short.sizex2 & 1) != 0 )
elems = v11[535].m_data.m_long.longStorage;
else
elems = v11[535].m_data.m_short.shortStorage.__elems_;
v6 = atoi(elems) != 0;
}
a1->m_targetControlID = v6;
if ( begin[580] )
{
v13 = a2->__begin_;
if ( (a2->__begin_[580].m_data.m_short.sizex2 & 1) != 0 )
v14 = v13[580].m_data.m_long.longStorage;
else
v14 = v13[580].m_data.m_short.shortStorage.__elems_;
v15 = atoi(v14);
}
else
{
v15 = Stop;
}
a1->m_customTriggerValue = v15;
TriggerControlGameObject::updateTriggerControlFrame(a1);
}