//
// cocos2d::CCActionManager::pauseTarget from 0x100390b48 to 0x100390c44 (252 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::pauseSchedulerAndActions @ 0x1002d93b8
//
// 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 11:03:37 +0000
//
__int64 __fastcall cocos2d::CCActionManager::pauseTarget(__int64 result, int a2)
{
__int64 v2; // x8
int v3; // w9
unsigned int v4; // w10
unsigned int v5; // w11
int v6; // w9
unsigned int v7; // w10
unsigned int v8; // w11
int v9; // w9
__int64 v10; // x8
__int64 v11; // x9
__int64 v12; // x8
__int64 v13; // x9
v2 = *(_QWORD *)(result + 56);
if ( v2 )
{
v3 = (a2 + 17973517) ^ 0x7F76D;
v4 = (-1622558010 - v3) ^ (v3 << 8);
v5 = (-17973517 - v3 - v4) ^ (v4 >> 13);
v6 = (v3 - v4 - v5) ^ (v5 >> 12);
v7 = (v4 - v5 - v6) ^ (v6 << 16);
v8 = (v5 - v6 - v7) ^ (v7 >> 5);
v9 = (v6 - v7 - v8) ^ (v8 >> 3);
v10 = *(_QWORD *)(v2 + 40);
v11 = *(_QWORD *)(*(_QWORD *)v10
+ 16LL
* (((v8 - v9 - ((v7 - v8 - v9) ^ (v9 << 10)))
^ (((v7 - v8 - v9) ^ (v9 << 10)) >> 15))
& (*(_DWORD *)(v10 + 8) - 1)));
if ( v11 )
{
v12 = -*(_QWORD *)(v10 + 32);
while ( 1 )
{
v13 = v11 + v12;
if ( *(_DWORD *)(v13 + 88) == 4 && **(_DWORD **)(v13 + 80) == a2 )
break;
v11 = *(_QWORD *)(v13 + 72);
if ( !v11 )
return result;
}
*(_BYTE *)(v13 + 33) = 1;
}
}
return result;
}