//
// LocalLevelManager::getMainLevelString from 0x9147a8 to 0x91487c (212 bytes)
//
// 5 xrefs:
// > LevelTools::getLevel @ 0x730548
// > LevelPage::playStep3 @ 0x8c85bc
// > GJWorldNode::playStep3 @ 0xaa5d3c
// > LevelAreaInnerLayer::playStep1 @ 0xb5b8b0
// > ??> @ 0x909a0
//
// 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 12:57:18 +0000
//
__int64 *__usercall LocalLevelManager::getMainLevelString@(
LocalLevelManager *this@,
unsigned int a2@,
__int64 *a3@)
{
_QWORD *v4; // x21
__int64 v5; // x0
__int64 v6; // x1
unsigned int v8; // [xsp+3Ch] [xbp+3Ch] BYREF
v4 = (_QWORD *)((char *)this + 376);
v8 = a2;
LocalLevelManager::tryLoadMainLevelString(this, a2);
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
v4,
(int *)&v8) )
{
v5 = std::unordered_map::operator[]((__int64)v4, (int *)&v8);
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
if ( (*(_BYTE *)v5 & 1) != 0 )
{
std::string::__init(a3, *(void **)(v5 + 16), *(_QWORD *)(v5 + 8));
}
else
{
v6 = *(_QWORD *)(v5 + 8);
*a3 = *(_QWORD *)v5;
a3[1] = v6;
a3[2] = *(_QWORD *)(v5 + 16);
}
return a3;
}
else
{
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
std::string::__init(a3, &byte_11B8890, 0);
return a3;
}
}