//
// GJWorldNode::onLevel from 0x1003c4800 to 0x1003c487c (124 bytes)
//
// 1 xrefs:
// > GJWorldNode::init @ 0x1003c41bd
//
// 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 __fastcall GJWorldNode::onLevel(GJWorldNode *a1, cocos2d::CCObject *a2)
{
WorldSelectLayer *m_selectLayer; // rax
GameLevelManager *v3; // r15
int v4; // eax
GJGameLevel *MainLevel; // rax
WorldLevelPage *v6; // rax
m_selectLayer = a1->m_selectLayer;
if ( !m_selectLayer->m_enteringLevel && !m_selectLayer->m_buttonsLocked )
{
v3 = GameLevelManager::sharedState();
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
MainLevel = GameLevelManager::getMainLevel(v3, v4, 1);
a1->m_level = MainLevel;
v6 = WorldLevelPage::create(MainLevel, a1);
((void (__fastcall *)(WorldLevelPage *))v6->show)(v6);
}
}