{"type": "func", "start": 6443068512, "end": 6443068670, "name": "cocos2d::CCNotificationCenter::getObserverHandlerByName", "pseudocode": "// \n// cocos2d::CCNotificationCenter::getObserverHandlerByName from 0x180096c60 to 0x180096cfe (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0750\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\nint __fastcall cocos2d::CCNotificationCenter::getObserverHandlerByName(\n        cocos2d::CCNotificationCenter *this,\n        const char *a2)\n{\n  __int64 v4; // rax\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  _QWORD *v7; // rbx\n  _QWORD *i; // rsi\n  __int64 v9; // rdi\n  const char *v10; // rax\n\n  if ( a2 )\n  {\n    if ( strlen(a2) )\n    {\n      v4 = *((_QWORD *)this + 7);\n      if ( v4 )\n      {\n        v5 = *(unsigned int **)(v4 + 56);\n        v6 = *v5;\n        if ( (_DWORD)v6 )\n        {\n          v7 = *((_QWORD **)v5 + 2);\n          for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )\n          {\n            v9 = *v7;\n            if ( !*v7 )\n              break;\n            v10 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v9 + 88LL))(*v7);\n            if ( !strcmp(v10, a2) )\n              return (*(int (__fastcall **)(__int64))(*(_QWORD *)v9 + 104LL))(v9);\n          }\n        }\n      }\n    }\n  }\n  return -1;\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::getObserverHandlerByName from 0x180096c60 to 0x180096cfe (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0750\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_0], rbx                                               ; +0x0, 0x180096c60\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180096c65\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180096c6a\npush    rdi                                                            ; +0xf, 0x180096c6f\nsub     rsp, 20h                                                       ; +0x10, 0x180096c70\nmov     rbp, rdx                                                       ; +0x14, 0x180096c74\nmov     rbx, rcx                                                       ; +0x17, 0x180096c77\ntest    rdx, rdx                                                       ; +0x1a, 0x180096c7a\njz      short loc_180096CD9                                            ; +0x1d, 0x180096c7d\nmov     rcx, rdx; Str                                                  ; +0x1f, 0x180096c7f\ncall    strlen                                                         ; +0x22, 0x180096c82\ntest    rax, rax                                                       ; +0x27, 0x180096c87\njz      short loc_180096CD9                                            ; +0x2a, 0x180096c8a\nmov     rax, [rbx+38h]                                                 ; +0x2c, 0x180096c8c\ntest    rax, rax                                                       ; +0x30, 0x180096c90\njz      short loc_180096CD9                                            ; +0x33, 0x180096c93\nmov     rbx, [rax+38h]                                                 ; +0x35, 0x180096c95\nmov     eax, [rbx]                                                     ; +0x39, 0x180096c99\ntest    eax, eax                                                       ; +0x3b, 0x180096c9b\njz      short loc_180096CD9                                            ; +0x3d, 0x180096c9d\nmov     rbx, [rbx+10h]                                                 ; +0x3f, 0x180096c9f\nlea     rsi, [rax-1]                                                   ; +0x43, 0x180096ca3\nlea     rsi, [rbx+rsi*8]                                               ; +0x47, 0x180096ca7\ncmp     rbx, rsi                                                       ; +0x4b, 0x180096cab\nja      short loc_180096CD9                                            ; +0x4e, 0x180096cae\nmov     rdi, [rbx]                                                     ; +0x50, 0x180096cb0\ntest    rdi, rdi                                                       ; +0x53, 0x180096cb3\njz      short loc_180096CD9                                            ; +0x56, 0x180096cb6\nmov     rax, [rdi]                                                     ; +0x58, 0x180096cb8\nmov     rcx, rdi                                                       ; +0x5b, 0x180096cbb\ncall    qword ptr [rax+58h]                                            ; +0x5e, 0x180096cbe\nmov     rcx, rax; Str1                                                 ; +0x61, 0x180096cc1\nmov     rdx, rbp; Str2                                                 ; +0x64, 0x180096cc4\ncall    strcmp                                                         ; +0x67, 0x180096cc7\ntest    eax, eax                                                       ; +0x6c, 0x180096ccc\njz      short loc_180096CF3                                            ; +0x6e, 0x180096cce\nadd     rbx, 8                                                         ; +0x70, 0x180096cd0\ncmp     rbx, rsi                                                       ; +0x74, 0x180096cd4\njbe     short loc_180096CB0                                            ; +0x77, 0x180096cd7\nmov     eax, 0FFFFFFFFh                                                ; +0x79, 0x180096cd9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x180096cde\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x83, 0x180096ce3\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x88, 0x180096ce8\nadd     rsp, 20h                                                       ; +0x8d, 0x180096ced\npop     rdi                                                            ; +0x91, 0x180096cf1\nretn                                                                   ; +0x92, 0x180096cf2\nmov     rax, [rdi]                                                     ; +0x93, 0x180096cf3\nmov     rcx, rdi                                                       ; +0x96, 0x180096cf6\ncall    qword ptr [rax+68h]                                            ; +0x99, 0x180096cf9\njmp     short loc_180096CDE                                            ; +0x9c, 0x180096cfc", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c0750"], "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"}