//
// sub_A7E488 from 0xa7e488 to 0xa7e528 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0xd26444
//
// 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:08:47 +0000
//
int __fastcall sub_A7E488(int **a1, _BYTE *a2, int a3, int a4, int a5, int a6)
{
int *v6; // r3
int v11; // r0
int *v12; // r0
v6 = *a1;
if ( !*a1 )
{
v11 = BN_secure_new();
*a1 = (int *)v11;
if ( !v11 )
{
v11 = BN_new();
*a1 = (int *)v11;
if ( !v11 )
return 0;
}
v6 = (int *)v11;
}
if ( BN_bin2bn(a2, a3, v6) )
return 1;
v12 = *a1;
if ( !*a1 )
return 0;
if ( (*(_DWORD *)(a6 + 20) & 1) != 0 )
BN_clear_free(v12);
else
BN_free((int)v12);
*a1 = nullptr;
return 0;
}