{"type": "func", "start": 6443055904, "end": 6443056104, "name": "cocos2d::CCNotificationCenter::unregisterScriptObserver", "pseudocode": "// \n// cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x180093b20 to 0x180093be8 (200 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013e0d8\n// > <???> @ 0x18013e10c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b65dc\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::unregisterScriptObserver(\n        cocos2d::CCNotificationCenter *this,\n        struct cocos2d::CCObject *a2,\n        const char *a3)\n{\n  __int64 v3; // rdi\n  unsigned int *v7; // rdi\n  __int64 v8; // rax\n  struct cocos2d::CCObject **v9; // rdi\n  struct cocos2d::CCObject **i; // rsi\n  struct cocos2d::CCObject *v11; // rbx\n  __int64 v12; // rax\n  const char *v13; // rdx\n  int v14; // ecx\n  int v15; // r8d\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        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x180093b20 to 0x180093be8 (200 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013e0d8\n; > <???> @ 0x18013e10c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b65dc\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], rbp                                              ; +0x0, 0x180093b20\npush    rdi                                                            ; +0x5, 0x180093b25\npush    r14                                                            ; +0x6, 0x180093b26\npush    r15                                                            ; +0x8, 0x180093b28\nsub     rsp, 20h                                                       ; +0xa, 0x180093b2a\nmov     rdi, [rcx+38h]                                                 ; +0xe, 0x180093b2e\nmov     r15, r8                                                        ; +0x12, 0x180093b32\nmov     r14, rdx                                                       ; +0x15, 0x180093b35\nmov     rbp, rcx                                                       ; +0x18, 0x180093b38\ntest    rdi, rdi                                                       ; +0x1b, 0x180093b3b\njz      loc_180093BD9                                                  ; +0x1e, 0x180093b3e\nmov     rdi, [rdi+38h]                                                 ; +0x24, 0x180093b44\nmov     eax, [rdi]                                                     ; +0x28, 0x180093b48\ntest    eax, eax                                                       ; +0x2a, 0x180093b4a\njz      loc_180093BD9                                                  ; +0x2c, 0x180093b4c\nmov     rdi, [rdi+10h]                                                 ; +0x32, 0x180093b52\nmov     [rsp+38h+arg_8], rsi                                           ; +0x36, 0x180093b56\nlea     rsi, [rax-1]                                                   ; +0x3b, 0x180093b5b\nlea     rsi, [rdi+rsi*8]                                               ; +0x3f, 0x180093b5f\ncmp     rdi, rsi                                                       ; +0x43, 0x180093b63\nja      short loc_180093BD4                                            ; +0x46, 0x180093b66\nmov     [rsp+38h+arg_0], rbx                                           ; +0x48, 0x180093b68\nnop     dword ptr [rax]                                                ; +0x4d, 0x180093b6d\nmov     rbx, [rdi]                                                     ; +0x50, 0x180093b70\ntest    rbx, rbx                                                       ; +0x53, 0x180093b73\njz      short loc_180093BCF                                            ; +0x56, 0x180093b76\nmov     rax, [rbx]                                                     ; +0x58, 0x180093b78\nmov     rcx, rbx                                                       ; +0x5b, 0x180093b7b\ncall    qword ptr [rax+58h]                                            ; +0x5e, 0x180093b7e\nmov     rdx, r15                                                       ; +0x61, 0x180093b81\nsub     rdx, rax                                                       ; +0x64, 0x180093b84\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x180093b87\nmovzx   r8d, byte ptr [rax]                                            ; +0x70, 0x180093b90\nmovzx   ecx, byte ptr [rax+rdx]                                        ; +0x74, 0x180093b94\nsub     r8d, ecx                                                       ; +0x78, 0x180093b98\njnz     short loc_180093BA4                                            ; +0x7b, 0x180093b9b\ninc     rax                                                            ; +0x7d, 0x180093b9d\ntest    ecx, ecx                                                       ; +0x80, 0x180093ba0\njnz     short loc_180093B90                                            ; +0x82, 0x180093ba2\ntest    r8d, r8d                                                       ; +0x84, 0x180093ba4\njnz     short loc_180093BC6                                            ; +0x87, 0x180093ba7\nmov     rax, [rbx]                                                     ; +0x89, 0x180093ba9\nmov     rcx, rbx                                                       ; +0x8c, 0x180093bac\ncall    qword ptr [rax+48h]                                            ; +0x8f, 0x180093baf\ncmp     rax, r14                                                       ; +0x92, 0x180093bb2\njnz     short loc_180093BC6                                            ; +0x95, 0x180093bb5\nmov     rcx, [rbp+38h]; this                                           ; +0x97, 0x180093bb7\nmov     r8b, 1; bool                                                   ; +0x9b, 0x180093bbb\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x9e, 0x180093bbe\ncall    ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xa1, 0x180093bc1\nadd     rdi, 8                                                         ; +0xa6, 0x180093bc6\ncmp     rdi, rsi                                                       ; +0xaa, 0x180093bca\njbe     short loc_180093B70                                            ; +0xad, 0x180093bcd\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xaf, 0x180093bcf\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xb4, 0x180093bd4\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xb9, 0x180093bd9\nadd     rsp, 20h                                                       ; +0xbe, 0x180093bde\npop     r15                                                            ; +0xc2, 0x180093be2\npop     r14                                                            ; +0xc4, 0x180093be4\npop     rdi                                                            ; +0xc6, 0x180093be6\nretn                                                                   ; +0xc7, 0x180093be7", "xrefs": ["<???> @ 0x18013e0d8", "<???> @ 0x18013e10c", "<???> @ 0x1801438a8", "<???> @ 0x1801b65dc"], "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"}