// // cocos2d::CCComponentContainer::removeAll from 0xda0300 to 0xda04ec (492 bytes) // // 2 xrefs: // > @ 0xc9bb0 // > @ 0x152fa60 // // 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:08:29 +0000 // __int64 __fastcall cocos2d::CCComponentContainer::removeAll(__int64 this) { __int64 v1; // x3 __int64 v2; // x19 __int64 v3; // x20 __int64 v4; // x0 __int64 v5; // x1 __int64 v6; // x21 __int64 v7; // x4 __int64 v8; // x5 __int64 v9; // x2 __int64 v10; // x0 __int64 v11; // x2 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x0 __int64 v15; // x1 v1 = *(_QWORD *)(this + 8); if ( v1 ) { v2 = *(_QWORD *)(v1 + 56); v3 = this; if ( !v2 ) return cocos2d::CCNode::unscheduleUpdate(*(cocos2d::CCNode **)(v3 + 16)); v4 = *(_QWORD *)(v2 + 280); v5 = *(_QWORD *)(v1 + 56); v6 = *(_QWORD *)(v2 + 288); if ( !v4 ) goto LABEL_18; LABEL_4: v7 = *(_QWORD *)(v5 + 272); v8 = *(_QWORD *)(v7 + 32); if ( *(_QWORD *)(v7 + 24) - v8 == v2 ) { *(_QWORD *)(v7 + 24) = v4 + v8; v4 = *(_QWORD *)(v2 + 280); v1 = *(_QWORD *)(v3 + 8); if ( v4 ) goto LABEL_6; } else if ( v4 ) { LABEL_6: *(_QWORD *)(v4 + *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v1 + 56) + 272LL) + 32LL) + 16) = *(_QWORD *)(v2 + 288); goto LABEL_7; } *(_QWORD *)(v1 + 56) = *(_QWORD *)(v2 + 288); LABEL_7: v9 = *(_QWORD *)(v2 + 288); if ( v9 ) *(_QWORD *)(v9 + *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 8) + 56LL) + 272LL) + 32LL) + 8) = *(_QWORD *)(v2 + 280); v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 8) + 56LL) + 272LL); v11 = 16LL * ((unsigned int)(*(_DWORD *)(v10 + 8) - 1) & *(_DWORD *)(v2 + 324)); --*(_DWORD *)(*(_QWORD *)v10 + v11 + 8); v12 = **(_QWORD **)(*(_QWORD *)(*(_QWORD *)(v3 + 8) + 56LL) + 272LL); if ( *(_QWORD *)(v12 + v11) == v2 + 272 ) *(_QWORD *)(v12 + v11) = *(_QWORD *)(v2 + 304); v13 = *(_QWORD *)(v2 + 296); if ( v13 ) *(_QWORD *)(v13 + 32) = *(_QWORD *)(v2 + 304); v14 = *(_QWORD *)(v2 + 304); if ( v14 ) *(_QWORD *)(v14 + 24) = *(_QWORD *)(v2 + 296); v15 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 8) + 56LL) + 272LL); --*(_DWORD *)(v15 + 16); while ( 1 ) { (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 264) + 96LL))(*(_QWORD *)(v2 + 264)); cocos2d::CCComponent::setOwner(*(_QWORD *)(v2 + 264), nullptr); cocos2d::CCObject::release(*(_DWORD **)(v2 + 264)); cocos2d::CCDictElement::~CCDictElement((cocos2d::CCDictElement *)v2); operator delete((void *)v2); if ( !v6 ) return cocos2d::CCNode::unscheduleUpdate(*(cocos2d::CCNode **)(v3 + 16)); v2 = v6; v1 = *(_QWORD *)(v3 + 8); v6 = *(_QWORD *)(v6 + 288); v4 = *(_QWORD *)(v2 + 280); v5 = *(_QWORD *)(v1 + 56); if ( v4 ) goto LABEL_4; LABEL_18: if ( *(_QWORD *)(v2 + 288) ) goto LABEL_4; free(**(void ***)(v5 + 272)); free(*(void **)(*(_QWORD *)(*(_QWORD *)(v3 + 8) + 56LL) + 272LL)); *(_QWORD *)(*(_QWORD *)(v3 + 8) + 56LL) = 0; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source