//
// EVP_PKEY_up_ref from 0x805100 to 0x805144 (68 bytes)
//
// 17 xrefs:
// > ssl3_ctrl @ 0x78f854
// > ssl_cert_dup @ 0x790f04
// > ssl_cert_dup @ 0x790f54
// > sub_79B6F4 @ 0x79b794
// > SSL_use_PrivateKey @ 0x79bf30
// > SSL_CTX_use_PrivateKey @ 0x79c7fc
// > EVP_PKEY_derive_set_peer @ 0x806730
// > EVP_PKEY_CTX_new @ 0x807100
// > EVP_PKEY_CTX_dup @ 0x807268
// > EVP_PKEY_CTX_dup @ 0x807284
// > PKCS7_SIGNER_INFO_set @ 0x8295b8
// > X509_PUBKEY_set @ 0x84a6cc
// > X509_PUBKEY_get @ 0x84a7cc
// > CMS_add1_recipient_cert @ 0x874120
// > cms_RecipientInfo_kari_init @ 0x874b3c
// > CMS_add1_signer @ 0x878000
// > ??> @ 0x5af9c
//
// 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
//
bool __fastcall EVP_PKEY_up_ref(int a1)
{
int v2; // [sp+4h] [bp-8h] BYREF
return CRYPTO_atomic_add(a1 + 8, 1, &v2, *(_DWORD *)(a1 + 32)) > 0 && v2 > 1;
}