//
// cocos2d::CCDisplayLinkDirector::mainLoop from 0x100207df8 to 0x100207e30 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f59a8
//
// 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 11:00:58 +0000
//
_DWORD *__fastcall cocos2d::CCDisplayLinkDirector::mainLoop(_DWORD *result)
{
float v1; // s0
__int64 v2; // x0
if ( *((_BYTE *)result + 184) == 1 )
{
*((_BYTE *)result + 184) = 0;
return cocos2d::CCDirector::purgeDirector(result);
}
else if ( (*((_BYTE *)result + 406) & 1) == 0 )
{
v1 = cocos2d::CCDirector::drawScene((__int64)result);
v2 = cocos2d::CCPoolManager::sharedPoolManager(v1);
return (_DWORD *)cocos2d::CCPoolManager::pop(v2);
}
return result;
}