//
// cocos2d::CCString::doubleValue from 0x100306318 to 0x100306344 (44 bytes)
//
// 3 xrefs:
// > GameLevelManager::isTimeValid @ 0x1000ada54
// > sub_1000ADD00 @ 0x1000add44
// > cocos2d::CCConfiguration::getNumber @ 0x1003c2f50
//
// This function is hookable on this platform (idp: arm, 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:03:08 +0000
//
double __fastcall cocos2d::CCString::doubleValue(__int64 a1)
{
if ( *(char *)(a1 + 79) < 0 )
{
if ( *(_DWORD *)(a1 + 64) )
return atof(*(const char **)(a1 + 56));
return 0.0;
}
if ( !*(_BYTE *)(a1 + 79) )
return 0.0;
return atof((const char *)(a1 + 56));
}