//
// pugi::xml_node::child from 0x6029b8 to 0x602a02 (74 bytes)
//
// 39 xrefs:
// > DS_Dictionary::checkCompatibility @ 0x5fc778
// > DS_Dictionary::saveRootSubDictToString @ 0x5fc9e8
// > DS_Dictionary::getIndexOfKey @ 0x5fccf8
// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x5fcd90
// > DS_Dictionary::removeKey @ 0x5fce32
// > DS_Dictionary::removeKey @ 0x5fcee8
// > DS_Dictionary::removeAllKeys @ 0x5fcfae
// > DS_Dictionary::getIntegerForKey @ 0x5fd02e
// > DS_Dictionary::getBoolForKey @ 0x5fd116
// > DS_Dictionary::getFloatForKey @ 0x5fd1e0
// > DS_Dictionary::getStringForKey @ 0x5fd2e0
// > DS_Dictionary::getVec2ForKey @ 0x5fd3e4
// > DS_Dictionary::setBoolForKey @ 0x5fd51c
// > DS_Dictionary::setStringForKey @ 0x5fd65c
// > DS_Dictionary::setStringArrayForKey @ 0x5fd7bc
// > DS_Dictionary::setVec2ForKey @ 0x5fd990
// > DS_Dictionary::setRectForKey @ 0x5fdb6a
// > DS_Dictionary::setVec2ArrayForKey @ 0x5fdcec
// > DS_Dictionary::setRectArrayForKey @ 0x5fdf08
// > DS_Dictionary::getStringArrayForKey @ 0x5fe2e4
// > DS_Dictionary::getRectForKey @ 0x5fe700
// > DS_Dictionary::DS_Dictionary @ 0x5febd6
// > DS_Dictionary::DS_Dictionary @ 0x5febe0
// > DS_Dictionary::loadRootSubDictFromFile @ 0x5fed22
// > DS_Dictionary::loadRootSubDictFromFile @ 0x5fed32
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x5fee52
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x5fee62
// > DS_Dictionary::loadRootSubDictFromString @ 0x5fef00
// > DS_Dictionary::loadRootSubDictFromString @ 0x5fef10
// > DS_Dictionary::stepBackToRootSubDict @ 0x5fef7e
// > DS_Dictionary::stepBackToRootSubDict @ 0x5fef8a
// > DS_Dictionary::stepIntoSubDictWithKey @ 0x5ff05c
// > DS_Dictionary::setSubDictForKey @ 0x5ff1a8
// > DS_Dictionary::getObjectForKey @ 0x5ff6ce
// > DS_Dictionary::setFloatForKey @ 0x5ffc8e
// > DS_Dictionary::setIntegerForKey @ 0x5ffe1a
// > pugi::xml_node::child_value @ 0x602c20
// > pugi::xml_node::remove_child @ 0x603cc6
// > pugi::xml_node::children @ 0x6048da
//
// 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
//
pugi::xml_node_struct *__fastcall pugi::xml_node::child(pugi::xml_node *this, pugi::xml_node_struct *a2)
{
int i; // r5
const char *v4; // r1
pugi::xml_node v6[2]; // [sp+0h] [bp-8h] BYREF
v6[0]._root = (pugi::xml_node_struct *)this;
v6[1]._root = a2;
if ( this->_root )
{
for ( i = *((_DWORD *)this->_root + 4); i; i = *(_DWORD *)(i + 24) )
{
v4 = *(const char **)(i + 8);
if ( v4 && sub_6006BA((const char *)a2, v4) )
{
pugi::xml_node::xml_node(v6, i);
return v6[0]._root;
}
}
}
pugi::xml_node::xml_node(v6);
return v6[0]._root;
}