//
// cocos2d::CCString::doubleValue from 0xd46500 to 0xd46544 (68 bytes)
//
// 4 xrefs:
// > GameLevelManager::isTimeValid @ 0x800684
// > GameLevelManager::getTimeLeft @ 0x800918
// > cocos2d::CCConfiguration::getNumber @ 0xd21690
// > ??> @ 0x1022f8
//
// 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 13:07:34 +0000
//
double __fastcall cocos2d::CCString::doubleValue(cocos2d::CCString *this)
{
const char *v2; // x0
if ( !(unsigned int)cocos2d::CCString::length(this) )
return 0.0;
v2 = (char *)this + 57;
if ( (*((_BYTE *)this + 56) & 1) != 0 )
v2 = *((const char **)this + 9);
return atof(v2);
}