//
// sub_86596C from 0x86596c to 0x865a3c (208 bytes)
//
// 3 xrefs:
// > sub_864F7C @ 0x865524
// > sub_864F7C @ 0x865538
// > ??> @ 0x8658fc
//
// 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_86596C(const char *a1, int a2, int a3)
{
signed int v6; // r0
char *v9; // [sp+Ch] [bp-4h] BYREF
if ( !a1 )
return 0;
v6 = strtoul(a1, &v9, 10);
if ( v9 )
{
if ( *v9 && v9 != &a1[a2] )
return 0;
}
if ( v6 < 0 )
{
ERR_put_error(13, 180, 187, (int)"crypto/asn1/asn1_gen.c", 755);
return 0;
}
if ( ASN1_BIT_STRING_set_bit(a3, v6, 1) )
return 1;
ERR_put_error(13, 180, 65, (int)"crypto/asn1/asn1_gen.c", 759);
return 0;
}