{"type": "func", "start": 6442518624, "end": 6442518810, "name": "cocos2d::CCString::isEqual", "pseudocode": "// \n// cocos2d::CCString::isEqual from 0x180010860 to 0x18001091a (186 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800ec6e0\n// > <???> @ 0x18013b324\n// > <???> @ 0x18013b338\n// > <???> @ 0x18013b348\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8200\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:22 +0000\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  char *v5; // rcx\n  size_t v6; // rdi\n  size_t v7; // 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  v5 = (char *)this + 56;\n  if ( *((_QWORD *)this + 10) > 0xFu )\n    v5 = *((char **)this + 7);\n  v6 = v3[9];\n  v7 = *((_QWORD *)this + 9);\n  v8 = v7;\n  if ( v6 < v7 )\n    v8 = v3[9];\n  return !memcmp(v5, v4, v8) && v7 >= v6 && v7 <= v6;\n}", "assembly": "; \n; cocos2d::CCString::isEqual from 0x180010860 to 0x18001091a (186 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800ec6e0\n; > <???> @ 0x18013b324\n; > <???> @ 0x18013b338\n; > <???> @ 0x18013b348\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8200\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:22 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180010860\npush    rsi                                                            ; +0x5, 0x180010865\nsub     rsp, 30h                                                       ; +0x6, 0x180010866\nmov     rax, rdx                                                       ; +0xa, 0x18001086a\nmov     [rsp+38h+var_18], 0                                            ; +0xd, 0x18001086d\nmov     rbx, rcx                                                       ; +0x15, 0x180010875\nlea     r9, ??_R0?AVCCString@cocos2d@@@8; cocos2d::CCString `RTTI Type Descriptor' ; +0x18, 0x180010878\nmov     rcx, rax                                                       ; +0x1f, 0x18001087f\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x22, 0x180010882\nxor     edx, edx                                                       ; +0x29, 0x180010889\nxor     sil, sil                                                       ; +0x2b, 0x18001088b\ncall    __RTDynamicCast                                                ; +0x2e, 0x18001088e\ntest    rax, rax                                                       ; +0x33, 0x180010893\njz      short loc_18001090B                                            ; +0x36, 0x180010896\ncmp     qword ptr [rax+50h], 0Fh                                       ; +0x38, 0x180010898\nlea     rdx, [rax+38h]                                                 ; +0x3d, 0x18001089d\nmov     [rsp+38h+arg_0], rdi                                           ; +0x41, 0x1800108a1\njbe     short loc_1800108AC                                            ; +0x46, 0x1800108a6\nmov     rdx, [rax+38h]; Buf2                                           ; +0x48, 0x1800108a8\ncmp     qword ptr [rbx+50h], 0Fh                                       ; +0x4c, 0x1800108ac\nlea     rcx, [rbx+38h]                                                 ; +0x51, 0x1800108b1\njbe     short loc_1800108BB                                            ; +0x55, 0x1800108b5\nmov     rcx, [rbx+38h]; Buf1                                           ; +0x57, 0x1800108b7\nmov     rdi, [rax+48h]                                                 ; +0x5b, 0x1800108bb\nmov     rbx, [rbx+48h]                                                 ; +0x5f, 0x1800108bf\ncmp     rdi, rbx                                                       ; +0x63, 0x1800108c3\nmov     r8, rbx                                                        ; +0x66, 0x1800108c6\ncmovb   r8, rdi; Size                                                  ; +0x69, 0x1800108c9\ncall    memcmp                                                         ; +0x6d, 0x1800108cd\ntest    eax, eax                                                       ; +0x72, 0x1800108d2\njnz     short loc_1800108F7                                            ; +0x74, 0x1800108d4\ncmp     rbx, rdi                                                       ; +0x76, 0x1800108d6\njb      short loc_1800108F7                                            ; +0x79, 0x1800108d9\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x7b, 0x1800108db\nmov     ecx, 1                                                         ; +0x80, 0x1800108e0\nmovzx   eax, sil                                                       ; +0x85, 0x1800108e5\ncmovbe  eax, ecx                                                       ; +0x89, 0x1800108e9\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x8c, 0x1800108ec\nadd     rsp, 30h                                                       ; +0x91, 0x1800108f1\npop     rsi                                                            ; +0x95, 0x1800108f5\nretn                                                                   ; +0x96, 0x1800108f6\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x97, 0x1800108f7\nmovzx   eax, sil                                                       ; +0x9c, 0x1800108fc\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xa0, 0x180010900\nadd     rsp, 30h                                                       ; +0xa5, 0x180010905\npop     rsi                                                            ; +0xa9, 0x180010909\nretn                                                                   ; +0xaa, 0x18001090a\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xab, 0x18001090b\nmovzx   eax, sil                                                       ; +0xb0, 0x180010910\nadd     rsp, 30h                                                       ; +0xb4, 0x180010914\npop     rsi                                                            ; +0xb8, 0x180010918\nretn                                                                   ; +0xb9, 0x180010919", "xrefs": ["<???> @ 0x1800ec6e0", "<???> @ 0x18013b324", "<???> @ 0x18013b338", "<???> @ 0x18013b348", "<???> @ 0x18014cf68", "<???> @ 0x1801b8200"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}