//
// DS_Dictionary::getFloatForKey from 0x10017db50 to 0x10017dc82 (306 bytes)
//
// 10 xrefs:
// > GameManager::dataLoaded @ 0x100389b41
// > GameManager::dataLoaded @ 0x100389b58
// > GameManager::dataLoaded @ 0x100389bb7
// > GameManager::dataLoaded @ 0x100389ec6
// > GameManager::dataLoaded @ 0x100389edd
// > GameManager::dataLoaded @ 0x100389ef1
// > GJGameLevel::dataLoaded @ 0x10055e6f2
// > GJGameLevel::dataLoaded @ 0x10055e706
// > GJGameLevel::dataLoaded @ 0x10055e738
// > SongInfoObject::createWithCoder @ 0x10059755e
//
// 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
//
float __fastcall DS_Dictionary::getFloatForKey(DS_Dictionary *a1, const char *a2)
{
std::__vector_base
::pointer v4; // rdi
const char *v5; // rsi
float result; // xmm0_4
const char *v7; // rsi
const char *v8; // rax
const char *v9; // rsi
const char *v10; // rax
__int64 v11; // [rsp+0h] [rbp-40h] BYREF
__int64 v12; // [rsp+8h] [rbp-38h] BYREF
_QWORD v13[6]; // [rsp+10h] [rbp-30h] BYREF
v4 = a1->dictTree.__end_ - 1;
v5 = "k";
if ( a1->compatible )
v5 = "key";
v13[0] = sub_10063B550(v4, v5);
result = 0.0;
if ( sub_10063B3F0(v13) )
{
do
{
v8 = (const char *)sub_10063B880(v13);
if ( !strcmp(v8, a2) )
{
v12 = sub_10063B780(v13);
v9 = "r";
if ( a1->compatible )
v9 = "real";
v11 = sub_10063B730(v13, v9);
if ( (unsigned __int8)sub_10063B5F0(&v12, &v11, 0.0) )
{
v12 = sub_10063B780(v13);
v10 = (const char *)sub_10063B880(&v12);
return strtod(v10, nullptr);
}
}
v7 = "k";
if ( a1->compatible )
v7 = "key";
v13[0] = sub_10063B730(v13, v7);
}
while ( sub_10063B3F0(v13) );
return 0.0;
}
return result;
}