//
// X509_OBJECT_up_ref_count from 0x1065c88 to 0x1065cb4 (44 bytes)
//
// 4 xrefs:
// > X509_STORE_CTX_get_by_subject @ 0x1065ed4
// > X509_STORE_add_cert @ 0x10663cc
// > X509_STORE_add_crl @ 0x10664d4
// > ??> @ 0x4cb88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:53 +0000
//
__int64 __fastcall X509_OBJECT_up_ref_count(__int64 a1)
{
if ( *(_DWORD *)a1 == 1 )
return X509_up_ref(*(_QWORD *)(a1 + 8));
if ( *(_DWORD *)a1 == 2 )
return X509_CRL_up_ref(*(_QWORD *)(a1 + 8));
return 1;
}