//
// UISettingsGameObject::customObjectSetup from 0x1003928d8 to 0x100392a50 (376 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008040a0
//
// 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 UISettingsGameObject::customObjectSetup(
UISettingsGameObject *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
std::__vector_base::pointer v13; // x0
int v14; // w0
std::__vector_base::pointer v15; // x0
int v16; // w0
void *v17; // x8
std::__vector_base::pointer v18; // x0
void *v19; // x8
std::__vector_base::pointer v20; // 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;
if ( begin[385] )
{
v13 = a2->__begin_ + 385;
if ( a2->__begin_[385].m_data.m_short.shortStorage.__elems_[22] < 0 )
v13 = (std::__vector_base::pointer)v13->m_data.m_long.capacitym1;
v14 = atoi((const char *)v13);
}
else
{
v14 = 0;
}
a1->m_xRef = v14;
if ( begin[386] )
{
v15 = a2->__begin_ + 386;
if ( a2->__begin_[386].m_data.m_short.shortStorage.__elems_[22] < 0 )
v15 = (std::__vector_base::pointer)v15->m_data.m_long.capacitym1;
v16 = atoi((const char *)v15);
}
else
{
v16 = 0;
}
a1->m_yRef = v16;
v17 = begin[387];
if ( v17 )
{
v18 = a2->__begin_ + 387;
if ( a2->__begin_[387].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_xRelative = (char)v17;
v19 = begin[388];
if ( v19 )
{
v20 = a2->__begin_ + 388;
if ( a2->__begin_[388].m_data.m_short.shortStorage.__elems_[22] < 0 )
v20 = (std::__vector_base::pointer)v20->m_data.m_long.capacitym1;
LOBYTE(v19) = atoi((const char *)v20) != 0;
}
a1->m_yRelative = (char)v19;
}