//
// cocos2d::CCScheduler::pauseTarget from 0x7b5dd4 to 0x7b5f28 (340 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::pauseSchedulerAndActions @ 0x7c4ecc
//
// 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::pauseTarget(int this, cocos2d::CCObject *a2, int a3)
{
int v3; // r4
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; // r5
int v13; // r3
int v14; // r1
_DWORD *v15; // r5
int v16; // r0
unsigned int v17; // r2
unsigned int v18; // r3
int v19; // r0
unsigned int v20; // r2
unsigned int v21; // r3
int v22; // r4
int v23; // r3
_DWORD v24[2]; // [sp+4h] [bp-8h] BYREF
v24[1] = a3;
v3 = this;
v24[0] = a2;
v4 = *(_DWORD *)(this + 72);
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 20);
v6 = (LOBYTE(v24[0]) + 17973517 + (HIBYTE(v24[0]) << 24) + (BYTE2(v24[0]) << 16) + (BYTE1(v24[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);
this = (v9 - v10 - v11) ^ (v11 >> 3);
v12 = *(_DWORD *)(*v5
+ 12
* (((v11 - this - ((v10 - v11 - this) ^ (this << 10)))
^ (((v10 - v11 - this) ^ (this << 10)) >> 15))
& (v5[1] - 1)));
if ( v12 )
v12 -= v5[5];
while ( v12 )
{
if ( *(_DWORD *)(v12 + 44) == 4 )
{
this = memcmp(*(const void **)(v12 + 40), v24, 4u);
if ( !this )
{
*(_BYTE *)(v12 + 17) = 1;
break;
}
}
v13 = *(_DWORD *)(v12 + 36);
if ( !v13 )
break;
v12 = v13 - v5[5];
}
}
v14 = *(_DWORD *)(v3 + 68);
if ( v14 )
{
v15 = *(_DWORD **)(v14 + 12);
v16 = (LOBYTE(v24[0]) + 17973517 + (HIBYTE(v24[0]) << 24) + (BYTE2(v24[0]) << 16) + (BYTE1(v24[0]) << 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);
this = (v19 - v20 - v21) ^ (v21 >> 3);
v22 = *(_DWORD *)(*v15
+ 12
* (((v21 - this - ((v20 - v21 - this) ^ (this << 10)))
^ (((v20 - v21 - this) ^ (this << 10)) >> 15))
& (v15[1] - 1)));
if ( v22 )
v22 -= v15[5];
while ( v22 )
{
if ( *(_DWORD *)(v22 + 36) == 4 )
{
this = memcmp(*(const void **)(v22 + 32), v24, 4u);
if ( !this )
{
*(_BYTE *)(*(_DWORD *)(v22 + 4) + 16) = 1;
return this;
}
}
v23 = *(_DWORD *)(v22 + 28);
if ( !v23 )
return this;
v22 = v23 - v15[5];
}
}
return this;
}