//
// GauntletLayer::create from 0x4db4d8 to 0x4db570 (152 bytes)
//
// 1 xrefs:
// > GauntletLayer::scene @ 0x4db586
//
// 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
//
GauntletLayer *GauntletLayer::create(GauntletType a1)
{
GauntletLayer *v2; // r4
GauntletLayer_vtbl *v3; // r3
GauntletLayer *v4; // r0
v2 = (GauntletLayer *)operator new(0x160u);
cocos2d::CCLayer::CCLayer(v2);
v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GauntletLayer_vtbl *)&off_A77970;
v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A77BB8;
v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A77BF0;
v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A77BFC;
v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A77C0C;
v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A77C1C;
v2->LevelManagerDelegate::__vftable = (LevelManagerDelegate_vtbl *)&off_A77C30;
v2->m_levels = nullptr;
v2->m_loadingCircle = nullptr;
v2->m_backgroundSprite = nullptr;
v2->m_unkPtr = nullptr;
v2->m_activeItemButton = nullptr;
v2->m_activeObjects = nullptr;
v2->m_tryAgainText = nullptr;
if ( GauntletLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~GauntletLayer_0(v4);
}
return v2;
}