//
// BIO_up_ref from 0xd7669c to 0xd766e4 (72 bytes)
//
// 7 xrefs:
// > sub_D2F9E8 @ 0xd2faf8
// > sub_D2F9E8 @ 0xd2fc48
// > SSL_set_bio @ 0xd3f790
// > SSL_set_wfd @ 0xd3f9ac
// > SSL_set_rfd @ 0xd3fa84
// > SSL_dup @ 0xd43bb4
// > ??> @ 0x689e8
//
// 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(__int64 a1)
{
int v2; // [xsp+1Ch] [xbp+1Ch] BYREF
return (int)CRYPTO_atomic_add(a1 + 72, 1, &v2, *(_QWORD *)(a1 + 104)) > 0 && v2 > 1;
}