//
// cocos2d::CCNode::setScheduler from 0x180005040 to 0x180005094 (84 bytes)
//
// 87 xrefs:
// > ??> @ 0x1800eb710
// > ??> @ 0x1800ebd80
// > ??> @ 0x1800ec100
// > ??> @ 0x1800eca58
// > ??> @ 0x1800ecf68
// > ??> @ 0x1800f1780
// > ??> @ 0x1800f1c70
// > ??> @ 0x1800f2158
// > ??> @ 0x1800f2690
// > ??> @ 0x1800f2d08
// > ??> @ 0x1800f3340
// > ??> @ 0x1800f3820
// > ??> @ 0x1800f3d78
// > ??> @ 0x1800f4300
// > ??> @ 0x1800f48f8
// > ??> @ 0x1800f4dd8
// > ??> @ 0x1800f5170
// > ??> @ 0x1800f5500
// > ??> @ 0x1800f5898
// > ??> @ 0x1800f5c28
// > ??> @ 0x1800f5fb8
// > ??> @ 0x1800f6368
// > ??> @ 0x1800f6718
// > ??> @ 0x1800f6ac8
// > ??> @ 0x1800f6e78
// > ??> @ 0x1800f7228
// > ??> @ 0x1800f75d8
// > ??> @ 0x1800f7988
// > ??> @ 0x1800f7d38
// > ??> @ 0x1800f80d8
// > ??> @ 0x1800f8470
// > ??> @ 0x1800f8808
// > ??> @ 0x1800f8ba0
// > ??> @ 0x1800f8f38
// > ??> @ 0x1800f92d0
// > ??> @ 0x1800f9668
// > ??> @ 0x1800f9a00
// > ??> @ 0x1800f9d90
// > ??> @ 0x1800fa130
// > ??> @ 0x1800fa4d8
// > ??> @ 0x1800fa880
// > ??> @ 0x1800fac28
// > ??> @ 0x1800fafd0
// > ??> @ 0x1800fb378
// > ??> @ 0x1800fb738
// > ??> @ 0x1800fbad0
// > ??> @ 0x1800fbe70
// > ??> @ 0x1800fc210
// > ??> @ 0x1800fc5b0
// > ??> @ 0x1800fc950
// > ??> @ 0x1800fccf0
// > ??> @ 0x1800fd090
// > ??> @ 0x1800fd430
// > ??> @ 0x1800fd9c8
// > ??> @ 0x1800fde00
// > ??> @ 0x1800fe258
// > ??> @ 0x1800fe6b0
// > ??> @ 0x1800feb08
// > ??> @ 0x1800fef78
// > ??> @ 0x1800ff3e8
// > ??> @ 0x1800ff848
// > ??> @ 0x1800ffc18
// > ??> @ 0x180100048
// > ??> @ 0x180100468
// > ??> @ 0x1801008a8
// > ??> @ 0x180100f30
// > ??> @ 0x1801015b0
// > ??> @ 0x180101c30
// > ??> @ 0x1801022b0
// > ??> @ 0x180102930
// > ??> @ 0x180102fb0
// > ??> @ 0x180103630
// > ??> @ 0x180103cb0
// > ??> @ 0x180104330
// > ??> @ 0x1801049b0
// > ??> @ 0x180105030
// > ??> @ 0x180105700
// > ??> @ 0x180106388
// > ??> @ 0x18010a148
// > ??> @ 0x18010a648
// > ??> @ 0x18010bb90
// > ??> @ 0x18010bf70
// > ??> @ 0x18010c3d8
// > ??> @ 0x18010c838
// > ??> @ 0x18010d160
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b763c
//
// 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:21:18 +0000
//
void __fastcall cocos2d::CCNode::setScheduler(cocos2d::CCNode *this, struct cocos2d::CCScheduler *a2)
{
cocos2d::CCScheduler *v4; // rcx
cocos2d::CCObject *v5; // rcx
v4 = *((cocos2d::CCScheduler **)this + 32);
if ( a2 != v4 )
{
cocos2d::CCScheduler::unscheduleAllForTarget(v4, this);
if ( a2 )
cocos2d::CCObject::retain(a2);
v5 = *((cocos2d::CCObject **)this + 32);
if ( v5 )
cocos2d::CCObject::release(v5);
*((_QWORD *)this + 32) = a2;
}
}