//
// cocos2d::CCActionManager::pauseTarget from 0x7bfcdc to 0x7bfd88 (172 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::pauseSchedulerAndActions @ 0x7c4eda
//
// 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:19 +0000
//
int __fastcall cocos2d::CCActionManager::pauseTarget(int this, cocos2d::CCObject *a2)
{
int v2; // r1
_DWORD *v3; // r5
int v4; // r0
unsigned int v5; // r2
unsigned int v6; // r3
int v7; // r0
unsigned int v8; // r2
unsigned int v9; // r3
int v10; // r4
int v11; // r3
cocos2d::CCObject *v12; // [sp+4h] [bp-4h] BYREF
v12 = a2;
v2 = *(_DWORD *)(this + 52);
if ( v2 )
{
v3 = *(_DWORD **)(v2 + 20);
v4 = ((unsigned __int8)v12 + 17973517 + (HIBYTE(v12) << 24) + (BYTE2(v12) << 16) + (BYTE1(v12) << 8)) ^ 0x7F76D;
v5 = (-1622558010 - v4) ^ (v4 << 8);
v6 = (-17973517 - v4 - v5) ^ (v5 >> 13);
v7 = (v4 - v5 - v6) ^ (v6 >> 12);
v8 = (v5 - v6 - v7) ^ (v7 << 16);
v9 = (v6 - v7 - v8) ^ (v8 >> 5);
this = (v7 - v8 - v9) ^ (v9 >> 3);
v10 = *(_DWORD *)(*v3
+ 12
* (((v9 - this - ((v8 - v9 - this) ^ (this << 10)))
^ (((v8 - v9 - this) ^ (this << 10)) >> 15))
& (v3[1] - 1)));
if ( v10 )
v10 -= v3[5];
while ( v10 )
{
if ( *(_DWORD *)(v10 + 44) == 4 )
{
this = memcmp(*(const void **)(v10 + 40), &v12, 4u);
if ( !this )
{
*(_BYTE *)(v10 + 17) = 1;
return this;
}
}
v11 = *(_DWORD *)(v10 + 36);
if ( !v11 )
return this;
v10 = v11 - v3[5];
}
}
return this;
}