//
// SongTriggerGameObject::customObjectSetup from 0x1404b8750 to 0x1404b8830 (224 bytes)
//
// 2 xrefs:
// > ??> @ 0x14060e930
// > ??> @ 0x1406dcc44
//
// 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 SongTriggerGameObject::customObjectSetup(
SongTriggerGameObject *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
std::_Vector_val>::pointer v10; // rcx
SFXTriggerGameObject::customObjectSetup(a1, a2, a3);
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 399) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 399;
if ( a2->_Mypair._Myval2._Myfirst[399].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_prep = v6 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 400) )
{
v9 = a2->_Mypair._Myval2._Myfirst + 400;
if ( a2->_Mypair._Myval2._Myfirst[400].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_loadPrep = v8 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 432) )
{
v10 = a2->_Mypair._Myval2._Myfirst + 432;
if ( a2->_Mypair._Myval2._Myfirst[432].m_data.m_capacity > 0xF )
v10 = (std::_Vector_val>::pointer)v10->m_data.m_bigStorage;
a1->m_songChannel = atoi(v10->m_data.m_smallStorage._Elems);
}
else
{
a1->m_songChannel = 0;
}
}