//
// GauntletLayer::onLevel from 0x91d558 to 0x91d59c (68 bytes)
//
// 3 xrefs:
// > ??> @ 0x35a90
// > GauntletLayer::setupGauntlet @ 0x91e684
// > ??> @ 0x1229a28
//
// 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 GauntletLayer::onLevel(GauntletLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCArray *m_levels; // x19
unsigned int v3; // w0
GameLevelManager *v4; // x0
GJGameLevel *v5; // [xsp+28h] [xbp+28h]
m_levels = a1->m_levels;
v3 = a2->getTag(a2);
v5 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(m_levels, v3);
v4 = GameLevelManager::sharedState();
GameLevelManager::gotoLevelPage(v4, v5);
}