//
// GauntletLayer::onLevel from 0xa77988 to 0xa779cc (68 bytes)
//
// 3 xrefs:
// > ??> @ 0x4ebb0
// > GauntletLayer::setupGauntlet @ 0xa78940
// > ??> @ 0x1541a38
//
// 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 13:00:26 +0000
//
__int64 __fastcall GauntletLayer::onLevel(GauntletLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray *v2; // x19
unsigned int v3; // w0
GameLevelManager *v4; // x0
GJGameLevel *v6; // [xsp+28h] [xbp+28h]
v2 = *((cocos2d::CCArray **)this + 52);
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v6 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(v2, v3);
v4 = (GameLevelManager *)GameLevelManager::sharedState(v6);
return GameLevelManager::gotoLevelPage(v4, v6);
}