//
// cocos2d::CCScheduler::resumeTarget from 0xd24a20 to 0xd24c84 (612 bytes)
//
// 3 xrefs:
// > cocos2d::CCScheduler::resumeTargets @ 0xd252e4
// > cocos2d::CCNode::resumeSchedulerAndActions @ 0xd3f230
// > ??> @ 0xa2c40
//
// 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:13 +0000
//
__int64 __fastcall cocos2d::CCScheduler::resumeTarget(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x20
__int64 v3; // x5
int v4; // w0
unsigned int v5; // w2
unsigned int v6; // w1
__int64 v7; // x21
int v8; // w0
unsigned int v9; // w2
unsigned int v10; // w1
int v11; // w0
__int64 v12; // x19
__int64 v13; // x5
int v14; // w0
unsigned int v15; // w2
unsigned int v16; // w1
__int64 v17; // x20
int v18; // w0
unsigned int v19; // w2
unsigned int v20; // w1
int v21; // w0
__int64 v22; // x19
cocos2d::CCObject *v23; // [xsp+38h] [xbp+38h] BYREF
v23 = a2;
v2 = this;
v3 = *(_QWORD *)(this + 96);
if ( v3 )
{
v4 = ((unsigned __int8)v23 + 17973517 + (BYTE3(v23) << 24) + (BYTE2(v23) << 16) + (BYTE1(v23) << 8)) ^ 0x7F76D;
v5 = (-1622558010 - v4) ^ (v4 << 8);
v6 = (-17973517 - v4 - v5) ^ (v5 >> 13);
v7 = *(_QWORD *)(v3 + 40);
v8 = (v4 - v5 - v6) ^ (v6 >> 12);
v9 = (v5 - v6 - v8) ^ (v8 << 16);
v10 = (v6 - v8 - v9) ^ (v9 >> 5);
v11 = (v8 - v9 - v10) ^ (v10 >> 3);
this = *(_QWORD *)(*(_QWORD *)v7
+ 16LL
* (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10)))
^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15))
& (*(_DWORD *)(v7 + 8) - 1)));
if ( this )
v12 = this - *(_QWORD *)(v7 + 32);
else
v12 = 0;
while ( v12 )
{
if ( *(_DWORD *)(v12 + 88) == 4 )
{
this = memcmp(*(const void **)(v12 + 80), &v23, 4u);
if ( !(_DWORD)this )
{
*(_BYTE *)(v12 + 33) = 0;
break;
}
}
this = *(_QWORD *)(v12 + 72);
if ( !this )
break;
v12 = this - *(_QWORD *)(v7 + 32);
}
}
v13 = *(_QWORD *)(v2 + 88);
if ( v13 )
{
v14 = ((unsigned __int8)v23 + 17973517 + (BYTE3(v23) << 24) + (BYTE2(v23) << 16) + (BYTE1(v23) << 8)) ^ 0x7F76D;
v15 = (-1622558010 - v14) ^ (v14 << 8);
v16 = (-17973517 - v14 - v15) ^ (v15 >> 13);
v17 = *(_QWORD *)(v13 + 24);
v18 = (v14 - v15 - v16) ^ (v16 >> 12);
v19 = (v15 - v16 - v18) ^ (v18 << 16);
v20 = (v16 - v18 - v19) ^ (v19 >> 5);
v21 = (v18 - v19 - v20) ^ (v20 >> 3);
this = *(_QWORD *)(*(_QWORD *)v17
+ 16LL
* (((v20 - v21 - ((v19 - v20 - v21) ^ (v21 << 10)))
^ (((v19 - v20 - v21) ^ (v21 << 10)) >> 15))
& (*(_DWORD *)(v17 + 8) - 1)));
if ( this )
v22 = this - *(_QWORD *)(v17 + 32);
else
v22 = 0;
while ( v22 )
{
if ( *(_DWORD *)(v22 + 72) == 4 && !memcmp(*(const void **)(v22 + 64), &v23, 4u) )
{
this = *(_QWORD *)(v22 + 8);
*(_BYTE *)(this + 28) = 0;
return this;
}
this = *(_QWORD *)(v22 + 56);
if ( !this )
return this;
v22 = this - *(_QWORD *)(v17 + 32);
}
}
return this;
}