//
// cocos2d::CCScheduler::scheduleScriptFunc from 0x1004434b0 to 0x1004434f9 (73 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 __fastcall cocos2d::CCScheduler::scheduleScriptFunc(
cocos2d::CCScheduler *a1,
unsigned int a2,
float a3,
bool a4)
{
cocos2d::CCSchedulerScriptHandlerEntry *v5; // rbx
cocos2d::CCArray *m_pScriptHandlerEntries; // rdi
cocos2d::CCArray *v7; // rax
v5 = cocos2d::CCSchedulerScriptHandlerEntry::create(a2, a3, a4);
m_pScriptHandlerEntries = a1->m_pScriptHandlerEntries;
if ( !m_pScriptHandlerEntries )
{
v7 = (cocos2d::CCArray *)sub_10071FD00(20);
a1->m_pScriptHandlerEntries = v7;
cocos2d::CCObject::retain(v7);
m_pScriptHandlerEntries = a1->m_pScriptHandlerEntries;
}
sub_10071FCD0(m_pScriptHandlerEntries, v5);
return v5->m_nEntryId;
}