//
// EndTriggerGameObject::customObjectSetup from 0x1404bd100 to 0x1404bd264 (356 bytes)
//
// 2 xrefs:
// > ??> @ 0x1406181a0
// > ??> @ 0x1406dce18
//
// 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 EndTriggerGameObject::customObjectSetup(
EndTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int v6; // ebp
int v7; // ebx
int v8; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int v10; // eax
std::_Vector_val>::pointer v11; // rcx
int v12; // eax
std::_Vector_val>::pointer v13; // rcx
int v14; // eax
std::_Vector_val>::pointer v15; // rcx
std::_Vector_val>::pointer v16; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 9999;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 51;
if ( a2->_Mypair._Myval2._Myfirst[51].m_data.m_capacity > 0xF )
m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage;
v8 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);
v7 = 0;
if ( v8 < 0 )
v8 = 0;
if ( v8 > 9999 )
v8 = 9999;
}
else
{
v7 = 0;
v8 = 0;
}
a1->m_targetGroupID = v8;
if ( !*((_QWORD *)a3->_Mypair._Myval2._Myfirst + 71) )
{
v10 = 0;
LABEL_16:
v6 = v10;
goto LABEL_17;
}
v11 = a2->_Mypair._Myval2._Myfirst + 71;
if ( a2->_Mypair._Myval2._Myfirst[71].m_data.m_capacity > 0xF )
v11 = (std::_Vector_val>::pointer)v11->m_data.m_bigStorage;
v10 = atoi(v11->m_data.m_smallStorage._Elems);
if ( v10 < 0 )
v10 = 0;
if ( v10 <= 9999 )
goto LABEL_16;
LABEL_17:
a1->m_centerGroupID = v6;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 460) )
{
v13 = a2->_Mypair._Myval2._Myfirst + 460;
if ( a2->_Mypair._Myval2._Myfirst[460].m_data.m_capacity > 0xF )
v13 = (std::_Vector_val>::pointer)v13->m_data.m_bigStorage;
v12 = atoi(v13->m_data.m_smallStorage._Elems);
}
else
{
v12 = 0;
}
a1->m_noEffects = v12 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 461) )
{
v15 = a2->_Mypair._Myval2._Myfirst + 461;
if ( a2->_Mypair._Myval2._Myfirst[461].m_data.m_capacity > 0xF )
v15 = (std::_Vector_val>::pointer)v15->m_data.m_bigStorage;
v14 = atoi(v15->m_data.m_smallStorage._Elems);
}
else
{
v14 = 0;
}
a1->m_noSFX = v14 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 487) )
{
v16 = a2->_Mypair._Myval2._Myfirst + 487;
if ( a2->_Mypair._Myval2._Myfirst[487].m_data.m_capacity > 0xF )
v16 = (std::_Vector_val>::pointer)v16->m_data.m_bigStorage;
v7 = atoi(v16->m_data.m_smallStorage._Elems);
}
a1->m_instant = v7 != 0;
}