{"type": "func", "start": 6443054352, "end": 6443054529, "name": "cocos2d::CCNotificationCenter::observerExisted", "pseudocode": "// \n// cocos2d::CCNotificationCenter::observerExisted from 0x180093510 to 0x1800935c1 (177 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCNotificationCenter::addObserver @ 0x1800933b3\n// > cocos2d::CCNotificationCenter::registerScriptObserver @ 0x180093899\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b64bc\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\nchar __fastcall cocos2d::CCNotificationCenter::observerExisted(\n        cocos2d::CCNotificationCenter *this,\n        struct cocos2d::CCObject *a2,\n        const char *a3)\n{\n  __int64 v3; // rdi\n  unsigned int *v6; // rdi\n  __int64 v7; // rax\n  _QWORD *v8; // rdi\n  _QWORD *i; // rsi\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  const char *v12; // r8\n  int v13; // ecx\n  int v14; // edx\n\n  v3 = *((_QWORD *)this + 7);\n  if ( v3 )\n  {\n    v6 = *(unsigned int **)(v3 + 56);\n    v7 = *v6;\n    if ( (_DWORD)v7 )\n    {\n      v8 = *((_QWORD **)v6 + 2);\n      for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )\n      {\n        v10 = *v8;\n        if ( !*v8 )\n          break;\n        if ( (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v10 + 72LL))(*v8) == a2 )\n        {\n          v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 88LL))(v10);\n          v12 = &a3[-v11];\n          do\n          {\n            v13 = (unsigned __int8)v12[v11];\n            v14 = *(unsigned __int8 *)v11 - v13;\n            if ( v14 )\n              break;\n            ++v11;\n          }\n          while ( v13 );\n          if ( !v14 )\n            return 1;\n        }\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::observerExisted from 0x180093510 to 0x1800935c1 (177 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCNotificationCenter::addObserver @ 0x1800933b3\n; > cocos2d::CCNotificationCenter::registerScriptObserver @ 0x180093899\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b64bc\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_0], rbx                                               ; +0x0, 0x180093510\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180093515\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18009351a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18009351f\npush    r14                                                            ; +0x14, 0x180093524\nsub     rsp, 20h                                                       ; +0x16, 0x180093526\nmov     rdi, [rcx+38h]                                                 ; +0x1a, 0x18009352a\nmov     r14, r8                                                        ; +0x1e, 0x18009352e\nmov     rbp, rdx                                                       ; +0x21, 0x180093531\ntest    rdi, rdi                                                       ; +0x24, 0x180093534\njz      short loc_1800935A0                                            ; +0x27, 0x180093537\nmov     rdi, [rdi+38h]                                                 ; +0x29, 0x180093539\nmov     eax, [rdi]                                                     ; +0x2d, 0x18009353d\ntest    eax, eax                                                       ; +0x2f, 0x18009353f\njz      short loc_1800935A0                                            ; +0x31, 0x180093541\nmov     rdi, [rdi+10h]                                                 ; +0x33, 0x180093543\nlea     rsi, [rax-1]                                                   ; +0x37, 0x180093547\nlea     rsi, [rdi+rsi*8]                                               ; +0x3b, 0x18009354b\ncmp     rdi, rsi                                                       ; +0x3f, 0x18009354f\nja      short loc_1800935A0                                            ; +0x42, 0x180093552\nmov     rbx, [rdi]                                                     ; +0x44, 0x180093554\ntest    rbx, rbx                                                       ; +0x47, 0x180093557\njz      short loc_1800935A0                                            ; +0x4a, 0x18009355a\nmov     rax, [rbx]                                                     ; +0x4c, 0x18009355c\nmov     rcx, rbx                                                       ; +0x4f, 0x18009355f\ncall    qword ptr [rax+48h]                                            ; +0x52, 0x180093562\ncmp     rax, rbp                                                       ; +0x55, 0x180093565\njnz     short loc_180093597                                            ; +0x58, 0x180093568\nmov     rax, [rbx]                                                     ; +0x5a, 0x18009356a\nmov     rcx, rbx                                                       ; +0x5d, 0x18009356d\ncall    qword ptr [rax+58h]                                            ; +0x60, 0x180093570\nmov     r8, r14                                                        ; +0x63, 0x180093573\nsub     r8, rax                                                        ; +0x66, 0x180093576\nnop     dword ptr [rax+00000000h]                                      ; +0x69, 0x180093579\nmovzx   edx, byte ptr [rax]                                            ; +0x70, 0x180093580\nmovzx   ecx, byte ptr [rax+r8]                                         ; +0x73, 0x180093583\nsub     edx, ecx                                                       ; +0x78, 0x180093588\njnz     short loc_180093593                                            ; +0x7a, 0x18009358a\ninc     rax                                                            ; +0x7c, 0x18009358c\ntest    ecx, ecx                                                       ; +0x7f, 0x18009358f\njnz     short loc_180093580                                            ; +0x81, 0x180093591\ntest    edx, edx                                                       ; +0x83, 0x180093593\njz      short loc_1800935BD                                            ; +0x85, 0x180093595\nadd     rdi, 8                                                         ; +0x87, 0x180093597\ncmp     rdi, rsi                                                       ; +0x8b, 0x18009359b\njbe     short loc_180093554                                            ; +0x8e, 0x18009359e\nxor     al, al                                                         ; +0x90, 0x1800935a0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x1800935a2\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x97, 0x1800935a7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9c, 0x1800935ac\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xa1, 0x1800935b1\nadd     rsp, 20h                                                       ; +0xa6, 0x1800935b6\npop     r14                                                            ; +0xaa, 0x1800935ba\nretn                                                                   ; +0xac, 0x1800935bc\nmov     al, 1                                                          ; +0xad, 0x1800935bd\njmp     short loc_1800935A2                                            ; +0xaf, 0x1800935bf", "xrefs": ["cocos2d::CCNotificationCenter::addObserver @ 0x1800933b3", "cocos2d::CCNotificationCenter::registerScriptObserver @ 0x180093899", "<???> @ 0x1801438a8", "<???> @ 0x1801b64bc"], "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"}