//
// RingObject::customObjectSetup from 0x1003827a8 to 0x1003828a8 (256 bytes)
//
// 2 xrefs:
// > DashRingObject::customObjectSetup @ 0x100382c54
// > ??> @ 0x1007fe730
//
// 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 RingObject::customObjectSetup(RingObject *a1, std::vector *a2, std::vector *a3)
{
std::__vector_base::pointer begin; // x21
std::__vector_base::pointer capacitym1; // x0
int v8; // w0
void *v9; // x8
std::__vector_base::pointer v10; // x0
void *v11; // x8
std::__vector_base::pointer v12; // x0
void *v13; // x8
std::__vector_base::pointer v14; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( a1->m_objectType == CustomRing )
{
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;
}
a1->m_targetGroupID = v8;
v9 = begin[56];
if ( v9 )
{
v10 = a2->__begin_ + 56;
if ( a2->__begin_[56].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_activateGroup = (char)v9;
v11 = begin[445];
if ( v11 )
{
v12 = a2->__begin_ + 445;
if ( a2->__begin_[445].m_data.m_short.shortStorage.__elems_[22] < 0 )
v12 = (std::__vector_base::pointer)v12->m_data.m_long.capacitym1;
LOBYTE(v11) = atoi((const char *)v12) != 0;
}
a1->m_claimTouch = (char)v11;
v13 = begin[504];
if ( v13 )
{
v14 = a2->__begin_ + 504;
if ( a2->__begin_[504].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_isSpawnOnly = (char)v13;
}
}