{"type": "func", "start": 6443261168, "end": 6443261330, "name": "cocos2d::CCTimer::timerWithTarget", "pseudocode": "// \n// cocos2d::CCTimer::timerWithTarget from 0x1800c5cf0 to 0x1800c5d92 (162 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3828\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:27 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall cocos2d::CCTimer::timerWithTarget(__int64 a1, __int64 a2)\n{\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n\n  v4 = (cocos2d::CCObject *)sub_1800E4AC0(0x68u);\n  v5 = v4;\n  if ( v4 )\n  {\n    cocos2d::CCObject::CCObject(v4);\n    *(_QWORD *)v5 = &cocos2d::CCTimer::`vftable';\n    *((_QWORD *)v5 + 7) = 0;\n    *((_DWORD *)v5 + 16) = -1082130432;\n    *((_WORD *)v5 + 34) = 0;\n    *((_QWORD *)v5 + 9) = 0;\n    *((_QWORD *)v5 + 10) = 0;\n    *((_QWORD *)v5 + 11) = 0;\n    *((_DWORD *)v5 + 24) = 0;\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  *((_QWORD *)v5 + 7) = a1;\n  *((_QWORD *)v5 + 11) = a2;\n  *((_DWORD *)v5 + 16) = -1082130432;\n  *((_QWORD *)v5 + 10) = 0;\n  *((_WORD *)v5 + 34) = 1;\n  *((_DWORD *)v5 + 19) = -2;\n  cocos2d::CCObject::autorelease(v5);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCTimer::timerWithTarget from 0x1800c5cf0 to 0x1800c5d92 (162 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3828\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:27 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800c5cf0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800c5cf5\npush    rdi                                                            ; +0xa, 0x1800c5cfa\nsub     rsp, 20h                                                       ; +0xb, 0x1800c5cfb\nmov     rdi, rdx                                                       ; +0xf, 0x1800c5cff\nmov     rsi, rcx                                                       ; +0x12, 0x1800c5d02\nmov     ecx, 68h ; 'h'; Size                                           ; +0x15, 0x1800c5d05\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x1800c5d0a\nmov     rbx, rax                                                       ; +0x1f, 0x1800c5d0f\nmov     [rsp+28h+arg_0], rax                                           ; +0x22, 0x1800c5d12\ntest    rax, rax                                                       ; +0x27, 0x1800c5d17\njz      short loc_1800C5D50                                            ; +0x2a, 0x1800c5d1a\nmov     rcx, rax; this                                                 ; +0x2c, 0x1800c5d1c\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2f, 0x1800c5d1f\nlea     rax, ??_7CCTimer@cocos2d@@6B@; const cocos2d::CCTimer::`vftable' ; +0x34, 0x1800c5d24\nmov     [rbx], rax                                                     ; +0x3b, 0x1800c5d2b\nxor     eax, eax                                                       ; +0x3e, 0x1800c5d2e\nmov     [rbx+38h], rax                                                 ; +0x40, 0x1800c5d30\nmov     dword ptr [rbx+40h], 0BF800000h                                ; +0x44, 0x1800c5d34\nmov     [rbx+44h], ax                                                  ; +0x4b, 0x1800c5d3b\nmov     [rbx+48h], rax                                                 ; +0x4f, 0x1800c5d3f\nmov     [rbx+50h], rax                                                 ; +0x53, 0x1800c5d43\nmov     [rbx+58h], rax                                                 ; +0x57, 0x1800c5d47\nmov     [rbx+60h], eax                                                 ; +0x5b, 0x1800c5d4b\njmp     short loc_1800C5D53                                            ; +0x5e, 0x1800c5d4e\nmov     rbx, rax                                                       ; +0x60, 0x1800c5d50\nmov     [rbx+38h], rsi                                                 ; +0x63, 0x1800c5d53\nmov     [rbx+58h], rdi                                                 ; +0x67, 0x1800c5d57\nmov     dword ptr [rbx+40h], 0BF800000h                                ; +0x6b, 0x1800c5d5b\nmov     qword ptr [rbx+50h], 0                                         ; +0x72, 0x1800c5d62\nmov     word ptr [rbx+44h], 1                                          ; +0x7a, 0x1800c5d6a\nmov     dword ptr [rbx+4Ch], 0FFFFFFFEh                                ; +0x80, 0x1800c5d70\nmov     rcx, rbx; this                                                 ; +0x87, 0x1800c5d77\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x8a, 0x1800c5d7a\nmov     rax, rbx                                                       ; +0x8f, 0x1800c5d7f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x92, 0x1800c5d82\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x97, 0x1800c5d87\nadd     rsp, 20h                                                       ; +0x9c, 0x1800c5d8c\npop     rdi                                                            ; +0xa0, 0x1800c5d90\nretn                                                                   ; +0xa1, 0x1800c5d91", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c3828"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}