//
// pugi::xml_node::child from 0xb51b0c to 0xb51ba8 (156 bytes)
//
// 40 xrefs:
// > DS_Dictionary::checkCompatibility @ 0xb41b54
// > DS_Dictionary::saveRootSubDictToString @ 0xb42658
// > DS_Dictionary::getIndexOfKey @ 0xb42fa0
// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0xb4308c
// > DS_Dictionary::removeKey @ 0xb4317c
// > DS_Dictionary::removeKey @ 0xb43284
// > DS_Dictionary::removeAllKeys @ 0xb433c8
// > DS_Dictionary::getIntegerForKey @ 0xb43464
// > DS_Dictionary::getBoolForKey @ 0xb43598
// > DS_Dictionary::getFloatForKey @ 0xb436b8
// > DS_Dictionary::getStringForKey @ 0xb43814
// > DS_Dictionary::getVec2ForKey @ 0xb43988
// > DS_Dictionary::setBoolForKey @ 0xb43b3c
// > DS_Dictionary::setStringForKey @ 0xb43d74
// > DS_Dictionary::setVec2ForKey @ 0xb44034
// > DS_Dictionary::setRectForKey @ 0xb4472c
// > DS_Dictionary::setStringArrayForKey @ 0xb44d58
// > DS_Dictionary::setVec2ArrayForKey @ 0xb44e98
// > DS_Dictionary::setRectArrayForKey @ 0xb45668
// > DS_Dictionary::stepIntoSubDictWithKey @ 0xb45f5c
// > DS_Dictionary::setSubDictForKey @ 0xb46218
// > DS_Dictionary::getObjectForKey @ 0xb46c34
// > DS_Dictionary::getStringArrayForKey @ 0xb47688
// > DS_Dictionary::DS_Dictionary @ 0xb47a68
// > DS_Dictionary::DS_Dictionary @ 0xb47a78
// > DS_Dictionary::loadRootSubDictFromFile @ 0xb47bd8
// > DS_Dictionary::loadRootSubDictFromFile @ 0xb47bec
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0xb47f1c
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0xb47f30
// > DS_Dictionary::loadRootSubDictFromString @ 0xb4818c
// > DS_Dictionary::loadRootSubDictFromString @ 0xb481a4
// > DS_Dictionary::stepBackToRootSubDict @ 0xb4824c
// > DS_Dictionary::stepBackToRootSubDict @ 0xb48260
// > DS_Dictionary::setFloatForKey @ 0xb48354
// > DS_Dictionary::getRectForKey @ 0xb48c64
// > DS_Dictionary::setIntegerForKey @ 0xb4a254
// > pugi::xml_node::child_value @ 0xb51fb4
// > pugi::xml_node::remove_child @ 0xb55d5c
// > pugi::xml_node::children @ 0xb57d8c
// > ??> @ 0x99828
//
// 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, const char *a2)
{
pugi::xml_node_struct *root; // x0
__int64 v4; // x19
const char *v5; // x1
pugi::xml_node v7; // [xsp+30h] [xbp+30h] BYREF
root = this->_root;
if ( root && (v4 = *((_QWORD *)root + 4)) != 0 )
{
while ( 1 )
{
v5 = *(const char **)(v4 + 16);
if ( v5 )
{
if ( !strcmp(a2, v5) )
break;
}
v4 = *(_QWORD *)(v4 + 48);
if ( !v4 )
goto LABEL_8;
}
pugi::xml_node::xml_node(&v7, v4);
return v7._root;
}
else
{
LABEL_8:
pugi::xml_node::xml_node(&v7);
return v7._root;
}
}