//
// GameSettingsLayer::getValue from 0x100166794 to 0x100166858 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008e3458
//
// 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:48 +0000
//
void __fastcall GameSettingsLayer::getValue(__int64 a1, int a2)
{
__int64 *v3; // x0
__int64 *v4; // x20
__int64 v5; // x0
__int64 v6; // x0
unsigned int v7; // [xsp+Ch] [xbp-14h] BYREF
v7 = a2;
if ( a2 <= -3 )
{
if ( a2 != -4 )
{
if ( a2 == -3 )
{
FMODAudioEngine::sharedEngine(a1);
return;
}
goto LABEL_8;
}
LABEL_7:
GameManager::sharedState(a1);
return;
}
if ( a2 == -2 )
{
v6 = GameStatsManager::sharedState(a1);
sub_1003D4738(v6, 12, 17);
return;
}
if ( a2 == -1 )
goto LABEL_7;
LABEL_8:
v3 = sub_100019268((_QWORD *)(a1 + 1104), (int *)&v7);
if ( v3 )
{
v4 = v3;
v5 = GameManager::sharedState(v3);
GameManager::getGameVariable(v5, v4[3]);
}
else
{
SetupTriggerPopup::getValue(a1, v7);
}
}