//
// cocos2d::CCScheduler::isTargetPaused from 0x5af92c to 0x5afa84 (344 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool cocos2d::CCScheduler::isTargetPaused(cocos2d::CCScheduler *a1, cocos2d::CCObject *a2)
{
cocos2d::_hashSelectorEntry *m_pHashForTimers; // r1
_DWORD *v4; // r6
int v5; // r0
unsigned int v6; // r2
unsigned int v7; // r3
int v8; // r0
unsigned int v9; // r2
unsigned int v10; // r3
int v11; // r0
int v12; // r5
int v13; // r3
cocos2d::_hashUpdateEntry *m_pHashForUpdates; // r0
_DWORD *v15; // r5
int v16; // r1
unsigned int v17; // r2
unsigned int v18; // r3
int v19; // r1
unsigned int v20; // r2
unsigned int v21; // r3
int v22; // r1
char *v23; // r4
unsigned __int8 v25[8]; // [sp+4h] [bp-8h] BYREF
*(_DWORD *)v25 = a2;
m_pHashForTimers = a1->m_pHashForTimers;
if ( m_pHashForTimers )
{
v4 = *((_DWORD **)m_pHashForTimers + 5);
v5 = (v25[0] + 17973517 + (v25[3] << 24) + (v25[2] << 16) + (v25[1] << 8)) ^ 0x7F76D;
v6 = (-1622558010 - v5) ^ (v5 << 8);
v7 = (-17973517 - v5 - v6) ^ (v6 >> 13);
v8 = (v5 - v6 - v7) ^ (v7 >> 12);
v9 = (v6 - v7 - v8) ^ (v8 << 16);
v10 = (v7 - v8 - v9) ^ (v9 >> 5);
v11 = (v8 - v9 - v10) ^ (v10 >> 3);
v12 = *(_DWORD *)(*v4
+ 12
* (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10)))
^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15))
& (v4[1] - 1)));
if ( v12 )
v12 -= v4[5];
while ( v12 )
{
if ( *(_DWORD *)(v12 + 44) == 4 && !memcmp(*(const void **)(v12 + 40), v25, 4u) )
{
LOBYTE(m_pHashForUpdates) = *(_BYTE *)(v12 + 17);
return (char)m_pHashForUpdates;
}
v13 = *(_DWORD *)(v12 + 36);
if ( !v13 )
break;
v12 = v13 - v4[5];
}
}
m_pHashForUpdates = a1->m_pHashForUpdates;
if ( m_pHashForUpdates )
{
v15 = *((_DWORD **)m_pHashForUpdates + 3);
v16 = (v25[0] + 17973517 + (v25[3] << 24) + (v25[2] << 16) + (v25[1] << 8)) ^ 0x7F76D;
v17 = (-1622558010 - v16) ^ (v16 << 8);
v18 = (-17973517 - v16 - v17) ^ (v17 >> 13);
v19 = (v16 - v17 - v18) ^ (v18 >> 12);
v20 = (v17 - v18 - v19) ^ (v19 << 16);
v21 = (v18 - v19 - v20) ^ (v20 >> 5);
v22 = (v19 - v20 - v21) ^ (v21 >> 3);
v23 = *(char **)(*v15
+ 12
* (((v21 - v22 - ((v20 - v21 - v22) ^ (v22 << 10)))
^ (((v20 - v21 - v22) ^ (v22 << 10)) >> 15))
& (v15[1] - 1)));
if ( v23 )
v23 -= v15[5];
while ( 1 )
{
if ( !v23 )
{
LOBYTE(m_pHashForUpdates) = 0;
return (char)m_pHashForUpdates;
}
if ( *((_DWORD *)v23 + 9) == 4 && !memcmp(*((const void **)v23 + 8), v25, 4u) )
break;
m_pHashForUpdates = *((cocos2d::_hashUpdateEntry **)v23 + 7);
if ( !m_pHashForUpdates )
return (char)m_pHashForUpdates;
v23 = (char *)m_pHashForUpdates - v15[5];
}
LOBYTE(m_pHashForUpdates) = *(_BYTE *)(*((_DWORD *)v23 + 1) + 16);
}
return (char)m_pHashForUpdates;
}