//
// cocos2d::CCActionManager::numberOfRunningActionsInTarget from 0x100218f60 to 0x10021904e (238 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::numberOfRunningActions @ 0x1002605ef
//
// 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:01 +0000
//
__int64 __fastcall cocos2d::CCActionManager::numberOfRunningActionsInTarget(__int64 a1, int a2)
{
__int64 v2; // rcx
__int64 result; // rax
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
v2 = *(_QWORD *)(a1 + 56);
result = 0;
if ( v2 )
{
v4 = (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 *)(v2 + 40);
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) != a2 )
{
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;
}