//
// EditorPauseLayer::saveLevel from 0x1004449d8 to 0x100444a14 (60 bytes)
//
// 4 xrefs:
// > EditorPauseLayer::onSaveAndPlay @ 0x1004443f0
// > EditorPauseLayer::onSaveAndExit @ 0x100444470
// > EditorPauseLayer::FLAlert_Clicked @ 0x100444bfc
// > EditorPauseLayer::FLAlert_Clicked @ 0x100444ca8
//
// 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 11:05:14 +0000
//
__int64 __fastcall EditorPauseLayer::saveLevel(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
v2 = LocalLevelManager::sharedState();
GManager::waitForSave(v2, 30.0);
result = *(_QWORD *)(a1 + 576);
if ( result )
return LevelEditorLayer::saveLevel(result);
return result;
}