//
// cocos2d::CCScheduler::pauseAllTargetsWithMinPriority from 0x100437fe0 to 0x1004380f7 (279 bytes)
//
// 1 xrefs:
// > cocos2d::CCScheduler::pauseAllTargets @ 0x100437fda
//
// 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:25 +0000
//
void *__fastcall cocos2d::CCScheduler::pauseAllTargetsWithMinPriority(_QWORD *a1, int a2)
{
void *v3; // r14
__int64 i; // r12
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // r12
__int64 v8; // rsi
__int64 v9; // rax
__int64 v11; // r15
__int64 v12; // r12
v3 = operator new(0x40u);
cocos2d::CCSet::CCSet(v3);
cocos2d::CCObject::autorelease(v3);
for ( i = a1[12]; i; i = *(_QWORD *)(i + 56) )
{
*(_BYTE *)(i + 33) = 1;
cocos2d::CCSet::addObject(v3, *(_QWORD *)(i + 8));
}
if ( a2 >= 0 )
{
LABEL_4:
if ( a2 > 0 )
goto LABEL_9;
goto LABEL_7;
}
v5 = a1[8];
if ( v5 )
{
do
{
v12 = *(_QWORD *)(v5 + 8);
if ( *(_DWORD *)(v5 + 24) >= a2 )
{
*(_BYTE *)(v5 + 28) = 1;
cocos2d::CCSet::addObject(v3, *(_QWORD *)(v5 + 16));
}
v5 = v12;
}
while ( v12 );
goto LABEL_4;
}
LABEL_7:
v6 = a1[9];
if ( v6 )
{
do
{
v7 = *(_QWORD *)(v6 + 8);
v8 = *(_QWORD *)(v6 + 16);
*(_BYTE *)(v6 + 28) = 1;
cocos2d::CCSet::addObject(v3, v8);
v6 = v7;
}
while ( v7 );
}
LABEL_9:
v9 = a1[10];
if ( v9 )
{
do
{
v11 = *(_QWORD *)(v9 + 8);
if ( *(_DWORD *)(v9 + 24) >= a2 )
{
*(_BYTE *)(v9 + 28) = 1;
cocos2d::CCSet::addObject(v3, *(_QWORD *)(v9 + 16));
}
v9 = v11;
}
while ( v11 );
}
return v3;
}