//
// DS_Dictionary::getStringForKey from 0x5fd2b0 to 0x5fd392 (226 bytes)
//
// 54 xrefs:
// > SpriteDescription::initDescription @ 0x2e47f4
// > SpriteDescription::initDescription @ 0x2e4818
// > SpriteDescription::initDescription @ 0x2e4832
// > SpriteDescription::initDescription @ 0x2e484c
// > SpriteDescription::initDescription @ 0x2e4876
// > CCAnimateFrameCache::addDict @ 0x2e4abe
// > CCAnimateFrameCache::addDict @ 0x2e4af8
// > CCAnimateFrameCache::addDict @ 0x2e4b32
// > GameManager::dataLoaded @ 0x32865e
// > GameManager::dataLoaded @ 0x32867e
// > GameManager::dataLoaded @ 0x328b74
// > GameManager::dataLoaded @ 0x328b94
// > GameManager::dataLoaded @ 0x328bb4
// > GameManager::dataLoaded @ 0x328bd4
// > GameManager::dataLoaded @ 0x328bf4
// > GameManager::dataLoaded @ 0x328c14
// > GameManager::dataLoaded @ 0x328c32
// > GameManager::dataLoaded @ 0x328c50
// > GameManager::dataLoaded @ 0x328c6e
// > GameManager::dataLoaded @ 0x328c8c
// > GameManager::dataLoaded @ 0x328caa
// > GJGameLevel::dataLoaded @ 0x3c89d2
// > GJGameLevel::dataLoaded @ 0x3c8aec
// > GJGameLevel::dataLoaded @ 0x3c8b4a
// > GJGameLevel::dataLoaded @ 0x3c8b98
// > GJGameLevel::dataLoaded @ 0x3c8bb6
// > GJGameLevel::dataLoaded @ 0x3c8bee
// > GJGameLevel::dataLoaded @ 0x3c8c0c
// > GJGameLevel::dataLoaded @ 0x3c8c2a
// > GJGameLevel::dataLoaded @ 0x3c8c48
// > GJGameLevel::dataLoaded @ 0x3c8c76
// > GJGameLevel::dataLoaded @ 0x3c8c94
// > GJGameLevel::dataLoaded @ 0x3c8f28
// > GJGameLevel::dataLoaded @ 0x3c8fc2
// > GJGameLevel::dataLoaded @ 0x3c8fde
// > GJGameLevel::dataLoaded @ 0x3c92f4
// > GJLevelList::dataLoaded @ 0x3d7a64
// > GJLevelList::dataLoaded @ 0x3d7a80
// > GJLevelList::dataLoaded @ 0x3d7a9c
// > GJLevelList::dataLoaded @ 0x3d7bfa
// > GJChallengeItem::dataLoaded @ 0x412eea
// > SongInfoObject::createWithCoder @ 0x45cae4
// > SongInfoObject::createWithCoder @ 0x45caf2
// > SongInfoObject::createWithCoder @ 0x45cb18
// > SongInfoObject::createWithCoder @ 0x45cb24
// > SongInfoObject::createWithCoder @ 0x45cb3c
// > SongInfoObject::createWithCoder @ 0x45cb48
// > SongInfoObject::createWithCoder @ 0x45cb60
// > SongInfoObject::createWithCoder @ 0x45cc3c
// > GJAccountManager::dataLoaded @ 0x464f60
// > GJAccountManager::dataLoaded @ 0x464f8e
// > GJAccountManager::dataLoaded @ 0x464fac
// > GJSmartTemplate::dataLoaded @ 0x53b33a
// > GJSmartPrefab::dataLoaded @ 0x53b5e4
//
// 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
//
DS_Dictionary *__fastcall DS_Dictionary::getStringForKey(DS_Dictionary *this, const char *a2, const char *a3)
{
pugi::xml_node *v5; // r0
const char *v6; // r1
const char *v7; // r0
int v8; // r0
const char *v9; // r1
char *v10; // r1
DS_Dictionary *v11; // r0
const char *v12; // r1
pugi::xml_node v15; // [sp+10h] [bp-14h] BYREF
int v16; // [sp+14h] [bp-10h] BYREF
pugi::xml_node v17; // [sp+18h] [bp-Ch] BYREF
v5 = (pugi::xml_node *)std::vector
::back((int)(a2 + 200));
if ( a2[212] )
v6 = "key";
else
v6 = "k";
for ( v15._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&v15);
v15._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15, v12) )
{
v7 = (const char *)pugi::xml_node::child_value(&v15);
if ( !strcmp(v7, a3) )
{
v8 = pugi::xml_node::next_sibling(&v15);
v9 = a2[212] ? "string" : (const char *)&aO1i2r3e45s7t89[9];
v16 = v8;
v17._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15, v9);
if ( pugi::xml_node::operator==(&v16, &v17) )
{
v17._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15);
v10 = (char *)pugi::xml_node::child_value(&v17);
v11 = this;
goto LABEL_17;
}
}
if ( a2[212] )
v12 = "key";
else
v12 = "k";
}
v11 = this;
v10 = (char *)&unk_939830;
LABEL_17:
sub_776584((int)v11, v10);
return this;
}