//
// SelectSettingLayer::idxToValue from 0x572f18 to 0x572f34 (28 bytes)
//
// 1 xrefs:
// > SelectSettingLayer::getSelectedValue @ 0x572f42
//
// 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)
{
if ( a1 != StartingSpeed )
return a2;
if ( (unsigned int)a2 > 4 )
return 0;
return *((char *)&word_9AD82C + a2 + 16);
}