//
// EnhancedTriggerObject::customObjectSetup from 0x1404b1e90 to 0x1404b1f97 (263 bytes)
//
// 2 xrefs:
// > ??> @ 0x140618848
// > ??> @ 0x1406dc974
//
// 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 EnhancedTriggerObject::customObjectSetup(
EnhancedTriggerObject *a1,
std::vector *a2,
std::vector *a3)
{
int v6; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int v8; // eax
std::_Vector_val>::pointer v9; // rcx
int v10; // eax
std::_Vector_val>::pointer v11; // rcx
std::_Vector_val>::pointer v12; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 516) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 516;
if ( a2->_Mypair._Myval2._Myfirst[516].m_data.m_capacity > 0xF )
m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage;
v6 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);
}
else
{
v6 = 0;
}
a1->m_minXID = v6;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 517) )
{
v9 = a2->_Mypair._Myval2._Myfirst + 517;
if ( a2->_Mypair._Myval2._Myfirst[517].m_data.m_capacity > 0xF )
v9 = (std::_Vector_val>::pointer)v9->m_data.m_bigStorage;
v8 = atoi(v9->m_data.m_smallStorage._Elems);
}
else
{
v8 = 0;
}
a1->m_minYID = v8;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 518) )
{
v11 = a2->_Mypair._Myval2._Myfirst + 518;
if ( a2->_Mypair._Myval2._Myfirst[518].m_data.m_capacity > 0xF )
v11 = (std::_Vector_val>::pointer)v11->m_data.m_bigStorage;
v10 = atoi(v11->m_data.m_smallStorage._Elems);
}
else
{
v10 = 0;
}
a1->m_maxXID = v10;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 519) )
{
v12 = a2->_Mypair._Myval2._Myfirst + 519;
if ( a2->_Mypair._Myval2._Myfirst[519].m_data.m_capacity > 0xF )
v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage;
a1->m_maxYID = atoi(v12->m_data.m_smallStorage._Elems);
}
else
{
a1->m_maxYID = 0;
}
}