//
// PKCS8_pkey_set0 from 0x9d8a38 to 0x9d8ab4 (124 bytes)
//
// 6 xrefs:
// > sub_9F2C54 @ 0x9f2d04
// > sub_9F5C2C @ 0x9f5cdc
// > sub_9F9820 @ 0x9f9910
// > sub_A09E84 @ 0xa09efc
// > sub_A40748 @ 0xa4079c
// > ??> @ 0x783ac
//
// 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:07:16 +0000
//
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;
}