//
// cocos2d::CCScheduler::scheduleScriptFunc from 0x5af60e to 0x5af63a (44 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned int cocos2d::CCScheduler::scheduleScriptFunc(cocos2d::CCScheduler *a1, unsigned int a2, float a3, bool a4)
{
unsigned int v5; // r1
cocos2d::CCSchedulerScriptHandlerEntry *v6; // r5
cocos2d::CCArray *v7; // r0
v6 = cocos2d::CCSchedulerScriptHandlerEntry::create(a2, a3, a4);
if ( !a1->m_pScriptHandlerEntries )
{
v7 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)&dword_14, v5);
a1->m_pScriptHandlerEntries = v7;
cocos2d::CCObject::retain(v7);
}
cocos2d::CCArray::addObject(a1->m_pScriptHandlerEntries, v6);
return v6->m_nEntryId;
}