//
// SelectSettingLayer::valueToIdx from 0xa36780 to 0xa367b0 (48 bytes)
//
// 3 xrefs:
// > SelectSettingLayer::frameForValue @ 0xa367c4
// > SelectSettingLayer::init @ 0xa3904c
// > ??> @ 0x3bf58
//
// 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::valueToIdx(SelectSettingType a1, int a2)
{
bool v2; // zf
int result; // w0
v2 = a1 == StartingSpeed;
result = a2;
if ( v2 )
{
result = 1;
if ( (unsigned int)a2 <= 4 )
return dword_F0F840[a2];
}
return result;
}