//
// GameSettingsLayer::getValue from 0xc06d14 to 0xc06df8 (228 bytes)
//
// 2 xrefs:
// > ??> @ 0xa3150
// > ??> @ 0x14e36b8
//
// 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:52 +0000
//
float __fastcall GameSettingsLayer::getValue(GameSettingsLayer *this, int a2)
{
__int64 *v3; // x0
__int64 *v4; // x20
GameManager *v5; // x0
float result; // s0
__int64 v7; // x0
int v8; // [xsp+2Ch] [xbp+2Ch] BYREF
v8 = a2;
switch ( a2 )
{
case -4:
result = *(float *)(GameManager::sharedState(this) + 1108);
break;
case -3:
result = (float)*(int *)(FMODAudioEngine::sharedEngine(this) + 548);
break;
case -2:
v7 = GameStatsManager::sharedState(this);
result = (float)(unsigned __int8)GameStatsManager::isItemEnabled(v7, 0xCu, 0x11u);
break;
case -1:
result = (float)*(unsigned __int8 *)(GameManager::sharedState(this) + 924);
break;
default:
v3 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)this + 138,
&v8);
v4 = v3;
if ( v3 )
{
v5 = (GameManager *)GameManager::sharedState((GameManager *)v3);
result = (float)(unsigned __int8)GameManager::getGameVariable(v5, (char *)v4[3]);
}
else
{
result = SetupTriggerPopup::getValue((cocos2d::CCDictionary **)this, v8);
}
break;
}
return result;
}