//
// cocos2d::CCScheduler::unscheduleUpdateForTarget from 0x1800c6320 to 0x1800c6475 (341 bytes)
//
// 11 xrefs:
// > cocos2d::CCNode::scheduleUpdateWithPriorityLua @ 0x180004a91
// > cocos2d::CCNode::unscheduleUpdate @ 0x180005593
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c5fce
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c6045
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c606b
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1800c6091
// > ??> @ 0x18014b510
// > ??> @ 0x18014b524
// > ??> @ 0x18014b534
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c38dc
//
// 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:22:27 +0000
//
void __fastcall cocos2d::CCScheduler::unscheduleUpdateForTarget(
cocos2d::CCScheduler *this,
const struct cocos2d::CCObject *a2)
{
int v2; // r10d
__int64 v3; // rbx
__int64 v5; // r8
int v6; // r9d
int v7; // edx
unsigned int v8; // ecx
int v9; // r9d
unsigned int v10; // edx
unsigned int v11; // ecx
int v12; // r9d
__int64 v13; // rax
__int64 v14; // rdx
__int64 v15; // rax
__int64 v16; // rcx
__int64 v17; // rdx
int v18; // [rsp+38h] [rbp+10h]
if ( a2 )
{
v18 = (int)a2;
v2 = (int)a2;
v3 = *((_QWORD *)this + 11);
if ( v3 )
{
v5 = *(_QWORD *)(v3 + 24);
v6 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 + 17973517) ^ 0x7F76D;
v7 = (v6 << 8) ^ (-1622558010 - v6);
v8 = (((((((BYTE1(v18) + ((BYTE2(v18) + (HIBYTE(v18) << 8)) << 8)) << 8) + (unsigned __int8)v2 + 17973517)
^ 0x7F76D) << 8)
^ (unsigned int)(-1622558010 - v6)) >> 13)
^ (-17973517 - v7 - v6);
v9 = (v8 >> 12) ^ (v6 - v8 - v7);
v10 = (v9 << 16) ^ (v7 - v8 - v9);
v11 = (v10 >> 5) ^ (v8 - v10 - v9);
v12 = (v11 >> 3) ^ (v9 - v11 - v10);
v13 = *(_QWORD *)(*(_QWORD *)v5
+ 16
* ((unsigned int)(*(_DWORD *)(v5 + 8) - 1)
& (((unsigned __int64)((v12 << 10) ^ (v10 - v12 - v11)) >> 15)
^ (v11 - ((v12 << 10) ^ (v10 - v12 - v11)) - v12))));
if ( v13 )
{
v14 = *(_QWORD *)(v5 + 32);
v15 = v13 - v14;
if ( v15 )
{
while ( *(_DWORD *)(v15 + 72) != 4 || **(_DWORD **)(v15 + 64) != v2 )
{
v16 = *(_QWORD *)(v15 + 56);
if ( v16 )
{
v15 = v16 - v14;
if ( v16 != v14 )
continue;
}
return;
}
v17 = *(_QWORD *)(v15 + 8);
if ( *((_BYTE *)this + 113) )
*(_BYTE *)(v17 + 29) = 1;
else
cocos2d::CCScheduler::removeUpdateFromHash(this, (struct cocos2d::_listEntry *)v17);
}
}
}
}
}