//
// cocos2d::CCSchedulerScriptHandlerEntry::create from 0x1800ba2f0 to 0x1800ba3cb (219 bytes)
//
// 2 xrefs:
// > cocos2d::CCScheduler::scheduleScriptFunc @ 0x1800c5416
// > ??> @ 0x1801c2e8c
//
// 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:23 +0000
//
// Hidden C++ exception states: #wind=2
cocos2d::CCObject *__fastcall cocos2d::CCSchedulerScriptHandlerEntry::create(int a1, float a2, char a3)
{
cocos2d::CCObject *v5; // rax
cocos2d::CCObject *v6; // rbx
cocos2d::CCTimer *v7; // rdi
cocos2d::CCTimer *v8; // rax
v5 = (cocos2d::CCObject *)sub_1800E4AC0(0x50u);
v6 = v5;
if ( v5 )
{
cocos2d::CCObject::CCObject(v5);
*(_QWORD *)v6 = &cocos2d::CCScriptHandlerEntry::`vftable';
*((_DWORD *)v6 + 14) = a1;
*((_DWORD *)v6 + 15) = ++dword_1801B3B74;
*(_QWORD *)v6 = &cocos2d::CCSchedulerScriptHandlerEntry::`vftable';
v7 = nullptr;
*((_QWORD *)v6 + 8) = 0;
*((_WORD *)v6 + 36) = 0;
}
else
{
v7 = nullptr;
v6 = nullptr;
}
v8 = (cocos2d::CCTimer *)sub_1800E4AC0(0x68u);
if ( v8 )
v7 = (cocos2d::CCTimer *)cocos2d::CCTimer::CCTimer(v8);
*((_QWORD *)v6 + 8) = v7;
cocos2d::CCTimer::initWithScriptHandler(v7, *((_DWORD *)v6 + 14), a2);
cocos2d::CCObject::autorelease(*((cocos2d::CCObject **)v6 + 8));
cocos2d::CCObject::retain(*((cocos2d::CCObject **)v6 + 8));
*((_BYTE *)v6 + 72) = a3;
cocos2d::CCObject::autorelease(v6);
return v6;
}