//
// cocos2d::CCUserDefault::getDoubleForKey from 0x1800a2630 to 0x1800a26a3 (115 bytes)
//
// 5 xrefs:
// > cocos2d::CCUserDefault::getDoubleForKey @ 0x1800a2623
// > cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26b7
// > cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26d8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1884
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:14 +0000
//
double __fastcall cocos2d::CCUserDefault::getDoubleForKey(cocos2d::CCUserDefault *this, char *a2, double a3)
{
const char *Str; // rbx
__int64 v5; // rax
__int64 v6; // rcx
__int64 v8; // [rsp+50h] [rbp+18h]
Str = nullptr;
v5 = sub_1800A2AE0(a2);
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;
}