//
// Dropdown::setSelectedIndex from 0xcb6588 to 0xcb65b8 (48 bytes)
//
// 1 xrefs:
// > ??> @ 0x92e48
//
// 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:06:12 +0000
//
__int64 __fastcall Dropdown::setSelectedIndex(__int64 this, signed int a2)
{
if ( (a2 & 0x80000000) == 0
&& a2 < (int)(-1431655765 * ((__int64)(*(_QWORD *)(this + 368) - *(_QWORD *)(this + 360)) >> 3)) )
{
*(_DWORD *)(this + 384) = a2;
return Dropdown::refreshValueLabel(this);
}
return this;
}