//
// cocos2d::CCScheduler::scheduleScriptFunc from 0xd2494c to 0xd249b8 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x56770
//
// This function is hookable on this platform (idp: arm, 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 13:07:13 +0000
//
__int64 __fastcall cocos2d::CCScheduler::scheduleScriptFunc(
cocos2d::CCScheduler *this,
cocos2d::CCSchedulerScriptHandlerEntry *a2,
float a3,
int a4)
{
unsigned int v5; // w1
unsigned int *v6; // x19
cocos2d::CCArray *v7; // x0
cocos2d::CCObject *v9; // x0
v6 = (unsigned int *)cocos2d::CCSchedulerScriptHandlerEntry::create(
(cocos2d::CCSchedulerScriptHandlerEntry *)(unsigned int)a2,
a4,
a3,
a4);
v7 = *((cocos2d::CCArray **)this + 15);
if ( v7 )
{
cocos2d::CCArray::addObject(v7, (cocos2d::CCObject *)v6);
}
else
{
v9 = (cocos2d::CCObject *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)&dword_14, v5);
*((_QWORD *)this + 15) = v9;
cocos2d::CCObject::retain(v9);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 15), (cocos2d::CCObject *)v6);
}
return v6[15];
}