//
// SelectSettingLayer::idxToValue from 0xa396cc to 0xa396fc (48 bytes)
//
// 2 xrefs:
// > SelectSettingLayer::getSelectedValue @ 0xa39708
// > ??> @ 0xaf590
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int SelectSettingLayer::idxToValue(SelectSettingType a1, int a2)
{
bool v2; // zf
int result; // w0
v2 = a1 == StartingSpeed;
result = a2;
if ( v2 )
{
result = 0;
if ( (unsigned int)a2 <= 4 )
return dword_F0F870[a2];
}
return result;
}