//
// cocos2d::CCSchedulerScriptHandlerEntry::create from 0x10031ba50 to 0x10031bafb (171 bytes)
//
// 1 xrefs:
// > cocos2d::CCScheduler::scheduleScriptFunc @ 0x1004434be
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCSchedulerScriptHandlerEntry *__fastcall cocos2d::CCSchedulerScriptHandlerEntry::create(
int a1,
float a2,
bool a3)
{
cocos2d::CCSchedulerScriptHandlerEntry *v3; // rbx
cocos2d::CCTimer *v4; // r15
v3 = (cocos2d::CCSchedulerScriptHandlerEntry *)operator new(0x50u);
cocos2d::CCObject::CCObject(v3);
v3->m_nHandler = a1;
v3->m_nEntryId = ++cocos2d::CCScriptHandlerEntry::CCScriptHandlerEntry(int)::newEntryId;
v3->__vftable = (cocos2d::CCSchedulerScriptHandlerEntry_vtbl *)off_100911D80;
v3[1].__vftable = nullptr;
LOWORD(v3[1].m_uID) = 0;
v4 = (cocos2d::CCTimer *)operator new(0x70u);
cocos2d::CCTimer::CCTimer(v4);
v3[1].__vftable = (cocos2d::CCSchedulerScriptHandlerEntry_vtbl *)v4;
cocos2d::CCTimer::initWithScriptHandler(v4, v3->m_nHandler, a2);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3[1].__vftable);
cocos2d::CCObject::retain((cocos2d::CCObject *)v3[1].__vftable);
LOBYTE(v3[1].m_uID) = a3;
cocos2d::CCObject::autorelease(v3);
return v3;
}