//
// cocos2d::CCActionManager::resumeTarget from 0x5b9538 to 0x5b95e2 (170 bytes)
//
// 2 xrefs:
// > cocos2d::CCActionManager::resumeTargets @ 0x5b9642
// > cocos2d::CCNode::resumeSchedulerAndActions @ 0x5be402
//
// 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
//
void cocos2d::CCActionManager::resumeTarget(cocos2d::CCActionManager *a1, cocos2d::CCObject *a2)
{
cocos2d::_hashElement *m_pTargets; // r1
_DWORD *v3; // r5
int v4; // r0
unsigned int v5; // r2
unsigned int v6; // r3
int v7; // r0
unsigned int v8; // r2
unsigned int v9; // r3
int v10; // r0
int v11; // r4
int v12; // r3
cocos2d::CCObject *v13; // [sp+4h] [bp-4h] BYREF
v13 = a2;
m_pTargets = a1->m_pTargets;
if ( m_pTargets )
{
v3 = *((_DWORD **)m_pTargets + 5);
v4 = ((unsigned __int8)v13 + 17973517 + (HIBYTE(v13) << 24) + (BYTE2(v13) << 16) + (BYTE1(v13) << 8)) ^ 0x7F76D;
v5 = (-1622558010 - v4) ^ (v4 << 8);
v6 = (-17973517 - v4 - v5) ^ (v5 >> 13);
v7 = (v4 - v5 - v6) ^ (v6 >> 12);
v8 = (v5 - v6 - v7) ^ (v7 << 16);
v9 = (v6 - v7 - v8) ^ (v8 >> 5);
v10 = (v7 - v8 - v9) ^ (v9 >> 3);
v11 = *(_DWORD *)(*v3
+ 12
* (((v9 - v10 - ((v8 - v9 - v10) ^ (v10 << 10)))
^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15))
& (v3[1] - 1)));
if ( v11 )
v11 -= v3[5];
while ( v11 )
{
if ( *(_DWORD *)(v11 + 44) == 4 && !memcmp(*(const void **)(v11 + 40), &v13, 4u) )
{
*(_BYTE *)(v11 + 17) = 0;
return;
}
v12 = *(_DWORD *)(v11 + 36);
if ( !v12 )
return;
v11 = v12 - v3[5];
}
}
}