// // cocos2d::CCComponentContainer::removeAll from 0x7fdfde to 0x7fe122 (324 bytes) // // 0 xrefs: // // 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:01:17 +0000 // cocos2d::CCScriptEngineManager *__fastcall cocos2d::CCComponentContainer::removeAll( cocos2d::CCScriptEngineManager *this, int a2, int a3) { cocos2d::CCScriptEngineManager *v3; // r5 int v4; // r3 int *v5; // r4 int *v6; // r6 int v7; // lr int v8; // r3 int v9; // r2 int v10; // r3 int v11; // r1 int v12; // r3 int v13; // r2 int v14; // r1 _DWORD *v15; // r1 int v16; // r3 int v17; // r2 int v18; // r3 int v19; // r3 int v20; // r2 int *v21; // r3 v3 = this; v4 = *((_DWORD *)this + 1); if ( v4 ) { v5 = *(int **)(v4 + 52); if ( v5 ) v6 = (int *)v5[68]; else v6 = nullptr; while ( v5 ) { v7 = v5[67]; v8 = *((_DWORD *)v3 + 1); if ( v7 || v5[68] ) { v9 = *(_DWORD *)(*(_DWORD *)(v8 + 52) + 264); v10 = *(_DWORD *)(v9 + 20); if ( v5 == (int *)(*(_DWORD *)(v9 + 16) - v10) ) *(_DWORD *)(v9 + 16) = v10 + v7; v11 = v5[67]; v12 = *((_DWORD *)v3 + 1); v13 = v5[68]; if ( v11 ) *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(v12 + 52) + 264) + 20) + v11 + 8) = v13; else *(_DWORD *)(v12 + 52) = v13; v14 = v5[68]; if ( v14 ) *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*((_DWORD *)v3 + 1) + 52) + 264) + 20) + v14 + 4) = v5[67]; v15 = *(_DWORD **)(*(_DWORD *)(*((_DWORD *)v3 + 1) + 52) + 264); v16 = 12 * (v5[73] & (v15[1] - 1)); --*(_DWORD *)(*v15 + v16 + 4); v17 = **(_DWORD **)(*(_DWORD *)(*((_DWORD *)v3 + 1) + 52) + 264); if ( *(int **)(v17 + v16) == v5 + 66 ) *(_DWORD *)(v17 + v16) = v5[70]; v18 = v5[69]; if ( v18 ) *(_DWORD *)(v18 + 16) = v5[70]; v19 = v5[70]; if ( v19 ) *(_DWORD *)(v19 + 12) = v5[69]; v20 = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)v3 + 1) + 52) + 264); --*(_DWORD *)(v20 + 12); } else { free(**(void ***)(*(_DWORD *)(v8 + 52) + 264)); free(*(void **)(*(_DWORD *)(*((_DWORD *)v3 + 1) + 52) + 264)); *(_DWORD *)(*((_DWORD *)v3 + 1) + 52) = 0; } (*(void (__fastcall **)(int))(*(_DWORD *)v5[65] + 48))(v5[65]); cocos2d::CCComponent::setOwner(v5[65], nullptr); cocos2d::CCObject::release((_DWORD *)v5[65]); cocos2d::CCDictElement::~CCDictElement((cocos2d::CCDictElement *)v5); operator delete(v5); if ( v6 ) v21 = (int *)v6[68]; else v21 = nullptr; v5 = v6; v6 = v21; } return cocos2d::CCNode::unscheduleUpdate(*((cocos2d::CCNode **)v3 + 2), a2, a3); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source