//
// sub_1002E1BC4 from 0x1002e1bc4 to 0x1002e1cb0 (236 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x1002e1388
//
// This function is hookable on this platform (idp: arm, 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:02:48 +0000
//
void __fastcall sub_1002E1BC4(__int64 a1)
{
__int64 v2; // x0
char *v3; // x20
const std::string::value_type *Key; // x0
char *v5; // x21
__int64 v6; // x0
__int64 v7; // x0
std::string __str; // [xsp+8h] [xbp-38h] BYREF
*(_QWORD *)(GameLevelManager::sharedState() + 1224) = a1 + 544;
v2 = *(_QWORD *)(a1 + 648);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), 1);
LevelBrowserLayer::setupLevelBrowser(a1, 0);
v3 = GJSearchObject::create_2(0);
GameToolbox::intToString(*(unsigned int *)(*(_QWORD *)(a1 + 912) + 344LL), &__str);
std::string::operator=((std::string *)(v3 + 320), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
*((_DWORD *)v3 + 108) = 1;
Key = (const std::string::value_type *)GJSearchObject::getKey((__int64)v3);
v5 = (char *)(a1 + 920);
std::string::assign((std::string *)(a1 + 920), Key);
v6 = GameLevelManager::sharedState();
if ( *(char *)(a1 + 943) < 0 )
v5 = *(char **)v5;
sub_1000ADE4C(v6, v5);
v7 = GameLevelManager::sharedState();
sub_1000B7618(v7, (__int64)v3);
}