// // AutoSaveSettingsLayer::valueDidChange from 0x1001682a8 to 0x1001683a8 (256 bytes) // // 1 xrefs: // > @ 0x1008e3cc0 // // 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 AutoSaveSettingsLayer::valueDidChange(__int64 result, int a2, float a3) { __int64 v4; // x0 _BOOL8 v5; // x2 const char *v6; // x1 int v7; // w8 __int64 v8; // x19 __int64 v9; // x0 const char *v10; // x1 int v11; // w8 if ( a2 <= -3 ) { if ( a2 != -4 ) { if ( a2 == -3 ) { v4 = GameManager::sharedState(result); v5 = a3 != 0.0; v6 = "0186"; return GameManager::setGameVariable(v4, v6, v5); } return result; } v7 = 60 * (int)a3; if ( v7 >= 18000 ) v7 = 18000; if ( v7 <= 600 ) v8 = 600; else v8 = (unsigned int)v7; v9 = GameManager::sharedState(result); v10 = "0187"; return GameManager::setIntGameVariable(v9, v10, v8); } if ( a2 == -2 ) { v11 = 60 * (int)a3; if ( v11 >= 3600 ) v11 = 3600; if ( v11 <= 60 ) v8 = 60; else v8 = (unsigned int)v11; v9 = GameManager::sharedState(result); v10 = "0185"; return GameManager::setIntGameVariable(v9, v10, v8); } if ( a2 == -1 ) { v4 = GameManager::sharedState(result); v5 = a3 != 0.0; v6 = "0184"; return GameManager::setGameVariable(v4, v6, v5); } return result; }