//
// cocos2d::CCActionManager::removeActionByTag from 0x10039142c to 0x10039156c (320 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::stopActionByTag @ 0x1002d94c4
// > AppDelegate::applicationWillEnterForeground @ 0x100307320
//
// 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
//
void __fastcall cocos2d::CCActionManager::removeActionByTag(__int64 a1, int a2, __int64 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
unsigned int v11; // w10
__int64 v12; // x9
unsigned int *v13; // x8
__int64 v14; // x9
unsigned int **v15; // x8
__int64 v16; // x10
__int64 v17; // x9
__int64 v18; // x12
v3 = *(_QWORD *)(a1 + 56);
if ( v3 )
{
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 - v10 - ((v8 - v9 - v10) ^ (v10 << 10))) ^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15);
v12 = *(_QWORD *)(v3 + 40);
v13 = *(unsigned int **)(*(_QWORD *)v12 + 16LL * (v11 & (*(_DWORD *)(v12 + 8) - 1)));
if ( v13 )
{
v14 = -*(_QWORD *)(v12 + 32);
while ( 1 )
{
v15 = (unsigned int **)((char *)v13 + v14);
if ( *((_DWORD *)v15 + 22) == 4 && *v15[10] == (_DWORD)a3 )
break;
v13 = v15[9];
if ( !v13 )
return;
}
v16 = **v15;
if ( (_DWORD)v16 )
{
v17 = 0;
while ( 1 )
{
v18 = *(_QWORD *)(*((_QWORD *)*v15 + 2) + 8 * v17);
if ( *(_DWORD *)(v18 + 72) == a2 && *(_QWORD *)(v18 + 56) == a3 )
break;
if ( v16 == ++v17 )
return;
}
cocos2d::CCActionManager::removeActionAtIndex(a1, v17, (__int64)v15);
}
}
}
}