//
// cocos2d::CCScheduler::unscheduleScriptEntry from 0x1004378f0 to 0x100437938 (72 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::unscheduleScriptEntry(__int64 a1, int a2)
{
__int64 result; // rax
int v3; // r15d
result = sub_1007FEF90(*(_QWORD *)(a1 + 120));
v3 = result - 1;
while ( v3 >= 0 )
{
result = sub_1007FEFE0(*(_QWORD *)(a1 + 120), (unsigned int)v3--);
if ( *(_DWORD *)(result + 60) == a2 )
{
*(_BYTE *)(result + 73) = 1;
return result;
}
}
return result;
}