//
// cocos2d::CCString::doubleValue from 0x180010540 to 0x18001055f (31 bytes)
//
// 2 xrefs:
// > cocos2d::CCConfiguration::getNumber @ 0x1800bd36c
// > ??> @ 0x1801438a8
//
// 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::CCString::doubleValue(cocos2d::CCString *this)
{
std::string *p_m_sString; // rcx
if ( !LODWORD(this->m_sString.m_data.m_size) )
return 0.0;
p_m_sString = &this->m_sString;
if ( p_m_sString->m_data.m_capacity > 0xF )
p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;
return atof(p_m_sString->m_data.m_smallStorage._Elems);
}