//
// cocos2d::CCNode::scheduleUpdateWithPriorityLua from 0x180004990 to 0x180004a05 (117 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad570
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCNode::scheduleUpdateWithPriorityLua(cocos2d::CCNode *this, int a2, int a3)
{
struct cocos2d::CCScriptEngineManager *v6; // rax
cocos2d::CCScheduler *m_pScheduler; // rcx
bool v8; // r9
cocos2d::CCScheduler::unscheduleUpdateForTarget(this->m_pScheduler, this);
if ( this->m_nUpdateScriptHandler )
{
v6 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v6 + 24LL))(
*(_QWORD *)v6,
(unsigned int)this->m_nUpdateScriptHandler);
}
m_pScheduler = this->m_pScheduler;
v8 = !this->m_bRunning;
this->m_nUpdateScriptHandler = a2;
cocos2d::CCScheduler::scheduleUpdateForTarget(m_pScheduler, this, a3, v8);
}