//
// AutoSaveSettingsLayer::getValue from 0xbc94fc to 0xbc95e0 (228 bytes)
//
// 2 xrefs:
// > ??> @ 0xdca20
// > ??> @ 0x14e1198
//
// 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
//
float __fastcall AutoSaveSettingsLayer::getValue(AutoSaveSettingsLayer *this, int a2)
{
float result; // s0
GameManager *v3; // x0
int IntGameVariable; // w0
GameManager *v5; // x0
GameManager *v6; // x0
GameManager *v7; // x0
switch ( a2 )
{
case -4:
v6 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = GameManager::getIntGameVariable(v6, "0187");
if ( IntGameVariable > 0 )
goto LABEL_5;
result = 60.0;
break;
case -3:
v5 = (GameManager *)GameManager::sharedState(this);
if ( (unsigned __int8)GameManager::getGameVariable(v5, "0186") )
goto LABEL_11;
goto LABEL_7;
case -2:
v3 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = GameManager::getIntGameVariable(v3, "0185");
if ( IntGameVariable <= 0 )
result = 5.0;
else
LABEL_5:
result = (float)(IntGameVariable / 60);
break;
case -1:
v7 = (GameManager *)GameManager::sharedState(this);
if ( (unsigned __int8)GameManager::getGameVariable(v7, "0184") )
LABEL_11:
result = 1.0;
else
LABEL_7:
result = 0.0;
break;
default:
result = SetupTriggerPopup::getValue((cocos2d::CCDictionary **)this, a2);
break;
}
return result;
}