//
// DS_Dictionary::getStringForKey from 0xb437b8 to 0xb4392c (372 bytes)
//
// 55 xrefs:
// > SpriteDescription::initDescription @ 0x571d7c
// > SpriteDescription::initDescription @ 0x571db4
// > SpriteDescription::initDescription @ 0x571de8
// > SpriteDescription::initDescription @ 0x571e1c
// > SpriteDescription::initDescription @ 0x571e8c
// > CCAnimateFrameCache::addDict @ 0x5724ec
// > CCAnimateFrameCache::addDict @ 0x572554
// > CCAnimateFrameCache::addDict @ 0x572628
// > GameManager::dataLoaded @ 0x5fa920
// > GameManager::dataLoaded @ 0x5fa95c
// > GameManager::dataLoaded @ 0x5fb70c
// > GameManager::dataLoaded @ 0x5fb744
// > GameManager::dataLoaded @ 0x5fb77c
// > GameManager::dataLoaded @ 0x5fb7b4
// > GameManager::dataLoaded @ 0x5fb7ec
// > GameManager::dataLoaded @ 0x5fb824
// > GameManager::dataLoaded @ 0x5fb858
// > GameManager::dataLoaded @ 0x5fb88c
// > GameManager::dataLoaded @ 0x5fb8c0
// > GameManager::dataLoaded @ 0x5fb8f4
// > GameManager::dataLoaded @ 0x5fb928
// > GJGameLevel::dataLoaded @ 0x70a0a0
// > GJGameLevel::dataLoaded @ 0x70a270
// > GJGameLevel::dataLoaded @ 0x70a2f4
// > GJGameLevel::dataLoaded @ 0x70a364
// > GJGameLevel::dataLoaded @ 0x70a398
// > GJGameLevel::dataLoaded @ 0x70a454
// > GJGameLevel::dataLoaded @ 0x70a488
// > GJGameLevel::dataLoaded @ 0x70a4bc
// > GJGameLevel::dataLoaded @ 0x70a4f0
// > GJGameLevel::dataLoaded @ 0x70a538
// > GJGameLevel::dataLoaded @ 0x70a56c
// > GJGameLevel::dataLoaded @ 0x70a924
// > GJGameLevel::dataLoaded @ 0x70aa0c
// > GJGameLevel::dataLoaded @ 0x70aa40
// > GJGameLevel::dataLoaded @ 0x70ac40
// > GJLevelList::dataLoaded @ 0x730640
// > GJLevelList::dataLoaded @ 0x730678
// > GJLevelList::dataLoaded @ 0x7306ac
// > GJLevelList::dataLoaded @ 0x7308b0
// > GJChallengeItem::dataLoaded @ 0x7ae108
// > SongInfoObject::createWithCoder @ 0x8377ec
// > SongInfoObject::createWithCoder @ 0x837800
// > SongInfoObject::createWithCoder @ 0x837840
// > SongInfoObject::createWithCoder @ 0x837858
// > SongInfoObject::createWithCoder @ 0x837884
// > SongInfoObject::createWithCoder @ 0x83789c
// > SongInfoObject::createWithCoder @ 0x8378c8
// > SongInfoObject::createWithCoder @ 0x837a64
// > GJAccountManager::dataLoaded @ 0x848264
// > GJAccountManager::dataLoaded @ 0x8482b4
// > GJAccountManager::dataLoaded @ 0x8482ec
// > GJSmartTemplate::dataLoaded @ 0x9d56e0
// > GJSmartPrefab::dataLoaded @ 0x9d5d4c
// > ??> @ 0x95f40
//
// 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
//
__int64 *__usercall DS_Dictionary::getStringForKey@(
__int64 *__return_ptr a1@,
DS_Dictionary *this@,
const char *a3@)
{
_BOOL4 compatible; // w1
pugi::xml_node *v7; // x0
const char *v8; // x1
const char *v9; // x1
const char *v10; // x0
const char *v11; // x1
char *v12; // x0
pugi::xml_node v14; // [xsp+60h] [xbp+60h] BYREF
__int64 v15; // [xsp+68h] [xbp+68h] BYREF
pugi::xml_node v16; // [xsp+70h] [xbp+70h] BYREF
compatible = this->compatible;
v7 = this->dictTree.m_finish - 1;
if ( compatible )
v8 = "key";
else
v8 = "k";
for ( v14._root = (pugi::xml_node_struct *)pugi::xml_node::child(v7, v8);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&v14);
v14._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v14, v9) )
{
v10 = (const char *)pugi::xml_node::child_value(&v14);
if ( !strcmp(v10, a3) )
{
v15 = pugi::xml_node::next_sibling(&v14);
v11 = this->compatible ? "string" : "s";
v16._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v14, v11);
if ( (unsigned __int8)pugi::xml_node::operator==(&v15, &v16) )
{
v16._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v14);
v12 = (char *)pugi::xml_node::child_value(&v16);
sub_D153B8((int)a1, v12);
return a1;
}
}
v9 = "key";
if ( !this->compatible )
v9 = "k";
}
sub_D153B8((int)a1, &byte_F288A0);
return a1;
}