//
// GJEffectManager::reset from 0x1002c81c0 to 0x1002c82d2 (274 bytes)
//
// 5 xrefs:
// > PlayLayer::loadDefaultColors @ 0x10007f1ce
// > LevelEditorLayer::updateGameObjects @ 0x1000acb7e
// > LevelEditorLayer::onPlaytest @ 0x1000c5b3a
// > LevelEditorLayer::onStopPlaytest @ 0x1000c713f
// > GJEffectManager::loadFromState @ 0x1002d9b17
//
// 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 12:28:09 +0000
//
__int64 __fastcall GJEffectManager::reset(_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // r14
__int64 v4; // rsi
__int64 v5; // rax
__int64 i; // rax
__int64 v7; // rdx
if ( a1[78] )
{
v2 = (_QWORD *)a1[77];
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
a1[77] = 0;
v4 = a1[76];
if ( v4 )
__bzero(a1[75], 8 * v4);
a1[78] = 0;
}
cocos2d::CCDictionary::removeAllObjects(a1[70]);
cocos2d::CCDictionary::removeAllObjects(a1[71]);
cocos2d::CCDictionary::removeAllObjects(a1[41]);
__bzero(a1[80], 8816);
__bzero(a1[72], 80000);
v5 = a1[42];
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 56); i; *(_QWORD *)(v7 + 336) = 0 )
{
v7 = *(_QWORD *)(i + 264);
i = *(_QWORD *)(i + 288);
*(_WORD *)(v7 + 324) = -1;
*(_QWORD *)(v7 + 316) = -3162570752LL;
}
}
GJEffectManager::resetEffects(a1);
return GJEffectManager::resetMoveActions(a1);
}