//
// LevelEditorLayer::create from 0x1403ed850 to 0x1403ed8d3 (131 bytes)
//
// 4 xrefs:
// > EditLevelLayer::onEdit @ 0x14017b94e
// > GJGameLoadingLayer::loadLevel @ 0x140353335
// > LevelInfoLayer::onEdit @ 0x140422b79
// > ??> @ 0x1409252a4
//
// 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 11:31:46 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall LevelEditorLayer::create(__int64 a1, unsigned __int8 a2)
{
__int64 v4; // rax
cocos2d::CCObject *v5; // rbx
void *v7; // [rsp+40h] [rbp+18h]
v7 = operator new(0x3E08u);
v4 = LevelEditorLayer::LevelEditorLayer((__int64)v7);
v5 = (cocos2d::CCObject *)v4;
if ( v4 )
{
if ( (unsigned __int8)LevelEditorLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
return nullptr;
}
return v5;
}