//
// std::__ndk1::__num_get_unsigned_integral from 0x976a4c to 0x976ae2 (150 bytes)
//
// 2 xrefs:
// > std::__ndk1::num_get>>::__do_get_unsigned @ 0x95e818
// > std::__ndk1::num_get>>::__do_get_unsigned @ 0x9607f8
//
// 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
unsigned __int64 v10; // kr00_8
int v11; // r9
int v13; // [sp+4h] [bp-1Ch]
char *v14; // [sp+8h] [bp-18h] BYREF
int v15; // [sp+Ch] [bp-14h]
v6 = a1 == a2;
if ( a1 != a2 )
v6 = *a1 == 45;
if ( v6 )
goto LABEL_7;
v15 = *(_DWORD *)_errno();
*(_DWORD *)_errno() = 0;
std::__cloc();
v10 = strtoull(a1, &v14, a4);
v9 = v10;
v13 = *(_DWORD *)_errno();
if ( !v13 )
{
v11 = v15;
*(_DWORD *)_errno() = v11;
}
if ( v14 != a2 )
{
LABEL_7:
v9 = 0;
LABEL_8:
*a3 = 4;
return v9;
}
if ( HIDWORD(v10) || v13 == 34 )
{
v9 = -1;
goto LABEL_8;
}
return v9;
}