// // DS_Dictionary::getObjectForKey from 0xdbbb5c to 0xdbbdd4 (632 bytes) // // 2 xrefs: // > DS_Dictionary::getArrayForKey @ 0xdbbe6c // > @ 0x6ca30 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:08:44 +0000 // cocos2d::CCDictionary *__fastcall DS_Dictionary::getObjectForKey(DS_Dictionary *this, const char *a2) { int v4; // w1 pugi::xml_node *v5; // x0 const char *v6; // x1 const char *v7; // x0 const char *v8; // x1 cocos2d::CCObject *v9; // x19 const char *v11; // x19 const char *v12; // x0 __int64 *v13; // x1 int BoolForKey; // w19 int IntegerForKey; // w3 const char *v16; // x0 char *v17; // x1 size_t v18; // x2 const char *v19; // x0 const char *v20; // x0 size_t v21; // x0 char *v22; // [xsp+48h] [xbp+48h] __int64 i; // [xsp+50h] [xbp+50h] BYREF __int64 sibling; // [xsp+58h] [xbp+58h] BYREF __int64 v25; // [xsp+60h] [xbp+60h] BYREF __int64 v26; // [xsp+68h] [xbp+68h] void *v27; // [xsp+70h] [xbp+70h] v4 = *((unsigned __int8 *)this + 232); v5 = (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL); if ( v4 ) v6 = "key"; else v6 = "k"; for ( i = pugi::xml_node::child(v5, v6); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v8) ) { if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&i) ) return nullptr; v7 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); if ( !strcmp(a2, v7) ) break; if ( *((_BYTE *)this + 232) ) v8 = "key"; else v8 = "k"; } sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i); if ( *((_BYTE *)this + 232) ) v11 = "dict"; else v11 = &byte_11B7208; v12 = (const char *)pugi::xml_node::name((pugi::xml_node *)&sibling); if ( !strcmp(v11, v12) ) { v13 = *((__int64 **)this + 27); if ( v13 == *((__int64 **)this + 28) ) { std::vector::__push_back_slow_path((char **)this + 26, &sibling); } else { if ( v13 ) { *v13 = sibling; v13 = *((__int64 **)this + 27); } *((_QWORD *)this + 27) = v13 + 1; } BoolForKey = (unsigned __int8)DS_Dictionary::getBoolForKey(this, "_isArr"); IntegerForKey = DS_Dictionary::getIntegerForKey(this, "kCEK"); if ( IntegerForKey ) return (cocos2d::CCDictionary *)DS_Dictionary::decodeObjectForKey((unsigned __int64)this, a2, 1, IntegerForKey); if ( BoolForKey ) return (cocos2d::CCDictionary *)DS_Dictionary::getArrayForKey(this, a2, 1); return DS_Dictionary::getDictForKey(this, a2, 1); } if ( *((_BYTE *)this + 232) ) { v19 = (const char *)pugi::xml_node::name((pugi::xml_node *)&sibling); if ( !strcmp("true", v19) ) goto LABEL_25; } else { v16 = (const char *)pugi::xml_node::name((pugi::xml_node *)&sibling); if ( !strcmp("t", v16) ) { LABEL_25: v17 = "1"; v18 = 1; v25 = 0; v26 = 0; v27 = nullptr; goto LABEL_26; } } v20 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&sibling); v25 = 0; v22 = (char *)v20; v26 = 0; v27 = nullptr; v21 = strlen(v20); v17 = v22; v18 = v21; LABEL_26: std::string::__init(&v25, v17, v18); v9 = cocos2d::CCString::create(&v25); if ( (v25 & 1) != 0 ) operator delete(v27); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source