//
// cocos2d::CCActionManager::getActionByTag from 0x10039156c to 0x100391698 (300 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::getActionByTag @ 0x1002d94d0
//
// This function is hookable on this platform (idp: arm, 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 11:03:38 +0000
//
__int64 __fastcall cocos2d::CCActionManager::getActionByTag(__int64 a1, int a2, int a3)
{
__int64 v3; // 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
__int64 result; // x0
unsigned int *v16; // x9
__int64 v17; // x8
__int64 *v18; // x9
v3 = *(_QWORD *)(a1 + 56);
if ( !v3 )
return 0;
v4 = (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 *)(v3 + 40);
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 0;
v13 = -*(_QWORD *)(v11 + 32);
while ( 1 )
{
v14 = (unsigned int **)((char *)v12 + v13);
if ( *((_DWORD *)v14 + 22) == 4 && *v14[10] == a3 )
break;
v12 = v14[9];
if ( !v12 )
return 0;
}
v16 = *v14;
if ( !v16 )
return 0;
v17 = *v16;
if ( !(_DWORD)v17 )
return 0;
v18 = *((__int64 **)v16 + 2);
do
{
result = *v18;
if ( *(_DWORD *)(*v18 + 72) == a2 )
break;
result = 0;
++v18;
--v17;
}
while ( v17 );
return result;
}