// // cocos2d::CCDictMaker::startElement from 0x5dfc68 to 0x5dfe48 (480 bytes) // // 0 xrefs: // // 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 // __int64 __fastcall cocos2d::CCDictMaker::startElement(cocos2d::CCDictMaker *this, void *a2, char *a3, const char **a4) { cocos2d::CCDictionary *v5; // r8 int v6; // r3 int v7; // r2 cocos2d::CCObject *v8; // r2 int v9; // r3 int *v10; // r0 cocos2d::CCObject *v11; // r9 int v12; // r10 _DWORD *v13; // r3 int v14; // r3 cocos2d::CCArray *v15; // r8 int v16; // r3 int v17; // r3 int v18; // r11 cocos2d::CCObject *v19; // r10 cocos2d::CCArray **v20; // r0 cocos2d::CCObject *v21; // r2 _BYTE v23[4]; // [sp+4h] [bp-10h] BYREF const char *v24; // [sp+8h] [bp-Ch] BYREF sub_776584((int)v23, a3); if ( std::operator==((int)v23, "dict") ) { v5 = (cocos2d::CCDictionary *)operator new(0x3Cu); cocos2d::CCDictionary::CCDictionary(v5); v6 = *((_DWORD *)this + 1); *((_DWORD *)this + 4) = v5; if ( v6 == 1 && !*((_DWORD *)this + 3) ) { *((_DWORD *)this + 3) = v5; cocos2d::CCObject::retain(v5); } v7 = *((_DWORD *)this + 35); *((_DWORD *)this + 17) = 2; if ( v7 != *((_DWORD *)this + 31) ) { v9 = *(_DWORD *)std::deque::back((_DWORD *)this + 29); if ( v9 == 6 ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 18), *((cocos2d::_ccArray **)this + 4), v8); } else if ( v9 == 2 ) { v10 = (int *)std::deque::back((_DWORD *)this + 5); v11 = *((cocos2d::CCObject **)this + 4); v12 = *v10; sub_776584((int)&v24, *((char **)this + 15)); cocos2d::CCDictionary::setObject(v12, v11, &v24); sub_774008(&v24); } } cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 4)); std::deque::push_back((void **)this + 29, (_DWORD *)this + 17); v13 = *((_DWORD **)this + 11); if ( v13 == (_DWORD *)(*((_DWORD *)this + 13) - 4) ) { std::deque::_M_push_back_aux( (void **)this + 5, (_DWORD *)this + 4); } else { if ( v13 ) *v13 = *((_DWORD *)this + 4); *((_DWORD *)this + 11) += 4; } return sub_774008(v23); } if ( std::operator==((int)v23, "key") ) { v14 = 1; LABEL_19: *((_DWORD *)this + 17) = v14; return sub_774008(v23); } if ( std::operator==((int)v23, "integer") ) { v14 = 3; goto LABEL_19; } if ( std::operator==((int)v23, "real") ) { v14 = 4; goto LABEL_19; } if ( std::operator==((int)v23, "string") ) { v14 = 5; goto LABEL_19; } if ( std::operator==((int)v23, "array") ) { *((_DWORD *)this + 17) = 6; v15 = (cocos2d::CCArray *)operator new(0x38u); cocos2d::CCArray::CCArray(v15); v16 = *((_DWORD *)this + 1); *((_DWORD *)this + 18) = v15; if ( v16 == 2 && !*((_DWORD *)this + 2) ) { *((_DWORD *)this + 2) = v15; cocos2d::CCObject::retain(v15); } if ( *((_DWORD *)this + 35) != *((_DWORD *)this + 31) ) { v17 = *(_DWORD *)std::deque::back((_DWORD *)this + 29); if ( v17 == 2 ) { v18 = *((_DWORD *)this + 4); v19 = *((cocos2d::CCObject **)this + 18); sub_776584((int)&v24, *((char **)this + 15)); cocos2d::CCDictionary::setObject(v18, v19, &v24); sub_774008(&v24); } else if ( v17 == 6 ) { v20 = (cocos2d::CCArray **)std::deque::back((_DWORD *)this + 19); cocos2d::CCArray::addObject(*v20, *((cocos2d::_ccArray **)this + 18), v21); } } cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 18)); std::deque::push_back((void **)this + 29, (_DWORD *)this + 17); std::deque::push_back((void **)this + 19, (_DWORD *)this + 18); } else { *((_DWORD *)this + 17) = 0; } return sub_774008(v23); }
GD Web Decomp Icon

GD Web Decomp

Raw Source