//
// SetIDPopup::onItemIDArrow from 0x100298a10 to 0x100298a5f (79 bytes)
//
// 2 xrefs:
// > SetIDPopup::init @ 0x100298713
// > SetIDPopup::init @ 0x1002987d3
//
// This function is hookable on this platform (idp: pc, 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 12:27:52 +0000
//
__int64 __fastcall SetIDPopup::onItemIDArrow(_DWORD *a1, __int64 a2)
{
int v2; // eax
v2 = a1[168] + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1) - 1;
if ( a1[171] < v2 )
v2 = a1[171];
if ( a1[170] > v2 )
v2 = a1[170];
a1[168] = v2;
return SetIDPopup::updateTextInputLabel(a1);
}