//
// cocos2d::CCActionManager::getActionByTag from 0x1002f4df0 to 0x1002f4f1c (300 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::getActionByTag @ 0x10023c4d4
//
// 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
//
cocos2d::CCAction *__fastcall cocos2d::CCActionManager::getActionByTag(
cocos2d::CCActionManager *a1,
unsigned int a2,
cocos2d::CCObject *a3)
{
cocos2d::_hashElement *m_pTargets; // x8
int v4; // w9
unsigned int v5; // w10
unsigned int v6; // w11
int v7; // w9
unsigned int v8; // w10
unsigned int v9; // w11
int v10; // w9
__int64 v11; // x8
unsigned int *v12; // x9
__int64 v13; // x8
unsigned int **v14; // x9
cocos2d::CCAction *result; // x0
unsigned int *v16; // x9
__int64 v17; // x8
__int64 v18; // x9
m_pTargets = a1->m_pTargets;
if ( !m_pTargets )
return nullptr;
v4 = ((_DWORD)a3 + 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 = *((_QWORD *)m_pTargets + 5);
v12 = *(unsigned int **)(*(_QWORD *)v11
+ 16LL
* (((v9 - v10 - ((v8 - v9 - v10) ^ (v10 << 10)))
^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15))
& (*(_DWORD *)(v11 + 8) - 1)));
if ( !v12 )
return nullptr;
v13 = -*(_QWORD *)(v11 + 32);
while ( 1 )
{
v14 = (unsigned int **)((char *)v12 + v13);
if ( *((_DWORD *)v14 + 22) == 4 && *v14[10] == (_DWORD)a3 )
break;
v12 = v14[9];
if ( !v12 )
return nullptr;
}
v16 = *v14;
if ( !v16 )
return nullptr;
v17 = *v16;
if ( !(_DWORD)v17 )
return nullptr;
v18 = *((_QWORD *)v16 + 2);
do
{
result = *(cocos2d::CCAction **)v18;
if ( *(_DWORD *)(*(_QWORD *)v18 + 72LL) == a2 )
break;
result = nullptr;
v18 += 8;
--v17;
}
while ( v17 );
return result;
}