//
// DS_Dictionary::getKey from 0x80b9a8 to 0x80ba2c (132 bytes)
//
// 3 xrefs:
// > CCAnimateFrameCache::addDict @ 0x3c43ae
// > CCAnimateFrameCache::addDict @ 0x3c44de
// > DS_Dictionary::getArrayForKey @ 0x80da12
//
// 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::getKey(DS_Dictionary *this, unsigned int a2, int a3)
{
int v5; // r7
const char *v6; // r0
const char *v7; // r5
size_t v8; // r0
int i; // [sp+4h] [bp-10h] BYREF
int sibling; // [sp+8h] [bp-Ch] BYREF
v5 = 0;
for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*(_DWORD *)(a2 + 204) - 4));
pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )
{
if ( v5 == a3 )
{
v6 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
v7 = v6;
v8 = strlen(v6);
std::string::__init((int *)this, v7, v8);
return this;
}
++v5;
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);
}
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
return this;
}