//
// GameSettingsLayer::getValue from 0x711bba to 0x711c38 (126 bytes)
//
// 0 xrefs:
//
// 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:45 +0000
//
int __fastcall GameSettingsLayer::getValue(GameSettingsLayer *this, int a2, int a3)
{
unsigned int v4; // s15
GameStatsManager *v5; // r0
int isItemEnabled; // r0
float Value; // s15
GameManager *v8; // r0
int v9; // r2
int v10; // r3
GameManager *v11; // r5
GameManager *v12; // r0
int v14[2]; // [sp+4h] [bp-8h] BYREF
v14[1] = a3;
v14[0] = a2;
switch ( a2 )
{
case -4:
Value = *(float *)(GameManager::sharedState(this) + 888);
return LODWORD(Value);
case -3:
Value = (float)*(int *)(FMODAudioEngine::sharedEngine(this) + 400);
return LODWORD(Value);
case -2:
v5 = (GameStatsManager *)GameStatsManager::sharedState(this);
isItemEnabled = GameStatsManager::isItemEnabled(v5, 12, 17);
goto LABEL_4;
case -1:
v4 = *(unsigned __int8 *)(GameManager::sharedState(this) + 724);
goto LABEL_5;
default:
v8 = (GameManager *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 190,
(unsigned int *)v14);
v11 = v8;
if ( v8 )
{
v12 = (GameManager *)GameManager::sharedState(v8);
isItemEnabled = GameManager::getGameVariable(v12, *((char **)v11 + 3));
LABEL_4:
v4 = isItemEnabled;
LABEL_5:
Value = (float)v4;
}
else
{
Value = SetupTriggerPopup::getValue((cocos2d::CCDictionary **)this, v14[0], v9, v10);
}
return LODWORD(Value);
}
}