// // DS_Dictionary::getObjectForKey from 0x80d81c to 0x80d990 (372 bytes) // // 1 xrefs: // > DS_Dictionary::getArrayForKey @ 0x80da26 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:34 +0000 // cocos2d::CCDictionary *__fastcall DS_Dictionary::getObjectForKey(DS_Dictionary *this, const char *a2) { pugi::xml_node *v4; // r0 const char *v5; // r1 int v6; // r0 const char *v7; // r0 int sibling; // r0 int v9; // r3 const char *v10; // r8 const char *v11; // r0 _DWORD *v12; // r3 int BoolForKey; // r5 ObjectDecoder *IntegerForKey; // r3 const char *v15; // r4 const char *v16; // r0 size_t v17; // r2 const __int16 *v18; // r1 const char *v19; // r0 const __int16 *v20; // r5 size_t v21; // r0 cocos2d::CCObject *v22; // r5 const char *v23; // r1 int i; // [sp+0h] [bp-1Ch] BYREF int v26; // [sp+4h] [bp-18h] BYREF int v27; // [sp+8h] [bp-14h] BYREF int v28; // [sp+Ch] [bp-10h] int v29; // [sp+10h] [bp-Ch] v4 = (pugi::xml_node *)(*((_DWORD *)this + 51) - 4); if ( *((_BYTE *)this + 212) ) v5 = "key"; else v5 = "k"; for ( i = pugi::xml_node::child(v4, v5); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v23) ) { v6 = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i); if ( !v6 ) return (cocos2d::CCDictionary *)v6; v7 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); if ( !strcmp(a2, v7) ) break; if ( *((_BYTE *)this + 212) ) v23 = "key"; else v23 = "k"; } sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i); v9 = *((unsigned __int8 *)this + 212); v26 = sibling; if ( v9 ) v10 = "dict"; else v10 = "d"; v11 = (const char *)pugi::xml_node::name((pugi::xml_node *)&v26); if ( !strcmp(v10, v11) ) { v12 = *((_DWORD **)this + 51); if ( v12 == *((_DWORD **)this + 52) ) { std::vector::__push_back_slow_path((int *)this + 50, &v26); } else { if ( v12 ) *v12 = v26; *((_DWORD *)this + 51) += 4; } BoolForKey = DS_Dictionary::getBoolForKey(this, "_isArr"); IntegerForKey = (ObjectDecoder *)DS_Dictionary::getIntegerForKey(this, "kCEK"); if ( IntegerForKey ) return DS_Dictionary::decodeObjectForKey(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 + 212) ) v15 = "true"; else v15 = "t"; v16 = (const char *)pugi::xml_node::name((pugi::xml_node *)&v26); if ( !strcmp(v15, v16) ) { v17 = 1; v27 = 0; v28 = 0; v18 = a1i2r3e45s789g; v29 = 0; } else { v19 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&v26); v27 = 0; v28 = 0; v29 = 0; v20 = (const __int16 *)v19; v21 = strlen(v19); v18 = v20; v17 = v21; } std::string::__init(&v27, v18, v17); v22 = cocos2d::CCString::create((int)&v27); std::string::~string((int)&v27); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source