//
// cocos2d::CCScheduler::isTargetPaused from 0xd24ef0 to 0xd25178 (648 bytes)
//
// 1 xrefs:
// > ??> @ 0x808c0
//
// This function is hookable on this platform (idp: arm, 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 13:07:13 +0000
//
__int64 __fastcall cocos2d::CCScheduler::isTargetPaused(cocos2d::CCScheduler *this, cocos2d::CCObject *a2)
{
__int64 v3; // x5
int v4; // w0
unsigned int v5; // w2
unsigned int v6; // w1
__int64 v7; // x21
int v8; // w0
unsigned int v9; // w2
unsigned int v10; // w1
int v11; // w0
__int64 v12; // x0
__int64 v13; // x19
__int64 v14; // x0
__int64 v15; // x3
int v16; // w0
unsigned int v17; // w2
unsigned int v18; // w1
__int64 v19; // x20
int v20; // w0
unsigned int v21; // w2
unsigned int v22; // w1
int v23; // w0
__int64 v24; // x0
__int64 v25; // x19
__int64 result; // x0
cocos2d::CCObject *v27; // [xsp+38h] [xbp+38h] BYREF
v27 = a2;
v3 = *((_QWORD *)this + 12);
if ( !v3 )
goto LABEL_8;
v4 = ((unsigned __int8)v27 + 17973517 + (BYTE3(v27) << 24) + (BYTE2(v27) << 16) + (BYTE1(v27) << 8)) ^ 0x7F76D;
v5 = (-1622558010 - v4) ^ (v4 << 8);
v6 = (-17973517 - v4 - v5) ^ (v5 >> 13);
v7 = *(_QWORD *)(v3 + 40);
v8 = (v4 - v5 - v6) ^ (v6 >> 12);
v9 = (v5 - v6 - v8) ^ (v8 << 16);
v10 = (v6 - v8 - v9) ^ (v9 >> 5);
v11 = (v8 - v9 - v10) ^ (v10 >> 3);
v12 = *(_QWORD *)(*(_QWORD *)v7
+ 16LL
* (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10)))
^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15))
& (*(_DWORD *)(v7 + 8) - 1)));
v13 = v12 ? v12 - *(_QWORD *)(v7 + 32) : 0LL;
if ( v13 )
{
while ( *(_DWORD *)(v13 + 88) != 4 || memcmp(*(const void **)(v13 + 80), &v27, 4u) )
{
v14 = *(_QWORD *)(v13 + 72);
if ( v14 )
{
v13 = v14 - *(_QWORD *)(v7 + 32);
if ( v13 )
continue;
}
goto LABEL_8;
}
return *(unsigned __int8 *)(v13 + 33);
}
else
{
LABEL_8:
v15 = *((_QWORD *)this + 11);
if ( !v15 )
return 0;
v16 = ((unsigned __int8)v27 + 17973517 + (BYTE3(v27) << 24) + (BYTE2(v27) << 16) + (BYTE1(v27) << 8)) ^ 0x7F76D;
v17 = (-1622558010 - v16) ^ (v16 << 8);
v18 = (-17973517 - v16 - v17) ^ (v17 >> 13);
v19 = *(_QWORD *)(v15 + 24);
v20 = (v16 - v17 - v18) ^ (v18 >> 12);
v21 = (v17 - v18 - v20) ^ (v20 << 16);
v22 = (v18 - v20 - v21) ^ (v21 >> 5);
v23 = (v20 - v21 - v22) ^ (v22 >> 3);
v24 = *(_QWORD *)(*(_QWORD *)v19
+ 16LL
* (((v22 - v23 - ((v21 - v22 - v23) ^ (v23 << 10)))
^ (((v21 - v22 - v23) ^ (v23 << 10)) >> 15))
& (*(_DWORD *)(v19 + 8) - 1)));
v25 = v24 ? v24 - *(_QWORD *)(v19 + 32) : 0LL;
if ( v25 )
{
while ( *(_DWORD *)(v25 + 72) != 4 || memcmp(*(const void **)(v25 + 64), &v27, 4u) )
{
result = *(_QWORD *)(v25 + 56);
if ( !result )
return result;
v25 = result - *(_QWORD *)(v19 + 32);
if ( !v25 )
return 0;
}
return *(unsigned __int8 *)(*(_QWORD *)(v25 + 8) + 28LL);
}
else
{
return 0;
}
}
}