//
// SelectSettingLayer::valueToIdx from 0x570f88 to 0x570fa4 (28 bytes)
//
// 2 xrefs:
// > SelectSettingLayer::frameForValue @ 0x570fb2
// > SelectSettingLayer::init @ 0x572a88
//
// 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)
{
if ( a1 != StartingSpeed )
return a2;
if ( (unsigned int)a2 > 4 )
return 1;
return *((char *)&word_9AD82C + a2 + 4);
}