//
// cocos2d::CCActionManager::removeAction from 0x180038a60 to 0x180038bb6 (342 bytes)
//
// 7 xrefs:
// > cocos2d::CCNode::stopAction @ 0x1800053a7
// > cocos2d::CCActionManager::update @ 0x18003939a
// > ??> @ 0x18013f320
// > ??> @ 0x18013f334
// > ??> @ 0x18013f344
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bacb4
//
// 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 11:21:36 +0000
//
void __fastcall cocos2d::CCActionManager::removeAction(cocos2d::CCActionManager *this, struct cocos2d::CCAction *a2)
{
__int64 v2; // r9
__int64 v4; // r11
__int64 v6; // r11
int v7; // r8d
unsigned int v8; // edx
unsigned int v9; // ecx
int v10; // r8d
unsigned int v11; // edx
unsigned int v12; // ecx
int v13; // r8d
__int64 v14; // rbx
__int64 v15; // rcx
struct cocos2d::_hashElement *v16; // rbx
__int64 v17; // rax
unsigned int v18; // eax
if ( a2 )
{
v2 = *((_QWORD *)a2 + 7);
v4 = *((_QWORD *)this + 7);
if ( v4 )
{
v6 = *(_QWORD *)(v4 + 40);
v7 = (((BYTE1(v2) + ((BYTE2(v2) + (BYTE3(v2) << 8)) << 8)) << 8) + (unsigned __int8)v2 + 17973517) ^ 0x7F76D;
v8 = (v7 << 8) ^ (-1622558010 - v7);
v9 = (v8 >> 13) ^ (-17973517 - v8 - v7);
v10 = (v9 >> 12) ^ (v7 - v9 - v8);
v11 = (v10 << 16) ^ (v8 - v9 - v10);
v12 = (v11 >> 5) ^ (v9 - v11 - v10);
v13 = (v12 >> 3) ^ (v10 - v12 - v11);
v14 = *(_QWORD *)(*(_QWORD *)v6
+ 16
* ((unsigned int)(*(_DWORD *)(v6 + 8) - 1)
& (((unsigned __int64)((v13 << 10) ^ (v11 - v13 - v12)) >> 15)
^ (v12 - ((v13 << 10) ^ (v11 - v13 - v12)) - v13))));
if ( v14 )
{
v15 = *(_QWORD *)(v6 + 32);
v16 = (struct cocos2d::_hashElement *)(v14 - v15);
if ( v16 )
{
while ( *((_DWORD *)v16 + 22) != 4 || **((_DWORD **)v16 + 10) != (_DWORD)v2 )
{
v17 = *((_QWORD *)v16 + 9);
if ( v17 )
{
v16 = (struct cocos2d::_hashElement *)(v17 - v15);
if ( v17 != v15 )
continue;
}
return;
}
v18 = sub_1800A1750(*(_QWORD *)v16, a2);
if ( v18 != -1 )
cocos2d::CCActionManager::removeActionAtIndex(this, v18, v16);
}
}
}
}
}