//
// UISettingsGameObject::customObjectSetup from 0x1001ddc20 to 0x1001ddde0 (448 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d3028
//
// 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; // r13
int v5; // r15d
int v6; // eax
std::__vector_base::pointer v7; // rdi
const char *longStorage; // rdi
int v9; // r14d
std::__vector_base::pointer v10; // rdi
const char *elems; // rdi
int v12; // r12d
int v13; // eax
std::__vector_base::pointer v14; // rdi
const char *v15; // rdi
std::__vector_base::pointer v16; // rdi
const char *v17; // rdi
std::__vector_base::pointer v18; // rdi
const char *v19; // rdi
bool v20; // al
std::__vector_base::pointer v21; // rdi
const char *v22; // rdi
EffectGameObject::customObjectSetup(a1, a2, a3);
begin = a3->__begin_;
v5 = 0;
v6 = 0;
if ( begin[51] )
{
v7 = a2->__begin_;
if ( (a2->__begin_[51].m_data.m_short.sizex2 & 1) != 0 )
longStorage = v7[51].m_data.m_long.longStorage;
else
longStorage = v7[51].m_data.m_short.shortStorage.__elems_;
v6 = atoi(longStorage);
}
if ( v6 <= 0 )
v6 = 0;
v9 = 9999;
if ( v6 >= 9999 )
v6 = 9999;
a1->m_targetGroupID = v6;
if ( begin[71] )
{
v10 = a2->__begin_;
if ( (a2->__begin_[71].m_data.m_short.sizex2 & 1) != 0 )
elems = v10[71].m_data.m_long.longStorage;
else
elems = v10[71].m_data.m_short.shortStorage.__elems_;
v5 = atoi(elems);
}
v12 = 0;
if ( v5 <= 0 )
v5 = 0;
if ( v5 < 9999 )
v9 = v5;
a1->m_centerGroupID = v9;
v13 = 0;
if ( begin[385] )
{
v14 = a2->__begin_;
if ( (a2->__begin_[385].m_data.m_short.sizex2 & 1) != 0 )
v15 = v14[385].m_data.m_long.longStorage;
else
v15 = v14[385].m_data.m_short.shortStorage.__elems_;
v13 = atoi(v15);
}
a1->m_xRef = v13;
if ( begin[386] )
{
v16 = a2->__begin_;
if ( (a2->__begin_[386].m_data.m_short.sizex2 & 1) != 0 )
v17 = v16[386].m_data.m_long.longStorage;
else
v17 = v16[386].m_data.m_short.shortStorage.__elems_;
v12 = atoi(v17);
}
a1->m_yRef = v12;
if ( begin[387] )
{
v18 = a2->__begin_;
if ( (a2->__begin_[387].m_data.m_short.sizex2 & 1) != 0 )
v19 = v18[387].m_data.m_long.longStorage;
else
v19 = v18[387].m_data.m_short.shortStorage.__elems_;
a1->m_xRelative = atoi(v19) != 0;
if ( begin[388] )
goto LABEL_36;
LABEL_33:
v20 = 0;
goto LABEL_40;
}
a1->m_xRelative = 0;
if ( !begin[388] )
goto LABEL_33;
LABEL_36:
v21 = a2->__begin_;
if ( (a2->__begin_[388].m_data.m_short.sizex2 & 1) != 0 )
v22 = v21[388].m_data.m_long.longStorage;
else
v22 = v21[388].m_data.m_short.shortStorage.__elems_;
v20 = atoi(v22) != 0;
LABEL_40:
a1->m_yRelative = v20;
}