//
// sub_837670 from 0x837670 to 0x83772c (188 bytes)
//
// 1 xrefs:
// > SRP_VBASE_init @ 0x837cf0
//
// 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
//
int __fastcall sub_837670(int **a1, int *a2, char *a3, char *a4)
{
int v7; // r1
int *v8; // r0
int v9; // r1
int *v10; // r0
_DWORD v12[625]; // [sp+4h] [bp-9C4h] BYREF
*a2 = 0;
*a1 = nullptr;
v7 = sub_8373B0(v12, a4);
if ( v7 < 0 )
return 0;
v8 = BN_bin2bn(v12, v7, nullptr);
*a2 = (int)v8;
if ( !v8 )
return 0;
v9 = sub_8373B0(v12, a3);
if ( v9 >= 0 )
{
v10 = BN_bin2bn(v12, v9, nullptr);
*a1 = v10;
if ( v10 )
return 1;
}
BN_free(*a2);
*a2 = 0;
return 0;
}