//
// LevelBrowserLayer::create from 0x1004804a0 to 0x10048066f (463 bytes)
//
// 14 xrefs:
// > LevelInfoLayer::onAddToList @ 0x1002af39d
// > LevelBrowserLayer::scene @ 0x10048047e
// > LevelBrowserLayer::onMyOnlineLevels @ 0x100483218
// > LevelBrowserLayer::onLocalMode @ 0x1004833c3
// > LevelBrowserLayer::onSavedMode @ 0x1004836a3
// > sub_1004836E0 @ 0x1004837a3
// > sub_100483800 @ 0x1004838c3
// > LevelBrowserLayer::FLAlert_Clicked @ 0x10048840d
// > SetupSmartBlockLayer::onSelectTemplate @ 0x1004e17d8
// > SetupSmartTemplateLayer::onBack @ 0x1004e2e1d
// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e3285
// > sub_1004E32A0 @ 0x1004e32f9
// > SetupSmartTemplateLayer::keyBackClicked @ 0x1004e354d
// > sub_1004E3560 @ 0x1004e3584
//
// 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:30:40 +0000
//
char *__fastcall LevelBrowserLayer::create(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x348u);
cocos2d::CCLayerColor::CCLayerColor(v1);
*(_QWORD *)v1 = off_100B4C830;
*((_QWORD *)v1 + 40) = off_100B4CDA8;
*((_QWORD *)v1 + 41) = &off_100B4CE18;
*((_QWORD *)v1 + 42) = off_100B4CE30;
*((_QWORD *)v1 + 43) = off_100B4CE50;
*((_QWORD *)v1 + 44) = off_100B4CE78;
*((_QWORD *)v1 + 51) = off_100B4CEA8;
*((_QWORD *)v1 + 54) = off_100B4CF28;
*((_QWORD *)v1 + 68) = off_100B4CF48;
*((_QWORD *)v1 + 69) = &off_100B4CF80;
*((_QWORD *)v1 + 70) = &off_100B4CF98;
*((_QWORD *)v1 + 71) = &off_100B4CFB0;
*((_QWORD *)v1 + 72) = off_100B4CFC8;
*((_QWORD *)v1 + 73) = &off_100B4D020;
v1[592] = 0;
*((_QWORD *)v1 + 92) = 0;
*((_DWORD *)v1 + 186) = 0;
v1[748] = 0;
*((_QWORD *)v1 + 94) = 0;
*((_DWORD *)v1 + 190) = 0;
v1[764] = 0;
*((_DWORD *)v1 + 192) = 0;
*(_QWORD *)(v1 + 772) = 0;
*((_QWORD *)v1 + 98) = 0;
v1[792] = 0;
*(_OWORD *)(v1 + 712) = 0;
*(_OWORD *)(v1 + 696) = 0;
*(_OWORD *)(v1 + 680) = 0;
*(_OWORD *)(v1 + 664) = 0;
*(_OWORD *)(v1 + 648) = 0;
*(_OWORD *)(v1 + 632) = 0;
*(_OWORD *)(v1 + 616) = 0;
*(_OWORD *)(v1 + 600) = 0;
*((_DWORD *)v1 + 182) = 0;
*((_OWORD *)v1 + 50) = 0;
*((_OWORD *)v1 + 51) = 0;
*((_QWORD *)v1 + 104) = 0;
if ( (unsigned __int8)LevelBrowserLayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}