//
// LevelEditorLayer::scene from 0x1000a9c40 to 0x1000a9cc2 (130 bytes)
//
// 3 xrefs:
// > GJGameLoadingLayer::loadLevel @ 0x100144e5c
// > EditLevelLayer::onEdit @ 0x1001de5ae
// > LevelInfoLayer::onEdit @ 0x1002acec1
//
// This function is hookable on this platform (idp: pc, 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 12:20:16 +0000
//
_DWORD *__fastcall LevelEditorLayer::scene(__int64 a1, __int64 a2)
{
_DWORD *v2; // rbx
void *v3; // r14
v2 = (_DWORD *)cocos2d::CCScene::create(a1);
*(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;
v3 = operator new(0x3B08u);
LevelEditorLayer::LevelEditorLayer(v3);
if ( (unsigned __int8)LevelEditorLayer::init(v3, a1, (unsigned __int8)a2) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 16LL))(v3);
v3 = nullptr;
}
(*(void (__fastcall **)(_DWORD *, void *))(*(_QWORD *)v2 + 456LL))(v2, v3);
v2[7] = 6;
return v2;
}