{"type": "func", "start": 6443055216, "end": 6443055377, "name": "cocos2d::CCNotificationCenter::registerScriptObserver", "pseudocode": "// \n// cocos2d::CCNotificationCenter::registerScriptObserver from 0x180093870 to 0x180093911 (161 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b654c\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::registerScriptObserver(\n        cocos2d::CCNotificationCenter *this,\n        struct cocos2d::CCObject *a2,\n        unsigned int a3,\n        char *a4)\n{\n  void *v8; // rax\n  cocos2d::CCObject *v9; // rbx\n\n  if ( !cocos2d::CCNotificationCenter::observerExisted(this, a2, a4) )\n  {\n    v8 = operator new(0x60u);\n    v9 = nullptr;\n    if ( v8 )\n      v9 = (cocos2d::CCObject *)cocos2d::CCNotificationObserver::CCNotificationObserver(\n                                  (__int64)v8,\n                                  (__int64)a2,\n                                  0,\n                                  a4,\n                                  0);\n    if ( v9 )\n    {\n      ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v9->__vftable[1].encodeWithCoder)(v9, a3);\n      cocos2d::CCObject::autorelease(v9);\n      cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v9);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNotificationCenter::registerScriptObserver from 0x180093870 to 0x180093911 (161 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b654c\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, 0x180093870\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180093875\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18009387a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18009387f\npush    r14                                                            ; +0x14, 0x180093884\nsub     rsp, 40h                                                       ; +0x16, 0x180093886\nmov     rsi, r9                                                        ; +0x1a, 0x18009388a\nmov     r14d, r8d                                                      ; +0x1d, 0x18009388d\nmov     rbp, rdx                                                       ; +0x20, 0x180093890\nmov     rdi, rcx                                                       ; +0x23, 0x180093893\nmov     r8, r9; char *                                                 ; +0x26, 0x180093896\ncall    ?observerExisted@CCNotificationCenter@cocos2d@@AEAA_NPEAVCCObject@2@PEBD@Z; cocos2d::CCNotificationCenter::observerExisted(cocos2d::CCObject *,char const *) ; +0x29, 0x180093899\ntest    al, al                                                         ; +0x2e, 0x18009389e\njnz     short loc_1800938F6                                            ; +0x30, 0x1800938a0\nmov     ecx, 60h ; '`'; Size                                           ; +0x32, 0x1800938a2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x37, 0x1800938a7\nmov     [rsp+48h+var_18], rax                                          ; +0x3c, 0x1800938ac\nxor     ebx, ebx                                                       ; +0x41, 0x1800938b1\ntest    rax, rax                                                       ; +0x43, 0x1800938b3\njz      short loc_1800938D1                                            ; +0x46, 0x1800938b6\nmov     [rsp+48h+var_28], rbx                                          ; +0x48, 0x1800938b8\nmov     r9, rsi                                                        ; +0x4d, 0x1800938bd\nxor     r8d, r8d                                                       ; +0x50, 0x1800938c0\nmov     rdx, rbp                                                       ; +0x53, 0x1800938c3\nmov     rcx, rax                                                       ; +0x56, 0x1800938c6\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, 0x1800938c9\nmov     rbx, rax                                                       ; +0x5e, 0x1800938ce\ntest    rbx, rbx                                                       ; +0x61, 0x1800938d1\njz      short loc_1800938F6                                            ; +0x64, 0x1800938d4\nmov     rax, [rbx]                                                     ; +0x66, 0x1800938d6\nmov     edx, r14d                                                      ; +0x69, 0x1800938d9\nmov     rcx, rbx                                                       ; +0x6c, 0x1800938dc\ncall    qword ptr [rax+70h]                                            ; +0x6f, 0x1800938df\nmov     rcx, rbx; this                                                 ; +0x72, 0x1800938e2\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x75, 0x1800938e5\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x7a, 0x1800938ea\nmov     rcx, [rdi+38h]; this                                           ; +0x7d, 0x1800938ed\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x81, 0x1800938f1\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x86, 0x1800938f6\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x8b, 0x1800938fb\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x90, 0x180093900\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x95, 0x180093905\nadd     rsp, 40h                                                       ; +0x9a, 0x18009390a\npop     r14                                                            ; +0x9e, 0x18009390e\nretn                                                                   ; +0xa0, 0x180093910", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b654c"], "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"}