//
// cocos2d::CCActionManager::getActionByTag from 0x7c0614 to 0x7c06e0 (204 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::getActionByTag @ 0x7c4c68
//
// 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
//
int **__fastcall cocos2d::CCActionManager::getActionByTag(
cocos2d::CCActionManager *this,
int *a2,
cocos2d::CCObject *a3)
{
int **result; // r0
int *v5; // r6
int v6; // r1
unsigned int v7; // r2
unsigned int v8; // r3
int v9; // r1
unsigned int v10; // r2
unsigned int v11; // r3
int v12; // r1
int **v13; // r4
int *i; // r3
_DWORD v15[2]; // [sp+4h] [bp-8h] BYREF
v15[0] = a2;
v15[1] = a3;
result = *((int ***)this + 13);
v15[0] = a3;
if ( result )
{
v5 = result[5];
v6 = (LOBYTE(v15[0]) + 17973517 + (HIBYTE(v15[0]) << 24) + (BYTE2(v15[0]) << 16) + (BYTE1(v15[0]) << 8)) ^ 0x7F76D;
v7 = (-1622558010 - v6) ^ (v6 << 8);
v8 = (-17973517 - v6 - v7) ^ (v7 >> 13);
v9 = (v6 - v7 - v8) ^ (v8 >> 12);
v10 = (v7 - v8 - v9) ^ (v9 << 16);
v11 = (v8 - v9 - v10) ^ (v10 >> 5);
v12 = (v9 - v10 - v11) ^ (v11 >> 3);
v13 = *(int ***)(*v5
+ 12
* (((v11 - v12 - ((v10 - v11 - v12) ^ (v12 << 10)))
^ (((v10 - v11 - v12) ^ (v12 << 10)) >> 15))
& (v5[1] - 1)));
if ( v13 )
v13 = (int **)((char *)v13 - v5[5]);
while ( 1 )
{
if ( !v13 )
return v13;
if ( v13[11] == (int *)&byte_4 && !memcmp(v13[10], v15, 4u) )
break;
result = (int **)v13[9];
if ( !result )
return result;
v13 = (int **)((char *)result - v5[5]);
}
v13 = (int **)*v13;
if ( !v13 )
return v13;
for ( i = nullptr; i != *v13; i = (int *)((char *)i + 1) )
{
result = (int **)v13[3][(_DWORD)i];
if ( result[15] == a2 )
return result;
}
return nullptr;
}
return result;
}