//
// IDNameInput::textIsPureInt from 0xce40e0 to 0xce4168 (136 bytes)
//
// 7 xrefs:
// > IDNameInput::stepArrow @ 0xce44ec
// > IDNameInput::onBrowser @ 0xce4b1c
// > IDNameInput::refreshLabel @ 0xce4d84
// > IDNameInput::textChanged @ 0xcef734
// > IDNameInput::commitTypedName @ 0xcef7e0
// > IDNameInput::textInputClosed @ 0xcefa68
// > ??> @ 0x90028
//
// 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:38 +0000
//
__int64 __fastcall IDNameInput::textIsPureInt(__int64 a1)
{
__int64 v1; // x1
unsigned __int64 v2; // x2
__int64 v3; // x1
int v4; // w1
bool v5; // zf
unsigned __int8 v6; // w1
char v7; // w4
int v8; // w3
v1 = *(_BYTE *)a1 >> 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v1 = *(_QWORD *)(a1 + 8);
if ( !v1 )
return 0;
v2 = 0;
while ( 1 )
{
v3 = a1 + 1;
if ( (*(_BYTE *)a1 & 1) == 0 )
break;
if ( v2 >= *(_QWORD *)(a1 + 8) )
return 1;
v3 = *(_QWORD *)(a1 + 16);
LABEL_8:
v4 = *(unsigned __int8 *)(v3 + v2);
v5 = v4 == 45;
v6 = v4 - 48;
v7 = v5;
v8 = (unsigned __int8)v7 & (v2++ == 0);
if ( !v8 && v6 > 9u )
return 0;
}
if ( v2 < *(_BYTE *)a1 >> 1 )
goto LABEL_8;
return 1;
}