{"type": "func", "start": 6442518176, "end": 6442518362, "name": "cocos2d::CCString::isEqual", "pseudocode": "// \n// cocos2d::CCString::isEqual from 0x1800106a0 to 0x18001075a (186 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800e6698\n// > <???> @ 0x1801323f8\n// > <???> @ 0x18013240c\n// > <???> @ 0x18013241c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae14c\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_BOOL8 __fastcall cocos2d::CCString::isEqual(cocos2d::CCString *this, const struct cocos2d::CCObject *a2)\n{\n  _QWORD *v3; // rax\n  const void *v4; // rdx\n  std::string *p_m_sString; // rcx\n  std::size_t v6; // rdi\n  std::size_t m_size; // rbx\n  size_t v8; // r8\n\n  v3 = (_QWORD *)_RTDynamicCast(\n                   a2,\n                   0,\n                   &cocos2d::CCObject `RTTI Type Descriptor',\n                   &cocos2d::CCString `RTTI Type Descriptor',\n                   0);\n  if ( !v3 )\n    return 0;\n  v4 = v3 + 7;\n  if ( v3[10] > 0xFu )\n    v4 = (const void *)v3[7];\n  p_m_sString = &this->m_sString;\n  if ( this->m_sString.m_data.m_capacity > 0xF )\n    p_m_sString = (std::string *)this->m_sString.m_data.m_bigStorage;\n  v6 = v3[9];\n  m_size = this->m_sString.m_data.m_size;\n  v8 = m_size;\n  if ( v6 < m_size )\n    v8 = v3[9];\n  return !memcmp(p_m_sString, v4, v8) && m_size >= v6 && m_size <= v6;\n}", "assembly": "; \n; cocos2d::CCString::isEqual from 0x1800106a0 to 0x18001075a (186 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800e6698\n; > <???> @ 0x1801323f8\n; > <???> @ 0x18013240c\n; > <???> @ 0x18013241c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae14c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800106a0\npush    rsi                                                            ; +0x5, 0x1800106a5\nsub     rsp, 30h                                                       ; +0x6, 0x1800106a6\nmov     rax, rdx                                                       ; +0xa, 0x1800106aa\nmov     [rsp+38h+var_18], 0                                            ; +0xd, 0x1800106ad\nmov     rbx, rcx                                                       ; +0x15, 0x1800106b5\nlea     r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0x18, 0x1800106b8\nmov     rcx, rax                                                       ; +0x1f, 0x1800106bf\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x22, 0x1800106c2\nxor     edx, edx                                                       ; +0x29, 0x1800106c9\nxor     sil, sil                                                       ; +0x2b, 0x1800106cb\ncall    __RTDynamicCast                                                ; +0x2e, 0x1800106ce\ntest    rax, rax                                                       ; +0x33, 0x1800106d3\njz      short loc_18001074B                                            ; +0x36, 0x1800106d6\ncmp     qword ptr [rax+50h], 0Fh                                       ; +0x38, 0x1800106d8\nlea     rdx, [rax+38h]                                                 ; +0x3d, 0x1800106dd\nmov     [rsp+38h+arg_0], rdi                                           ; +0x41, 0x1800106e1\njbe     short loc_1800106EC                                            ; +0x46, 0x1800106e6\nmov     rdx, [rax+38h]; Buf2                                           ; +0x48, 0x1800106e8\ncmp     qword ptr [rbx+50h], 0Fh                                       ; +0x4c, 0x1800106ec\nlea     rcx, [rbx+38h]                                                 ; +0x51, 0x1800106f1\njbe     short loc_1800106FB                                            ; +0x55, 0x1800106f5\nmov     rcx, [rbx+38h]; Buf1                                           ; +0x57, 0x1800106f7\nmov     rdi, [rax+48h]                                                 ; +0x5b, 0x1800106fb\nmov     rbx, [rbx+48h]                                                 ; +0x5f, 0x1800106ff\ncmp     rdi, rbx                                                       ; +0x63, 0x180010703\nmov     r8, rbx                                                        ; +0x66, 0x180010706\ncmovb   r8, rdi; Size                                                  ; +0x69, 0x180010709\ncall    memcmp                                                         ; +0x6d, 0x18001070d\ntest    eax, eax                                                       ; +0x72, 0x180010712\njnz     short loc_180010737                                            ; +0x74, 0x180010714\ncmp     rbx, rdi                                                       ; +0x76, 0x180010716\njb      short loc_180010737                                            ; +0x79, 0x180010719\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x7b, 0x18001071b\nmov     ecx, 1                                                         ; +0x80, 0x180010720\nmovzx   eax, sil                                                       ; +0x85, 0x180010725\ncmovbe  eax, ecx                                                       ; +0x89, 0x180010729\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x8c, 0x18001072c\nadd     rsp, 30h                                                       ; +0x91, 0x180010731\npop     rsi                                                            ; +0x95, 0x180010735\nretn                                                                   ; +0x96, 0x180010736\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x97, 0x180010737\nmovzx   eax, sil                                                       ; +0x9c, 0x18001073c\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xa0, 0x180010740\nadd     rsp, 30h                                                       ; +0xa5, 0x180010745\npop     rsi                                                            ; +0xa9, 0x180010749\nretn                                                                   ; +0xaa, 0x18001074a\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xab, 0x18001074b\nmovzx   eax, sil                                                       ; +0xb0, 0x180010750\nadd     rsp, 30h                                                       ; +0xb4, 0x180010754\npop     rsi                                                            ; +0xb8, 0x180010758\nretn                                                                   ; +0xb9, 0x180010759", "xrefs": ["<???> @ 0x1800e6698", "<???> @ 0x1801323f8", "<???> @ 0x18013240c", "<???> @ 0x18013241c", "<???> @ 0x1801438a8", "<???> @ 0x1801ae14c"], "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"}