//
// DS_Dictionary::getNumKeys from 0x80ad2c to 0x80ad7c (80 bytes)
//
// 4 xrefs:
// > CCAnimateFrameCache::addDict @ 0x3c4396
// > CCAnimateFrameCache::addDict @ 0x3c43da
// > CCAnimateFrameCache::addDict @ 0x3c44a6
// > DS_Dictionary::getArrayForKey @ 0x80da02
//
// 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:29 +0000
//
int __fastcall DS_Dictionary::getNumKeys(DS_Dictionary *this)
{
int v1; // r6
int i; // [sp+4h] [bp-4h] BYREF
int sibling; // [sp+8h] [bp+0h] BYREF
v1 = 0;
for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4));
pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )
{
++v1;
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);
}
return v1;
}