//
// GJEffectManager::spawnGroup from 0x140261cb0 to 0x140261d9e (238 bytes)
//
// 3 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x1402604b0
// > SpawnTriggerGameObject::triggerObject @ 0x1404b92eb
// > ??> @ 0x1406d0098
//
// 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
//
// Hidden C++ exception states: #wind=1
void GJEffectManager::spawnGroup(
GJEffectManager *a1,
int a2,
float a3,
bool a4,
std::vector *const a5,
int a6,
int a7)
{
std::vector *p_m_spawnTriggerActions; // rdi
std::_Vector_val>::pointer Mylast; // rbx
int v9; // [rsp+68h] [rbp+10h] BYREF
float v10; // [rsp+70h] [rbp+18h] BYREF
bool v11; // [rsp+78h] [rbp+20h] BYREF
if ( a2 > 0 )
{
v11 = a4;
v10 = a3;
v9 = a2;
p_m_spawnTriggerActions = &a1->m_spawnTriggerActions;
Mylast = a1->m_spawnTriggerActions._Mypair._Myval2._Mylast;
if ( Mylast == a1->m_spawnTriggerActions._Mypair._Myval2._Myend )
{
sub_14026BEC0(
(_DWORD)a1 + 1448,
(_DWORD)Mylast,
(unsigned int)&v9,
(unsigned int)&v10,
(__int64)&v11,
(__int64)a5,
(__int64)&a6,
(__int64)&a7);
}
else
{
*(_WORD *)&Mylast->m_finished = 0;
Mylast->m_deltaTime = 0.0;
*(_QWORD *)&Mylast->m_triggerUniqueID = 0;
Mylast->m_gameObject = nullptr;
Mylast->m_remapKeys._Mypair._Myval2._Myfirst = nullptr;
Mylast->m_remapKeys._Mypair._Myval2._Mylast = nullptr;
Mylast->m_remapKeys._Mypair._Myval2._Myend = nullptr;
Mylast->m_targetGroupID = a2;
Mylast->m_duration = a3;
Mylast->m_spawnOrdered = a4;
sub_1400846D0((void **)&Mylast->m_remapKeys._Mypair._Myval2._Myfirst, (char **)a5);
Mylast->m_triggerUniqueID = a6;
Mylast->m_controlID = a7;
++p_m_spawnTriggerActions->_Mypair._Myval2._Mylast;
}
}
}