//
// cocos2d::CCActionManager::pauseTarget from 0xd36c68 to 0xd36dac (324 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::pauseSchedulerAndActions @ 0xd3f360
// > ??> @ 0xf34d8
//
// 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:23 +0000
//
__int64 __fastcall cocos2d::CCActionManager::pauseTarget(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x5
int v3; // w0
unsigned int v4; // w2
unsigned int v5; // w1
__int64 v6; // x20
int v7; // w0
unsigned int v8; // w2
unsigned int v9; // w1
int v10; // w0
__int64 v11; // x19
cocos2d::CCObject *v12; // [xsp+38h] [xbp+38h] BYREF
v12 = a2;
v2 = *(_QWORD *)(this + 56);
if ( v2 )
{
v3 = ((unsigned __int8)v12 + 17973517 + (BYTE3(v12) << 24) + (BYTE2(v12) << 16) + (BYTE1(v12) << 8)) ^ 0x7F76D;
v4 = (-1622558010 - v3) ^ (v3 << 8);
v5 = (-17973517 - v3 - v4) ^ (v4 >> 13);
v6 = *(_QWORD *)(v2 + 40);
v7 = (v3 - v4 - v5) ^ (v5 >> 12);
v8 = (v4 - v5 - v7) ^ (v7 << 16);
v9 = (v5 - v7 - v8) ^ (v8 >> 5);
v10 = (v7 - v8 - v9) ^ (v9 >> 3);
this = *(_QWORD *)(*(_QWORD *)v6
+ 16LL
* (((v9 - v10 - ((v8 - v9 - v10) ^ (v10 << 10)))
^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15))
& (*(_DWORD *)(v6 + 8) - 1)));
if ( this )
v11 = this - *(_QWORD *)(v6 + 32);
else
v11 = 0;
while ( v11 )
{
if ( *(_DWORD *)(v11 + 88) == 4 && !memcmp(*(const void **)(v11 + 80), &v12, 4u) )
{
this = 1;
*(_BYTE *)(v11 + 33) = 1;
return this;
}
this = *(_QWORD *)(v11 + 72);
if ( !this )
return this;
v11 = this - *(_QWORD *)(v6 + 32);
}
}
return this;
}