//
// DS_Dictionary::getKey from 0xdb7228 to 0xdb730c (228 bytes)
//
// 4 xrefs:
// > CCAnimateFrameCache::addDict @ 0x68df10
// > CCAnimateFrameCache::addDict @ 0x68e0f4
// > DS_Dictionary::getArrayForKey @ 0xdbbe54
// > ??> @ 0xe2900
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:42 +0000
//
__int64 *__usercall DS_Dictionary::getKey@(DS_Dictionary *this@, int a2@, __int64 *a3@)
{
int v5; // w19
const char *v7; // x0
size_t v8; // x0
char *v9; // [xsp+48h] [xbp+48h]
__int64 i; // [xsp+58h] [xbp+58h] BYREF
__int64 sibling; // [xsp+60h] [xbp+60h] BYREF
v5 = 0;
for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL));
;
i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )
{
if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&i) )
{
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
return a3;
}
if ( v5 == a2 )
break;
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);
++v5;
}
v7 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
v9 = (char *)v7;
v8 = strlen(v7);
std::string::__init(a3, v9, v8);
return a3;
}