//
// cocos2d::CCTimer::timerWithScriptHandler from 0x1800c5c60 to 0x1800c5cec (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c381c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:27 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTimer *__fastcall cocos2d::CCTimer::timerWithScriptHandler(int a1, float a2)
{
cocos2d::CCObject *v3; // rax
cocos2d::CCObject *v4; // rbx
v3 = (cocos2d::CCObject *)sub_1800E4AC0(0x68u);
v4 = v3;
if ( v3 )
{
cocos2d::CCObject::CCObject(v3);
*(_QWORD *)v4 = &cocos2d::CCTimer::`vftable';
*((_QWORD *)v4 + 7) = 0;
*((_DWORD *)v4 + 16) = -1082130432;
*((_WORD *)v4 + 34) = 0;
*((_QWORD *)v4 + 9) = 0;
*((_QWORD *)v4 + 10) = 0;
*((_QWORD *)v4 + 11) = 0;
*((_DWORD *)v4 + 24) = 0;
}
else
{
v4 = nullptr;
}
*((_DWORD *)v4 + 24) = a1;
*((_DWORD *)v4 + 16) = -1082130432;
*((float *)v4 + 21) = a2;
cocos2d::CCObject::autorelease(v4);
return v4;
}