//
// cocos2d::CCString::doubleValue from 0x10088e3b0 to 0x10088e3df (47 bytes)
//
// 3 xrefs:
// > cocos2d::CCConfiguration::getNumber @ 0x10051b24a
// > GameLevelManager::isTimeValid @ 0x10054a479
// > GameLevelManager::getTimeLeft @ 0x10054aa09
//
// 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 12:37:03 +0000
//
double __fastcall cocos2d::CCString::doubleValue(__int64 a1)
{
char v1; // al
v1 = *(_BYTE *)(a1 + 56);
if ( (v1 & 1) != 0 )
{
if ( *(_DWORD *)(a1 + 64) )
return atof(*(const char **)(a1 + 72));
}
else if ( v1 )
{
return atof((const char *)(a1 + 57));
}
return 0.0;
}