// // cocos2d::CCActionManager::deleteHashElement from 0x5b9360 to 0x5b93fc (156 bytes) // // 3 xrefs: // > cocos2d::CCActionManager::removeActionAtIndex @ 0x5b9474 // > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x5b9a44 // > cocos2d::CCActionManager::update @ 0x5b9c5e // // 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 cocos2d::CCActionManager::deleteHashElement(cocos2d::CCActionManager *a1, cocos2d::_hashElement *a2) { int v4; // r3 cocos2d::_hashElement *v5; // r6 cocos2d::_hashElement *m_pTargets; // r2 int v7; // r1 int v8; // r2 int v9; // r0 cocos2d::_hashElement *v10; // r1 int *v11; // r1 int v12; // r3 int v13; // r2 int v14; // r0 int v15; // r3 int v16; // r2 cocos2d::ccArrayFree(a2, (cocos2d::_ccArray **)a2); v4 = *((_DWORD *)a2 + 6); v5 = *((cocos2d::_hashElement **)a2 + 7); m_pTargets = a1->m_pTargets; if ( v4 || v5 ) { v7 = *((_DWORD *)m_pTargets + 5); v8 = *(_DWORD *)(v7 + 20); if ( a2 == (cocos2d::_hashElement *)(*(_DWORD *)(v7 + 16) - v8) ) *(_DWORD *)(v7 + 16) = v4 + v8; if ( v4 ) *(_DWORD *)(v8 + v4 + 8) = v5; else a1->m_pTargets = v5; v9 = *((_DWORD *)a2 + 7); v10 = a1->m_pTargets; if ( v9 ) *(_DWORD *)(*(_DWORD *)(*((_DWORD *)v10 + 5) + 20) + v9 + 4) = v4; v11 = *((int **)v10 + 5); v12 = 12 * ((v11[1] - 1) & *((_DWORD *)a2 + 12)); v13 = *v11; *(_DWORD *)(v13 + v12 + 4) = *(_DWORD *)(*v11 + v12 + 4) - 1; v14 = *((_DWORD *)a2 + 9); if ( *(cocos2d::_hashElement **)(v13 + v12) == (cocos2d::_hashElement *)((char *)a2 + 20) ) *(_DWORD *)(v13 + v12) = v14; v15 = *((_DWORD *)a2 + 8); if ( v15 ) *(_DWORD *)(v15 + 16) = v14; v16 = *((_DWORD *)a2 + 9); if ( v16 ) *(_DWORD *)(v16 + 12) = v15; --v11[3]; } else { free(**((void ***)m_pTargets + 5)); free(*((void **)a1->m_pTargets + 5)); a1->m_pTargets = nullptr; } cocos2d::CCObject::release(*((cocos2d::CCObject **)a2 + 1)); j_free(a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source