//
// cocos2d::CCDisplayLinkDirector::mainLoop from 0x1800beae0 to 0x1800beb21 (65 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801073e8
// > ??> @ 0x1801b9204
//
// 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 cocos2d::CCDisplayLinkDirector::mainLoop(cocos2d::CCDisplayLinkDirector *a1)
{
cocos2d::CCPoolManager *v1; // rax
if ( a1->m_bPurgeDirecotorInNextLoop )
{
a1->m_bPurgeDirecotorInNextLoop = 0;
cocos2d::CCDirector::purgeDirector(a1);
}
else if ( !LOBYTE(a1[1].cocos2d::CCDirector::cocos2d::CCObject::cocos2d::CCCopying::__vftable) )
{
cocos2d::CCDirector::drawScene(a1);
v1 = cocos2d::CCPoolManager::sharedPoolManager();
cocos2d::CCPoolManager::pop(v1);
}
}