//
// NCONF_get_number_e from 0xfffe64 to 0xffff1c (184 bytes)
//
// 3 xrefs:
// > CONF_get_number @ 0xffff5c
// > sub_101A2D4 @ 0x101a61c
// > ??> @ 0xddfb0
//
// 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:15:53 +0000
//
__int64 __fastcall NCONF_get_number_e(__int64 a1, __int64 a2, char *a3, _QWORD *a4)
{
__int64 result; // x0
unsigned __int8 *v7; // x21
unsigned int v8; // t1
__int64 v9; // x19
if ( a4 )
{
result = NCONF_get_string(a1, a2, a3);
v7 = (unsigned __int8 *)result;
if ( result )
{
*a4 = 0;
while ( (*(unsigned int (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 56LL))(a1, *v7) )
{
v8 = *v7++;
v9 = 10LL * *a4;
*a4 = v9 + (*(int (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 64LL))(a1, v8);
}
return 1;
}
}
else
{
ERR_put_error(14, 112, 67, "crypto/conf/conf_lib.c", 286);
return 0;
}
return result;
}