//
// s2i_ASN1_OCTET_STRING from 0x1080064 to 0x10800e4 (128 bytes)
//
// 2 xrefs:
// > sub_10800E4 @ 0x10801c0
// > ??> @ 0x6a5b8
//
// 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:09 +0000
//
__int64 __fastcall s2i_ASN1_OCTET_STRING(__int64 a1, __int64 a2, const char *a3)
{
__int64 v3; // x19
void *v4; // x20
__int64 result; // x0
__int64 v7; // [xsp+38h] [xbp+38h] BYREF
v3 = ASN1_OCTET_STRING_new();
if ( v3 )
{
v4 = OPENSSL_hexstr2buf(a3, &v7);
*(_QWORD *)(v3 + 8) = v4;
result = v3;
if ( v4 )
{
*(_DWORD *)v3 = v7;
}
else
{
ASN1_OCTET_STRING_free(v3);
return 0;
}
}
else
{
ERR_put_error(34, 112, 65, (__int64)"crypto/x509v3/v3_skey.c", 40);
return 0;
}
return result;
}