//
// s2i_ASN1_OCTET_STRING from 0xa700c8 to 0xa70148 (128 bytes)
//
// 2 xrefs:
// > sub_A7014C @ 0xa70230
// > ??> @ 0x830dc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:41 +0000
//
_DWORD *__fastcall s2i_ASN1_OCTET_STRING(int a1, int a2, const char *a3)
{
_DWORD *v4; // r5
unsigned int v5; // r4
_DWORD *result; // r0
int v7; // [sp+Ch] [bp-8h] BYREF
v4 = (_DWORD *)ASN1_OCTET_STRING_new();
if ( v4 )
{
v5 = OPENSSL_hexstr2buf(a3, &v7);
v4[2] = v5;
if ( v5 )
{
result = v4;
*v4 = v7;
}
else
{
ASN1_OCTET_STRING_free((int)v4);
return nullptr;
}
}
else
{
ERR_put_error(34, 112, 65, (int)"crypto/x509v3/v3_skey.c", 40);
return nullptr;
}
return result;
}