//
// cocos2d::CCDisplayLinkDirector::mainLoop from 0x7caed2 to 0x7caf00 (46 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:30 +0000
//
_DWORD *__fastcall cocos2d::CCDisplayLinkDirector::mainLoop(_DWORD *this, int a2)
{
cocos2d::CCPoolManager *v2; // r0
int v3; // r0
if ( *((_BYTE *)this + 148) )
{
*((_BYTE *)this + 148) = 0;
return cocos2d::CCDirector::purgeDirector((cocos2d::CCTouchDispatcher **)this);
}
else if ( !*((_BYTE *)this + 306) )
{
v2 = (cocos2d::CCPoolManager *)cocos2d::CCDirector::drawScene(
(cocos2d::CCDirector *)this,
a2,
*((unsigned __int8 *)this + 148),
*((unsigned __int8 *)this + 306));
v3 = cocos2d::CCPoolManager::sharedPoolManager(v2);
return (_DWORD *)cocos2d::CCPoolManager::pop(v3);
}
return this;
}