//
// cocos2d::CCScheduler::unscheduleUpdateForTarget from 0x100240118 to 0x100240244 (300 bytes)
//
// 5 xrefs:
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1002402a0
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1002402c4
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1002402f0
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1002404c4
// > cocos2d::CCNode::unscheduleUpdate @ 0x1002d957c
//
// 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:01:23 +0000
//
_DWORD *__fastcall cocos2d::CCScheduler::unscheduleUpdateForTarget(_DWORD *result, __int64 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
__int64 v14; // x1
if ( a2 )
{
v2 = *((_QWORD *)result + 11);
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 + 24);
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 + 72) == 4 && **(_DWORD **)(v13 + 64) == (_DWORD)a2 )
break;
v11 = *(_QWORD *)(v13 + 56);
if ( !v11 )
return result;
}
v14 = *(_QWORD *)(v13 + 8);
if ( *((_BYTE *)result + 113) == 1 )
*(_BYTE *)(v14 + 29) = 1;
else
return cocos2d::CCScheduler::removeUpdateFromHash(result, v14);
}
}
}
return result;
}