//
// LevelBrowserLayer::create from 0x4a81d8 to 0x4a831a (322 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::onAddToList @ 0x499b22
// > LevelBrowserLayer::scene @ 0x4a8332
// > SetupSmartBlockLayer::onSelectTemplate @ 0x672794
// > SetupSmartTemplateLayer::onBack @ 0x674ae6
//
// 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:56 +0000
//
cocos2d::CCLayerColor *__fastcall LevelBrowserLayer::create(LevelBrowserLayer *this, GJSearchObject *a2)
{
cocos2d::CCLayerColor *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (cocos2d::CCLayerColor *)operator new(0x25Cu);
cocos2d::CCLayerColor::CCLayerColor(v3);
*(_DWORD *)v3 = &off_C98C88;
*((_DWORD *)v3 + 66) = &off_C98F44;
*((_DWORD *)v3 + 67) = &off_C98F7C;
*((_DWORD *)v3 + 68) = &off_C98F88;
*((_DWORD *)v3 + 69) = &off_C98F98;
*((_DWORD *)v3 + 70) = &off_C98FAC;
*((_DWORD *)v3 + 79) = &off_C98FC4;
*((_DWORD *)v3 + 83) = &off_C99004;
*((_DWORD *)v3 + 110) = &off_C99014;
*((_DWORD *)v3 + 111) = &off_C99030;
*((_DWORD *)v3 + 112) = &off_C9903C;
*((_DWORD *)v3 + 113) = &off_C99048;
*((_DWORD *)v3 + 114) = &off_C99054;
*((_DWORD *)v3 + 115) = &off_C99080;
*((_BYTE *)v3 + 464) = 0;
*((_DWORD *)v3 + 117) = 0;
*((_DWORD *)v3 + 118) = 0;
*((_DWORD *)v3 + 119) = 0;
*((_DWORD *)v3 + 120) = 0;
*((_DWORD *)v3 + 121) = 0;
*((_DWORD *)v3 + 122) = 0;
*((_DWORD *)v3 + 123) = 0;
*((_DWORD *)v3 + 124) = 0;
*((_DWORD *)v3 + 125) = 0;
*((_DWORD *)v3 + 126) = 0;
*((_DWORD *)v3 + 127) = 0;
*((_DWORD *)v3 + 128) = 0;
*((_DWORD *)v3 + 129) = 0;
*((_DWORD *)v3 + 130) = 0;
*((_DWORD *)v3 + 131) = 0;
*((_DWORD *)v3 + 132) = 0;
*((_DWORD *)v3 + 133) = 0;
*((_DWORD *)v3 + 134) = 0;
*((_DWORD *)v3 + 135) = 0;
*((_DWORD *)v3 + 136) = 0;
*((_BYTE *)v3 + 548) = 0;
*((_DWORD *)v3 + 138) = 0;
*((_DWORD *)v3 + 139) = 0;
*((_BYTE *)v3 + 560) = 0;
*((_DWORD *)v3 + 141) = 0;
*((_DWORD *)v3 + 142) = 0;
*((_DWORD *)v3 + 143) = 0;
*((_DWORD *)v3 + 144) = 0;
*((_BYTE *)v3 + 580) = 0;
*((_DWORD *)v3 + 146) = 0;
*((_DWORD *)v3 + 147) = 0;
*((_DWORD *)v3 + 148) = 0;
*((_DWORD *)v3 + 149) = 0;
*((_DWORD *)v3 + 150) = 0;
if ( LevelBrowserLayer::init(v3, this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}