{"type": "func", "start": 6442516928, "end": 6442517024, "name": "cocos2d::CCString::boolValue", "pseudocode": "// \n// cocos2d::CCString::boolValue from 0x1800101c0 to 0x180010220 (96 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800680c6\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008ac06\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180090f69\n// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1800910ca\n// > cocos2d::CCConfiguration::getBool @ 0x1800bd147\n// > <???> @ 0x1801438a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall cocos2d::CCString::boolValue(cocos2d::CCString *this)\n{\n  std::size_t m_capacity; // rdx\n  std::string *p_m_sString; // rcx\n  std::string *m_bigStorage; // rax\n  __int64 v4; // rax\n  char v5; // dl\n  bool v6; // zf\n\n  if ( !LODWORD(this->m_sString.m_data.m_size) )\n    return 0;\n  m_capacity = this->m_sString.m_data.m_capacity;\n  p_m_sString = &this->m_sString;\n  m_bigStorage = p_m_sString;\n  if ( m_capacity > 0xF )\n    m_bigStorage = (std::string *)p_m_sString->m_data.m_bigStorage;\n  if ( m_bigStorage->m_data.m_smallStorage._Elems[0] == 48 && !m_bigStorage->m_data.m_smallStorage._Elems[1] )\n    return 0;\n  if ( m_capacity > 0xF )\n    p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;\n  v4 = 0;\n  while ( 1 )\n  {\n    v5 = p_m_sString->m_data.m_smallStorage._Elems[v4++];\n    v6 = v5 == aFalse[v4 - 1];\n    if ( v5 != aFalse[v4 - 1] )\n      break;\n    if ( v4 == 6 )\n    {\n      v6 = v5 == aFalse[5];\n      return !v6;\n    }\n  }\n  return !v6;\n}", "assembly": "; \n; cocos2d::CCString::boolValue from 0x1800101c0 to 0x180010220 (96 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800680c6\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008ac06\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180090f69\n; > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1800910ca\n; > cocos2d::CCConfiguration::getBool @ 0x1800bd147\n; > <???> @ 0x1801438a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ncmp     dword ptr [rcx+48h], 0                                         ; +0x0, 0x1800101c0\njz      short loc_18001021D                                            ; +0x4, 0x1800101c4\nmov     rdx, [rcx+50h]                                                 ; +0x6, 0x1800101c6\nadd     rcx, 38h ; '8'                                                 ; +0xa, 0x1800101ca\nmov     rax, rcx                                                       ; +0xe, 0x1800101ce\ncmp     rdx, 0Fh                                                       ; +0x11, 0x1800101d1\njbe     short loc_1800101DA                                            ; +0x15, 0x1800101d5\nmov     rax, [rcx]                                                     ; +0x17, 0x1800101d7\ncmp     byte ptr [rax], 30h ; '0'                                      ; +0x1a, 0x1800101da\njnz     short loc_1800101E5                                            ; +0x1d, 0x1800101dd\ncmp     byte ptr [rax+1], 0                                            ; +0x1f, 0x1800101df\njz      short loc_18001021D                                            ; +0x23, 0x1800101e3\ncmp     rdx, 0Fh                                                       ; +0x25, 0x1800101e5\njbe     short loc_1800101EE                                            ; +0x29, 0x1800101e9\nmov     rcx, [rcx]                                                     ; +0x2b, 0x1800101eb\nxor     eax, eax                                                       ; +0x2e, 0x1800101ee\nlea     r8, aFalse; \"false\"                                            ; +0x30, 0x1800101f0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x37, 0x1800101f7\nmovzx   edx, byte ptr [rcx+rax]                                        ; +0x40, 0x180010200\ninc     rax                                                            ; +0x44, 0x180010204\ncmp     dl, [r8+rax-1]                                                 ; +0x47, 0x180010207\njnz     short loc_180010219                                            ; +0x4c, 0x18001020c\ncmp     rax, 6                                                         ; +0x4e, 0x18001020e\njnz     short loc_180010200                                            ; +0x52, 0x180010212\ncmp     dl, [r8+rax-1]                                                 ; +0x54, 0x180010214\nsetnz   al                                                             ; +0x59, 0x180010219\nretn                                                                   ; +0x5c, 0x18001021c\nxor     al, al                                                         ; +0x5d, 0x18001021d\nretn                                                                   ; +0x5f, 0x18001021f", "xrefs": ["cocos2d::CCParticleSystem::initWithDictionary @ 0x1800680c6", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008ac06", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180090f69", "cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1800910ca", "cocos2d::CCConfiguration::getBool @ 0x1800bd147", "<???> @ 0x1801438a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}