//
// cocos2d::CCScheduler::unscheduleAllWithMinPriority from 0x1800c5fe0 to 0x1800c60c4 (228 bytes)
//
// 7 xrefs:
// > cocos2d::CCScheduler::~CCScheduler @ 0x1800c3c98
// > sub_1800C3CC0 @ 0x1800c3d2c
// > cocos2d::CCScheduler::unscheduleAll @ 0x1800c5e55
// > ??> @ 0x18014b580
// > ??> @ 0x18014b590
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3864
//
// 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:27 +0000
//
void __fastcall cocos2d::CCScheduler::unscheduleAllWithMinPriority(cocos2d::CCScheduler *this, int a2)
{
__int64 v3; // rdx
__int64 v5; // rbx
__int64 v6; // rdx
__int64 v7; // rbx
__int64 v8; // rdx
__int64 v9; // rbx
__int64 v10; // rdx
__int64 v11; // rbx
cocos2d::CCArray *v12; // rcx
v3 = *((_QWORD *)this + 12);
if ( v3 )
{
do
{
v5 = *(_QWORD *)(v3 + 56);
cocos2d::CCScheduler::unscheduleAllForTarget(this, *(struct cocos2d::CCObject **)(v3 + 8));
v3 = v5;
}
while ( v5 );
}
if ( a2 >= 0 )
{
if ( a2 > 0 )
goto LABEL_12;
}
else
{
v6 = *((_QWORD *)this + 8);
if ( v6 )
{
do
{
v7 = *(_QWORD *)(v6 + 8);
if ( *(_DWORD *)(v6 + 24) >= a2 )
cocos2d::CCScheduler::unscheduleUpdateForTarget(this, *(const struct cocos2d::CCObject **)(v6 + 16));
v6 = v7;
}
while ( v7 );
}
}
v8 = *((_QWORD *)this + 9);
if ( v8 )
{
do
{
v9 = *(_QWORD *)(v8 + 8);
cocos2d::CCScheduler::unscheduleUpdateForTarget(this, *(const struct cocos2d::CCObject **)(v8 + 16));
v8 = v9;
}
while ( v9 );
}
LABEL_12:
v10 = *((_QWORD *)this + 10);
if ( v10 )
{
do
{
v11 = *(_QWORD *)(v10 + 8);
if ( *(_DWORD *)(v10 + 24) >= a2 )
cocos2d::CCScheduler::unscheduleUpdateForTarget(this, *(const struct cocos2d::CCObject **)(v10 + 16));
v10 = v11;
}
while ( v11 );
}
v12 = *((cocos2d::CCArray **)this + 15);
if ( v12 )
cocos2d::CCArray::removeAllObjects(v12);
}