//
// LocalLevelManager::getMainLevelString from 0x1001c8868 to 0x1001c8910 (168 bytes)
//
// 3 xrefs:
// > LevelTools::getLevel @ 0x1001a7d08
// > LevelAreaInnerLayer::playStep1 @ 0x100346d1c
// > LevelPage::playStep3 @ 0x100405a94
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *__usercall LocalLevelManager::getMainLevelString@(LocalLevelManager *a1@, int a2@, _QWORD *a3@)
{
_QWORD *result; // x0
__int128 v6; // q0
int v7; // [xsp+0h] [xbp-30h] BYREF
int *v8; // [xsp+8h] [xbp-28h] BYREF
v7 = a2;
LocalLevelManager::tryLoadMainLevelString(a1, a2);
if ( !sub_100018814(&a1->m_mainLevels.__table_.__bucket_list_.__ptr_.__value_, &v7) )
return sub_100009900(a3, "");
v8 = &v7;
result = sub_100140AE0((unsigned __int64)&a1->m_mainLevels, &v7, (__int64)&unk_100639F54, &v8);
if ( *((char *)result + 47) < 0 )
return sub_1000097D0(a3, (void *)result[3], result[4]);
v6 = *(_OWORD *)(result + 3);
a3[2] = result[5];
*(_OWORD *)a3 = v6;
return result;
}