//
// BIO_find_type from 0xd76f8c to 0xd76fd8 (76 bytes)
//
// 12 xrefs:
// > BIO_ssl_copy_session_id @ 0xd30034
// > BIO_ssl_copy_session_id @ 0xd30044
// > BIO_ssl_shutdown @ 0xd300b0
// > SSL_get_rfd @ 0xd3f804
// > SSL_get_wfd @ 0xd3f844
// > PKCS7_dataFinal @ 0xdcd7b0
// > PKCS7_dataFinal @ 0xdcd8dc
// > PKCS7_dataFinal @ 0xdcd98c
// > PKCS7_signatureVerify @ 0xdcde60
// > CMS_dataFinal @ 0xe1fba0
// > cms_DigestAlgorithm_find_ctx @ 0xe20064
// > ??> @ 0x2c2b0
//
// 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
//
_QWORD *__fastcall BIO_find_type(_QWORD *result, int a2)
{
if ( result )
{
if ( (_BYTE)a2 )
{
do
{
if ( *result && *(_DWORD *)*result == a2 )
break;
result = (_QWORD *)result[7];
}
while ( result );
}
else
{
do
{
if ( *result && (a2 & *(_DWORD *)*result) != 0 )
break;
result = (_QWORD *)result[7];
}
while ( result );
}
}
return result;
}