{"type": "func", "start": 6443069488, "end": 6443069649, "name": "cocos2d::CCNotificationCenter::registerScriptObserver", "pseudocode": "// \n// cocos2d::CCNotificationCenter::registerScriptObserver from 0x180097030 to 0x1800970d1 (161 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c07ec\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// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCNotificationCenter::registerScriptObserver(\n        cocos2d::CCArray **this,\n        struct cocos2d::CCObject *a2,\n        unsigned int a3,\n        const char *a4)\n{\n  __int64 v8; // rax\n  cocos2d::CCObject *v9; // rbx\n\n  if ( !cocos2d::CCNotificationCenter::observerExisted((cocos2d::CCNotificationCenter *)this, a2, a4) )\n  {\n    v8 = sub_1800E4AC0(0x60u);\n    v9 = nullptr;\n    if ( v8 )\n      v9 = (cocos2d::CCObject *)cocos2d::CCNotificationObserver::CCNotificationObserver(v8, (__int64)a2, 0, a4, 0);\n    if ( v9 )\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v9 + 112LL))(v9, a3);\n      cocos2d::CCObject::autorelease(v9);\n      cocos2d::CCArray::addObject(*(this + 7), v9);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::registerScriptObserver from 0x180097030 to 0x1800970d1 (161 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c07ec\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, 0x180097030\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180097035\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18009703a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18009703f\npush    r14                                                            ; +0x14, 0x180097044\nsub     rsp, 40h                                                       ; +0x16, 0x180097046\nmov     rdi, r9                                                        ; +0x1a, 0x18009704a\nmov     r14d, r8d                                                      ; +0x1d, 0x18009704d\nmov     rsi, rdx                                                       ; +0x20, 0x180097050\nmov     rbp, rcx                                                       ; +0x23, 0x180097053\nmov     r8, r9; char *                                                 ; +0x26, 0x180097056\ncall    ?observerExisted@CCNotificationCenter@cocos2d@@AEAA_NPEAVCCObject@2@PEBD@Z; cocos2d::CCNotificationCenter::observerExisted(cocos2d::CCObject *,char const *) ; +0x29, 0x180097059\ntest    al, al                                                         ; +0x2e, 0x18009705e\njnz     short loc_1800970B6                                            ; +0x30, 0x180097060\nmov     ecx, 60h ; '`'; Size                                           ; +0x32, 0x180097062\ncall    sub_1800E4AC0                                                  ; +0x37, 0x180097067\nmov     [rsp+48h+var_18], rax                                          ; +0x3c, 0x18009706c\nxor     ebx, ebx                                                       ; +0x41, 0x180097071\ntest    rax, rax                                                       ; +0x43, 0x180097073\njz      short loc_180097091                                            ; +0x46, 0x180097076\nmov     [rsp+48h+var_28], rbx                                          ; +0x48, 0x180097078\nmov     r9, rdi                                                        ; +0x4d, 0x18009707d\nxor     r8d, r8d                                                       ; +0x50, 0x180097080\nmov     rdx, rsi                                                       ; +0x53, 0x180097083\nmov     rcx, rax                                                       ; +0x56, 0x180097086\ncall    ??0CCNotificationObserver@cocos2d@@QEAA@PEAVCCObject@1@P821@EAAX0@ZPEBD0@Z; cocos2d::CCNotificationObserver::CCNotificationObserver(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *),char const *,cocos2d::CCObject *) ; +0x59, 0x180097089\nmov     rbx, rax                                                       ; +0x5e, 0x18009708e\ntest    rbx, rbx                                                       ; +0x61, 0x180097091\njz      short loc_1800970B6                                            ; +0x64, 0x180097094\nmov     rax, [rbx]                                                     ; +0x66, 0x180097096\nmov     edx, r14d                                                      ; +0x69, 0x180097099\nmov     rcx, rbx                                                       ; +0x6c, 0x18009709c\ncall    qword ptr [rax+70h]                                            ; +0x6f, 0x18009709f\nmov     rcx, rbx; this                                                 ; +0x72, 0x1800970a2\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x75, 0x1800970a5\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x7a, 0x1800970aa\nmov     rcx, [rbp+38h]; this                                           ; +0x7d, 0x1800970ad\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x81, 0x1800970b1\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x86, 0x1800970b6\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x8b, 0x1800970bb\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x90, 0x1800970c0\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x95, 0x1800970c5\nadd     rsp, 40h                                                       ; +0x9a, 0x1800970ca\npop     r14                                                            ; +0x9e, 0x1800970ce\nretn                                                                   ; +0xa0, 0x1800970d0", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c07ec"], "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"}