// // cocos2d::CCDictionary::objectForKey from 0x18000a7d0 to 0x18000a927 (343 bytes) // // 11 xrefs: // > cocos2d::CCDictionary::randomObject @ 0x18000a96e // > cocos2d::CCDictionary::valueForKey @ 0x18000c565 // > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x18006b757 // > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x18006b9d8 // > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x18006bd75 // > cocos2d::CCTMXTiledMap::propertiesForGID @ 0x1800ae4ba // > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1bd4 // > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1800b3082 // > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x1800b377f // > @ 0x1801438a8 // > @ 0x1801add14 // // 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 // struct cocos2d::CCObject *__fastcall cocos2d::CCDictionary::objectForKey(cocos2d::CCDictionary *this, __int64 a2) { cocos2d::CCDictElement *m_pElements; // r11 __int64 v5; // r10 UT_hash_table *tbl; // r11 int v7; // edx unsigned int v8; // r8d unsigned int v9; // ecx int v10; // edx unsigned int v11; // r8d unsigned int v12; // ecx int v13; // edx UT_hash_handle *hh_head; // rax std::ptrdiff_t hho; // rdx __int64 v16; // rax __int64 v17; // rax if ( this->m_eDictType == kCCDictUnknown ) return nullptr; m_pElements = this->m_pElements; v5 = 0; if ( m_pElements ) { tbl = m_pElements->hh.tbl; v7 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 - (((BYTE5(a2) + ((BYTE6(a2) + (HIBYTE(a2) << 8)) << 8)) << 8) + BYTE4(a2)) + 17973513) ^ 0x7F76D; v8 = (((((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 - (((BYTE5(a2) + ((BYTE6(a2) + (HIBYTE(a2) << 8)) << 8)) << 8) + BYTE4(a2)) + 17973513) ^ 0x7F76D) << 8) ^ (((BYTE5(a2) + ((BYTE6(a2) + (HIBYTE(a2) << 8)) << 8)) << 8) + BYTE4(a2) - 1640531527 - v7 + 17973513); v9 = (v8 >> 13) ^ (-17973513 - v8 - v7); v10 = (v9 >> 12) ^ (v7 - v8 - v9); v11 = (v10 << 16) ^ (v8 - v10 - v9); v12 = (v11 >> 5) ^ (v9 - v11 - v10); v13 = (v12 >> 3) ^ (v10 - v11 - v12); hh_head = tbl->buckets[(tbl->num_buckets - 1) & (((unsigned __int64)((v13 << 10) ^ (v11 - v13 - v12)) >> 15) ^ (v12 - ((v13 << 10) ^ (v11 - v13 - v12)) - v13))].hh_head; if ( hh_head ) { hho = tbl->hho; v16 = (__int64)hh_head - hho; if ( v16 ) { while ( *(_DWORD *)(v16 + 320) != 8 || **(_QWORD **)(v16 + 312) != a2 ) { v17 = *(_QWORD *)(v16 + 304); if ( !v17 ) return (struct cocos2d::CCObject *)v5; v16 = v17 - hho; if ( !v16 ) return nullptr; } return *(struct cocos2d::CCObject **)(v16 + 264); } } } return (struct cocos2d::CCObject *)v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source