//
// GauntletLayer::scene from 0x1003928b0 to 0x1003929a9 (249 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::onBack @ 0x1002c2317
// > GauntletSelectLayer::onPlay @ 0x100572a52
//
// 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
//
cocos2d::CCScene *__fastcall GauntletLayer::scene(GauntletType a1)
{
cocos2d::CCScene *v1; // rbx
char *v2; // r14
v1 = cocos2d::CCScene::create();
AppDelegate::get()->m_runningScene = v1;
v2 = (char *)operator new(0x1E0u);
cocos2d::CCLayer::CCLayer(v2);
*(_QWORD *)v2 = off_10091FC78;
*((_QWORD *)v2 + 40) = off_100920108;
*((_QWORD *)v2 + 41) = &off_100920178;
*((_QWORD *)v2 + 42) = off_100920190;
*((_QWORD *)v2 + 43) = off_1009201B0;
*((_QWORD *)v2 + 44) = off_1009201D0;
*((_QWORD *)v2 + 51) = off_1009201F8;
*((_OWORD *)v2 + 26) = 0;
*(_OWORD *)(v2 + 440) = 0;
*(_OWORD *)(v2 + 456) = 0;
*((_QWORD *)v2 + 59) = 0;
if ( GauntletLayer::init((GauntletLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
v2 = nullptr;
}
((void (__fastcall *)(cocos2d::CCScene *, char *))v1->addChild)(v1, v2);
return v1;
}