//
// BN_asc2bn from 0x9ec70c to 0x9ec798 (140 bytes)
//
// 2 xrefs:
// > sub_A44544 @ 0xa447d8
// > ??> @ 0x7999c
//
// 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:07:27 +0000
//
int __fastcall BN_asc2bn(int ***a1, unsigned __int8 *a2)
{
int v2; // r3
unsigned __int8 *v3; // r4
int result; // r0
v2 = *a2;
v3 = a2;
if ( v2 == 45 )
v2 = *++a2;
if ( v2 == 48 && (a2[1] & 0xDF) == 0x58 )
{
if ( !BN_hex2bn(a1, a2 + 2) )
return 0;
}
else if ( !BN_dec2bn(a1, a2) )
{
return 0;
}
if ( *v3 != 45 )
return 1;
result = 1;
if ( (*a1)[1] )
(*a1)[3] = &dword_0 + 1;
return result;
}