// // cocos2d::CCComponentContainer::remove from 0x18009a1f0 to 0x18009a3fd (525 bytes) // // 3 xrefs: // > @ 0x18010ac28 // > @ 0x18014cf68 // > @ 0x1801c0bac // // 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:22:11 +0000 // char __fastcall cocos2d::CCComponentContainer::remove( cocos2d::CCComponentContainer *this, struct cocos2d::CCComponent *a2) { float v2; // xmm1_4 __int64 v3; // rbx __int64 v6; // rbx __int64 v7; // rax __int64 v8; // rdx __int64 v9; // rcx __int64 v10; // r10 __int64 v11; // rcx __int64 v12; // rdx __int64 v13; // rdx __int64 v14; // r10 _QWORD *v15; // rax __int64 v16; // rcx __int64 v17; // rcx __int64 v18; // rax v3 = *((_QWORD *)this + 1); if ( !v3 ) return 0; v6 = *(_QWORD *)(v3 + 56); if ( v6 ) { v7 = *(_QWORD *)(v6 + 288); while ( *(struct cocos2d::CCComponent **)(v6 + 264) != a2 ) { v6 = v7; if ( !v7 ) return 1; v7 = *(_QWORD *)(v7 + 288); } (*(void (__fastcall **)(struct cocos2d::CCComponent *))(*(_QWORD *)a2 + 88LL))(a2); cocos2d::CCComponent::setOwner(a2, nullptr); if ( *(_OWORD *)(v6 + 280) == 0 ) { free(**(void ***)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL)); free(*(void **)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL)); *(_QWORD *)(*((_QWORD *)this + 1) + 56LL) = 0; } else { v8 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL); v9 = *(_QWORD *)(v8 + 32); if ( v6 == *(_QWORD *)(v8 + 24) - v9 ) *(_QWORD *)(v8 + 24) = *(_QWORD *)(v6 + 280) + v9; v10 = *(_QWORD *)(v6 + 280); v11 = *((_QWORD *)this + 1); if ( v10 ) *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v11 + 56) + 272LL) + 32LL) + v10 + 16) = *(_QWORD *)(v6 + 288); else *(_QWORD *)(v11 + 56) = *(_QWORD *)(v6 + 288); v12 = *(_QWORD *)(v6 + 288); if ( v12 ) *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL) + 32LL) + v12 + 8) = *(_QWORD *)(v6 + 280); v13 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL); v14 = *(_DWORD *)(v6 + 324) & (unsigned int)(*(_DWORD *)(v13 + 8) - 1); --*(_DWORD *)(16 * v14 + *(_QWORD *)v13 + 8); v15 = *(_QWORD **)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL); if ( *(_QWORD *)(16 * v14 + *v15) == v6 + 272 ) *(_QWORD *)(*v15 + 16 * v14) = *(_QWORD *)(v6 + 304); v16 = *(_QWORD *)(v6 + 296); if ( v16 ) *(_QWORD *)(v16 + 32) = *(_QWORD *)(v6 + 304); v17 = *(_QWORD *)(v6 + 304); if ( v17 ) *(_QWORD *)(v17 + 24) = *(_QWORD *)(v6 + 296); v18 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL); --*(_DWORD *)(v18 + 16); } cocos2d::CCObject::release(*(cocos2d::CCObject **)(v6 + 264)); cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)v6, v2); j_j_free_0((void *)v6); } return 1; }