//
// NCONF_get_number_e from 0xd81b04 to 0xd81bbc (184 bytes)
//
// 3 xrefs:
// > CONF_get_number @ 0xd81bfc
// > sub_D9BF74 @ 0xd9c2bc
// > ??> @ 0xa9500
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}