{"type": "func", "start": 6443055568, "end": 6443055768, "name": "cocos2d::CCNotificationCenter::removeObserver", "pseudocode": "// \n// cocos2d::CCNotificationCenter::removeObserver from 0x1800939d0 to 0x180093a98 (200 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013e008\n// > <???> @ 0x18013e03c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6594\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\nvoid __fastcall cocos2d::CCNotificationCenter::removeObserver(\n        cocos2d::CCNotificationCenter *this,\n        struct cocos2d::CCObject *a2,\n        const char *a3)\n{\n  __int64 v3; // rbx\n  unsigned int *v7; // rbx\n  __int64 v8; // rax\n  struct cocos2d::CCObject **v9; // rbx\n  struct cocos2d::CCObject **i; // rsi\n  struct cocos2d::CCObject *v11; // rdi\n  __int64 v12; // rax\n  const char *v13; // r8\n  int v14; // ecx\n  int v15; // edx\n\n  v3 = *((_QWORD *)this + 7);\n  if ( v3 )\n  {\n    v7 = *(unsigned int **)(v3 + 56);\n    v8 = *v7;\n    if ( (_DWORD)v8 )\n    {\n      v9 = *((struct cocos2d::CCObject ***)v7 + 2);\n      for ( i = &v9[v8 - 1]; v9 <= i; ++v9 )\n      {\n        v11 = *v9;\n        if ( !*v9 )\n          break;\n        v12 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v11->__vftable[1].isEqual)(*v9);\n        v13 = &a3[-v12];\n        do\n        {\n          v14 = (unsigned __int8)v13[v12];\n          v15 = *(unsigned __int8 *)v12 - v14;\n          if ( v15 )\n            break;\n          ++v12;\n        }\n        while ( v14 );\n        if ( !v15\n          && (struct cocos2d::CCObject *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v11->__vftable[1].copyWithZone)(v11) == a2 )\n        {\n          cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 7), v11);\n          return;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::removeObserver from 0x1800939d0 to 0x180093a98 (200 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013e008\n; > <???> @ 0x18013e03c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6594\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_10], rbx                                              ; +0x0, 0x1800939d0\npush    rbp                                                            ; +0x5, 0x1800939d5\npush    r14                                                            ; +0x6, 0x1800939d6\npush    r15                                                            ; +0x8, 0x1800939d8\nsub     rsp, 20h                                                       ; +0xa, 0x1800939da\nmov     rbx, [rcx+38h]                                                 ; +0xe, 0x1800939de\nmov     r14, r8                                                        ; +0x12, 0x1800939e2\nmov     rbp, rdx                                                       ; +0x15, 0x1800939e5\nmov     r15, rcx                                                       ; +0x18, 0x1800939e8\ntest    rbx, rbx                                                       ; +0x1b, 0x1800939eb\njz      loc_180093A89                                                  ; +0x1e, 0x1800939ee\nmov     rbx, [rbx+38h]                                                 ; +0x24, 0x1800939f4\nmov     eax, [rbx]                                                     ; +0x28, 0x1800939f8\ntest    eax, eax                                                       ; +0x2a, 0x1800939fa\njz      loc_180093A89                                                  ; +0x2c, 0x1800939fc\nmov     rbx, [rbx+10h]                                                 ; +0x32, 0x180093a02\nmov     [rsp+38h+arg_0], rsi                                           ; +0x36, 0x180093a06\nlea     rsi, [rax-1]                                                   ; +0x3b, 0x180093a0b\nlea     rsi, [rbx+rsi*8]                                               ; +0x3f, 0x180093a0f\ncmp     rbx, rsi                                                       ; +0x43, 0x180093a13\nja      short loc_180093A84                                            ; +0x46, 0x180093a16\nmov     [rsp+38h+arg_8], rdi                                           ; +0x48, 0x180093a18\nnop     dword ptr [rax]                                                ; +0x4d, 0x180093a1d\nmov     rdi, [rbx]                                                     ; +0x50, 0x180093a20\ntest    rdi, rdi                                                       ; +0x53, 0x180093a23\njz      short loc_180093A7F                                            ; +0x56, 0x180093a26\nmov     rax, [rdi]                                                     ; +0x58, 0x180093a28\nmov     rcx, rdi                                                       ; +0x5b, 0x180093a2b\ncall    qword ptr [rax+58h]                                            ; +0x5e, 0x180093a2e\nmov     r8, r14                                                        ; +0x61, 0x180093a31\nsub     r8, rax                                                        ; +0x64, 0x180093a34\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x180093a37\nmovzx   edx, byte ptr [rax]                                            ; +0x70, 0x180093a40\nmovzx   ecx, byte ptr [rax+r8]                                         ; +0x73, 0x180093a43\nsub     edx, ecx                                                       ; +0x78, 0x180093a48\njnz     short loc_180093A53                                            ; +0x7a, 0x180093a4a\ninc     rax                                                            ; +0x7c, 0x180093a4c\ntest    ecx, ecx                                                       ; +0x7f, 0x180093a4f\njnz     short loc_180093A40                                            ; +0x81, 0x180093a51\ntest    edx, edx                                                       ; +0x83, 0x180093a53\njnz     short loc_180093A65                                            ; +0x85, 0x180093a55\nmov     rax, [rdi]                                                     ; +0x87, 0x180093a57\nmov     rcx, rdi                                                       ; +0x8a, 0x180093a5a\ncall    qword ptr [rax+48h]                                            ; +0x8d, 0x180093a5d\ncmp     rax, rbp                                                       ; +0x90, 0x180093a60\njz      short loc_180093A70                                            ; +0x93, 0x180093a63\nadd     rbx, 8                                                         ; +0x95, 0x180093a65\ncmp     rbx, rsi                                                       ; +0x99, 0x180093a69\njbe     short loc_180093A20                                            ; +0x9c, 0x180093a6c\njmp     short loc_180093A7F                                            ; +0x9e, 0x180093a6e\nmov     rcx, [r15+38h]; this                                           ; +0xa0, 0x180093a70\nmov     r8b, 1; bool                                                   ; +0xa4, 0x180093a74\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0xa7, 0x180093a77\ncall    ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xaa, 0x180093a7a\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xaf, 0x180093a7f\nmov     rsi, [rsp+38h+arg_0]                                           ; +0xb4, 0x180093a84\nmov     rbx, [rsp+38h+arg_10]                                          ; +0xb9, 0x180093a89\nadd     rsp, 20h                                                       ; +0xbe, 0x180093a8e\npop     r15                                                            ; +0xc2, 0x180093a92\npop     r14                                                            ; +0xc4, 0x180093a94\npop     rbp                                                            ; +0xc6, 0x180093a96\nretn                                                                   ; +0xc7, 0x180093a97", "xrefs": ["<???> @ 0x18013e008", "<???> @ 0x18013e03c", "<???> @ 0x1801438a8", "<???> @ 0x1801b6594"], "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"}