{"type": "func", "start": 6443055392, "end": 6443055558, "name": "cocos2d::CCNotificationCenter::removeAllObservers", "pseudocode": "// \n// cocos2d::CCNotificationCenter::removeAllObservers from 0x180093920 to 0x1800939c6 (166 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013e050\n// > <???> @ 0x18013e084\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6558\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\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 *))v11->__vftable[1].copyWithZone)(*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 0x180093920 to 0x1800939c6 (166 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013e050\n; > <???> @ 0x18013e084\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6558\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, 0x180093920\npush    rbp                                                            ; +0x5, 0x180093925\npush    r14                                                            ; +0x6, 0x180093926\npush    r15                                                            ; +0x8, 0x180093928\nsub     rsp, 20h                                                       ; +0xa, 0x18009392a\nmov     r14, rdx                                                       ; +0xe, 0x18009392e\nmov     r15, rcx                                                       ; +0x11, 0x180093931\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x14, 0x180093934\nmov     rbx, [r15+38h]                                                 ; +0x19, 0x180093939\nmov     rbp, rax                                                       ; +0x1d, 0x18009393d\ntest    rbx, rbx                                                       ; +0x20, 0x180093940\njz      short loc_1800939A4                                            ; +0x23, 0x180093943\nmov     rbx, [rbx+38h]                                                 ; +0x25, 0x180093945\nmov     eax, [rbx]                                                     ; +0x29, 0x180093949\ntest    eax, eax                                                       ; +0x2b, 0x18009394b\njz      short loc_1800939A4                                            ; +0x2d, 0x18009394d\nmov     rbx, [rbx+10h]                                                 ; +0x2f, 0x18009394f\nmov     [rsp+38h+arg_0], rsi                                           ; +0x33, 0x180093953\nlea     rsi, [rax-1]                                                   ; +0x38, 0x180093958\nlea     rsi, [rbx+rsi*8]                                               ; +0x3c, 0x18009395c\ncmp     rbx, rsi                                                       ; +0x40, 0x180093960\nja      short loc_18009399F                                            ; +0x43, 0x180093963\nmov     [rsp+38h+arg_8], rdi                                           ; +0x45, 0x180093965\nnop     word ptr [rax+rax+00h]                                         ; +0x4a, 0x18009396a\nmov     rdi, [rbx]                                                     ; +0x50, 0x180093970\ntest    rdi, rdi                                                       ; +0x53, 0x180093973\njz      short loc_18009399A                                            ; +0x56, 0x180093976\nmov     rax, [rdi]                                                     ; +0x58, 0x180093978\nmov     rcx, rdi                                                       ; +0x5b, 0x18009397b\ncall    qword ptr [rax+48h]                                            ; +0x5e, 0x18009397e\ncmp     rax, r14                                                       ; +0x61, 0x180093981\njnz     short loc_180093991                                            ; +0x64, 0x180093984\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x66, 0x180093986\nmov     rcx, rbp; this                                                 ; +0x69, 0x180093989\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x6c, 0x18009398c\nadd     rbx, 8                                                         ; +0x71, 0x180093991\ncmp     rbx, rsi                                                       ; +0x75, 0x180093995\njbe     short loc_180093970                                            ; +0x78, 0x180093998\nmov     rdi, [rsp+38h+arg_8]                                           ; +0x7a, 0x18009399a\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x7f, 0x18009399f\nmov     rcx, [r15+38h]; this                                           ; +0x84, 0x1800939a4\nmov     rdx, rbp; struct cocos2d::CCArray *                            ; +0x88, 0x1800939a8\ncall    ?removeObjectsInArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::removeObjectsInArray(cocos2d::CCArray *) ; +0x8b, 0x1800939ab\nmov     rcx, rbp; this                                                 ; +0x90, 0x1800939b0\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x93, 0x1800939b3\nadd     rsp, 20h                                                       ; +0x98, 0x1800939b8\npop     r15                                                            ; +0x9c, 0x1800939bc\npop     r14                                                            ; +0x9e, 0x1800939be\npop     rbp                                                            ; +0xa0, 0x1800939c0\njmp     ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa1, 0x1800939c1", "xrefs": ["<???> @ 0x18013e050", "<???> @ 0x18013e084", "<???> @ 0x1801438a8", "<???> @ 0x1801b6558"], "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"}