//
// std::__ndk1::__num_get_unsigned_integral
from 0x976b8c to 0x976c2c (160 bytes)
//
// 2 xrefs:
// > std::__ndk1::num_get>>::__do_get_unsigned @ 0x95ed28
// > std::__ndk1::num_get>>::__do_get_unsigned @ 0x960ce8
//
// 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 12:05:58 +0000
//
int __fastcall std::__num_get_unsigned_integral(const char *a1, char *a2, _DWORD *a3, int a4)
{
bool v6; // zf
int v9; // r5
int v10; // r9
int v12; // [sp+4h] [bp-1Ch]
char *v13; // [sp+8h] [bp-18h] BYREF
int v14; // [sp+Ch] [bp-14h]
v6 = a1 == a2;
if ( a1 != a2 )
v6 = *a1 == 45;
if ( v6 )
goto LABEL_7;
v14 = *(_DWORD *)_errno();
*(_DWORD *)_errno() = 0;
std::__cloc();
v9 = strtoull(a1, &v13, a4);
v12 = *(_DWORD *)_errno();
if ( !v12 )
{
v10 = v14;
*(_DWORD *)_errno() = v10;
}
if ( v13 == a2 )
{
if ( v12 == 34 )
{
v9 = -1;
*a3 = 4;
}
}
else
{
LABEL_7:
v9 = 0;
*a3 = 4;
}
return v9;
}