//
// sub_1000A9AF0 from 0x1000a9af0 to 0x1000a9b48 (88 bytes)
//
// 4 xrefs:
// > EditorPauseLayer::onSaveAndExit @ 0x10027e3c4
// > EditorPauseLayer::onExitNoSave @ 0x10027e5de
// > EditorPauseLayer::onExitEditor @ 0x10027f422
// > EditorPauseLayer::FLAlert_Clicked @ 0x10027f4a4
//
// 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 12:20:16 +0000
//
std::chrono::duration>::rep __fastcall sub_1000A9AF0(double a1)
{
std::chrono::duration>::rep v1; // rax
std::chrono::steady_clock::time_point v2; // rbx
std::chrono::duration>::rep result; // rax
std::chrono::nanoseconds __ns; // [rsp+0h] [rbp-20h] BYREF
__ns.__rep_ = v1;
v2.__d_.__rep_ = std::chrono::steady_clock::now().__d_.__rep_;
do
{
result = *(unsigned __int8 *)(LocalLevelManager::sharedState(a1) + 601);
if ( (result & 1) == 0 )
break;
__ns.__rep_ = 1000000;
std::this_thread::sleep_for(&__ns);
result = std::chrono::steady_clock::now().__d_.__rep_ - v2.__d_.__rep_;
}
while ( result < 0x6FC23AC01LL );
return result;
}