{"type": "func", "start": 6442517024, "end": 6442517065, "name": "cocos2d::CCString::compare", "pseudocode": "// \n// cocos2d::CCString::compare from 0x180010220 to 0x180010249 (41 bytes)\n// \n// 1 xrefs:\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\n__int64 __fastcall cocos2d::CCString::compare(cocos2d::CCString *this, const char *a2)\n{\n  std::string *p_m_sString; // rax\n  const char *v3; // rdx\n  unsigned __int8 v4; // cl\n\n  p_m_sString = &this->m_sString;\n  if ( this->m_sString.m_data.m_capacity > 0xF )\n    p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;\n  v3 = (const char *)(a2 - (const char *)p_m_sString);\n  while ( 1 )\n  {\n    v4 = p_m_sString->m_data.m_smallStorage._Elems[0];\n    if ( p_m_sString->m_data.m_smallStorage._Elems[0] != v3[(_QWORD)p_m_sString] )\n      break;\n    p_m_sString = (std::string *)((char *)p_m_sString + 1);\n    if ( !v4 )\n      return 0;\n  }\n  return v4 < (unsigned int)v3[(_QWORD)p_m_sString] ? -1 : 1;\n}", "assembly": "; \n; cocos2d::CCString::compare from 0x180010220 to 0x180010249 (41 bytes)\n; \n; 1 xrefs:\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     qword ptr [rcx+50h], 0Fh                                       ; +0x0, 0x180010220\nlea     rax, [rcx+38h]                                                 ; +0x5, 0x180010225\njbe     short loc_18001022E                                            ; +0x9, 0x180010229\nmov     rax, [rax]                                                     ; +0xb, 0x18001022b\nsub     rdx, rax                                                       ; +0xe, 0x18001022e\nmovzx   ecx, byte ptr [rax]                                            ; +0x11, 0x180010231\ncmp     cl, [rax+rdx]                                                  ; +0x14, 0x180010234\njnz     short loc_180010243                                            ; +0x17, 0x180010237\ninc     rax                                                            ; +0x19, 0x180010239\ntest    cl, cl                                                         ; +0x1c, 0x18001023c\njnz     short loc_180010231                                            ; +0x1e, 0x18001023e\nxor     eax, eax                                                       ; +0x20, 0x180010240\nretn                                                                   ; +0x22, 0x180010242\nsbb     eax, eax                                                       ; +0x23, 0x180010243\nor      eax, 1                                                         ; +0x25, 0x180010245\nretn                                                                   ; +0x28, 0x180010248", "xrefs": ["<???> @ 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"}