//
// LocalLevelManager::sharedState from 0x14046ac00 to 0x14046ad90 (400 bytes)
//
// 65 xrefs:
// > AppDelegate::setupGLView @ 0x140097d95
// > AppDelegate::applicationDidFinishLaunching @ 0x140098320
// > AppDelegate::applicationDidFinishLaunching @ 0x140098325
// > AppDelegate::applicationWillTerminate @ 0x140098617
// > AppDelegate::trySaveGame @ 0x140098bc4
// > AppDelegate::trySaveGame @ 0x140098bcf
// > AppDelegate::trySaveGame @ 0x140098c6e
// > AutoBackupPopup::onRestore @ 0x1400cb995
// > sub_1400CCDF0 @ 0x1400cce8a
// > EditLevelLayer::FLAlert_Clicked @ 0x14017c3e5
// > EditLevelLayer::FLAlert_Clicked @ 0x14017c456
// > EditLevelLayer::onExportLevel @ 0x14017cc43
// > EditLevelLayer::verifyLevelName @ 0x14017d168
// > EditorPauseLayer::onSaveAndPlay @ 0x1401825b9
// > EditorPauseLayer::onExport @ 0x140182952
// > EditorPauseLayer::onExport @ 0x14018298f
// > EditorPauseLayer::onSaveAndExit @ 0x140182b54
// > EditorPauseLayer::FLAlert_Clicked @ 0x140182e4a
// > EditorUI::handleEditorAction @ 0x1401c462c
// > GameLevelManager::getLocalLevel @ 0x14021bf91
// > GameLevelManager::createNewLevel @ 0x14021c153
// > GameLevelManager::createNewLevel @ 0x14021c2b0
// > GameLevelManager::getNextLevelName @ 0x14021c3a3
// > GameLevelManager::deleteLevel @ 0x14021c89b
// > GameLevelManager::getLocalLevelList @ 0x14021cad1
// > GameLevelManager::createNewLevelList @ 0x14021cc55
// > GameLevelManager::createNewLevelList @ 0x14021d0af
// > GameLevelManager::deleteLevelList @ 0x14021d148
// > GameLevelManager::replayPlatformerSaveJournal @ 0x14022394e
// > GameLevelManager::levelControlInstances @ 0x14025a933
// > sub_140274000 @ 0x140274217
// > sub_1402742B0 @ 0x14027453d
// > GJAccountManager::backupAccount @ 0x14030778d
// > GJAccountManager::backupAccount @ 0x14030779a
// > GJAccountManager::onBackupAccountCompleted @ 0x140307e4f
// > GJAccountManager::onSyncAccountCompleted @ 0x140308c61
// > GJAccountManager::unlinkFromAccount @ 0x1403099e8
// > LevelAreaInnerLayer::playStep1 @ 0x1403e1771
// > LevelBrowserLayer::loadPage @ 0x1403e49a0
// > LevelBrowserLayer::loadPage @ 0x1403e4a31
// > LevelBrowserLayer::onExportSelected @ 0x1403e9790
// > LevelBrowserLayer::onImportLevels @ 0x1403e9afa
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed08a
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed0ca
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed0d9
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed0e5
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed132
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed148
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed163
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed1f8
// > LevelEditorLayer::saveLevel @ 0x1403ff524
// > LevelEditorLayer::saveLevel @ 0x1403ff530
// > LevelEditorLayer::canAutoSave @ 0x140408a02
// > LevelEditorLayer::doAutoSave @ 0x140409387
// > LevelEditorLayer::doAutoSave @ 0x1404093cc
// > LevelEditorLayer::doAutoSave @ 0x1404093f8
// > LevelEditorLayer::doAutoBackup @ 0x14040996c
// > sub_140409B40 @ 0x140409ca9
// > LevelEditorLayer::waitForAutoSave @ 0x140409d43
// > LevelEditorLayer::waitForAutoSave @ 0x140409d94
// > sub_1404176F0 @ 0x140417789
// > LevelPage::playStep3 @ 0x140447248
// > LevelTools::getLevel @ 0x140462751
// > MusicDownloadManager::clearUnusedSongs @ 0x140483a39
// > ??> @ 0x140928040
//
// This function is hookable on this platform (idp: pc, 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 11:32:36 +0000
//
// Hidden C++ exception states: #wind=2
__int64 LocalLevelManager::sharedState()
{
__int64 result; // rax
void (__fastcall *v1)(char *); // rdx
char *v2; // [rsp+30h] [rbp+8h]
result = qword_14090C068;
if ( !qword_14090C068 )
{
v2 = (char *)operator new(0x2B8u);
GManager::GManager((__int64)v2);
*(_QWORD *)v2 = &LocalLevelManager::`vftable';
*((_QWORD *)v2 + 45) = &LocalLevelManager::`vftable';
*((_QWORD *)v2 + 46) = 0;
*((_QWORD *)v2 + 47) = 0;
sub_1400669E0((__int64)(v2 + 384));
*((_QWORD *)v2 + 56) = 0;
*((_QWORD *)v2 + 57) = 0;
*((_QWORD *)v2 + 58) = 0;
*((_QWORD *)v2 + 59) = 0;
*((_QWORD *)v2 + 60) = 0;
*((_QWORD *)v2 + 61) = 0;
*(_OWORD *)(v2 + 520) = 0;
*(_OWORD *)(v2 + 536) = 0;
*(_OWORD *)(v2 + 552) = 0;
*(_OWORD *)(v2 + 504) = 0;
*((_DWORD *)v2 + 142) = -1;
*((_DWORD *)v2 + 124) = 2;
*((_DWORD *)v2 + 143) = 0;
*((_OWORD *)v2 + 36) = 0;
*((_QWORD *)v2 + 74) = 0;
*((_QWORD *)v2 + 75) = 15;
v2[576] = 0;
*((_OWORD *)v2 + 38) = 0;
*((_QWORD *)v2 + 78) = 0;
*((_QWORD *)v2 + 79) = 15;
v2[608] = 0;
*((_OWORD *)v2 + 40) = 0;
*((_QWORD *)v2 + 82) = 0;
*((_QWORD *)v2 + 83) = 15;
v2[640] = 0;
*((_WORD *)v2 + 336) = 0;
*(_QWORD *)(v2 + 676) = 0;
*(_QWORD *)(v2 + 684) = -1;
qword_14090C068 = (__int64)v2;
v1 = *(void (__fastcall **)(char *))(*(_QWORD *)v2 + 72LL);
if ( (char *)v1 == (char *)LocalLevelManager::init )
LocalLevelManager::init(v2);
else
v1(v2);
return qword_14090C068;
}
return result;
}