//
// GauntletLayer::onLevel from 0x1401f7d90 to 0x1401f7dfc (108 bytes)
//
// 3 xrefs:
// > GauntletLayer::setupGauntlet @ 0x1401f719b
// > ??> @ 0x1406cc8f4
// > ??> @ 0x1406cc900
//
// 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
//
// Hidden C++ exception states: #wind=1
void GauntletLayer::onLevel(GauntletLayer *a1, cocos2d::CCObject *a2)
{
unsigned int v3; // eax
GJGameLevel *v4; // rbx
GameLevelManager *v5; // rcx
void *v6; // [rsp+30h] [rbp+8h]
v3 = a2->getTag(a2);
v4 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(a1->m_levels, v3);
v5 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v6 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v5 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::gotoLevelPage(v5, v4);
}