// // cocos2d::CCComponentContainer::remove from 0x180096ac0 to 0x180096e0a (842 bytes) // // 6 xrefs: // > @ 0x1801045b0 // > @ 0x18013e720 // > @ 0x18013e738 // > @ 0x18013e748 // > @ 0x1801438a8 // > @ 0x1801b6918 // // 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 // bool __fastcall cocos2d::CCComponentContainer::remove(cocos2d::CCComponentContainer *this, const char *a2) { float v2; // xmm1_4 cocos2d::CCDictionary *m_pComponents; // rax cocos2d::CCDictElement *m_pElements; // r11 __int64 v7; // r10 __int64 i; // rbx UT_hash_table *tbl; // r11 int v10; // r8d int v11; // edx unsigned int v12; // r8d unsigned int v13; // ecx int v14; // edx unsigned int v15; // r8d unsigned int v16; // ecx int v17; // edx UT_hash_handle *hh_head; // rbx std::ptrdiff_t hho; // rcx __int64 v20; // rbx cocos2d::CCComponent *v21; // rsi __int64 v22; // r8 cocos2d::CCDictionary *v23; // rcx UT_hash_table *v24; // rdx std::ptrdiff_t v25; // r10 __int64 v26; // r8 cocos2d::CCDictElement *v27; // rdx __int64 v28; // rdx UT_hash_table *v29; // rdx __int64 v30; // r10 UT_hash_table *v31; // rax __int64 v32; // rcx __int64 v33; // rcx UT_hash_table *v34; // rax m_pComponents = this->m_pComponents; if ( m_pComponents ) { m_pElements = m_pComponents->m_pElements; v7 = 0; i = 0; if ( m_pElements ) { tbl = m_pElements->hh.tbl; v10 = ((*((unsigned __int8 *)a2 + 5) + ((*((unsigned __int8 *)a2 + 6) + (*((unsigned __int8 *)a2 + 7) << 8)) << 8)) << 8) + *((unsigned __int8 *)a2 + 4) - 1640531527; v11 = (((*((unsigned __int8 *)a2 + 1) + ((*((unsigned __int8 *)a2 + 2) + (*((unsigned __int8 *)a2 + 3) << 8)) << 8)) << 8) + *(unsigned __int8 *)a2 - (((*((unsigned __int8 *)a2 + 5) + ((*((unsigned __int8 *)a2 + 6) + (*((unsigned __int8 *)a2 + 7) << 8)) << 8)) << 8) + *((unsigned __int8 *)a2 + 4)) + 17973513) ^ 0x7F76D; v12 = (v11 << 8) ^ (v10 - v11 + 17973513); v13 = (v12 >> 13) ^ (-17973513 - v12 - v11); v14 = (v13 >> 12) ^ (v11 - v12 - v13); v15 = (v14 << 16) ^ (v12 - v14 - v13); v16 = (v15 >> 5) ^ (v13 - v15 - v14); v17 = (v16 >> 3) ^ (v14 - v15 - v16); hh_head = tbl->buckets[(tbl->num_buckets - 1) & (((unsigned __int64)((v17 << 10) ^ (v15 - v17 - v16)) >> 15) ^ (v16 - ((v17 << 10) ^ (v15 - v17 - v16)) - v17))].hh_head; if ( hh_head ) { hho = tbl->hho; for ( i = (__int64)hh_head - hho; i; i = v20 - hho ) { if ( *(_DWORD *)(i + 320) == 8 && **(_QWORD **)(i + 312) == *(_QWORD *)a2 ) break; v20 = *(_QWORD *)(i + 304); if ( !v20 ) goto LABEL_10; } } else { LABEL_10: i = 0; } if ( i ) v7 = *(_QWORD *)(i + 264); } m_pComponents = (cocos2d::CCDictionary *)_RTDynamicCast( v7, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCComponent `RTTI Type Descriptor', 0); v21 = (cocos2d::CCComponent *)m_pComponents; if ( m_pComponents ) { ((void (__fastcall *)(cocos2d::CCDictionary *))m_pComponents->__vftable[1].isEqual)(m_pComponents); cocos2d::CCComponent::setOwner(v21, nullptr); v22 = *(_QWORD *)(i + 280); if ( v22 || *(_QWORD *)(i + 288) ) { v23 = this->m_pComponents; v24 = v23->m_pElements->hh.tbl; v25 = v24->hho; if ( (UT_hash_handle *)i == (UT_hash_handle *)((char *)v24->tail - v25) ) { v24->tail = (UT_hash_handle *)(v25 + v22); v23 = this->m_pComponents; } v26 = *(_QWORD *)(i + 280); v27 = *(cocos2d::CCDictElement **)(i + 288); if ( v26 ) *(_QWORD *)(v23->m_pElements->hh.tbl->hho + v26 + 16) = v27; else v23->m_pElements = v27; v28 = *(_QWORD *)(i + 288); if ( v28 ) *(_QWORD *)(this->m_pComponents->m_pElements->hh.tbl->hho + v28 + 8) = *(_QWORD *)(i + 280); v29 = this->m_pComponents->m_pElements->hh.tbl; v30 = *(_DWORD *)(i + 324) & (v29->num_buckets - 1); --v29->buckets[v30].count; v31 = this->m_pComponents->m_pElements->hh.tbl; if ( v31->buckets[v30].hh_head == (UT_hash_handle *)(i + 272) ) v31->buckets[v30].hh_head = *(UT_hash_handle **)(i + 304); v32 = *(_QWORD *)(i + 296); if ( v32 ) *(_QWORD *)(v32 + 32) = *(_QWORD *)(i + 304); v33 = *(_QWORD *)(i + 304); if ( v33 ) *(_QWORD *)(v33 + 24) = *(_QWORD *)(i + 296); v34 = this->m_pComponents->m_pElements->hh.tbl; --v34->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; } cocos2d::CCObject::release(*(cocos2d::CCObject **)(i + 264)); cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)i, v2); j_j_free_0((void *)i); LOBYTE(m_pComponents) = 1; } } return (char)m_pComponents; }
GD Web Decomp Icon

GD Web Decomp

Raw Source