{"type": "func", "start": 6443053968, "end": 6443054112, "name": "cocos2d::CCNotificationCenter::addObserver", "pseudocode": "// \n// cocos2d::CCNotificationCenter::addObserver from 0x180093390 to 0x180093420 (144 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b64a4\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\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCNotificationCenter::addObserver(\n        __int64 a1,\n        struct cocos2d::CCObject *a2,\n        __int64 a3,\n        char *a4,\n        __int64 a5)\n{\n  void *v9; // rax\n  cocos2d::CCObject *v10; // rbx\n\n  if ( !cocos2d::CCNotificationCenter::observerExisted((cocos2d::CCNotificationCenter *)a1, a2, a4) )\n  {\n    v9 = operator new(0x60u);\n    if ( v9 )\n      v10 = (cocos2d::CCObject *)cocos2d::CCNotificationObserver::CCNotificationObserver(\n                                   (__int64)v9,\n                                   (__int64)a2,\n                                   a3,\n                                   a4,\n                                   a5);\n    else\n      v10 = nullptr;\n    if ( v10 )\n    {\n      cocos2d::CCObject::autorelease(v10);\n      cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 56), v10);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::addObserver from 0x180093390 to 0x180093420 (144 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b64a4\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, 0x180093390\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180093395\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18009339a\npush    rdi                                                            ; +0xf, 0x18009339f\nsub     rsp, 40h                                                       ; +0x10, 0x1800933a0\nmov     rbx, r9                                                        ; +0x14, 0x1800933a4\nmov     rbp, r8                                                        ; +0x17, 0x1800933a7\nmov     rsi, rdx                                                       ; +0x1a, 0x1800933aa\nmov     rdi, rcx                                                       ; +0x1d, 0x1800933ad\nmov     r8, r9; char *                                                 ; +0x20, 0x1800933b0\ncall    ?observerExisted@CCNotificationCenter@cocos2d@@AEAA_NPEAVCCObject@2@PEBD@Z; cocos2d::CCNotificationCenter::observerExisted(cocos2d::CCObject *,char const *) ; +0x23, 0x1800933b3\ntest    al, al                                                         ; +0x28, 0x1800933b8\njnz     short loc_18009340B                                            ; +0x2a, 0x1800933ba\nmov     ecx, 60h ; '`'; Size                                           ; +0x2c, 0x1800933bc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x1800933c1\nmov     [rsp+48h+var_18], rax                                          ; +0x36, 0x1800933c6\ntest    rax, rax                                                       ; +0x3b, 0x1800933cb\njz      short loc_1800933F0                                            ; +0x3e, 0x1800933ce\nmov     rcx, [rsp+48h+arg_20]                                          ; +0x40, 0x1800933d0\nmov     [rsp+48h+var_28], rcx                                          ; +0x45, 0x1800933d5\nmov     r9, rbx                                                        ; +0x4a, 0x1800933da\nmov     r8, rbp                                                        ; +0x4d, 0x1800933dd\nmov     rdx, rsi                                                       ; +0x50, 0x1800933e0\nmov     rcx, rax                                                       ; +0x53, 0x1800933e3\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, 0x1800933e6\nmov     rbx, rax                                                       ; +0x5b, 0x1800933eb\njmp     short loc_1800933F2                                            ; +0x5e, 0x1800933ee\nxor     ebx, ebx                                                       ; +0x60, 0x1800933f0\ntest    rbx, rbx                                                       ; +0x62, 0x1800933f2\njz      short loc_18009340B                                            ; +0x65, 0x1800933f5\nmov     rcx, rbx; this                                                 ; +0x67, 0x1800933f7\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6a, 0x1800933fa\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x6f, 0x1800933ff\nmov     rcx, [rdi+38h]; this                                           ; +0x72, 0x180093402\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x76, 0x180093406\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x7b, 0x18009340b\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x80, 0x180093410\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x85, 0x180093415\nadd     rsp, 40h                                                       ; +0x8a, 0x18009341a\npop     rdi                                                            ; +0x8e, 0x18009341e\nretn                                                                   ; +0x8f, 0x18009341f", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b64a4"], "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"}