//
// sub_E6418C from 0xe6418c to 0xe64278 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x11332a8
//
// 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
//
__int64 __fastcall sub_E6418C(__int64 *a1, char **a2, __int64 a3)
{
__int64 v6; // x19
__int64 v8; // x0
__int64 v9; // x0
if ( !a1 )
{
v9 = ASN1_OCTET_STRING_new();
v6 = v9;
if ( v9 && (unsigned int)ASN1_OCTET_STRING_set(v9, *a2, a3) )
{
*a2 += a3;
return v6;
}
goto LABEL_9;
}
v6 = *a1;
if ( !*a1 )
{
v8 = ASN1_OCTET_STRING_new();
v6 = v8;
if ( v8 && (unsigned int)ASN1_OCTET_STRING_set(v8, *a2, a3) )
goto LABEL_4;
LABEL_8:
if ( *a1 == v6 )
{
LABEL_10:
ERR_put_error(39, 102, 65, (__int64)"crypto/ocsp/v3_ocsp.c", 206);
return 0;
}
LABEL_9:
ASN1_OCTET_STRING_free(v6);
goto LABEL_10;
}
if ( !(unsigned int)ASN1_OCTET_STRING_set(*a1, *a2, a3) )
goto LABEL_8;
LABEL_4:
*a2 += a3;
*a1 = v6;
return v6;
}