//
// IDNameInput::stepArrow from 0x1403c8980 to 0x1403c8acf (335 bytes)
//
// 3 xrefs:
// > IDNameInput::onArrowLeft @ 0x1403c8ad5
// > IDNameInput::onArrowRight @ 0x1403c8ae5
// > ??> @ 0x1409243a4
//
// 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:31 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall IDNameInput::stepArrow(__int64 a1, int a2)
{
__int64 v4; // rax
int v5; // edi
_BYTE *v6; // rax
size_t v7; // r8
__int64 v8; // rcx
char **v9; // rax
char v10; // dl
const char *v11; // rcx
__int64 v12; // rdx
char *v13; // rcx
char *String[2]; // [rsp+38h] [rbp-40h] BYREF
unsigned __int64 v15; // [rsp+48h] [rbp-30h]
unsigned __int64 v16; // [rsp+50h] [rbp-28h]
v4 = *(_QWORD *)(a1 + 384);
if ( v4 )
{
v5 = 0;
v6 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(v4 + 592) + 600LL) + 8LL))(*(_QWORD *)(v4 + 592) + 600LL);
*(_OWORD *)String = 0;
v15 = 0;
v16 = 0;
v7 = -1;
do
++v7;
while ( v6[v7] );
sub_14003D230(String, v6, v7);
if ( v15 )
{
v8 = 0;
while ( 1 )
{
v9 = String;
if ( v16 > 0xF )
v9 = (char **)String[0];
v10 = *((_BYTE *)v9 + v8);
if ( (v8 || v10 != 45) && (unsigned __int8)(v10 - 48) > 9u )
break;
if ( ++v8 >= v15 )
{
v11 = (const char *)String;
if ( v16 > 0xF )
v11 = String[0];
v5 = atoi(v11);
break;
}
}
}
v12 = 0;
if ( a2 + v5 >= 0 )
v12 = (unsigned int)(a2 + v5);
IDNameInput::commitID(a1, v12);
if ( v16 > 0xF )
{
v13 = String[0];
if ( v16 + 1 >= 0x1000 )
{
v13 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v13 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v13);
}
}
}