//
// cocos2d::CCActionManager::getActionByTag from 0x100218e40 to 0x100218f5c (284 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::getActionByTag @ 0x1002605cf
//
// 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::getActionByTag(__int64 a1, int a2, int a3)
{
__int64 v3; // rax
int v4; // edx
unsigned int v5; // ecx
unsigned int v6; // edi
int v7; // r8d
unsigned int v8; // edx
unsigned int v9; // ecx
int v10; // edi
unsigned int v11; // r8d
__int64 v12; // rdx
__int64 v13; // rcx
__int64 result; // rax
__int64 v15; // rdx
unsigned int *v16; // rax
__int64 v17; // rcx
__int64 v18; // rdx
__int64 v19; // rdi
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 = (v9 - (((v8 - v9 - v10) ^ (v10 << 10)) + v10)) ^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15);
v12 = *(_QWORD *)(v3 + 40);
v13 = *(_QWORD *)(*(_QWORD *)v12 + 16LL * (v11 & (*(_DWORD *)(v12 + 8) - 1)));
result = 0;
if ( !v13 )
return result;
v15 = -*(_QWORD *)(v12 + 32);
while ( *(_DWORD *)(v13 + v15 + 88) != 4 || **(_DWORD **)(v13 + v15 + 80) != a3 )
{
v13 = *(_QWORD *)(v13 + v15 + 72);
if ( !v13 )
return result;
}
v16 = *(unsigned int **)(v13 + v15);
if ( !v16 )
return 0;
v17 = *v16;
if ( !*v16 )
return 0;
v18 = *((_QWORD *)v16 + 2);
v19 = 0;
do
{
result = *(_QWORD *)(v18 + 8 * v19);
if ( *(_DWORD *)(result + 72) == a2 )
break;
++v19;
result = 0;
}
while ( v17 != v19 );
return result;
}