//
// sub_105D8B4 from 0x105d8b4 to 0x105d96c (184 bytes)
//
// 1 xrefs:
// > SRP_VBASE_init @ 0x105de60
//
// 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:16:49 +0000
//
__int64 __fastcall sub_105D8B4(unsigned __int64 **a1, __int64 *a2, char *a3, char *a4)
{
int v7; // w1
unsigned __int64 *v8; // x0
int v9; // w1
unsigned __int64 *v10; // x0
_BYTE v12[2504]; // [xsp+38h] [xbp+38h] BYREF
*a2 = 0;
*a1 = nullptr;
v7 = sub_105D338(v12, a4);
if ( (v7 & 0x80000000) == 0 )
{
v8 = BN_bin2bn(v12, v7, 0);
*a2 = (__int64)v8;
if ( v8 )
{
v9 = sub_105D338(v12, a3);
if ( (v9 & 0x80000000) == 0 )
{
v10 = BN_bin2bn(v12, v9, 0);
*a1 = v10;
if ( v10 )
return 1;
}
BN_free(*a2);
*a2 = 0;
}
}
return 0;
}