// // DS_Dictionary::getStringArrayForKey from 0x80bc74 to 0x80bdc8 (340 bytes) // // 2 xrefs: // > DS_Dictionary::getRectArrayForKey @ 0x80c6bc // > DS_Dictionary::getVec2ArrayForKey @ 0x80c81e // // 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:31 +0000 // DS_Dictionary *__fastcall DS_Dictionary::getStringArrayForKey(DS_Dictionary *this, const char *a2, const char *a3) { pugi::xml_node *v5; // r0 const char *v6; // r1 const char *v7; // r0 int sibling; // r0 const char *v9; // r1 const char *v10; // r0 const char *v11; // r9 size_t v12; // r0 _DWORD *v13; // r3 int v14; // r1 int v15; // r2 const char *v16; // r1 int i; // [sp+10h] [bp-2Ch] BYREF int j; // [sp+14h] [bp-28h] BYREF int v21; // [sp+18h] [bp-24h] BYREF void *v22; // [sp+1Ch] [bp-20h] BYREF _DWORD *v23; // [sp+20h] [bp-1Ch] unsigned int v24; // [sp+24h] [bp-18h] int v25; // [sp+28h] [bp-14h] BYREF int v26; // [sp+2Ch] [bp-10h] int v27; // [sp+30h] [bp-Ch] v5 = (pugi::xml_node *)(*((_DWORD *)a2 + 51) - 4); if ( a2[212] ) v6 = "key"; else v6 = "k"; for ( i = pugi::xml_node::child(v5, v6); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v16) ) { if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&i) ) { *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; return this; } v7 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); if ( !strcmp(v7, a3) ) { sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i); v9 = a2[212] ? "array" : "a"; v21 = sibling; v22 = (void *)pugi::xml_node::next_sibling((pugi::xml_node *)&i, v9); if ( pugi::xml_node::operator==(&v21, &v22) ) break; } if ( a2[212] ) v16 = "key"; else v16 = "k"; } v22 = nullptr; v23 = nullptr; v24 = 0; v21 = pugi::xml_node::next_sibling((pugi::xml_node *)&i); for ( j = pugi::xml_node::first_child((pugi::xml_node *)&v21); pugi::xml_node::operator void (*)(pugi::xml_node***)(&j); j = pugi::xml_node::next_sibling((pugi::xml_node *)&j) ) { v10 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&j); v25 = 0; v26 = 0; v27 = 0; v11 = v10; v12 = strlen(v10); std::string::__init(&v25, v11, v12); v13 = v23; if ( (unsigned int)v23 >= v24 ) { std::vector::__push_back_slow_path(&v22, &v25); } else { if ( v23 ) { v14 = v26; v15 = v27; *v23 = v25; v13[1] = v14; v13[2] = v15; v25 = 0; v26 = 0; v27 = 0; } v23 += 3; } std::string::~string((int)&v25); } *(_DWORD *)this = v22; *((_DWORD *)this + 1) = v23; *((_DWORD *)this + 2) = v24; return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source