//
// PKCS8_pkey_set0 from 0x7c3e38 to 0x7c3eb4 (124 bytes)
//
// 6 xrefs:
// > sub_7DE054 @ 0x7de104
// > sub_7E102C @ 0x7e10dc
// > sub_7E4C20 @ 0x7e4d10
// > sub_7F5284 @ 0x7f52fc
// > sub_82BB48 @ 0x82bb9c
// > ??> @ 0x5e92c
//
// 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
//
int __fastcall PKCS8_pkey_set0(int a1, int a2, int a3, int a4, int a5, int a6, int a7)
{
if ( a3 >= 0 && !ASN1_INTEGER_set(*(_DWORD *)a1, a3) || !X509_ALGOR_set0(*(_DWORD *)(a1 + 4), a2, a4, a5) )
return 0;
if ( a6 )
ASN1_STRING_set0(*(_DWORD **)(a1 + 8), a6, a7);
return 1;
}