{"type": "func", "start": 6443246432, "end": 6443246572, "name": "cocos2d::CCTimer::timerWithScriptHandler", "pseudocode": "// \n// cocos2d::CCTimer::timerWithScriptHandler from 0x1800c2360 to 0x1800c23ec (140 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9558\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\nstruct cocos2d::CCTimer *__fastcall cocos2d::CCTimer::timerWithScriptHandler(int a1, float a2)\n{\n  cocos2d::CCObject *v3; // rax\n  cocos2d::CCObject *v4; // rbx\n\n  v3 = (cocos2d::CCObject *)operator new(0x68u);\n  v4 = v3;\n  if ( v3 )\n  {\n    cocos2d::CCObject::CCObject(v3);\n    v4->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCTimer::`vftable';\n    v4[1].__vftable = nullptr;\n    v4[1].m_uID = -1082130432;\n    LOWORD(v4[1].m_nLuaID) = 0;\n    *(_QWORD *)&v4[1].m_nTag = 0;\n    *(_QWORD *)&v4[1].m_uAutoReleaseCount = 0;\n    *(_QWORD *)&v4[1].m_uIndexInArray = 0;\n    v4[1].m_unknown2 = 0;\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  v4[1].m_unknown2 = a1;\n  v4[1].m_uID = -1082130432;\n  *(float *)&v4[1].m_eObjType = a2;\n  cocos2d::CCObject::autorelease(v4);\n  return (struct cocos2d::CCTimer *)v4;\n}", "assembly": "; \n; cocos2d::CCTimer::timerWithScriptHandler from 0x1800c2360 to 0x1800c23ec (140 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9558\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, 0x1800c2360\npush    rdi                                                            ; +0x5, 0x1800c2365\nsub     rsp, 30h                                                       ; +0x6, 0x1800c2366\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x1800c236a\nmovaps  xmm6, xmm1                                                     ; +0xf, 0x1800c236f\nmov     edi, ecx                                                       ; +0x12, 0x1800c2372\nmov     ecx, 68h ; 'h'; Size                                           ; +0x14, 0x1800c2374\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x1800c2379\nmov     rbx, rax                                                       ; +0x1e, 0x1800c237e\nmov     [rsp+38h+arg_10], rax                                          ; +0x21, 0x1800c2381\ntest    rax, rax                                                       ; +0x26, 0x1800c2386\njz      short loc_1800C23BF                                            ; +0x29, 0x1800c2389\nmov     rcx, rax; this                                                 ; +0x2b, 0x1800c238b\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2e, 0x1800c238e\nlea     rax, ??_7CCTimer@cocos2d@@6B@; const cocos2d::CCTimer::`vftable' ; +0x33, 0x1800c2393\nmov     [rbx], rax                                                     ; +0x3a, 0x1800c239a\nxor     eax, eax                                                       ; +0x3d, 0x1800c239d\nmov     [rbx+38h], rax                                                 ; +0x3f, 0x1800c239f\nmov     dword ptr [rbx+40h], 0BF800000h                                ; +0x43, 0x1800c23a3\nmov     [rbx+44h], ax                                                  ; +0x4a, 0x1800c23aa\nmov     [rbx+48h], rax                                                 ; +0x4e, 0x1800c23ae\nmov     [rbx+50h], rax                                                 ; +0x52, 0x1800c23b2\nmov     [rbx+58h], rax                                                 ; +0x56, 0x1800c23b6\nmov     [rbx+60h], eax                                                 ; +0x5a, 0x1800c23ba\njmp     short loc_1800C23C2                                            ; +0x5d, 0x1800c23bd\nmov     rbx, rax                                                       ; +0x5f, 0x1800c23bf\nmov     [rbx+60h], edi                                                 ; +0x62, 0x1800c23c2\nmov     dword ptr [rbx+40h], 0BF800000h                                ; +0x65, 0x1800c23c5\nmovss   dword ptr [rbx+54h], xmm6                                      ; +0x6c, 0x1800c23cc\nmov     rcx, rbx; this                                                 ; +0x71, 0x1800c23d1\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x74, 0x1800c23d4\nmov     rax, rbx                                                       ; +0x79, 0x1800c23d9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7c, 0x1800c23dc\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x81, 0x1800c23e1\nadd     rsp, 30h                                                       ; +0x86, 0x1800c23e6\npop     rdi                                                            ; +0x8a, 0x1800c23ea\nretn                                                                   ; +0x8b, 0x1800c23eb", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b9558"], "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"}