//
// cocos2d::CCActionManager::numberOfRunningActionsInTarget from 0x7c06f0 to 0x7c07a2 (178 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::numberOfRunningActions @ 0x7c4c72
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:20 +0000
//
_DWORD *__fastcall cocos2d::CCActionManager::numberOfRunningActionsInTarget(
cocos2d::CCActionManager *this,
cocos2d::CCObject *a2)
{
_DWORD *result; // r0
_DWORD *v3; // r5
int v4; // r1
unsigned int v5; // r2
unsigned int v6; // r3
int v7; // r1
unsigned int v8; // r2
unsigned int v9; // r3
int v10; // r1
char *v11; // r4
cocos2d::CCObject *v12; // [sp+4h] [bp-4h] BYREF
v12 = a2;
result = *((_DWORD **)this + 13);
v12 = a2;
if ( result )
{
v3 = (_DWORD *)result[5];
v4 = ((unsigned __int8)v12 + 17973517 + (HIBYTE(v12) << 24) + (BYTE2(v12) << 16) + (BYTE1(v12) << 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 = *(char **)(*v3
+ 12
* (((v9 - v10 - ((v8 - v9 - v10) ^ (v10 << 10)))
^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15))
& (v3[1] - 1)));
if ( v11 )
v11 -= v3[5];
while ( 1 )
{
if ( !v11 )
return nullptr;
if ( *((_DWORD *)v11 + 11) == 4 && !memcmp(*((const void **)v11 + 10), &v12, 4u) )
break;
result = *((_DWORD **)v11 + 9);
if ( !result )
return result;
v11 = (char *)result - v3[5];
}
result = *(_DWORD **)v11;
if ( *(_DWORD *)v11 )
return (_DWORD *)*result;
}
return result;
}