//
// LocalLevelManager::getMainLevelString from 0x43366c to 0x4336c4 (88 bytes)
//
// 4 xrefs:
// > LevelTools::getLevel @ 0x32b524
// > LevelPage::playStep3 @ 0x40901c
// > GJWorldNode::playStep3 @ 0x4fc91c
// > LevelAreaInnerLayer::playStep1 @ 0x56bde4
//
// 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
//
LocalLevelManager *__fastcall LocalLevelManager::getMainLevelString(
LocalLevelManager *this,
LocalLevelManager *a2,
int a3,
unsigned int a4)
{
std::unordered_map *p_m_mainLevels; // r5
unsigned int v7[3]; // [sp+4h] [bp-Ch] BYREF
v7[1] = a3;
v7[2] = a4;
p_m_mainLevels = &a2->m_mainLevels;
v7[0] = a3;
LocalLevelManager::tryLoadMainLevelString(a2, a3);
if ( sub_4329A4(p_m_mainLevels, v7[0]) )
{
std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
p_m_mainLevels,
v7);
sub_775C20(this);
}
else
{
sub_776584((int)this, (char *)&unk_939830);
}
return this;
}