{"type": "func", "start": 6443069664, "end": 6443069830, "name": "cocos2d::CCNotificationCenter::removeAllObservers", "pseudocode": "// \n// cocos2d::CCNotificationCenter::removeAllObservers from 0x1800970e0 to 0x180097186 (166 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180147308\n// > <???> @ 0x18014733c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c07f8\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\n__int64 __fastcall cocos2d::CCNotificationCenter::removeAllObservers(\n        cocos2d::CCNotificationCenter *this,\n        struct cocos2d::CCObject *a2)\n{\n  struct cocos2d::CCArray *v4; // rax\n  __int64 v5; // rbx\n  cocos2d::CCArray *v6; // rbp\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\n  v4 = cocos2d::CCArray::create();\n  v5 = *((_QWORD *)this + 7);\n  v6 = v4;\n  if ( v5 )\n  {\n    v7 = *(unsigned int **)(v5 + 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        if ( (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 72LL))(*v9) == a2 )\n          cocos2d::CCArray::addObject(v6, v11);\n      }\n    }\n  }\n  cocos2d::CCArray::removeObjectsInArray(*((cocos2d::CCArray **)this + 7), v6);\n  return cocos2d::CCArray::count(v6);\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::removeAllObservers from 0x1800970e0 to 0x180097186 (166 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180147308\n; > <???> @ 0x18014733c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c07f8\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], rbx                                              ; +0x0, 0x1800970e0\npush    rbp                                                            ; +0x5, 0x1800970e5\npush    r14                                                            ; +0x6, 0x1800970e6\npush    r15                                                            ; +0x8, 0x1800970e8\nsub     rsp, 20h                                                       ; +0xa, 0x1800970ea\nmov     r14, rdx                                                       ; +0xe, 0x1800970ee\nmov     r15, rcx                                                       ; +0x11, 0x1800970f1\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x14, 0x1800970f4\nmov     rbx, [r15+38h]                                                 ; +0x19, 0x1800970f9\nmov     rbp, rax                                                       ; +0x1d, 0x1800970fd\ntest    rbx, rbx                                                       ; +0x20, 0x180097100\njz      short loc_180097164                                            ; +0x23, 0x180097103\nmov     rbx, [rbx+38h]                                                 ; +0x25, 0x180097105\nmov     eax, [rbx]                                                     ; +0x29, 0x180097109\ntest    eax, eax                                                       ; +0x2b, 0x18009710b\njz      short loc_180097164                                            ; +0x2d, 0x18009710d\nmov     rbx, [rbx+10h]                                                 ; +0x2f, 0x18009710f\nmov     [rsp+38h+arg_0], rsi                                           ; +0x33, 0x180097113\nlea     rsi, [rax-1]                                                   ; +0x38, 0x180097118\nlea     rsi, [rbx+rsi*8]                                               ; +0x3c, 0x18009711c\ncmp     rbx, rsi                                                       ; +0x40, 0x180097120\nja      short loc_18009715F                                            ; +0x43, 0x180097123\nmov     [rsp+38h+arg_8], rdi                                           ; +0x45, 0x180097125\nnop     word ptr [rax+rax+00h]                                         ; +0x4a, 0x18009712a\nmov     rdi, [rbx]                                                     ; +0x50, 0x180097130\ntest    rdi, rdi                                                       ; +0x53, 0x180097133\njz      short loc_18009715A                                            ; +0x56, 0x180097136\nmov     rax, [rdi]                                                     ; +0x58, 0x180097138\nmov     rcx, rdi                                                       ; +0x5b, 0x18009713b\ncall    qword ptr [rax+48h]                                            ; +0x5e, 0x18009713e\ncmp     rax, r14                                                       ; +0x61, 0x180097141\njnz     short loc_180097151                                            ; +0x64, 0x180097144\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x66, 0x180097146\nmov     rcx, rbp; this                                                 ; +0x69, 0x180097149\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x6c, 0x18009714c\nadd     rbx, 8                                                         ; +0x71, 0x180097151\ncmp     rbx, rsi                                                       ; +0x75, 0x180097155\njbe     short loc_180097130                                            ; +0x78, 0x180097158\nmov     rdi, [rsp+38h+arg_8]                                           ; +0x7a, 0x18009715a\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x7f, 0x18009715f\nmov     rcx, [r15+38h]; this                                           ; +0x84, 0x180097164\nmov     rdx, rbp; struct cocos2d::CCArray *                            ; +0x88, 0x180097168\ncall    ?removeObjectsInArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::removeObjectsInArray(cocos2d::CCArray *) ; +0x8b, 0x18009716b\nmov     rcx, rbp; this                                                 ; +0x90, 0x180097170\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x93, 0x180097173\nadd     rsp, 20h                                                       ; +0x98, 0x180097178\npop     r15                                                            ; +0x9c, 0x18009717c\npop     r14                                                            ; +0x9e, 0x18009717e\npop     rbp                                                            ; +0xa0, 0x180097180\njmp     ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa1, 0x180097181", "xrefs": ["<???> @ 0x180147308", "<???> @ 0x18014733c", "<???> @ 0x18014cf68", "<???> @ 0x1801c07f8"], "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"}