//
// SongTriggerGameObject::customObjectSetup from 0x1001d1370 to 0x1001d146a (250 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d07c0
//
// 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; // r12
std::__vector_base::pointer v6; // rdi
const char *longStorage; // rdi
int v8; // r15d
std::__vector_base::pointer v9; // rdi
const char *elems; // rdi
std::__vector_base::pointer v11; // rdi
const char *v12; // rdi
SFXTriggerGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
if ( !*((_QWORD *)a3->__begin_ + 399) )
{
a1->m_prep = 0;
v8 = 0;
if ( begin[400] )
goto LABEL_9;
LABEL_5:
a1->m_loadPrep = 0;
if ( !begin[432] )
goto LABEL_17;
goto LABEL_13;
}
v6 = a2->__begin_;
if ( (a2->__begin_[399].m_data.m_short.sizex2 & 1) != 0 )
longStorage = v6[399].m_data.m_long.longStorage;
else
longStorage = v6[399].m_data.m_short.shortStorage.__elems_;
a1->m_prep = atoi(longStorage) != 0;
v8 = 0;
if ( !begin[400] )
goto LABEL_5;
LABEL_9:
v9 = a2->__begin_;
if ( (a2->__begin_[400].m_data.m_short.sizex2 & 1) != 0 )
elems = v9[400].m_data.m_long.longStorage;
else
elems = v9[400].m_data.m_short.shortStorage.__elems_;
a1->m_loadPrep = atoi(elems) != 0;
if ( begin[432] )
{
LABEL_13:
v11 = a2->__begin_;
if ( (a2->__begin_[432].m_data.m_short.sizex2 & 1) != 0 )
v12 = v11[432].m_data.m_long.longStorage;
else
v12 = v11[432].m_data.m_short.shortStorage.__elems_;
v8 = atoi(v12);
}
LABEL_17:
a1->m_songChannel = v8;
}