//
// sub_1004914F0 from 0x1004914f0 to 0x100491555 (101 bytes)
//
// 1 xrefs:
// > ??> @ 0x100942ce0
//
// 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
//
void __fastcall sub_1004914F0(__int64 a1, const std::string *a2, __int64 a3)
{
GameLevelManager *v3; // rax
GJLevelList *NewLevelList; // r15
if ( *(_DWORD *)(a3 + 664) == 5 )
{
v3 = GameLevelManager::sharedState();
NewLevelList = GameLevelManager::createNewLevelList(v3);
GameLevelManager::sharedState()->m_returnToLocalLevels = 1;
std::string::operator=((std::string *)&NewLevelList->m_listName, a2);
LevelBrowserLayer::loadPage((LevelBrowserLayer *)(a1 - 584), *(GJSearchObject **)(a1 + 80));
}
}