//
// cocos2d::CCScheduler::isTargetPaused from 0x7b5f38 to 0x7b6090 (344 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall cocos2d::CCScheduler::isTargetPaused(cocos2d::CCScheduler *this, cocos2d::CCObject *a2, int a3)
{
int v4; // r1
_DWORD *v5; // r6
int v6; // r0
unsigned int v7; // r2
unsigned int v8; // r3
int v9; // r0
unsigned int v10; // r2
unsigned int v11; // r3
int v12; // r0
int v13; // r5
int v14; // r3
int result; // r0
_DWORD *v16; // r5
int v17; // r1
unsigned int v18; // r2
unsigned int v19; // r3
int v20; // r1
unsigned int v21; // r2
unsigned int v22; // r3
int v23; // r1
int v24; // r4
_DWORD v25[2]; // [sp+4h] [bp-8h] BYREF
v25[1] = a3;
v25[0] = a2;
v4 = *((_DWORD *)this + 18);
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 20);
v6 = (LOBYTE(v25[0]) + 17973517 + (HIBYTE(v25[0]) << 24) + (BYTE2(v25[0]) << 16) + (BYTE1(v25[0]) << 8)) ^ 0x7F76D;
v7 = (-1622558010 - v6) ^ (v6 << 8);
v8 = (-17973517 - v6 - v7) ^ (v7 >> 13);
v9 = (v6 - v7 - v8) ^ (v8 >> 12);
v10 = (v7 - v8 - v9) ^ (v9 << 16);
v11 = (v8 - v9 - v10) ^ (v10 >> 5);
v12 = (v9 - v10 - v11) ^ (v11 >> 3);
v13 = *(_DWORD *)(*v5
+ 12
* (((v11 - v12 - ((v10 - v11 - v12) ^ (v12 << 10)))
^ (((v10 - v11 - v12) ^ (v12 << 10)) >> 15))
& (v5[1] - 1)));
if ( v13 )
v13 -= v5[5];
while ( v13 )
{
if ( *(_DWORD *)(v13 + 44) == 4 && !memcmp(*(const void **)(v13 + 40), v25, 4u) )
return *(unsigned __int8 *)(v13 + 17);
v14 = *(_DWORD *)(v13 + 36);
if ( !v14 )
break;
v13 = v14 - v5[5];
}
}
result = *((_DWORD *)this + 17);
if ( result )
{
v16 = *(_DWORD **)(result + 12);
v17 = (LOBYTE(v25[0]) + 17973517 + (HIBYTE(v25[0]) << 24) + (BYTE2(v25[0]) << 16) + (BYTE1(v25[0]) << 8)) ^ 0x7F76D;
v18 = (-1622558010 - v17) ^ (v17 << 8);
v19 = (-17973517 - v17 - v18) ^ (v18 >> 13);
v20 = (v17 - v18 - v19) ^ (v19 >> 12);
v21 = (v18 - v19 - v20) ^ (v20 << 16);
v22 = (v19 - v20 - v21) ^ (v21 >> 5);
v23 = (v20 - v21 - v22) ^ (v22 >> 3);
v24 = *(_DWORD *)(*v16
+ 12
* (((v22 - v23 - ((v21 - v22 - v23) ^ (v23 << 10)))
^ (((v21 - v22 - v23) ^ (v23 << 10)) >> 15))
& (v16[1] - 1)));
if ( v24 )
v24 -= v16[5];
while ( 1 )
{
if ( !v24 )
return 0;
if ( *(_DWORD *)(v24 + 36) == 4 && !memcmp(*(const void **)(v24 + 32), v25, 4u) )
break;
result = *(_DWORD *)(v24 + 28);
if ( !result )
return result;
v24 = result - v16[5];
}
return *(unsigned __int8 *)(*(_DWORD *)(v24 + 4) + 16);
}
return result;
}