//
// EditLevelLayer::scene from 0x1001fa450 to 0x1001fa591 (321 bytes)
//
// 7 xrefs:
// > EditLevelLayer::onClone @ 0x1001fe483
// > UploadPopup::onReturnToLevel @ 0x100282204
// > LevelInfoLayer::onClone @ 0x1002c48ee
// > GameManager::returnToLastScene @ 0x10038c035
// > LevelBrowserLayer::onNew @ 0x10048d20c
// > LevelBrowserLayer::createNewLevel @ 0x10049145a
// > GameLevelManager::gotoLevelPage @ 0x100538011
//
// 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 EditLevelLayer::scene(GJGameLevel *a1)
{
cocos2d::CCScene *v1; // rbx
char *v2; // r14
v1 = cocos2d::CCScene::create();
AppDelegate::get()->m_runningScene = v1;
v2 = (char *)operator new(0x208u);
cocos2d::CCLayer::CCLayer(v2);
*(_QWORD *)v2 = off_1008DA380;
*((_QWORD *)v2 + 40) = off_1008DA840;
*((_QWORD *)v2 + 41) = &off_1008DA8B0;
*((_QWORD *)v2 + 42) = off_1008DA8C8;
*((_QWORD *)v2 + 43) = off_1008DA8E8;
*((_QWORD *)v2 + 44) = off_1008DA908;
*((_QWORD *)v2 + 51) = off_1008DA930;
*((_QWORD *)v2 + 52) = &off_1008DA978;
*((_QWORD *)v2 + 53) = off_1008DA990;
*((_QWORD *)v2 + 54) = &off_1008DA9B0;
*((_QWORD *)v2 + 55) = &off_1008DA9C8;
*((_OWORD *)v2 + 28) = 0;
*((_OWORD *)v2 + 29) = 0;
v2[480] = 0;
*(_OWORD *)(v2 + 484) = 0;
*(_OWORD *)(v2 + 500) = 0;
*((_DWORD *)v2 + 129) = 0;
if ( EditLevelLayer::init((EditLevelLayer *)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;
}