//
// UISettingsGameObject::customObjectSetup from 0x1404bd690 to 0x1404bd820 (400 bytes)
//
// 2 xrefs:
// > ??> @ 0x140617a30
// > ??> @ 0x1406dce3c
//
// 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 UISettingsGameObject::customObjectSetup(
UISettingsGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int v6; // ebp
int v7; // ebx
int v8; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int v10; // eax
std::_Vector_val>::pointer v11; // rcx
int v12; // eax
std::_Vector_val>::pointer v13; // rcx
int v14; // eax
std::_Vector_val>::pointer v15; // rcx
int v16; // eax
std::_Vector_val>::pointer v17; // rcx
std::_Vector_val>::pointer v18; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 9999;
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;
v8 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);
v7 = 0;
if ( v8 < 0 )
v8 = 0;
if ( v8 > 9999 )
v8 = 9999;
}
else
{
v7 = 0;
v8 = 0;
}
a1->m_targetGroupID = v8;
if ( !*((_QWORD *)a3->_Mypair._Myval2._Myfirst + 71) )
{
v10 = 0;
LABEL_16:
v6 = v10;
goto LABEL_17;
}
v11 = a2->_Mypair._Myval2._Myfirst + 71;
if ( a2->_Mypair._Myval2._Myfirst[71].m_data.m_capacity > 0xF )
v11 = (std::_Vector_val>::pointer)v11->m_data.m_bigStorage;
v10 = atoi(v11->m_data.m_smallStorage._Elems);
if ( v10 < 0 )
v10 = 0;
if ( v10 <= 9999 )
goto LABEL_16;
LABEL_17:
a1->m_centerGroupID = v6;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 385) )
{
v13 = a2->_Mypair._Myval2._Myfirst + 385;
if ( a2->_Mypair._Myval2._Myfirst[385].m_data.m_capacity > 0xF )
v13 = (std::_Vector_val>::pointer)v13->m_data.m_bigStorage;
v12 = atoi(v13->m_data.m_smallStorage._Elems);
}
else
{
v12 = 0;
}
a1->m_xRef = v12;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 386) )
{
v15 = a2->_Mypair._Myval2._Myfirst + 386;
if ( a2->_Mypair._Myval2._Myfirst[386].m_data.m_capacity > 0xF )
v15 = (std::_Vector_val>::pointer)v15->m_data.m_bigStorage;
v14 = atoi(v15->m_data.m_smallStorage._Elems);
}
else
{
v14 = 0;
}
a1->m_yRef = v14;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 387) )
{
v17 = a2->_Mypair._Myval2._Myfirst + 387;
if ( a2->_Mypair._Myval2._Myfirst[387].m_data.m_capacity > 0xF )
v17 = (std::_Vector_val>::pointer)v17->m_data.m_bigStorage;
v16 = atoi(v17->m_data.m_smallStorage._Elems);
}
else
{
v16 = 0;
}
a1->m_xRelative = v16 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 388) )
{
v18 = a2->_Mypair._Myval2._Myfirst + 388;
if ( a2->_Mypair._Myval2._Myfirst[388].m_data.m_capacity > 0xF )
v18 = (std::_Vector_val>::pointer)v18->m_data.m_bigStorage;
v7 = atoi(v18->m_data.m_smallStorage._Elems);
}
a1->m_yRelative = v7 != 0;
}