//
// AutoSaveSettingsLayer::setBackupCap from 0xbc9874 to 0xbc98b0 (60 bytes)
//
// 2 xrefs:
// > AutoBackupOptionsPopup::valueDidChange @ 0xc51b8c
// > ??> @ 0xfb6e0
//
// 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 13:03:33 +0000
//
__int64 __fastcall AutoSaveSettingsLayer::setBackupCap(AutoSaveSettingsLayer *this)
{
int v1; // w19
GameManager *v2; // x0
int v3; // w2
if ( (int)this > 1000 )
v1 = 1000;
else
v1 = (int)this;
v2 = (GameManager *)GameManager::sharedState(this);
if ( v1 < 0 )
v3 = 0;
else
v3 = v1;
return GameManager::setIntGameVariable(v2, "0236", v3 + 1);
}