{"type": "func", "start": 6442469776, "end": 6442469893, "name": "cocos2d::CCNode::scheduleUpdateWithPriorityLua", "pseudocode": "// \n// cocos2d::CCNode::scheduleUpdateWithPriorityLua from 0x180004990 to 0x180004a05 (117 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad570\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\nvoid __fastcall cocos2d::CCNode::scheduleUpdateWithPriorityLua(cocos2d::CCNode *this, int a2, int a3)\n{\n  struct cocos2d::CCScriptEngineManager *v6; // rax\n  cocos2d::CCScheduler *m_pScheduler; // rcx\n  bool v8; // r9\n\n  cocos2d::CCScheduler::unscheduleUpdateForTarget(this->m_pScheduler, this);\n  if ( this->m_nUpdateScriptHandler )\n  {\n    v6 = cocos2d::CCScriptEngineManager::sharedManager();\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v6 + 24LL))(\n      *(_QWORD *)v6,\n      (unsigned int)this->m_nUpdateScriptHandler);\n  }\n  m_pScheduler = this->m_pScheduler;\n  v8 = !this->m_bRunning;\n  this->m_nUpdateScriptHandler = a2;\n  cocos2d::CCScheduler::scheduleUpdateForTarget(m_pScheduler, this, a3, v8);\n}", "assembly": "; \n; cocos2d::CCNode::scheduleUpdateWithPriorityLua from 0x180004990 to 0x180004a05 (117 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad570\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, 0x180004990\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180004995\npush    rdi                                                            ; +0xa, 0x18000499a\nsub     rsp, 20h                                                       ; +0xb, 0x18000499b\nmov     esi, edx                                                       ; +0xf, 0x18000499f\nmov     rbx, rcx                                                       ; +0x11, 0x1800049a1\nmov     rdx, rcx; struct cocos2d::CCObject *                           ; +0x14, 0x1800049a4\nmov     edi, r8d                                                       ; +0x17, 0x1800049a7\nmov     rcx, [rcx+100h]; this                                          ; +0x1a, 0x1800049aa\ncall    ?unscheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEBVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleUpdateForTarget(cocos2d::CCObject const *) ; +0x21, 0x1800049b1\ncmp     dword ptr [rbx+128h], 0                                        ; +0x26, 0x1800049b6\njz      short loc_1800049D3                                            ; +0x2d, 0x1800049bd\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x2f, 0x1800049bf\nmov     edx, [rbx+128h]                                                ; +0x34, 0x1800049c4\nmov     rcx, [rax]                                                     ; +0x3a, 0x1800049ca\nmov     rax, [rcx]                                                     ; +0x3d, 0x1800049cd\ncall    qword ptr [rax+18h]                                            ; +0x40, 0x1800049d0\ncmp     byte ptr [rbx+110h], 0                                         ; +0x43, 0x1800049d3\nmov     r8d, edi; int                                                  ; +0x4a, 0x1800049da\nmov     rcx, [rbx+100h]; this                                          ; +0x4d, 0x1800049dd\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x54, 0x1800049e4\nsetz    r9b; bool                                                      ; +0x57, 0x1800049e7\nmov     [rbx+128h], esi                                                ; +0x5b, 0x1800049eb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x61, 0x1800049f1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x66, 0x1800049f6\nadd     rsp, 20h                                                       ; +0x6b, 0x1800049fb\npop     rdi                                                            ; +0x6f, 0x1800049ff\njmp     ?scheduleUpdateForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@H_N@Z; cocos2d::CCScheduler::scheduleUpdateForTarget(cocos2d::CCObject *,int,bool) ; +0x70, 0x180004a00", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ad570"], "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"}