//
// SelectSettingLayer::valueToIdx from 0xb637c8 to 0xb637f8 (48 bytes)
//
// 4 xrefs:
// > StartPosLayer::onSelectSpeed @ 0xb640f4
// > SelectSettingLayer::frameForValue @ 0xb64400
// > SelectSettingLayer::init @ 0xb646e0
// > ??> @ 0x56f38
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:02:13 +0000
//
__int64 __fastcall SelectSettingLayer::valueToIdx(int a1, unsigned int a2)
{
bool v2; // zf
__int64 result; // x0
v2 = a1 == 2;
result = a2;
if ( v2 )
{
result = 1;
if ( a2 <= 4 )
return dword_1190530[a2];
}
return result;
}