//
// cocos2d::CCUserDefault::getDoubleForKey from 0x18009e990 to 0x18009ea03 (115 bytes)
//
// 5 xrefs:
// > cocos2d::CCUserDefault::getDoubleForKey @ 0x18009e983
// > cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea17
// > cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea38
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b75e4
//
// 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
//
double __fastcall cocos2d::CCUserDefault::getDoubleForKey(cocos2d::CCUserDefault *this, const char *a2, double a3)
{
const char *Str; // rbx
__int64 v5; // rax
__int64 v6; // rcx
__int64 v8; // [rsp+50h] [rbp+18h] BYREF
char v9; // [rsp+58h] [rbp+20h] BYREF
Str = nullptr;
v5 = sub_18009EE00(a2, &v9, &v8);
if ( v5 )
{
v6 = *(_QWORD *)(v5 + 48);
if ( v6 )
Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 24));
}
if ( Str )
a3 = atof(Str);
if ( v8 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 128LL))(v8, 1);
return a3;
}