//
// GJEffectManager::resetTempGroupCommands from 0x1403699f0 to 0x140369ad1 (225 bytes)
//
// 5 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x140369b7f
// > LevelEditorLayer::updateDebugDraw @ 0x14040774d
// > ??> @ 0x1408bae74
// > ??> @ 0x1408baeac
// > ??> @ 0x140921824
//
// 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:56 +0000
//
__int64 __fastcall GJEffectManager::resetTempGroupCommands(__int64 a1)
{
void **v2; // rdi
void **i; // r14
void *v4; // rbx
unsigned __int64 v5; // rax
__int64 result; // rax
void *v7; // [rsp+40h] [rbp+8h] BYREF
v2 = *(void ***)(a1 + 1480);
for ( i = *(void ***)(a1 + 1488); v2 != i; ++v2 )
{
v4 = *v2;
v5 = (__int64)(*(_QWORD *)(a1 + 1512) - *(_QWORD *)(a1 + 1504)) >> 3;
v7 = *v2;
if ( v5 >= 0x3E8 )
{
if ( v4 )
{
sub_140069730((__int64)v4 + 488);
sub_1403620A0((__int64)v4 + 440);
j_j_free(v4);
}
}
else
{
GroupCommandObject2::reset((__int64)v4);
sub_1400BD3C0((const void **)(a1 + 1504), (__int64 *)&v7);
}
}
result = *(_QWORD *)(a1 + 1480);
if ( result != *(_QWORD *)(a1 + 1488) )
*(_QWORD *)(a1 + 1488) = result;
return result;
}