//
// AutoSaveSettingsLayer::valueDidChange from 0xbc9644 to 0xbc9754 (272 bytes)
//
// 2 xrefs:
// > ??> @ 0x5c398
// > ??> @ 0x14e1190
//
// 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
//
GameManager *__fastcall AutoSaveSettingsLayer::valueDidChange(GameManager *this, int a2, float a3)
{
GameManager *v4; // x0
int v5; // w19
GameManager *v6; // x0
unsigned int v7; // w2
char *v8; // x1
GameManager *v9; // x0
char *v10; // x1
unsigned __int8 v11; // w2
GameManager *v12; // x0
int v13; // w19
switch ( a2 )
{
case -4:
v12 = (GameManager *)(unsigned int)(60 * (int)a3);
if ( (int)v12 > 18000 )
v13 = 18000;
else
v13 = 60 * (int)a3;
v6 = (GameManager *)GameManager::sharedState(v12);
if ( v13 < 600 )
v7 = 600;
else
v7 = v13;
v8 = "0187";
return (GameManager *)GameManager::setIntGameVariable(v6, v8, v7);
case -3:
v9 = (GameManager *)GameManager::sharedState(this);
v10 = "0186";
v11 = a3 != 0.0;
goto LABEL_11;
case -2:
v4 = (GameManager *)(unsigned int)(60 * (int)a3);
if ( (int)v4 > 3600 )
v5 = 3600;
else
v5 = 60 * (int)a3;
v6 = (GameManager *)GameManager::sharedState(v4);
if ( v5 < 60 )
v7 = 60;
else
v7 = v5;
v8 = "0185";
return (GameManager *)GameManager::setIntGameVariable(v6, v8, v7);
case -1:
v9 = (GameManager *)GameManager::sharedState(this);
v10 = "0184";
v11 = a3 != 0.0;
LABEL_11:
this = (GameManager *)GameManager::setGameVariable(v9, v10, v11);
break;
default:
return this;
}
return this;
}