//
// sub_BB96B8 from 0xbb96b8 to 0xbb971c (100 bytes)
//
// 1 xrefs:
// > sub_BBA90C @ 0xbba90c
//
// 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 sub_BB96B8(__int64 a1, int a2)
{
__int64 v2; // x19
__int64 result; // x0
int v4; // w0
unsigned int v5; // w1
v2 = a1 + 40LL * a2;
result = *(_QWORD *)(v2 + 688);
if ( result )
{
v4 = ((__int64 (*)(void))SSL_pending)();
v5 = 1;
if ( v4 )
return v5;
result = *(_QWORD *)(v2 + 768);
if ( result )
return (unsigned int)SSL_pending(result, 1) != 0;
}
return (unsigned int)result;
}