//
// sub_108BD54 from 0x108bd54 to 0x108be3c (232 bytes)
//
// 2 xrefs:
// > sub_108B494 @ 0x108b880
// > sub_108B494 @ 0x108b890
//
// 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:17:15 +0000
//
__int64 __fastcall sub_108BD54(const char *a1, int a2, __int64 a3)
{
unsigned __int64 v6; // x1
unsigned int v8; // w19
char *v9; // [xsp+38h] [xbp+38h] BYREF
if ( !a1 )
return 0;
v6 = strtoul(a1, &v9, 10);
if ( v9 )
{
if ( *v9 && v9 != &a1[a2] )
return 0;
}
if ( (v6 & 0x8000000000000000LL) != 0 )
{
v8 = 0;
ERR_put_error(13, 180, 187, (__int64)"crypto/asn1/asn1_gen.c", 755);
return v8;
}
if ( (unsigned int)ASN1_BIT_STRING_set_bit(a3, v6, 1) )
return 1;
ERR_put_error(13, 180, 65, (__int64)"crypto/asn1/asn1_gen.c", 759);
return 0;
}