{"type": "func", "start": 6443244320, "end": 6443244405, "name": "cocos2d::CCScheduler::scheduleScriptFunc", "pseudocode": "// \n// cocos2d::CCScheduler::scheduleScriptFunc from 0x1800c1b20 to 0x1800c1b75 (85 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9528\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__int64 __fastcall cocos2d::CCScheduler::scheduleScriptFunc(cocos2d::CCScheduler *this, int a2, float a3, char a4)\n{\n  cocos2d::CCObject *v5; // rdi\n  cocos2d::CCArray *v6; // rax\n\n  v5 = sub_1800B6730(a2, a3, a4);\n  if ( !this->m_pScriptHandlerEntries )\n  {\n    v6 = cocos2d::CCArray::createWithCapacity(0x14u);\n    this->m_pScriptHandlerEntries = v6;\n    cocos2d::CCObject::retain(v6);\n  }\n  cocos2d::CCArray::addObject(this->m_pScriptHandlerEntries, v5);\n  return HIDWORD(v5[1].__vftable);\n}", "assembly": "; \n; cocos2d::CCScheduler::scheduleScriptFunc from 0x1800c1b20 to 0x1800c1b75 (85 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9528\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, 0x1800c1b20\npush    rdi                                                            ; +0x5, 0x1800c1b25\nsub     rsp, 20h                                                       ; +0x6, 0x1800c1b26\nmov     rbx, rcx                                                       ; +0xa, 0x1800c1b2a\nmovzx   r8d, r9b                                                       ; +0xd, 0x1800c1b2d\nmov     ecx, edx                                                       ; +0x11, 0x1800c1b31\nmovaps  xmm1, xmm2                                                     ; +0x13, 0x1800c1b33\ncall    sub_1800B6730                                                  ; +0x16, 0x1800c1b36\ncmp     qword ptr [rbx+78h], 0                                         ; +0x1b, 0x1800c1b3b\nmov     rdi, rax                                                       ; +0x20, 0x1800c1b40\njnz     short loc_1800C1B5B                                            ; +0x23, 0x1800c1b43\nmov     ecx, 14h; Count                                                ; +0x25, 0x1800c1b45\ncall    ?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x2a, 0x1800c1b4a\nmov     rcx, rax; this                                                 ; +0x2f, 0x1800c1b4f\nmov     [rbx+78h], rax                                                 ; +0x32, 0x1800c1b52\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x36, 0x1800c1b56\nmov     rcx, [rbx+78h]; this                                           ; +0x3b, 0x1800c1b5b\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x3f, 0x1800c1b5f\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x42, 0x1800c1b62\nmov     eax, [rdi+3Ch]                                                 ; +0x47, 0x1800c1b67\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x1800c1b6a\nadd     rsp, 20h                                                       ; +0x4f, 0x1800c1b6f\npop     rdi                                                            ; +0x53, 0x1800c1b73\nretn                                                                   ; +0x54, 0x1800c1b74", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b9528"], "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"}