//
// cocos2d::CCDisplayLinkDirector::mainLoop from 0xd4a2d0 to 0xd4a30c (60 bytes)
//
// 2 xrefs:
// > ??> @ 0xea688
// > ??> @ 0x15168f8
//
// This function is hookable on this platform (idp: arm, 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 13:07:37 +0000
//
_DWORD *__fastcall cocos2d::CCDisplayLinkDirector::mainLoop(_DWORD *this)
{
cocos2d::CCPoolManager *v1; // x0
cocos2d::CCPoolManager *v2; // x0
if ( *((_BYTE *)this + 184) )
{
*((_BYTE *)this + 184) = 0;
return cocos2d::CCDirector::purgeDirector((cocos2d::CCTouchDispatcher **)this);
}
else if ( !*((_BYTE *)this + 406) )
{
cocos2d::CCDirector::drawScene((cocos2d::CCDirector *)this);
v2 = cocos2d::CCPoolManager::sharedPoolManager(v1);
return (_DWORD *)cocos2d::CCPoolManager::pop((__int64)v2);
}
return this;
}