//
// cocos2d::CCString::boolValue from 0x1800101c0 to 0x180010220 (96 bytes)
//
// 6 xrefs:
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800680c6
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008ac06
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180090f69
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1800910ca
// > cocos2d::CCConfiguration::getBool @ 0x1800bd147
// > ??> @ 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
//
bool __fastcall cocos2d::CCString::boolValue(cocos2d::CCString *this)
{
std::size_t m_capacity; // rdx
std::string *p_m_sString; // rcx
std::string *m_bigStorage; // rax
__int64 v4; // rax
char v5; // dl
bool v6; // zf
if ( !LODWORD(this->m_sString.m_data.m_size) )
return 0;
m_capacity = this->m_sString.m_data.m_capacity;
p_m_sString = &this->m_sString;
m_bigStorage = p_m_sString;
if ( m_capacity > 0xF )
m_bigStorage = (std::string *)p_m_sString->m_data.m_bigStorage;
if ( m_bigStorage->m_data.m_smallStorage._Elems[0] == 48 && !m_bigStorage->m_data.m_smallStorage._Elems[1] )
return 0;
if ( m_capacity > 0xF )
p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;
v4 = 0;
while ( 1 )
{
v5 = p_m_sString->m_data.m_smallStorage._Elems[v4++];
v6 = v5 == aFalse[v4 - 1];
if ( v5 != aFalse[v4 - 1] )
break;
if ( v4 == 6 )
{
v6 = v5 == aFalse[5];
return !v6;
}
}
return !v6;
}