//
// BIO_up_ref from 0x7d07c8 to 0x7d080c (68 bytes)
//
// 7 xrefs:
// > sub_785EB0 @ 0x786268
// > sub_785EB0 @ 0x78643c
// > SSL_set_bio @ 0x796818
// > SSL_set_wfd @ 0x796a14
// > SSL_set_rfd @ 0x796ae8
// > SSL_dup @ 0x79b1b4
// > ??> @ 0x59eac
//
// 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 BIO_up_ref(int a1)
{
int v2; // [sp+4h] [bp-8h] BYREF
return CRYPTO_atomic_add(a1 + 44, 1, &v2, *(_DWORD *)(a1 + 68)) > 0 && v2 > 1;
}