//
// cocos2d::CCScheduler::scheduleScriptFunc from 0x1800c5400 to 0x1800c5455 (85 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c37ec
//
// 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:26 +0000
//
__int64 __fastcall cocos2d::CCScheduler::scheduleScriptFunc(cocos2d::CCScheduler *this, int a2, float a3, char a4)
{
unsigned int *v5; // rdi
struct cocos2d::CCArray *v6; // rax
v5 = (unsigned int *)cocos2d::CCSchedulerScriptHandlerEntry::create(a2, a3, a4);
if ( !*((_QWORD *)this + 15) )
{
v6 = cocos2d::CCArray::createWithCapacity(0x14u);
*((_QWORD *)this + 15) = v6;
cocos2d::CCObject::retain(v6);
}
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 15), (struct cocos2d::CCObject *)v5);
return v5[15];
}