//
// DS_Dictionary::getNumKeys from 0x5fcbf8 to 0x5fcc48 (80 bytes)
//
// 4 xrefs:
// > CCAnimateFrameCache::addDict @ 0x2e4980
// > CCAnimateFrameCache::addDict @ 0x2e49b6
// > CCAnimateFrameCache::addDict @ 0x2e4a5e
// > DS_Dictionary::getArrayForKey @ 0x5ff854
//
// 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
//
unsigned int DS_Dictionary::getNumKeys(DS_Dictionary *a1)
{
unsigned int v1; // r6
pugi::xml_node *v2; // r0
pugi::xml_node v4; // [sp+4h] [bp-4h] BYREF
pugi::xml_node v5; // [sp+8h] [bp+0h] BYREF
v1 = 0;
v2 = (pugi::xml_node *)std::vector
::back((int)&a1->dictTree);
for ( v4._root = (pugi::xml_node_struct *)pugi::xml_node::first_child(v2);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&v4);
v4._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v5) )
{
++v1;
v5._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v4);
}
return v1;
}