//
// DS_Dictionary::getKey from 0x5fcc4c to 0x5fccc8 (124 bytes)
//
// 3 xrefs:
// > CCAnimateFrameCache::addDict @ 0x2e4996
// > CCAnimateFrameCache::addDict @ 0x2e4a98
// > DS_Dictionary::getArrayForKey @ 0x5ff864
//
// 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
//
DS_Dictionary *__fastcall DS_Dictionary::getKey(DS_Dictionary *this, unsigned int a2, int a3)
{
int v5; // r7
pugi::xml_node *v6; // r0
char *v7; // r0
pugi::xml_node v9; // [sp+4h] [bp-10h] BYREF
pugi::xml_node v10; // [sp+8h] [bp-Ch] BYREF
v5 = 0;
v6 = (pugi::xml_node *)std::vector
::back(a2 + 200);
for ( v9._root = (pugi::xml_node_struct *)pugi::xml_node::first_child(v6);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&v9);
v9._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v10) )
{
if ( v5 == a3 )
{
v7 = (char *)pugi::xml_node::child_value(&v9);
sub_776584((int)this, v7);
return this;
}
++v5;
v10._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v9);
}
this->doc._root = (pugi::xml_node_struct *)&unk_ACDDA8;
return this;
}