{"type": "func", "start": 6443068336, "end": 6443068480, "name": "cocos2d::CCNotificationCenter::addObserver", "pseudocode": "// \n// cocos2d::CCNotificationCenter::addObserver from 0x180096bb0 to 0x180096c40 (144 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0744\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::addObserver(\n        cocos2d::CCArray **a1,\n        struct cocos2d::CCObject *a2,\n        __int64 a3,\n        const char *a4,\n        __int64 a5)\n{\n  __int64 v9; // rax\n  cocos2d::CCObject *v10; // rbx\n\n  if ( !cocos2d::CCNotificationCenter::observerExisted((cocos2d::CCNotificationCenter *)a1, a2, a4) )\n  {\n    v9 = sub_1800E4AC0(0x60u);\n    if ( v9 )\n      v10 = (cocos2d::CCObject *)cocos2d::CCNotificationObserver::CCNotificationObserver(v9, (__int64)a2, a3, a4, a5);\n    else\n      v10 = nullptr;\n    if ( v10 )\n    {\n      cocos2d::CCObject::autorelease(v10);\n      cocos2d::CCArray::addObject(a1[7], v10);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::addObserver from 0x180096bb0 to 0x180096c40 (144 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0744\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, 0x180096bb0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180096bb5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180096bba\npush    rdi                                                            ; +0xf, 0x180096bbf\nsub     rsp, 40h                                                       ; +0x10, 0x180096bc0\nmov     rbx, r9                                                        ; +0x14, 0x180096bc4\nmov     rbp, r8                                                        ; +0x17, 0x180096bc7\nmov     rsi, rdx                                                       ; +0x1a, 0x180096bca\nmov     rdi, rcx                                                       ; +0x1d, 0x180096bcd\nmov     r8, r9; char *                                                 ; +0x20, 0x180096bd0\ncall    ?observerExisted@CCNotificationCenter@cocos2d@@AEAA_NPEAVCCObject@2@PEBD@Z; cocos2d::CCNotificationCenter::observerExisted(cocos2d::CCObject *,char const *) ; +0x23, 0x180096bd3\ntest    al, al                                                         ; +0x28, 0x180096bd8\njnz     short loc_180096C2B                                            ; +0x2a, 0x180096bda\nmov     ecx, 60h ; '`'; Size                                           ; +0x2c, 0x180096bdc\ncall    sub_1800E4AC0                                                  ; +0x31, 0x180096be1\nmov     [rsp+48h+var_18], rax                                          ; +0x36, 0x180096be6\ntest    rax, rax                                                       ; +0x3b, 0x180096beb\njz      short loc_180096C10                                            ; +0x3e, 0x180096bee\nmov     rcx, [rsp+48h+arg_20]                                          ; +0x40, 0x180096bf0\nmov     [rsp+48h+var_28], rcx                                          ; +0x45, 0x180096bf5\nmov     r9, rbx                                                        ; +0x4a, 0x180096bfa\nmov     r8, rbp                                                        ; +0x4d, 0x180096bfd\nmov     rdx, rsi                                                       ; +0x50, 0x180096c00\nmov     rcx, rax                                                       ; +0x53, 0x180096c03\ncall    ??0CCNotificationObserver@cocos2d@@QEAA@PEAVCCObject@1@P821@EAAX0@ZPEBD0@Z; cocos2d::CCNotificationObserver::CCNotificationObserver(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *),char const *,cocos2d::CCObject *) ; +0x56, 0x180096c06\nmov     rbx, rax                                                       ; +0x5b, 0x180096c0b\njmp     short loc_180096C12                                            ; +0x5e, 0x180096c0e\nxor     ebx, ebx                                                       ; +0x60, 0x180096c10\ntest    rbx, rbx                                                       ; +0x62, 0x180096c12\njz      short loc_180096C2B                                            ; +0x65, 0x180096c15\nmov     rcx, rbx; this                                                 ; +0x67, 0x180096c17\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6a, 0x180096c1a\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x6f, 0x180096c1f\nmov     rcx, [rdi+38h]; this                                           ; +0x72, 0x180096c22\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x76, 0x180096c26\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x7b, 0x180096c2b\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x80, 0x180096c30\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x85, 0x180096c35\nadd     rsp, 40h                                                       ; +0x8a, 0x180096c3a\npop     rdi                                                            ; +0x8e, 0x180096c3e\nretn                                                                   ; +0x8f, 0x180096c3f", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c0744"], "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"}