//
// cocos2d::CCScheduler::scheduleScriptFunc from 0x1004378a0 to 0x1004378e9 (73 bytes)
//
// 0 xrefs:
//
// 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 12:30:24 +0000
//
__int64 __fastcall cocos2d::CCScheduler::scheduleScriptFunc(__int64 a1, int a2, char a3, float a4)
{
_DWORD *v5; // rbx
__int64 v6; // rdi
__int64 v7; // rax
v5 = cocos2d::CCSchedulerScriptHandlerEntry::create(a2, a3, a4);
v6 = *(_QWORD *)(a1 + 120);
if ( !v6 )
{
v7 = sub_1007FEC20(20);
*(_QWORD *)(a1 + 120) = v7;
cocos2d::CCObject::retain(v7);
v6 = *(_QWORD *)(a1 + 120);
}
sub_1007FEBF0(v6, v5);
return (unsigned int)v5[15];
}