//
// SetIDPopup::onItemIDArrow from 0x1403a5ef0 to 0x1403a5f4f (95 bytes)
//
// 3 xrefs:
// > SetIDPopup::init @ 0x1403a5c7a
// > SetIDPopup::init @ 0x1403a5d34
// > ??> @ 0x140923768
//
// 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 11:31:18 +0000
//
__int64 __fastcall SetIDPopup::onItemIDArrow(_DWORD *a1, __int64 a2)
{
int v3; // eax
int v4; // edx
bool v5; // zf
int v6; // r8d
int v7; // eax
int v8; // ecx
int v9; // r8d
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = a1[171];
v5 = v3 == 1;
v6 = -1;
v7 = v4;
if ( !v5 )
v6 = 1;
v8 = a1[170];
v9 = a1[168] + v6;
if ( v4 >= v9 )
v7 = v9;
if ( v8 <= v7 )
{
v8 = v9;
if ( v4 < v9 )
v8 = a1[171];
}
a1[168] = v8;
return SetIDPopup::updateTextInputLabel(a1);
}