//
// cocos2d::CCNode::scheduleUpdateWithPriorityLua from 0x180004a70 to 0x180004ae5 (117 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7594
//
// 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:17 +0000
//
void __fastcall cocos2d::CCNode::scheduleUpdateWithPriorityLua(cocos2d::CCScheduler **this, int a2, int a3)
{
struct cocos2d::CCScriptEngineManager *v6; // rax
cocos2d::CCScheduler *v7; // rcx
bool v8; // r9
cocos2d::CCScheduler::unscheduleUpdateForTarget(*(this + 32), (const struct cocos2d::CCObject *)this);
if ( *((_DWORD *)this + 74) )
{
v6 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v6 + 24LL))(*(_QWORD *)v6, *((unsigned int *)this + 74));
}
v7 = *(this + 32);
v8 = *((_BYTE *)this + 272) == 0;
*((_DWORD *)this + 74) = a2;
cocos2d::CCScheduler::scheduleUpdateForTarget(v7, (struct cocos2d::CCObject *)this, a3, v8);
}