//
// SongTriggerGameObject::customObjectSetup from 0x10038df98 to 0x10038e068 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x100801838
//
// 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 SongTriggerGameObject::customObjectSetup(
SongTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // x21
void *v7; // x8
std::__vector_base::pointer capacitym1; // x0
void *v9; // x8
std::__vector_base::pointer v10; // x0
std::__vector_base::pointer v11; // x0
int v12; // w0
SFXTriggerGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
v7 = begin[399];
if ( v7 )
{
capacitym1 = a2->__begin_ + 399;
if ( a2->__begin_[399].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
LOBYTE(v7) = atoi((const char *)capacitym1) != 0;
}
a1->m_prep = (char)v7;
v9 = begin[400];
if ( v9 )
{
v10 = a2->__begin_ + 400;
if ( a2->__begin_[400].m_data.m_short.shortStorage.__elems_[22] < 0 )
v10 = (std::__vector_base::pointer)v10->m_data.m_long.capacitym1;
LOBYTE(v9) = atoi((const char *)v10) != 0;
}
a1->m_loadPrep = (char)v9;
if ( begin[432] )
{
v11 = a2->__begin_ + 432;
if ( a2->__begin_[432].m_data.m_short.shortStorage.__elems_[22] < 0 )
v11 = (std::__vector_base::pointer)v11->m_data.m_long.capacitym1;
v12 = atoi((const char *)v11);
}
else
{
v12 = 0;
}
a1->m_songChannel = v12;
}