//
// cocos2d::CCActionManager::removeAction from 0x7c036c to 0x7c0466 (250 bytes)
//
// 2 xrefs:
// > cocos2d::CCActionManager::update @ 0x7c04fc
// > cocos2d::CCNode::stopAction @ 0x7c4c54
//
// 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
//
void __fastcall cocos2d::CCActionManager::removeAction(cocos2d::CCActionManager *this, cocos2d::CCAction *a2, int a3)
{
int v5; // r3
int v6; // r1
_DWORD *v7; // r8
int v8; // r0
unsigned int v9; // r2
unsigned int v10; // r3
int v11; // r0
unsigned int v12; // r2
unsigned int v13; // r3
int v14; // r0
_DWORD *v15; // r7
int v16; // r3
unsigned int IndexOfObject; // r1
_DWORD v18[3]; // [sp+0h] [bp-Ch] BYREF
v18[0] = this;
v18[1] = a2;
v18[2] = a3;
if ( a2 )
{
v5 = *((_DWORD *)a2 + 13);
v6 = *((_DWORD *)this + 13);
v18[0] = v5;
if ( v6 )
{
v7 = *(_DWORD **)(v6 + 20);
v8 = (LOBYTE(v18[0]) + 17973517 + (HIBYTE(v18[0]) << 24) + (BYTE2(v18[0]) << 16) + (BYTE1(v18[0]) << 8)) ^ 0x7F76D;
v9 = (-1622558010 - v8) ^ (v8 << 8);
v10 = (-17973517 - v8 - v9) ^ (v9 >> 13);
v11 = (v8 - v9 - v10) ^ (v10 >> 12);
v12 = (v9 - v10 - v11) ^ (v11 << 16);
v13 = (v10 - v11 - v12) ^ (v12 >> 5);
v14 = (v11 - v12 - v13) ^ (v13 >> 3);
v15 = *(_DWORD **)(*v7
+ 12
* (((v13 - v14 - ((v12 - v13 - v14) ^ (v14 << 10)))
^ (((v12 - v13 - v14) ^ (v14 << 10)) >> 15))
& (v7[1] - 1)));
if ( v15 )
v15 = (_DWORD *)((char *)v15 - v7[5]);
while ( v15 )
{
if ( v15[11] == 4 && !memcmp((const void *)v15[10], v18, 4u) )
{
IndexOfObject = cocos2d::ccArrayGetIndexOfObject(*v15, a2);
if ( IndexOfObject != -1 )
cocos2d::CCActionManager::removeActionAtIndex((int)this, IndexOfObject, v15);
return;
}
v16 = v15[9];
if ( !v16 )
return;
v15 = (_DWORD *)(v16 - v7[5]);
}
}
}
}