//
// DS_Dictionary::getStringArrayForKey from 0x5fe2b4 to 0x5fe3e8 (308 bytes)
//
// 2 xrefs:
// > DS_Dictionary::getRectArrayForKey @ 0x5fe824
// > DS_Dictionary::getVec2ArrayForKey @ 0x5fe9c4
//
// 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
//
std::vector
*DS_Dictionary::getStringArrayForKey(
std::vector *__return_ptr retstr,
DS_Dictionary *a2,
const char *a3)
{
pugi::xml_node *v5; // r0
const char *v6; // r1
const char *v7; // r0
pugi::xml_node_struct *v8; // r0
const char *v9; // r1
char *v10; // r0
std::string *v11; // r3
std::string *v12; // r3
std::string *v13; // r3
const char *v14; // r1
pugi::xml_node v17; // [sp+14h] [bp-20h] BYREF
pugi::xml_node v18; // [sp+18h] [bp-1Ch] BYREF
pugi::xml_node v19; // [sp+1Ch] [bp-18h] BYREF
std::string *v20; // [sp+20h] [bp-14h] BYREF
std::string *v21; // [sp+24h] [bp-10h]
std::string *v22; // [sp+28h] [bp-Ch]
v5 = (pugi::xml_node *)std::vector::back((int)&a2->dictTree);
if ( a2->compatible )
v6 = "key";
else
v6 = "k";
for ( v17._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);
;
v17._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v17, v14) )
{
if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&v17) )
{
retstr->m_start = nullptr;
retstr->m_finish = nullptr;
retstr->m_reserveEnd = nullptr;
return retstr;
}
v7 = (const char *)pugi::xml_node::child_value(&v17);
if ( !strcmp(v7, a3) )
{
v8 = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v17);
v9 = a2->compatible ? "array" : "a";
v19._root = v8;
v20 = (std::string *)pugi::xml_node::next_sibling(&v17, v9);
if ( pugi::xml_node::operator==(&v19, &v20) )
break;
}
if ( a2->compatible )
v14 = "key";
else
v14 = "k";
}
v20 = nullptr;
v21 = nullptr;
v22 = nullptr;
v19._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v17);
for ( v18._root = (pugi::xml_node_struct *)pugi::xml_node::first_child(&v19);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&v18);
v18._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v18) )
{
v10 = (char *)pugi::xml_node::child_value(&v18);
sub_776584((int)&v19, v10);
std::vector::emplace_back((int)&v20, &v19);
sub_774008(&v19);
}
v11 = v20;
v20 = nullptr;
retstr->m_start = v11;
v12 = v21;
v21 = nullptr;
retstr->m_finish = v12;
v13 = v22;
v22 = nullptr;
retstr->m_reserveEnd = v13;
std::vector::~vector((void **)&v20);
return retstr;
}