//
// SpawnParticleGameObject::customObjectSetup from 0x1001f1810 to 0x1001f1b2e (798 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d80c8
//
// 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 SpawnParticleGameObject::customObjectSetup(
SpawnParticleGameObject *a1,
std::vector *a2,
std::vector *a3)
{
std::__vector_base::pointer begin; // r13
int v6; // r12d
int v7; // eax
std::__vector_base::pointer v8; // rdi
const char *longStorage; // rdi
int v10; // r15d
std::__vector_base::pointer v11; // rdi
const char *elems; // rdi
int v13; // eax
float v14; // xmm1_4
float v15; // xmm0_4
std::__vector_base::pointer v16; // rdi
const char *v17; // rdi
bool v18; // zf
std::vector *v19; // r13
std::__vector_base::pointer v20; // rdi
const char *v21; // rdi
std::__vector_base::pointer v22; // r15
float v23; // xmm1_4
float v24; // xmm0_4
std::__vector_base::pointer v25; // rdi
const char *v26; // rdi
std::__vector_base::pointer v27; // rdi
const char *v28; // rdi
_QWORD *v29; // r15
std::__vector_base::pointer v30; // rdi
const char *v31; // rdi
bool v32; // al
float v33; // xmm1_4
float v34; // xmm0_4
std::__vector_base::pointer v35; // rdi
const char *v36; // rdi
std::__vector_base::pointer v37; // rdi
const char *v38; // rdi
float v39; // xmm1_4
float v40; // xmm0_4
std::__vector_base::pointer v41; // rdi
const char *v42; // rdi
std::__vector_base::pointer v43; // rdi
const char *v44; // rdi
char v45[8]; // [rsp+0h] [rbp-40h] BYREF
std::vector *v46; // [rsp+8h] [rbp-38h]
float v47; // [rsp+14h] [rbp-2Ch]
EffectGameObject::customObjectSetup(a1, a2, a3);
v46 = a3;
begin = a3->__begin_;
v6 = 0;
v7 = 0;
if ( *((_QWORD *)a3->__begin_ + 51) )
{
v8 = a2->__begin_;
if ( (a2->__begin_[51].m_data.m_short.sizex2 & 1) != 0 )
longStorage = v8[51].m_data.m_long.longStorage;
else
longStorage = v8[51].m_data.m_short.shortStorage.__elems_;
v7 = atoi(longStorage);
}
if ( v7 <= 0 )
v7 = 0;
v10 = 9999;
if ( v7 >= 9999 )
v7 = 9999;
a1->m_targetGroupID = v7;
if ( begin[71] )
{
v11 = a2->__begin_;
if ( (a2->__begin_[71].m_data.m_short.sizex2 & 1) != 0 )
elems = v11[71].m_data.m_long.longStorage;
else
elems = v11[71].m_data.m_short.shortStorage.__elems_;
v6 = atoi(elems);
}
v13 = 0;
if ( v6 > 0 )
v13 = v6;
if ( v13 < 9999 )
v10 = v13;
a1->m_centerGroupID = v10;
v14 = 0.0;
v15 = 0.0;
if ( begin[547] )
{
v16 = a2->__begin_;
if ( (a2->__begin_[547].m_data.m_short.sizex2 & 1) != 0 )
v17 = v16[547].m_data.m_long.longStorage;
else
v17 = v16[547].m_data.m_short.shortStorage.__elems_;
v15 = atof(v17);
v14 = 0.0;
}
v18 = begin[548] == nullptr;
v19 = v46;
if ( !v18 )
{
v20 = a2->__begin_;
v18 = (a2->__begin_[548].m_data.m_short.sizex2 & 1) == 0;
v47 = v15;
if ( v18 )
v21 = v20[548].m_data.m_short.shortStorage.__elems_;
else
v21 = v20[548].m_data.m_long.longStorage;
v14 = atof(v21);
v15 = v47;
}
sub_10028CBE0(v45, v15, v14);
sub_10028CC90();
v22 = v19->__begin_;
v23 = 0.0;
v24 = 0.0;
if ( *((_QWORD *)v19->__begin_ + 549) )
{
v25 = a2->__begin_;
if ( (a2->__begin_[549].m_data.m_short.sizex2 & 1) != 0 )
v26 = v25[549].m_data.m_long.longStorage;
else
v26 = v25[549].m_data.m_short.shortStorage.__elems_;
v24 = atof(v26);
v23 = 0.0;
}
if ( v22[550] )
{
v27 = a2->__begin_;
v18 = (a2->__begin_[550].m_data.m_short.sizex2 & 1) == 0;
v47 = v24;
if ( v18 )
v28 = v27[550].m_data.m_short.shortStorage.__elems_;
else
v28 = v27[550].m_data.m_long.longStorage;
v23 = atof(v28);
v24 = v47;
}
sub_10028CBE0(v45, v24, v23);
sub_10028CC90();
v29 = v19->__begin_;
if ( *((_QWORD *)v19->__begin_ + 551) )
{
v30 = a2->__begin_;
if ( (a2->__begin_[551].m_data.m_short.sizex2 & 1) != 0 )
v31 = v30[551].m_data.m_long.longStorage;
else
v31 = v30[551].m_data.m_short.shortStorage.__elems_;
v32 = atoi(v31) != 0;
}
else
{
v32 = 0;
}
a1->m_matchRotation = v32;
v33 = 0.0;
v34 = 0.0;
if ( v29[552] )
{
v35 = a2->__begin_;
if ( (a2->__begin_[552].m_data.m_short.sizex2 & 1) != 0 )
v36 = v35[552].m_data.m_long.longStorage;
else
v36 = v35[552].m_data.m_short.shortStorage.__elems_;
v34 = atof(v36);
v33 = 0.0;
}
a1->m_rotation = v34;
if ( v29[553] )
{
v37 = a2->__begin_;
if ( (a2->__begin_[553].m_data.m_short.sizex2 & 1) != 0 )
v38 = v37[553].m_data.m_long.longStorage;
else
v38 = v37[553].m_data.m_short.shortStorage.__elems_;
v33 = atof(v38);
}
a1->m_rotationVariance = v33;
v39 = 0.0;
v40 = 0.0;
if ( v29[554] )
{
v41 = a2->__begin_;
if ( (a2->__begin_[554].m_data.m_short.sizex2 & 1) != 0 )
v42 = v41[554].m_data.m_long.longStorage;
else
v42 = v41[554].m_data.m_short.shortStorage.__elems_;
v40 = atof(v42);
v39 = 0.0;
}
a1->m_scale = v40;
if ( v29[555] )
{
v43 = a2->__begin_;
if ( (a2->__begin_[555].m_data.m_short.sizex2 & 1) != 0 )
v44 = v43[555].m_data.m_long.longStorage;
else
v44 = v43[555].m_data.m_short.shortStorage.__elems_;
v39 = atof(v44);
}
a1->m_scaleVariance = v39;
}