//
// EndTriggerGameObject::customObjectSetup from 0x100392320 to 0x100392464 (324 bytes)
//
// 1 xrefs:
// > ??> @ 0x100803890
//
// 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 EndTriggerGameObject::customObjectSetup(
EndTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // x21
std::__vector_base::pointer capacitym1; // x0
int v8; // w0
int v9; // w8
std::__vector_base::pointer v10; // x0
int v11; // w0
int v12; // w8
void *v13; // x8
std::__vector_base::pointer v14; // x0
void *v15; // x8
std::__vector_base::pointer v16; // x0
void *v17; // x8
std::__vector_base::pointer v18; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
if ( begin[51] )
{
capacitym1 = a2->__begin_ + 51;
if ( a2->__begin_[51].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
v8 = atoi((const char *)capacitym1);
}
else
{
v8 = 0;
}
v9 = v8 & ~(v8 >> 31);
if ( v9 >= 9999 )
v9 = 9999;
a1->m_targetGroupID = v9;
if ( begin[71] )
{
v10 = a2->__begin_ + 71;
if ( a2->__begin_[71].m_data.m_short.shortStorage.__elems_[22] < 0 )
v10 = (std::__vector_base::pointer)v10->m_data.m_long.capacitym1;
v11 = atoi((const char *)v10);
}
else
{
v11 = 0;
}
v12 = v11 & ~(v11 >> 31);
if ( v12 >= 9999 )
v12 = 9999;
a1->m_centerGroupID = v12;
v13 = begin[460];
if ( v13 )
{
v14 = a2->__begin_ + 460;
if ( a2->__begin_[460].m_data.m_short.shortStorage.__elems_[22] < 0 )
v14 = (std::__vector_base::pointer)v14->m_data.m_long.capacitym1;
LOBYTE(v13) = atoi((const char *)v14) != 0;
}
a1->m_noEffects = (char)v13;
v15 = begin[461];
if ( v15 )
{
v16 = a2->__begin_ + 461;
if ( a2->__begin_[461].m_data.m_short.shortStorage.__elems_[22] < 0 )
v16 = (std::__vector_base::pointer)v16->m_data.m_long.capacitym1;
LOBYTE(v15) = atoi((const char *)v16) != 0;
}
a1->m_noSFX = (char)v15;
v17 = begin[487];
if ( v17 )
{
v18 = a2->__begin_ + 487;
if ( a2->__begin_[487].m_data.m_short.shortStorage.__elems_[22] < 0 )
v18 = (std::__vector_base::pointer)v18->m_data.m_long.capacitym1;
LOBYTE(v17) = atoi((const char *)v18) != 0;
}
a1->m_instant = (char)v17;
}