//
// cocos2d::CCScheduler::unscheduleUpdateForTarget from 0x7b5988 to 0x7b5a4c (196 bytes)
//
// 5 xrefs:
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x7b5b30
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x7b5b94
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x7b5ba8
// > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x7b5bc0
// > cocos2d::CCNode::unscheduleUpdate @ 0x7c4ca2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:10 +0000
//
int __fastcall cocos2d::CCScheduler::unscheduleUpdateForTarget(int this, const cocos2d::CCObject *a2, int a3)
{
int v3; // r4
int v4; // r1
_DWORD *v5; // r6
int v6; // r0
unsigned int v7; // r2
unsigned int v8; // r3
int v9; // r0
unsigned int v10; // r2
unsigned int v11; // r3
int v12; // r5
int v13; // r3
_DWORD v14[2]; // [sp+4h] [bp-8h] BYREF
v14[1] = a3;
v3 = this;
v14[0] = a2;
if ( a2 )
{
v4 = *(_DWORD *)(this + 68);
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 12);
v6 = (LOBYTE(v14[0]) + 17973517 + (HIBYTE(v14[0]) << 24) + (BYTE2(v14[0]) << 16) + (BYTE1(v14[0]) << 8)) ^ 0x7F76D;
v7 = (-1622558010 - v6) ^ (v6 << 8);
v8 = (-17973517 - v6 - v7) ^ (v7 >> 13);
v9 = (v6 - v7 - v8) ^ (v8 >> 12);
v10 = (v7 - v8 - v9) ^ (v9 << 16);
v11 = (v8 - v9 - v10) ^ (v10 >> 5);
this = (v9 - v10 - v11) ^ (v11 >> 3);
v12 = *(_DWORD *)(*v5
+ 12
* (((v11 - this - ((v10 - v11 - this) ^ (this << 10)))
^ (((v10 - v11 - this) ^ (this << 10)) >> 15))
& (v5[1] - 1)));
if ( v12 )
v12 -= v5[5];
while ( v12 )
{
if ( *(_DWORD *)(v12 + 36) == 4 )
{
this = memcmp(*(const void **)(v12 + 32), v14, 4u);
if ( !this )
{
if ( !*(_BYTE *)(v3 + 81) )
return cocos2d::CCScheduler::removeUpdateFromHash(v3, *(unsigned __int8 **)(v12 + 4));
*(_BYTE *)(*(_DWORD *)(v12 + 4) + 17) = 1;
return this;
}
}
v13 = *(_DWORD *)(v12 + 28);
if ( !v13 )
return this;
v12 = v13 - v5[5];
}
}
}
return this;
}