//
// LevelEditorLayer::create from 0x1402d1d40 to 0x1402d1dc3 (131 bytes)
//
// 3 xrefs:
// > EditLevelLayer::onEdit @ 0x1400d83f8
// > GJGameLoadingLayer::loadLevel @ 0x140249045
// > ??> @ 0x1406d2f18
//
// 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
//
// Hidden C++ exception states: #wind=1
LevelEditorLayer *LevelEditorLayer::create(GJGameLevel *a1, bool a2)
{
LevelEditorLayer *v4; // rax
LevelEditorLayer *v5; // rbx
LevelEditorLayer *v7; // [rsp+40h] [rbp+18h]
v7 = (LevelEditorLayer *)operator new(0x3B60u);
v4 = LevelEditorLayer::LevelEditorLayer(v7);
v5 = v4;
if ( v4 )
{
if ( LevelEditorLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
((void (__fastcall *)(LevelEditorLayer *, __int64))v5->~LevelEditorLayer)(v5, 1);
return nullptr;
}
return v5;
}