//
// GJEffectManager::createFollowCommand from 0x140366da0 to 0x140366eab (267 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x140648360
// > ??> @ 0x1409217ac
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:30:55 +0000
//
__int64 __fastcall GJEffectManager::createFollowCommand(
__int64 a1,
float a2,
float a3,
float a4,
int a5,
int a6,
int a7,
unsigned int a8)
{
__int64 v9; // rdi
__int64 v10; // rbx
__int64 result; // rax
if ( *(_QWORD *)(a1 + 1560) == *(_QWORD *)(a1 + 1568) )
{
sub_140374400(a1 + 1552);
}
else
{
GroupCommandObject2::GroupCommandObject2(*(_QWORD **)(a1 + 1560));
*(_QWORD *)(a1 + 1560) += 520LL;
}
v9 = *(_QWORD *)(a1 + 1560);
v10 = v9 - 520;
GroupCommandObject2::reset(v9 - 520);
*(_DWORD *)(v10 + 40) = a5;
*(_DWORD *)(v10 + 44) = a6;
*(_DWORD *)(v10 + 344) = a7;
result = a8;
*(_DWORD *)(v10 + 348) = a8;
*(_DWORD *)(v10 + 208) = 2;
*(double *)(v10 + 192) = a2;
*(double *)(v10 + 200) = a3;
*(double *)(v10 + 24) = a4;
if ( a2 == 0.0 && a3 == 0.0 )
{
*(_BYTE *)(v9 - 408) = 1;
*(_BYTE *)(v9 - 406) = 1;
}
return result;
}