//
// LocalLevelManager::getMainLevelString from 0x7ea590 to 0x7ea62c (156 bytes)
//
// 5 xrefs:
// > LevelTools::getLevel @ 0x601770
// > LevelPage::playStep3 @ 0x79b4dc
// > GJWorldNode::playStep3 @ 0x95e604
// > LevelAreaInnerLayer::playStep1 @ 0xa2d798
// > ??> @ 0x6aea8
//
// 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
//
__int64 *__usercall LocalLevelManager::getMainLevelString@(
__int64 *__return_ptr a1@,
LocalLevelManager *this@,
int a3@)
{
char **p_m_mainLevels; // x20
int v6; // [xsp+3Ch] [xbp+3Ch] BYREF
v6 = a3;
p_m_mainLevels = (char **)&this->m_mainLevels;
LocalLevelManager::tryLoadMainLevelString(this, a3);
if ( sub_7E8504(p_m_mainLevels, v6) )
{
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,
&v6);
sub_D18D28(a1);
}
else
{
sub_D153B8((int)a1, &byte_F288A0);
}
return a1;
}