//
// cocos2d::CCActionManager::resumeTarget from 0x1800390f0 to 0x1800391f6 (262 bytes)
//
// 4 xrefs:
// > cocos2d::CCNode::onEnter @ 0x18000432b
// > cocos2d::CCNode::resumeSchedulerAndActions @ 0x1800048f0
// > cocos2d::CCActionManager::resumeTargets @ 0x180039247
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 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:21:36 +0000
//
void __fastcall cocos2d::CCActionManager::resumeTarget(cocos2d::CCActionManager *this, struct cocos2d::CCObject *a2)
{
__int64 v2; // r10
int v3; // r9d
__int64 v4; // r11
int v5; // r8d
int v6; // edx
unsigned int v7; // ecx
int v8; // r8d
unsigned int v9; // edx
unsigned int v10; // ecx
int v11; // r8d
__int64 v12; // rax
__int64 v13; // rdx
__int64 v14; // rax
__int64 v15; // rcx
int v16; // [rsp+10h] [rbp+10h]
v2 = *((_QWORD *)this + 7);
v3 = (int)a2;
v16 = (int)a2;
if ( v2 )
{
v4 = *(_QWORD *)(v2 + 40);
v5 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 + 17973517) ^ 0x7F76D;
v6 = (v5 << 8) ^ (-1622558010 - v5);
v7 = (((((((BYTE1(v16) + ((BYTE2(v16) + (HIBYTE(v16) << 8)) << 8)) << 8) + (unsigned __int8)v3 + 17973517) ^ 0x7F76D) << 8)
^ (unsigned int)(-1622558010 - v5)) >> 13)
^ (-17973517 - v6 - v5);
v8 = (v7 >> 12) ^ (v5 - v7 - v6);
v9 = (v8 << 16) ^ (v6 - v7 - v8);
v10 = (v9 >> 5) ^ (v7 - v9 - v8);
v11 = (v10 >> 3) ^ (v8 - v10 - v9);
v12 = *(_QWORD *)(*(_QWORD *)v4
+ 16
* ((unsigned int)(*(_DWORD *)(v4 + 8) - 1)
& (((unsigned __int64)((v11 << 10) ^ (v9 - v11 - v10)) >> 15)
^ (v10 - ((v11 << 10) ^ (v9 - v11 - v10)) - v11))));
if ( v12 )
{
v13 = *(_QWORD *)(v4 + 32);
v14 = v12 - v13;
if ( v14 )
{
while ( *(_DWORD *)(v14 + 88) != 4 || **(_DWORD **)(v14 + 80) != v3 )
{
v15 = *(_QWORD *)(v14 + 72);
if ( v15 )
{
v14 = v15 - v13;
if ( v15 != v13 )
continue;
}
return;
}
*(_BYTE *)(v14 + 33) = 0;
}
}
}
}