// // cocos2d::CCComponentContainer::removeAll from 0x180096e10 to 0x180097012 (514 bytes) // // 5 xrefs: // > @ 0x1801045b8 // > @ 0x18013e760 // > @ 0x18013e770 // > @ 0x1801438a8 // > @ 0x1801b6948 // // 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::CCComponentContainer::removeAll(cocos2d::CCComponentContainer *this, float a2) { cocos2d::CCDictionary *m_pComponents; // rbx cocos2d::CCDictElement *m_pElements; // rbx cocos2d::CCDictElement *i; // rsi char *prev; // r9 cocos2d::CCDictionary *v7; // r8 UT_hash_table *tbl; // r10 std::ptrdiff_t hho; // r11 char *v10; // r10 cocos2d::CCDictElement *next; // r9 char *v12; // r8 UT_hash_table *v13; // r9 __int64 v14; // r10 UT_hash_table *v15; // rcx UT_hash_handle *hh_prev; // rdx UT_hash_handle *hh_next; // rdx UT_hash_table *v18; // rax m_pComponents = this->m_pComponents; if ( m_pComponents ) { m_pElements = m_pComponents->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { prev = (char *)m_pElements->hh.prev; if ( prev || m_pElements->hh.next ) { v7 = this->m_pComponents; tbl = v7->m_pElements->hh.tbl; hho = tbl->hho; if ( m_pElements == (cocos2d::CCDictElement *)((char *)tbl->tail - hho) ) { tbl->tail = (UT_hash_handle *)&prev[hho]; v7 = this->m_pComponents; } v10 = (char *)m_pElements->hh.prev; next = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( v10 ) *(_QWORD *)&v10[v7->m_pElements->hh.tbl->hho + 16] = next; else v7->m_pElements = next; v12 = (char *)m_pElements->hh.next; if ( v12 ) *(_QWORD *)&v12[this->m_pComponents->m_pElements->hh.tbl->hho + 8] = m_pElements->hh.prev; v13 = this->m_pComponents->m_pElements->hh.tbl; v14 = m_pElements->hh.hashv & (v13->num_buckets - 1); --v13->buckets[v14].count; v15 = this->m_pComponents->m_pElements->hh.tbl; if ( v15->buckets[v14].hh_head == &m_pElements->hh ) v15->buckets[v14].hh_head = m_pElements->hh.hh_next; hh_prev = m_pElements->hh.hh_prev; if ( hh_prev ) hh_prev->hh_next = m_pElements->hh.hh_next; hh_next = m_pElements->hh.hh_next; if ( hh_next ) hh_next->hh_prev = m_pElements->hh.hh_prev; v18 = this->m_pComponents->m_pElements->hh.tbl; --v18->num_items; } else { free(this->m_pComponents->m_pElements->hh.tbl->buckets); free(this->m_pComponents->m_pElements->hh.tbl); this->m_pComponents->m_pElements = nullptr; } ((void (__fastcall *)(cocos2d::CCObject *))m_pElements->m_pObject->__vftable[1].isEqual)(m_pElements->m_pObject); cocos2d::CCComponent::setOwner((cocos2d::CCComponent *)m_pElements->m_pObject, nullptr); cocos2d::CCObject::release(m_pElements->m_pObject); cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)m_pElements, a2); j_j_free_0(m_pElements); m_pElements = i; if ( !i ) break; } } cocos2d::CCNode::unscheduleUpdate(this->m_pOwner); } }