//
// RingObject::customObjectSetup from 0x1404a2090 to 0x1404a21a5 (277 bytes)
//
// 4 xrefs:
// > ??> @ 0x14061cad0
// > ??> @ 0x1406a7c5c
// > ??> @ 0x1406a7c6c
// > ??> @ 0x1406dc758
//
// 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 RingObject::customObjectSetup(RingObject *a1, std::vector *a2, std::vector *a3)
{
int v6; // ebx
int v7; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int v9; // eax
std::_Vector_val>::pointer v10; // rcx
int v11; // eax
std::_Vector_val>::pointer v12; // rcx
std::_Vector_val>::pointer v13; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( a1->m_objectType == CustomRing )
{
v6 = 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) )
{
m_bigStorage = a2->_Mypair._Myval2._Myfirst + 51;
if ( a2->_Mypair._Myval2._Myfirst[51].m_data.m_capacity > 0xF )
m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage;
v7 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);
}
else
{
v7 = 0;
}
a1->m_targetGroupID = v7;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 56) )
{
v10 = a2->_Mypair._Myval2._Myfirst + 56;
if ( a2->_Mypair._Myval2._Myfirst[56].m_data.m_capacity > 0xF )
v10 = (std::_Vector_val>::pointer)v10->m_data.m_bigStorage;
v9 = atoi(v10->m_data.m_smallStorage._Elems);
}
else
{
v9 = 0;
}
a1->m_activateGroup = v9 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 445) )
{
v12 = a2->_Mypair._Myval2._Myfirst + 445;
if ( a2->_Mypair._Myval2._Myfirst[445].m_data.m_capacity > 0xF )
v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage;
v11 = atoi(v12->m_data.m_smallStorage._Elems);
}
else
{
v11 = 0;
}
a1->m_claimTouch = v11 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 504) )
{
v13 = a2->_Mypair._Myval2._Myfirst + 504;
if ( a2->_Mypair._Myval2._Myfirst[504].m_data.m_capacity > 0xF )
v13 = (std::_Vector_val>::pointer)v13->m_data.m_bigStorage;
v6 = atoi(v13->m_data.m_smallStorage._Elems);
}
a1->m_isSpawnOnly = v6 != 0;
}
}