//
// X509_ALGOR_get0 from 0xd708b0 to 0xd708ec (60 bytes)
//
// 19 xrefs:
// > sub_D85BB0 @ 0xd85c04
// > sub_D85F34 @ 0xd85f88
// > sub_D869F4 @ 0xd86b00
// > sub_D869F4 @ 0xd86e48
// > sub_D88A48 @ 0xd88a9c
// > sub_D88DD8 @ 0xd88e2c
// > sub_D8B4C0 @ 0xd8b6fc
// > sub_D8B4C0 @ 0xd8b904
// > sub_D8BF28 @ 0xd8bf7c
// > sub_D8C0B4 @ 0xd8c110
// > sub_D9BA9C @ 0xd9baf8
// > sub_D9BD14 @ 0xd9bdb0
// > PKCS12_gen_mac @ 0xdca998
// > PKCS12_verify_mac @ 0xdcac38
// > PKCS12_set_mac @ 0xdcb168
// > cms_DigestAlgorithm_init_bio @ 0xe1ff3c
// > cms_DigestAlgorithm_find_ctx @ 0xe20010
// > CMS_add1_signer @ 0xe2296c
// > ??> @ 0x5d078
//
// 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 X509_ALGOR_get0(__int64 result, _DWORD *a2, __int64 *a3, _QWORD *a4)
{
if ( result )
*(_QWORD *)result = *a4;
if ( a2 )
{
result = a4[1];
if ( result )
{
*a2 = *(_DWORD *)result;
if ( a3 )
{
result = *(_QWORD *)(result + 8);
*a3 = result;
}
}
else
{
*a2 = -1;
return 0xFFFFFFFFLL;
}
}
return result;
}