//
// cocos2d::CCActionManager::resumeTarget from 0x100218370 to 0x100218444 (212 bytes)
//
// 3 xrefs:
// > cocos2d::CCActionManager::resumeTargets @ 0x100218517
// > cocos2d::CCNode::onEnter @ 0x100260232
// > cocos2d::CCNode::resumeSchedulerAndActions @ 0x100260275
//
// 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:27:00 +0000
//
__int64 __fastcall cocos2d::CCActionManager::resumeTarget(__int64 a1, int a2)
{
__int64 result; // rax
int v3; // esi
unsigned int v4; // ecx
unsigned int v5; // edx
int v6; // edi
unsigned int v7; // esi
unsigned int v8; // ecx
int v9; // edx
unsigned int v10; // edi
__int64 v11; // rdx
result = *(_QWORD *)(a1 + 56);
if ( result )
{
v3 = (a2 + 17973517) ^ 0x7F76D;
v4 = (-1622558010 - v3) ^ (v3 << 8);
v5 = (-17973517 - v3 - v4) ^ (v4 >> 13);
v6 = (v3 - v4 - v5) ^ (v5 >> 12);
v7 = (v4 - v5 - v6) ^ (v6 << 16);
v8 = (v5 - v6 - v7) ^ (v7 >> 5);
v9 = (v6 - v7 - v8) ^ (v8 >> 3);
v10 = (v8 - (((v7 - v8 - v9) ^ (v9 << 10)) + v9)) ^ (((v7 - v8 - v9) ^ (v9 << 10)) >> 15);
v11 = *(_QWORD *)(result + 40);
result = *(_QWORD *)(*(_QWORD *)v11 + 16LL * (v10 & (*(_DWORD *)(v11 + 8) - 1)));
if ( result )
{
while ( *(_DWORD *)(result - *(_QWORD *)(v11 + 32) + 88) != 4
|| **(_DWORD **)(result - *(_QWORD *)(v11 + 32) + 80) != a2 )
{
result = *(_QWORD *)(result - *(_QWORD *)(v11 + 32) + 72);
if ( !result )
return result;
}
*(_BYTE *)(result - *(_QWORD *)(v11 + 32) + 33) = 0;
}
}
return result;
}