//
// cocos2d::CCActionManager::removeAction from 0x180038340 to 0x180038491 (337 bytes)
//
// 7 xrefs:
// > cocos2d::CCNode::stopAction @ 0x1800052a7
// > cocos2d::CCActionManager::update @ 0x180038c5a
// > ??> @ 0x18013631c
// > ??> @ 0x180136330
// > ??> @ 0x180136340
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0b88
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCActionManager::removeAction(cocos2d::CCActionManager *this, struct cocos2d::CCAction *a2)
{
cocos2d::CCNode *m_pOriginalTarget; // r9
cocos2d::_hashElement *m_pTargets; // r11
__int64 v6; // r11
int v7; // edx
unsigned int v8; // r8d
unsigned int v9; // ecx
int v10; // edx
unsigned int v11; // r8d
unsigned int v12; // ecx
int v13; // edx
__int64 v14; // rbx
__int64 v15; // rcx
struct cocos2d::_hashElement *v16; // rbx
__int64 v17; // rbx
unsigned int v18; // eax
if ( a2 )
{
m_pOriginalTarget = a2->m_pOriginalTarget;
m_pTargets = this->m_pTargets;
if ( m_pTargets )
{
v6 = *((_QWORD *)m_pTargets + 5);
v7 = (((BYTE1(m_pOriginalTarget) + ((BYTE2(m_pOriginalTarget) + (BYTE3(m_pOriginalTarget) << 8)) << 8)) << 8)
+ (unsigned __int8)m_pOriginalTarget
+ 17973517)
^ 0x7F76D;
v8 = (v7 << 8) ^ (-1622558010 - v7);
v9 = (v8 >> 13) ^ (-17973517 - v8 - v7);
v10 = (v9 >> 12) ^ (v7 - v8 - v9);
v11 = (v10 << 16) ^ (v8 - v10 - v9);
v12 = (v11 >> 5) ^ (v9 - v11 - v10);
v13 = (v12 >> 3) ^ (v10 - v11 - v12);
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)m_pOriginalTarget )
{
v17 = *((_QWORD *)v16 + 9);
if ( v17 )
{
v16 = (struct cocos2d::_hashElement *)(v17 - v15);
if ( v16 )
continue;
}
return;
}
v18 = sub_18009DAC0(*(_QWORD *)v16, a2);
if ( v18 != -1 )
cocos2d::CCActionManager::removeActionAtIndex(this, v18, v16);
}
}
}
}
}