//
// cocos2d::CCActionManager::numberOfRunningActionsInTarget from 0x100234720 to 0x10023480e (238 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::numberOfRunningActions @ 0x10027404f
//
// 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
//
unsigned int __fastcall cocos2d::CCActionManager::numberOfRunningActionsInTarget(
cocos2d::CCActionManager *a1,
cocos2d::CCObject *a2)
{
cocos2d::_hashElement *m_pTargets; // rcx
unsigned int result; // eax
int v4; // esi
unsigned int v5; // edx
unsigned int v6; // edi
int v7; // r8d
unsigned int v8; // esi
unsigned int v9; // edx
int v10; // edi
unsigned int v11; // r8d
__int64 v12; // rdx
__int64 v13; // rcx
unsigned int *v14; // rax
int v15; // [rsp+0h] [rbp-8h]
v15 = (int)a2;
m_pTargets = a1->m_pTargets;
result = 0;
if ( m_pTargets )
{
v4 = ((_DWORD)a2 + 17973517) ^ 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 = (v9 - (((v8 - v9 - v10) ^ (v10 << 10)) + v10)) ^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15);
v12 = *((_QWORD *)m_pTargets + 5);
v13 = *(_QWORD *)(*(_QWORD *)v12 + 16LL * (v11 & (*(_DWORD *)(v12 + 8) - 1)));
if ( v13 )
{
while ( *(_DWORD *)(v13 - *(_QWORD *)(v12 + 32) + 88) != 4
|| **(_DWORD **)(v13 - *(_QWORD *)(v12 + 32) + 80) != v15 )
{
v13 = *(_QWORD *)(v13 - *(_QWORD *)(v12 + 32) + 72);
if ( !v13 )
return 0;
}
v14 = *(unsigned int **)(v13 - *(_QWORD *)(v12 + 32));
if ( v14 )
return *v14;
return 0;
}
}
return result;
}