//
// sub_1001684D0 from 0x1001684d0 to 0x1001684fc (44 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x10040ba68
// > sub_100532F70 @ 0x100532f88
// > AutoBackupOptionsPopup::getValue @ 0x1005335a0
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x100533604
//
// 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 10:59:49 +0000
//
__int64 __fastcall sub_1001684D0(__int64 a1)
{
__int64 v1; // x0
int IntGameVariable; // w0
v1 = GameManager::sharedState(a1);
IntGameVariable = GameManager::getIntGameVariable(v1, "0236");
if ( IntGameVariable >= 1 )
return (unsigned int)(IntGameVariable - 1);
else
return 20;
}