//
// cocos2d::CCScheduler::unscheduleAllWithMinPriority from 0x7b5b64 to 0x7b5bd6 (114 bytes)
//
// 1 xrefs:
// > cocos2d::CCScheduler::unscheduleAll @ 0x7b5bda
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:11 +0000
//
cocos2d::CCArray *__fastcall cocos2d::CCScheduler::unscheduleAllWithMinPriority(
cocos2d::CCScheduler *this,
int a2,
int a3)
{
int i; // r3
int v6; // r6
int j; // r3
int k; // r3
int v9; // r6
int v10; // r6
int m; // r3
int v12; // r2
int v13; // r6
cocos2d::CCArray *result; // r0
for ( i = *((_DWORD *)this + 18); i; i = v6 )
{
v6 = *(_DWORD *)(i + 28);
cocos2d::CCScheduler::unscheduleAllForTarget((int)this, *(cocos2d::CCObject **)(i + 4), a3);
}
if ( a2 < 0 )
{
for ( j = *((_DWORD *)this + 14); j; j = v9 )
{
a3 = *(_DWORD *)(j + 12);
v9 = *(_DWORD *)(j + 4);
if ( a3 >= a2 )
cocos2d::CCScheduler::unscheduleUpdateForTarget((int)this, *(const cocos2d::CCObject **)(j + 8), a3);
}
goto LABEL_7;
}
if ( !a2 )
{
LABEL_7:
for ( k = *((_DWORD *)this + 15); k; k = v10 )
{
v10 = *(_DWORD *)(k + 4);
cocos2d::CCScheduler::unscheduleUpdateForTarget((int)this, *(const cocos2d::CCObject **)(k + 8), a3);
}
}
for ( m = *((_DWORD *)this + 16); m; m = v13 )
{
v12 = *(_DWORD *)(m + 12);
v13 = *(_DWORD *)(m + 4);
if ( v12 >= a2 )
cocos2d::CCScheduler::unscheduleUpdateForTarget((int)this, *(const cocos2d::CCObject **)(m + 8), v12);
}
result = *((cocos2d::CCArray **)this + 21);
if ( result )
return (cocos2d::CCArray *)cocos2d::CCArray::removeAllObjects(result);
return result;
}