//
// SelectSettingLayer::valueToIdx from 0x6a9f38 to 0x6a9f54 (28 bytes)
//
// 3 xrefs:
// > StartPosLayer::onSelectSpeed @ 0x6aa35e
// > SelectSettingLayer::frameForValue @ 0x6aa562
// > SelectSettingLayer::init @ 0x6aa6f4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:34 +0000
//
int __fastcall SelectSettingLayer::valueToIdx(int a1, unsigned int a2)
{
if ( a1 != 2 )
return a2;
if ( a2 > 4 )
return 1;
return *((char *)&word_BEF9C4 + a2 + 4);
}