{"type": "func", "start": 6443068880, "end": 6443069137, "name": "cocos2d::CCNotificationCenter::postNotification", "pseudocode": "// \n// cocos2d::CCNotificationCenter::postNotification from 0x180096dd0 to 0x180096ed1 (257 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801473e8\n// > <???> @ 0x18014741c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0768\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::postNotification(cocos2d::CCArray **this, const char *a2)\n{\n  unsigned int v4; // eax\n  struct cocos2d::CCArray *v5; // rdi\n  unsigned int *v6; // rdi\n  __int64 v7; // rax\n  _QWORD *v8; // rdi\n  _QWORD *i; // rsi\n  __int64 v10; // rbx\n  const char *v11; // rax\n  struct cocos2d::CCScriptEngineManager *v12; // rax\n  __int64 v13; // rcx\n\n  v4 = cocos2d::CCArray::count(*(this + 7));\n  v5 = cocos2d::CCArray::createWithCapacity(v4);\n  cocos2d::CCArray::addObjectsFromArray(v5, *(this + 7));\n  if ( v5 )\n  {\n    v6 = *((unsigned int **)v5 + 7);\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 ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v10 + 96LL))(*v8) )\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 96LL))(v10);\n        v11 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 88LL))(v10);\n        if ( !strcmp(a2, v11) )\n        {\n          if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v10 + 104LL))(v10) )\n          {\n            v12 = cocos2d::CCScriptEngineManager::sharedManager();\n            (*(void (__fastcall **)(_QWORD, cocos2d::CCArray **, const char *))(**(_QWORD **)v12 + 80LL))(\n              *(_QWORD *)v12,\n              this,\n              a2);\n          }\n          else\n          {\n            v13 = *(_QWORD *)(v10 + 56);\n            if ( v13 )\n              (*(void (__fastcall **)(__int64, _QWORD))(v10 + 64))(v13, *(_QWORD *)(v10 + 80));\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::postNotification from 0x180096dd0 to 0x180096ed1 (257 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801473e8\n; > <???> @ 0x18014741c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0768\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, 0x180096dd0\nmov     [rsp+arg_18], rdi                                              ; +0x5, 0x180096dd5\npush    r14                                                            ; +0xa, 0x180096dda\nsub     rsp, 20h                                                       ; +0xc, 0x180096ddc\nmov     r14, rcx                                                       ; +0x10, 0x180096de0\nmov     rbp, rdx                                                       ; +0x13, 0x180096de3\nmov     rcx, [rcx+38h]; this                                           ; +0x16, 0x180096de6\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1a, 0x180096dea\nmov     ecx, eax; Count                                                ; +0x1f, 0x180096def\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x21, 0x180096df1\nmov     rdx, [r14+38h]; struct cocos2d::CCArray *                      ; +0x26, 0x180096df6\nmov     rcx, rax; this                                                 ; +0x2a, 0x180096dfa\nmov     rdi, rax                                                       ; +0x2d, 0x180096dfd\ncall    ?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x30, 0x180096e00\ntest    rdi, rdi                                                       ; +0x35, 0x180096e05\njz      loc_180096EC0                                                  ; +0x38, 0x180096e08\nmov     rdi, [rdi+38h]                                                 ; +0x3e, 0x180096e0e\nmov     eax, [rdi]                                                     ; +0x42, 0x180096e12\ntest    eax, eax                                                       ; +0x44, 0x180096e14\njz      loc_180096EC0                                                  ; +0x46, 0x180096e16\nmov     rdi, [rdi+10h]                                                 ; +0x4c, 0x180096e1c\nmov     [rsp+28h+arg_8], rsi                                           ; +0x50, 0x180096e20\nlea     rsi, [rax-1]                                                   ; +0x55, 0x180096e25\nlea     rsi, [rdi+rsi*8]                                               ; +0x59, 0x180096e29\ncmp     rdi, rsi                                                       ; +0x5d, 0x180096e2d\nja      loc_180096EBB                                                  ; +0x60, 0x180096e30\nmov     [rsp+28h+arg_0], rbx                                           ; +0x66, 0x180096e36\nnop     dword ptr [rax+rax+00h]                                        ; +0x6b, 0x180096e3b\nmov     rbx, [rdi]                                                     ; +0x70, 0x180096e40\ntest    rbx, rbx                                                       ; +0x73, 0x180096e43\njz      short loc_180096EB6                                            ; +0x76, 0x180096e46\nmov     rax, [rbx]                                                     ; +0x78, 0x180096e48\nmov     rcx, rbx                                                       ; +0x7b, 0x180096e4b\ncall    qword ptr [rax+60h]                                            ; +0x7e, 0x180096e4e\ntest    rax, rax                                                       ; +0x81, 0x180096e51\njz      short loc_180096E5F                                            ; +0x84, 0x180096e54\nmov     rax, [rbx]                                                     ; +0x86, 0x180096e56\nmov     rcx, rbx                                                       ; +0x89, 0x180096e59\ncall    qword ptr [rax+60h]                                            ; +0x8c, 0x180096e5c\nmov     rax, [rbx]                                                     ; +0x8f, 0x180096e5f\nmov     rcx, rbx                                                       ; +0x92, 0x180096e62\ncall    qword ptr [rax+58h]                                            ; +0x95, 0x180096e65\nmov     rdx, rax; Str2                                                 ; +0x98, 0x180096e68\nmov     rcx, rbp; Str1                                                 ; +0x9b, 0x180096e6b\ncall    strcmp                                                         ; +0x9e, 0x180096e6e\ntest    eax, eax                                                       ; +0xa3, 0x180096e73\njnz     short loc_180096EAD                                            ; +0xa5, 0x180096e75\nmov     rax, [rbx]                                                     ; +0xa7, 0x180096e77\nmov     rcx, rbx                                                       ; +0xaa, 0x180096e7a\ncall    qword ptr [rax+68h]                                            ; +0xad, 0x180096e7d\ntest    eax, eax                                                       ; +0xb0, 0x180096e80\njz      short loc_180096E9A                                            ; +0xb2, 0x180096e82\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0xb4, 0x180096e84\nmov     r8, rbp                                                        ; +0xb9, 0x180096e89\nmov     rdx, r14                                                       ; +0xbc, 0x180096e8c\nmov     rcx, [rax]                                                     ; +0xbf, 0x180096e8f\nmov     rax, [rcx]                                                     ; +0xc2, 0x180096e92\ncall    qword ptr [rax+50h]                                            ; +0xc5, 0x180096e95\njmp     short loc_180096EAD                                            ; +0xc8, 0x180096e98\nmov     rcx, [rbx+38h]                                                 ; +0xca, 0x180096e9a\ntest    rcx, rcx                                                       ; +0xce, 0x180096e9e\njz      short loc_180096EAD                                            ; +0xd1, 0x180096ea1\nmov     rax, [rbx+40h]                                                 ; +0xd3, 0x180096ea3\nmov     rdx, [rbx+50h]                                                 ; +0xd7, 0x180096ea7\ncall    rax                                                            ; +0xdb, 0x180096eab\nadd     rdi, 8                                                         ; +0xdd, 0x180096ead\ncmp     rdi, rsi                                                       ; +0xe1, 0x180096eb1\njbe     short loc_180096E40                                            ; +0xe4, 0x180096eb4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe6, 0x180096eb6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xeb, 0x180096ebb\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xf0, 0x180096ec0\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xf5, 0x180096ec5\nadd     rsp, 20h                                                       ; +0xfa, 0x180096eca\npop     r14                                                            ; +0xfe, 0x180096ece\nretn                                                                   ; +0x100, 0x180096ed0", "xrefs": ["<???> @ 0x1801473e8", "<???> @ 0x18014741c", "<???> @ 0x18014cf68", "<???> @ 0x1801c0768"], "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"}