{"type": "func", "start": 6443070144, "end": 6443070308, "name": "cocos2d::CCNotificationCenter::unregisterScriptObserver", "pseudocode": "// \n// cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x1800972c0 to 0x180097364 (164 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180147390\n// > <???> @ 0x1801473c4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c087c\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:22:10 +0000\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  const char *v12; // rax\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 = (const char *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 88LL))(*v9);\n        if ( !strcmp(v12, a3)\n          && (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 72LL))(v11) == a2 )\n        {\n          cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 7), v11);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x1800972c0 to 0x180097364 (164 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180147390\n; > <???> @ 0x1801473c4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c087c\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:22:10 +0000\n; \nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x1800972c0\npush    rdi                                                            ; +0x5, 0x1800972c5\npush    r14                                                            ; +0x6, 0x1800972c6\npush    r15                                                            ; +0x8, 0x1800972c8\nsub     rsp, 20h                                                       ; +0xa, 0x1800972ca\nmov     rdi, [rcx+38h]                                                 ; +0xe, 0x1800972ce\nmov     r15, r8                                                        ; +0x12, 0x1800972d2\nmov     r14, rdx                                                       ; +0x15, 0x1800972d5\nmov     rbp, rcx                                                       ; +0x18, 0x1800972d8\ntest    rdi, rdi                                                       ; +0x1b, 0x1800972db\njz      short loc_180097355                                            ; +0x1e, 0x1800972de\nmov     rdi, [rdi+38h]                                                 ; +0x20, 0x1800972e0\nmov     eax, [rdi]                                                     ; +0x24, 0x1800972e4\ntest    eax, eax                                                       ; +0x26, 0x1800972e6\njz      short loc_180097355                                            ; +0x28, 0x1800972e8\nmov     rdi, [rdi+10h]                                                 ; +0x2a, 0x1800972ea\nmov     [rsp+38h+arg_8], rsi                                           ; +0x2e, 0x1800972ee\nlea     rsi, [rax-1]                                                   ; +0x33, 0x1800972f3\nlea     rsi, [rdi+rsi*8]                                               ; +0x37, 0x1800972f7\ncmp     rdi, rsi                                                       ; +0x3b, 0x1800972fb\nja      short loc_180097350                                            ; +0x3e, 0x1800972fe\nmov     [rsp+38h+arg_0], rbx                                           ; +0x40, 0x180097300\nmov     rbx, [rdi]                                                     ; +0x45, 0x180097305\ntest    rbx, rbx                                                       ; +0x48, 0x180097308\njz      short loc_18009734B                                            ; +0x4b, 0x18009730b\nmov     rax, [rbx]                                                     ; +0x4d, 0x18009730d\nmov     rcx, rbx                                                       ; +0x50, 0x180097310\ncall    qword ptr [rax+58h]                                            ; +0x53, 0x180097313\nmov     rcx, rax; Str1                                                 ; +0x56, 0x180097316\nmov     rdx, r15; Str2                                                 ; +0x59, 0x180097319\ncall    strcmp                                                         ; +0x5c, 0x18009731c\ntest    eax, eax                                                       ; +0x61, 0x180097321\njnz     short loc_180097342                                            ; +0x63, 0x180097323\nmov     rax, [rbx]                                                     ; +0x65, 0x180097325\nmov     rcx, rbx                                                       ; +0x68, 0x180097328\ncall    qword ptr [rax+48h]                                            ; +0x6b, 0x18009732b\ncmp     rax, r14                                                       ; +0x6e, 0x18009732e\njnz     short loc_180097342                                            ; +0x71, 0x180097331\nmov     rcx, [rbp+38h]; this                                           ; +0x73, 0x180097333\nmov     r8b, 1; bool                                                   ; +0x77, 0x180097337\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x7a, 0x18009733a\ncall    ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x7d, 0x18009733d\nadd     rdi, 8                                                         ; +0x82, 0x180097342\ncmp     rdi, rsi                                                       ; +0x86, 0x180097346\njbe     short loc_180097305                                            ; +0x89, 0x180097349\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8b, 0x18009734b\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x90, 0x180097350\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x95, 0x180097355\nadd     rsp, 20h                                                       ; +0x9a, 0x18009735a\npop     r15                                                            ; +0x9e, 0x18009735e\npop     r14                                                            ; +0xa0, 0x180097360\npop     rdi                                                            ; +0xa2, 0x180097362\nretn                                                                   ; +0xa3, 0x180097363", "xrefs": ["<???> @ 0x180147390", "<???> @ 0x1801473c4", "<???> @ 0x18014cf68", "<???> @ 0x1801c087c"], "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"}