//
// SpawnParticleGameObject::customObjectSetup from 0x1404c3c00 to 0x1404c3ef0 (752 bytes)
//
// 2 xrefs:
// > ??> @ 0x14061fbc0
// > ??> @ 0x1406dcff8
//
// 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 SpawnParticleGameObject::customObjectSetup(
SpawnParticleGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int v6; // ebp
int v7; // r14d
int v8; // eax
std::_Vector_val>::pointer m_bigStorage; // rcx
int v10; // eax
std::_Vector_val>::pointer v11; // rcx
std::_Vector_val>::pointer v12; // rcx
double v13; // xmm0_8
std::_Vector_val>::pointer v14; // rcx
float v15; // xmm1_4
__int64 v16; // rax
std::_Vector_val>::pointer v17; // rcx
double v18; // xmm0_8
std::_Vector_val>::pointer v19; // rcx
float v20; // xmm1_4
__int64 v21; // rax
std::_Vector_val>::pointer v22; // rcx
double v23; // xmm0_8
std::_Vector_val>::pointer v24; // rcx
float v25; // xmm0_4
double v26; // xmm0_8
std::_Vector_val>::pointer v27; // rcx
float v28; // xmm0_4
double v29; // xmm0_8
std::_Vector_val>::pointer v30; // rcx
float v31; // xmm0_4
float v32; // xmm0_4
std::_Vector_val>::pointer v33; // 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 + 548) )
{
v12 = a2->_Mypair._Myval2._Myfirst + 548;
if ( a2->_Mypair._Myval2._Myfirst[548].m_data.m_capacity > 0xF )
v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage;
atof(v12->m_data.m_smallStorage._Elems);
}
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 547) )
{
v14 = a2->_Mypair._Myval2._Myfirst + 547;
if ( a2->_Mypair._Myval2._Myfirst[547].m_data.m_capacity > 0xF )
v14 = (std::_Vector_val>::pointer)v14->m_data.m_bigStorage;
v13 = atof(v14->m_data.m_smallStorage._Elems);
}
else
{
v13 = 0.0;
}
v15 = v13;
cocos2d::CCPoint::CCPoint(*(float *)&v13, v15);
cocos2d::CCPoint::operator=(&a1->m_offset, v16);
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 550) )
{
v17 = a2->_Mypair._Myval2._Myfirst + 550;
if ( a2->_Mypair._Myval2._Myfirst[550].m_data.m_capacity > 0xF )
v17 = (std::_Vector_val>::pointer)v17->m_data.m_bigStorage;
atof(v17->m_data.m_smallStorage._Elems);
}
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 549) )
{
v19 = a2->_Mypair._Myval2._Myfirst + 549;
if ( a2->_Mypair._Myval2._Myfirst[549].m_data.m_capacity > 0xF )
v19 = (std::_Vector_val>::pointer)v19->m_data.m_bigStorage;
v18 = atof(v19->m_data.m_smallStorage._Elems);
}
else
{
v18 = 0.0;
}
v20 = v18;
cocos2d::CCPoint::CCPoint(*(float *)&v18, v20);
cocos2d::CCPoint::operator=(&a1->m_offsetVariance, v21);
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 551) )
{
v22 = a2->_Mypair._Myval2._Myfirst + 551;
if ( a2->_Mypair._Myval2._Myfirst[551].m_data.m_capacity > 0xF )
v22 = (std::_Vector_val>::pointer)v22->m_data.m_bigStorage;
v7 = atoi(v22->m_data.m_smallStorage._Elems);
}
a1->m_matchRotation = v7 != 0;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 552) )
{
v24 = a2->_Mypair._Myval2._Myfirst + 552;
if ( a2->_Mypair._Myval2._Myfirst[552].m_data.m_capacity > 0xF )
v24 = (std::_Vector_val>::pointer)v24->m_data.m_bigStorage;
v23 = atof(v24->m_data.m_smallStorage._Elems);
}
else
{
v23 = 0.0;
}
v25 = v23;
a1->m_rotation = v25;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 553) )
{
v27 = a2->_Mypair._Myval2._Myfirst + 553;
if ( a2->_Mypair._Myval2._Myfirst[553].m_data.m_capacity > 0xF )
v27 = (std::_Vector_val>::pointer)v27->m_data.m_bigStorage;
v26 = atof(v27->m_data.m_smallStorage._Elems);
}
else
{
v26 = 0.0;
}
v28 = v26;
a1->m_rotationVariance = v28;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 554) )
{
v30 = a2->_Mypair._Myval2._Myfirst + 554;
if ( a2->_Mypair._Myval2._Myfirst[554].m_data.m_capacity > 0xF )
v30 = (std::_Vector_val>::pointer)v30->m_data.m_bigStorage;
v29 = atof(v30->m_data.m_smallStorage._Elems);
}
else
{
v29 = 0.0;
}
v31 = v29;
a1->m_scale = v31;
if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 555) )
{
v33 = a2->_Mypair._Myval2._Myfirst + 555;
if ( a2->_Mypair._Myval2._Myfirst[555].m_data.m_capacity > 0xF )
v33 = (std::_Vector_val>::pointer)v33->m_data.m_bigStorage;
v32 = atof(v33->m_data.m_smallStorage._Elems);
}
else
{
v32 = 0.0;
}
a1->m_scaleVariance = v32;
}