//
// PKCS8_pkey_get0 from 0xd6a6dc to 0xd6a74c (112 bytes)
//
// 7 xrefs:
// > sub_D85BB0 @ 0xd85bdc
// > sub_D88A48 @ 0xd88a74
// > sub_D8BF28 @ 0xd8bf58
// > sub_D9BD14 @ 0xd9bd44
// > EVP_PKCS82PKEY @ 0xdaab88
// > sub_DD2A94 @ 0xdd2abc
// > ??> @ 0x7c908
//
// 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 PKCS8_pkey_get0(_QWORD *a1, __int64 *a2, _DWORD *a3, _QWORD *a4, __int64 a5)
{
int v6; // w0
_QWORD *v8; // [xsp+28h] [xbp+28h]
if ( a1 )
*a1 = **(_QWORD **)(a5 + 8);
if ( a2 )
{
v8 = a4;
*a2 = ASN1_STRING_get0_data(*(_QWORD *)(a5 + 16));
v6 = ASN1_STRING_length(*(unsigned int **)(a5 + 16));
a4 = v8;
*a3 = v6;
}
if ( a4 )
*a4 = *(_QWORD *)(a5 + 8);
return 1;
}