//
// AutoSaveSettingsLayer::setBackupCap from 0x6e6b88 to 0x6e6bac (36 bytes)
//
// 1 xrefs:
// > AutoBackupOptionsPopup::valueDidChange @ 0x73c2b8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:25 +0000
//
int __fastcall AutoSaveSettingsLayer::setBackupCap(AutoSaveSettingsLayer *this, int a2)
{
int v2; // r4
GameManager *v3; // r0
int v4; // r3
if ( (int)this >= 1000 )
this = (AutoSaveSettingsLayer *)&stru_3DC.st_info;
v2 = (int)this;
v3 = (GameManager *)GameManager::sharedState(this);
return GameManager::setIntGameVariable(v3, "0236", (const char *)((v2 & ~(v2 >> 31)) + 1), v4);
}