//
// EditLevelLayer::create from 0x4a1f90 to 0x4a207c (236 bytes)
//
// 1 xrefs:
// > EditLevelLayer::scene @ 0x4a2092
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:51 +0000
//
cocos2d::CCLayer *__fastcall EditLevelLayer::create(EditLevelLayer *this, GJGameLevel *a2)
{
cocos2d::CCLayer *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (cocos2d::CCLayer *)operator new(0x198u);
cocos2d::CCLayer::CCLayer(v3);
*(_DWORD *)v3 = &off_C97D10;
*((_DWORD *)v3 + 66) = &off_C97F80;
*((_DWORD *)v3 + 67) = &off_C97FB8;
*((_DWORD *)v3 + 68) = &off_C97FC4;
*((_DWORD *)v3 + 69) = &off_C97FD4;
*((_DWORD *)v3 + 70) = &off_C97FE8;
*((_DWORD *)v3 + 79) = &off_C98000;
*((_DWORD *)v3 + 80) = &off_C98024;
*((_DWORD *)v3 + 81) = &off_C98030;
*((_DWORD *)v3 + 82) = &off_C98040;
*((_DWORD *)v3 + 83) = &off_C9804C;
*((_DWORD *)v3 + 84) = &off_C98058;
*((_DWORD *)v3 + 85) = &off_C9806C;
*((_DWORD *)v3 + 86) = 0;
*((_DWORD *)v3 + 87) = 0;
*((_DWORD *)v3 + 88) = 0;
*((_DWORD *)v3 + 89) = 0;
*((_BYTE *)v3 + 360) = 0;
*((_DWORD *)v3 + 91) = 0;
*((_DWORD *)v3 + 92) = 0;
*((_DWORD *)v3 + 93) = 0;
*((_DWORD *)v3 + 94) = 0;
*((_DWORD *)v3 + 95) = 0;
*((_BYTE *)v3 + 384) = 0;
*((_DWORD *)v3 + 97) = 0;
*((_DWORD *)v3 + 98) = 0;
*((_DWORD *)v3 + 99) = 0;
*((_DWORD *)v3 + 100) = 0;
*((_DWORD *)v3 + 101) = 0;
if ( EditLevelLayer::init((cocos2d::CCMenu **)v3, this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}