//
// cocos2d::CCDisplayLinkDirector::mainLoop from 0x1800c22c0 to 0x1800c2301 (65 bytes)
//
// 2 xrefs:
// > ??> @ 0x18010db40
// > ??> @ 0x1801c34bc
//
// 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:22:25 +0000
//
void __fastcall cocos2d::CCDisplayLinkDirector::mainLoop(cocos2d::CCDirector *a1)
{
cocos2d::CCArray **v1; // rax
if ( *((_BYTE *)a1 + 184) )
{
*((_BYTE *)a1 + 184) = 0;
cocos2d::CCDirector::purgeDirector(a1);
}
else if ( !*((_BYTE *)a1 + 408) )
{
cocos2d::CCDirector::drawScene(a1);
v1 = (cocos2d::CCArray **)cocos2d::CCPoolManager::sharedPoolManager();
cocos2d::CCPoolManager::pop(v1);
}
}