//
// sub_1001684FC from 0x1001684fc to 0x100168534 (56 bytes)
//
// 1 xrefs:
// > AutoBackupOptionsPopup::valueDidChange @ 0x1005335c0
//
// 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_1001684FC(__int64 a1)
{
int v1; // w8
int v2; // w19
__int64 v3; // x0
if ( (int)a1 >= 1000 )
v1 = 1000;
else
v1 = a1;
v2 = v1 & ~(v1 >> 31);
v3 = GameManager::sharedState(a1);
return GameManager::setIntGameVariable(v3, "0236", (unsigned int)(v2 + 1));
}