//
// DS_Dictionary::getStringForKey from 0x100161ae8 to 0x100161c0c (292 bytes)
//
// 46 xrefs:
// > GJSmartTemplate::dataLoaded @ 0x10000842c
// > GJSmartPrefab::dataLoaded @ 0x100008798
// > GJGameLevel::dataLoaded @ 0x1000adf58
// > GJGameLevel::dataLoaded @ 0x1000ae11c
// > GJGameLevel::dataLoaded @ 0x1000ae1a4
// > GJGameLevel::dataLoaded @ 0x1000ae218
// > GJGameLevel::dataLoaded @ 0x1000ae250
// > GJGameLevel::dataLoaded @ 0x1000ae2a4
// > GJGameLevel::dataLoaded @ 0x1000ae2dc
// > GJGameLevel::dataLoaded @ 0x1000ae310
// > GJGameLevel::dataLoaded @ 0x1000ae348
// > GJGameLevel::dataLoaded @ 0x1000ae390
// > GJGameLevel::dataLoaded @ 0x1000ae3c8
// > GJGameLevel::dataLoaded @ 0x1000ae788
// > GJGameLevel::dataLoaded @ 0x1000ae874
// > GJGameLevel::dataLoaded @ 0x1000ae8ac
// > GJGameLevel::dataLoaded @ 0x1000aea8c
// > GJLevelList::dataLoaded @ 0x1000b1ea4
// > GJLevelList::dataLoaded @ 0x1000b1edc
// > GJLevelList::dataLoaded @ 0x1000b1f14
// > GJLevelList::dataLoaded @ 0x1000b20f8
// > SongInfoObject::createWithCoder @ 0x10015b68c
// > SongInfoObject::createWithCoder @ 0x10015b6a0
// > SongInfoObject::createWithCoder @ 0x10015b6dc
// > SongInfoObject::createWithCoder @ 0x10015b6f0
// > SongInfoObject::createWithCoder @ 0x10015b718
// > SongInfoObject::createWithCoder @ 0x10015b72c
// > SongInfoObject::createWithCoder @ 0x10015b754
// > SongInfoObject::createWithCoder @ 0x10015b960
// > GameManager::dataLoaded @ 0x10031b4d8
// > GameManager::dataLoaded @ 0x10031b510
// > GameManager::dataLoaded @ 0x10031bd24
// > GameManager::dataLoaded @ 0x10031bd54
// > GameManager::dataLoaded @ 0x10031bd84
// > GameManager::dataLoaded @ 0x10031bdb4
// > GameManager::dataLoaded @ 0x10031bde4
// > GameManager::dataLoaded @ 0x10031be14
// > GameManager::dataLoaded @ 0x10031be4c
// > GameManager::dataLoaded @ 0x10031be84
// > GameManager::dataLoaded @ 0x10031bebc
// > GameManager::dataLoaded @ 0x10031bef4
// > GameManager::dataLoaded @ 0x10031bf2c
// > GJChallengeItem::dataLoaded @ 0x100340674
// > GJAccountManager::dataLoaded @ 0x1003a1798
// > GJAccountManager::dataLoaded @ 0x1003a17e4
// > GJAccountManager::dataLoaded @ 0x1003a1818
//
// 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
//
_QWORD *__usercall DS_Dictionary::getStringForKey@(__int64 a1@, const char *a2@, _QWORD *a3@)
{
__int64 v6; // x0
char *v7; // x1
const char *v8; // x0
char *v9; // x1
char *v10; // x1
char *v11; // x1
__int64 v13; // [xsp+8h] [xbp-58h] BYREF
__int64 v14; // [xsp+10h] [xbp-50h] BYREF
__int64 v15; // [xsp+18h] [xbp-48h] BYREF
v6 = *(_QWORD *)(a1 + 216) - 8LL;
if ( *(_BYTE *)(a1 + 232) )
v7 = "key";
else
v7 = "k";
v15 = sub_1003AB464(v6, v7);
if ( sub_1003AB448(&v15) )
{
while ( 1 )
{
v8 = (const char *)sub_1003AB5AC(&v15);
if ( !strcmp(v8, a2) )
{
v14 = sub_1003AB594(&v15);
v9 = *(_BYTE *)(a1 + 232) ? "string" : "s";
v13 = sub_1003AB540((int)&v15, v9);
if ( (sub_1003AB4B8(&v14, &v13) & 1) != 0 )
break;
}
if ( *(_BYTE *)(a1 + 232) )
v10 = "key";
else
v10 = "k";
v15 = sub_1003AB540((int)&v15, v10);
if ( !sub_1003AB448(&v15) )
goto LABEL_14;
}
v14 = sub_1003AB594(&v15);
v11 = (char *)sub_1003AB5AC(&v14);
}
else
{
LABEL_14:
v11 = "";
}
return sub_100009900(a3, v11);
}