//
// cocos2d::CCScheduler::pauseAllTargetsWithMinPriority from 0x1800c4520 to 0x1800c462e (270 bytes)
//
// 3 xrefs:
// > cocos2d::CCScheduler::pauseAllTargets @ 0x1800c4515
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c375c
//
// 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:26 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCSet *__fastcall cocos2d::CCScheduler::pauseAllTargetsWithMinPriority(
cocos2d::CCScheduler *this,
int a2)
{
cocos2d::CCSet *v4; // rax
cocos2d::CCObject *v5; // rdi
__int64 i; // rbx
__int64 v7; // rdx
__int64 v8; // rbx
__int64 v9; // rdx
__int64 v10; // rbx
__int64 v11; // rdx
__int64 v12; // rbx
v4 = (cocos2d::CCSet *)sub_1800E4AC0(0x40u);
if ( v4 )
v5 = cocos2d::CCSet::CCSet(v4);
else
v5 = nullptr;
cocos2d::CCObject::autorelease(v5);
for ( i = *((_QWORD *)this + 12); i; i = *(_QWORD *)(i + 56) )
{
*(_BYTE *)(i + 33) = 1;
cocos2d::CCSet::addObject(v5, *(struct cocos2d::CCObject **)(i + 8));
}
if ( a2 >= 0 )
{
if ( a2 > 0 )
goto LABEL_15;
}
else
{
v7 = *((_QWORD *)this + 8);
if ( v7 )
{
do
{
v8 = *(_QWORD *)(v7 + 8);
if ( *(_DWORD *)(v7 + 24) >= a2 )
{
*(_BYTE *)(v7 + 28) = 1;
cocos2d::CCSet::addObject(v5, *(struct cocos2d::CCObject **)(v7 + 16));
}
v7 = v8;
}
while ( v8 );
}
}
v9 = *((_QWORD *)this + 9);
if ( v9 )
{
do
{
v10 = *(_QWORD *)(v9 + 8);
*(_BYTE *)(v9 + 28) = 1;
cocos2d::CCSet::addObject(v5, *(struct cocos2d::CCObject **)(v9 + 16));
v9 = v10;
}
while ( v10 );
}
LABEL_15:
v11 = *((_QWORD *)this + 10);
if ( v11 )
{
do
{
v12 = *(_QWORD *)(v11 + 8);
if ( *(_DWORD *)(v11 + 24) >= a2 )
{
*(_BYTE *)(v11 + 28) = 1;
cocos2d::CCSet::addObject(v5, *(struct cocos2d::CCObject **)(v11 + 16));
}
v11 = v12;
}
while ( v12 );
}
return v5;
}