//
// IDNameInput::textIsPureInt from 0x793734 to 0x793774 (64 bytes)
//
// 6 xrefs:
// > IDNameInput::onBrowser @ 0x793968
// > IDNameInput::stepArrow @ 0x793ac8
// > IDNameInput::refreshLabel @ 0x793dc2
// > IDNameInput::textChanged @ 0x796bec
// > IDNameInput::commitTypedName @ 0x796c7a
// > IDNameInput::textInputClosed @ 0x796db6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:43 +0000
//
int __fastcall IDNameInput::textIsPureInt(unsigned __int8 *a1)
{
int v1; // r2
int v2; // r4
int v3; // r3
unsigned int v4; // r2
unsigned int i; // r3
unsigned __int8 *v6; // r1
int v7; // r1
v1 = *a1;
v2 = v1 & 1;
if ( (v1 & 1) != 0 )
v3 = *((_DWORD *)a1 + 1);
else
v3 = v1 >> 1;
if ( v3 )
{
v4 = v1 >> 1;
for ( i = 0; ; ++i )
{
if ( v2 )
{
if ( i >= *((_DWORD *)a1 + 1) )
return 1;
v6 = *((unsigned __int8 **)a1 + 2);
}
else
{
if ( i >= v4 )
return 1;
v6 = a1 + 1;
}
v7 = v6[i];
if ( (i || v7 != 45) && (unsigned int)(v7 - 48) > 9 )
return 0;
}
}
return 0;
}