//
// EditLevelLayer::create from 0x1001dcb70 to 0x1001dccb7 (327 bytes)
//
// 2 xrefs:
// > EditLevelLayer::scene @ 0x1001dcb4e
// > EditLevelLayer::onClone @ 0x1001e103d
//
// 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:26:26 +0000
//
char *__fastcall EditLevelLayer::create(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x248u);
cocos2d::CCLayer::CCLayer(v1);
*(_QWORD *)v1 = off_100ADE4E0;
*((_QWORD *)v1 + 40) = off_100ADE9C0;
*((_QWORD *)v1 + 41) = &off_100ADEA30;
*((_QWORD *)v1 + 42) = off_100ADEA48;
*((_QWORD *)v1 + 43) = off_100ADEA68;
*((_QWORD *)v1 + 44) = off_100ADEA90;
*((_QWORD *)v1 + 51) = off_100ADEAC0;
*((_QWORD *)v1 + 52) = &off_100ADEB08;
*((_QWORD *)v1 + 53) = off_100ADEB20;
*((_QWORD *)v1 + 54) = &off_100ADEB40;
*((_QWORD *)v1 + 55) = &off_100ADEB58;
*((_QWORD *)v1 + 56) = off_100ADEB70;
*((_QWORD *)v1 + 57) = off_100ADEB98;
*((_OWORD *)v1 + 29) = 0;
*((_OWORD *)v1 + 30) = 0;
v1[496] = 0;
*(_OWORD *)(v1 + 500) = 0;
*(_OWORD *)(v1 + 516) = 0;
*(_QWORD *)(v1 + 529) = 0;
*((_OWORD *)v1 + 35) = 0;
*((_OWORD *)v1 + 34) = 0;
*((_QWORD *)v1 + 72) = 0;
if ( (unsigned __int8)EditLevelLayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}