// // cocos2d::CCDictMaker::endElement from 0x5df1d0 to 0x5df418 (584 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::endElement(cocos2d::CCDictMaker *this, void *a2, char *a3, const char *a4) { int v6; // r7 char *v7; // r0 int v8; // r3 int v9; // r3 char *v10; // r0 int v11; // r3 int v12; // r3 char *v13; // r0 int v14; // r3 int v15; // r3 char *v16; // r0 int v17; // r3 int v18; // r3 cocos2d::CCString *v19; // r0 char *v20; // r1 cocos2d::_ccArray *v21; // r9 cocos2d::CCObject *v22; // r2 int v23; // r7 cocos2d::CCObject *v24; // r9 cocos2d::CCObject *v25; // r2 int v27; // r7 void *v28; // [sp+4h] [bp-Ch] BYREF const char *v29[2]; // [sp+8h] [bp-8h] BYREF v28 = a2; v29[0] = a3; v29[1] = a4; if ( *((_DWORD *)this + 35) == *((_DWORD *)this + 31) ) v6 = 2; else v6 = *(_DWORD *)std::deque::back((_DWORD *)this + 29); sub_776584((int)&v28, a3); if ( std::operator==((int)&v28, "dict") ) { v7 = *((char **)this + 35); if ( v7 == *((char **)this + 36) ) { operator delete(v7); v8 = *((_DWORD *)this + 38); *((_DWORD *)this + 38) = v8 - 4; v9 = *(_DWORD *)(v8 - 4); *((_DWORD *)this + 37) = v9 + 512; *((_DWORD *)this + 36) = v9; *((_DWORD *)this + 35) = v9 + 508; } else { *((_DWORD *)this + 35) = v7 - 4; } v10 = *((char **)this + 11); if ( v10 == *((char **)this + 12) ) { operator delete(v10); v11 = *((_DWORD *)this + 14); *((_DWORD *)this + 14) = v11 - 4; v12 = *(_DWORD *)(v11 - 4); *((_DWORD *)this + 13) = v12 + 512; *((_DWORD *)this + 12) = v12; *((_DWORD *)this + 11) = v12 + 508; } else { *((_DWORD *)this + 11) = v10 - 4; } if ( *((_DWORD *)this + 11) != *((_DWORD *)this + 7) ) *((_DWORD *)this + 4) = *(_DWORD *)std::deque::back((_DWORD *)this + 5); goto LABEL_37; } if ( std::operator==((int)&v28, "array") ) { v13 = *((char **)this + 35); if ( v13 == *((char **)this + 36) ) { operator delete(v13); v14 = *((_DWORD *)this + 38); *((_DWORD *)this + 38) = v14 - 4; v15 = *(_DWORD *)(v14 - 4); *((_DWORD *)this + 37) = v15 + 512; *((_DWORD *)this + 36) = v15; *((_DWORD *)this + 35) = v15 + 508; } else { *((_DWORD *)this + 35) = v13 - 4; } v16 = *((char **)this + 25); if ( v16 == *((char **)this + 26) ) { operator delete(v16); v17 = *((_DWORD *)this + 28); *((_DWORD *)this + 28) = v17 - 4; v18 = *(_DWORD *)(v17 - 4); *((_DWORD *)this + 27) = v18 + 512; *((_DWORD *)this + 26) = v18; *((_DWORD *)this + 25) = v18 + 508; } else { *((_DWORD *)this + 25) = v16 - 4; } if ( *((_DWORD *)this + 25) != *((_DWORD *)this + 21) ) *((_DWORD *)this + 18) = *(_DWORD *)std::deque::back((_DWORD *)this + 19); goto LABEL_37; } if ( std::operator==((int)&v28, "true") ) { v19 = (cocos2d::CCString *)operator new(0x38u); v20 = (char *)&aO1i2r3e45s7t89[1]; v21 = (cocos2d::_ccArray *)v19; LABEL_26: cocos2d::CCString::CCString(v19, v20); if ( v6 == 6 ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 18), v21, v22); } else if ( v6 == 2 ) { v23 = *((_DWORD *)this + 4); sub_776584((int)v29, *((char **)this + 15)); cocos2d::CCDictionary::setObject(v23, (cocos2d::CCObject *)v21, v29); sub_774008(v29); } cocos2d::CCObject::release((cocos2d::CCObject *)v21); goto LABEL_37; } if ( std::operator==((int)&v28, "false") ) { v19 = (cocos2d::CCString *)operator new(0x38u); v20 = "0"; v21 = (cocos2d::_ccArray *)v19; goto LABEL_26; } if ( std::operator==((int)&v28, "string") || std::operator==((int)&v28, "integer") || std::operator==((int)&v28, "real") ) { v24 = (cocos2d::CCObject *)operator new(0x38u); cocos2d::CCString::CCString(v24); if ( v6 == 6 ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 18), (cocos2d::_ccArray *)v24, v25); } else if ( v6 == 2 ) { v27 = *((_DWORD *)this + 4); sub_776584((int)v29, *((char **)this + 15)); cocos2d::CCDictionary::setObject(v27, v24, v29); sub_774008(v29); } cocos2d::CCObject::release(v24); sub_7751A8((char *)this + 64); } LABEL_37: *((_DWORD *)this + 17) = 0; return sub_774008(&v28); }
GD Web Decomp Icon

GD Web Decomp

Raw Source