//
// std::__ndk1::__num_get_signed_integral from 0x9768e8 to 0x97699a (178 bytes)
//
// 2 xrefs:
// > std::__ndk1::num_get>>::__do_get_signed @ 0x95e308
// > std::__ndk1::num_get>>::__do_get_signed @ 0x960304
//
// 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_signed_integral(const char *a1, char *a2, _DWORD *a3, int a4)
{
int v8; // r6
__int64 v9; // kr00_8
int v10; // r9
int v12; // r0
int v13; // [sp+4h] [bp-1Ch]
char *v14; // [sp+8h] [bp-18h] BYREF
int v15; // [sp+Ch] [bp-14h]
if ( a1 == a2 )
goto LABEL_5;
v15 = *(_DWORD *)_errno();
*(_DWORD *)_errno() = 0;
std::__cloc();
v9 = strtoll(a1, &v14, a4);
v8 = v9;
v13 = *(_DWORD *)_errno();
if ( !v13 )
{
v10 = v15;
*(_DWORD *)_errno() = v10;
}
if ( v14 == a2 )
{
if ( v13 == 34 )
{
*a3 = 4;
v12 = ((((unsigned __int64)-v9 >> 32) & 0x80000000) != 0LL) ^ __OFSUB__(0, HIDWORD(v9), (_DWORD)v9 == 0);
if ( v12 )
return -1;
return v12;
}
}
else
{
LABEL_5:
v8 = 0;
*a3 = 4;
}
return v8;
}