//
// cocos2d::CCDirector::drawScene from 0xad7590 to 0xad7690 (256 bytes)
//
// 2 xrefs:
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0xad76b0
// > ??> @ 0x33e28
//
// 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::CCDirector::drawScene(cocos2d::CCDirector *a1)
{
cocos2d::CCEGLView *m_pobOpenGLView; // x0
cocos2d::CCScene *m_pNextScene; // x0
cocos2d::CCScene *m_pRunningScene; // x0
cocos2d::CCNode *m_pNotificationNode; // x0
cocos2d::CCEGLView *v6; // x0
cocos2d::CCDirector::calculateDeltaTime(a1);
if ( !a1->m_bPaused )
a1->m_pScheduler->update(a1->m_pScheduler, a1->m_fDeltaTime);
m_pobOpenGLView = a1->m_pobOpenGLView;
if ( m_pobOpenGLView )
m_pobOpenGLView->pollInputEvents(m_pobOpenGLView);
glClear();
m_pNextScene = a1->m_pNextScene;
if ( m_pNextScene )
cocos2d::CCDirector::setNextScene(a1);
kmGLPushMatrix(m_pNextScene);
m_pRunningScene = a1->m_pRunningScene;
if ( m_pRunningScene )
m_pRunningScene->visit(m_pRunningScene);
m_pNotificationNode = a1->m_pNotificationNode;
if ( m_pNotificationNode )
m_pNotificationNode->visit(m_pNotificationNode);
if ( a1->m_bDisplayStats )
cocos2d::CCDirector::showStats(a1);
if ( a1->m_bDisplayFPS )
cocos2d::CCDirector::showFPSLabel(a1);
kmGLPopMatrix();
v6 = a1->m_pobOpenGLView;
++a1->m_uTotalFrames;
if ( v6 )
v6->swapBuffers(v6);
if ( a1->m_bDisplayStats )
cocos2d::CCDirector::calculateMPF(a1);
}