//
// cocos2d::CCActionManager::removeAction from 0xd377cc to 0xd37990 (452 bytes)
//
// 3 xrefs:
// > cocos2d::CCActionManager::update @ 0xd37aa0
// > cocos2d::CCNode::stopAction @ 0xd3efd8
// > ??> @ 0x64078
//
// 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 13:07:24 +0000
//
void __fastcall cocos2d::CCActionManager::removeAction(cocos2d::CCActionManager *this, cocos2d::CCAction *a2)
{
__int64 v4; // x5
int v5; // w0
unsigned int v6; // w2
unsigned int v7; // w1
__int64 v8; // x23
int v9; // w0
unsigned int v10; // w2
unsigned int v11; // w1
int v12; // w0
__int64 v13; // x0
__int64 v14; // x19
__int64 v15; // x0
unsigned int IndexOfObject; // w1
__int64 v17; // [xsp+40h] [xbp+40h] BYREF
if ( a2 )
{
v4 = *((_QWORD *)this + 7);
v17 = *((_QWORD *)a2 + 7);
if ( v4 )
{
v5 = ((unsigned __int8)v17 + 17973517 + (BYTE3(v17) << 24) + (BYTE2(v17) << 16) + (BYTE1(v17) << 8)) ^ 0x7F76D;
v6 = (-1622558010 - v5) ^ (v5 << 8);
v7 = (-17973517 - v5 - v6) ^ (v6 >> 13);
v8 = *(_QWORD *)(v4 + 40);
v9 = (v5 - v6 - v7) ^ (v7 >> 12);
v10 = (v6 - v7 - v9) ^ (v9 << 16);
v11 = (v7 - v9 - v10) ^ (v10 >> 5);
v12 = (v9 - v10 - v11) ^ (v11 >> 3);
v13 = *(_QWORD *)(*(_QWORD *)v8
+ 16LL
* (((v11 - v12 - ((v10 - v11 - v12) ^ (v12 << 10)))
^ (((v10 - v11 - v12) ^ (v12 << 10)) >> 15))
& (*(_DWORD *)(v8 + 8) - 1)));
v14 = v13 ? v13 - *(_QWORD *)(v8 + 32) : 0LL;
if ( v14 )
{
while ( *(_DWORD *)(v14 + 88) != 4 || memcmp(*(const void **)(v14 + 80), &v17, 4u) )
{
v15 = *(_QWORD *)(v14 + 72);
if ( v15 )
{
v14 = v15 - *(_QWORD *)(v8 + 32);
if ( v14 )
continue;
}
return;
}
IndexOfObject = cocos2d::ccArrayGetIndexOfObject(*(_QWORD *)v14, a2);
if ( IndexOfObject != -1 )
cocos2d::CCActionManager::removeActionAtIndex((__int64)this, IndexOfObject, v14);
}
}
}
}