//
// cocos2d::CCScheduler::unscheduleUpdateForTarget from 0x100437500 to 0x100437614 (276 bytes)
//
// 6 xrefs:
// > cocos2d::CCNode::scheduleUpdateWithPriorityLua @ 0x1002606bc
// > cocos2d::CCNode::unscheduleUpdate @ 0x100260723
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x10043768b
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1004376d9
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1004376fd
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x100437896
//
// 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 12:30:24 +0000
//
void __fastcall cocos2d::CCScheduler::unscheduleUpdateForTarget(__int64 a1, __int64 a2)
{
__int64 v2; // rax
int v3; // r8d
unsigned int v4; // ecx
unsigned int v5; // edx
int v6; // esi
unsigned int v7; // r8d
unsigned int v8; // ecx
int v9; // edx
unsigned int v10; // esi
__int64 v11; // rdx
__int64 v12; // rax
__int64 v13; // rsi
int v14; // [rsp+0h] [rbp-8h]
v14 = a2;
if ( a2 )
{
v2 = *(_QWORD *)(a1 + 88);
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 = (v8 - (((v7 - v8 - v9) ^ (v9 << 10)) + v9)) ^ (((v7 - v8 - v9) ^ (v9 << 10)) >> 15);
v11 = *(_QWORD *)(v2 + 24);
v12 = *(_QWORD *)(*(_QWORD *)v11 + 16LL * (v10 & (*(_DWORD *)(v11 + 8) - 1)));
if ( v12 )
{
while ( *(_DWORD *)(v12 - *(_QWORD *)(v11 + 32) + 72) != 4
|| **(_DWORD **)(v12 - *(_QWORD *)(v11 + 32) + 64) != v14 )
{
v12 = *(_QWORD *)(v12 - *(_QWORD *)(v11 + 32) + 56);
if ( !v12 )
return;
}
v13 = *(_QWORD *)(v12 - *(_QWORD *)(v11 + 32) + 8);
if ( *(_BYTE *)(a1 + 113) == 1 )
*(_BYTE *)(v13 + 29) = 1;
else
cocos2d::CCScheduler::removeUpdateFromHash(a1, v13);
}
}
}
}