// // cocos2d::CCDictionary::setObject from 0x18000b790 to 0x18000b92c (412 bytes) // // 5 xrefs: // > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006bb12 // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0b6e // > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b30a1 // > @ 0x1801438a8 // > @ 0x1801addec // // 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::CCDictionary::setObject(cocos2d::CCDictionary *this, struct cocos2d::CCObject *a2, __int64 a3) { cocos2d::CCDictElement *m_pElements; // r11 UT_hash_table *tbl; // r11 int v8; // edx int v9; // r8d unsigned int v10; // ecx int v11; // edx unsigned int v12; // r8d unsigned int v13; // ecx int v14; // edx UT_hash_handle *hh_head; // rbx std::ptrdiff_t hho; // rcx __int64 v17; // rbx __int64 v18; // rbx cocos2d::CCObject *v19; // rcx if ( this->m_eDictType == kCCDictUnknown ) this->m_eDictType = kCCDictInt; m_pElements = this->m_pElements; if ( !m_pElements ) goto LABEL_10; tbl = m_pElements->hh.tbl; v8 = (((BYTE1(a3) + ((BYTE2(a3) + (BYTE3(a3) << 8)) << 8)) << 8) + (unsigned __int8)a3 - (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8) + BYTE4(a3)) + 17973513) ^ 0x7F76D; v9 = (v8 << 8) ^ (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8) + BYTE4(a3) - 1640531527 - v8 + 17973513); v10 = (((((((BYTE1(a3) + ((BYTE2(a3) + (BYTE3(a3) << 8)) << 8)) << 8) + (unsigned __int8)a3 - (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8) + BYTE4(a3)) + 17973513) ^ 0x7F76D) << 8) ^ (((BYTE5(a3) + ((BYTE6(a3) + (HIBYTE(a3) << 8)) << 8)) << 8) + (unsigned int)BYTE4(a3) - 1640531527 - v8 + 17973513)) >> 13) ^ (-17973513 - v9 - v8); v11 = (v10 >> 12) ^ (v8 - v9 - v10); v12 = (v11 << 16) ^ (v9 - v11 - v10); v13 = (v12 >> 5) ^ (v10 - v12 - v11); v14 = (v13 >> 3) ^ (v11 - v12 - v13); hh_head = tbl->buckets[(tbl->num_buckets - 1) & (((unsigned __int64)((v14 << 10) ^ (v12 - v14 - v13)) >> 15) ^ (v13 - ((v14 << 10) ^ (v12 - v14 - v13)) - v14))].hh_head; if ( !hh_head ) goto LABEL_10; hho = tbl->hho; v17 = (__int64)hh_head - hho; if ( v17 ) { while ( *(_DWORD *)(v17 + 320) != 8 || **(_QWORD **)(v17 + 312) != a3 ) { v18 = *(_QWORD *)(v17 + 304); if ( v18 ) { v17 = v18 - hho; if ( v17 ) continue; } goto LABEL_10; } v19 = *(cocos2d::CCObject **)(v17 + 264); if ( v19 != a2 ) { cocos2d::CCObject::release(v19); *(_QWORD *)(v17 + 264) = a2; cocos2d::CCObject::retain(a2); } } else { LABEL_10: cocos2d::CCDictionary::setObjectUnSafe(this, a2, a3); } }