//
// BIO_find_type from 0xff52ec to 0xff5338 (76 bytes)
//
// 12 xrefs:
// > BIO_ssl_copy_session_id @ 0xfae388
// > BIO_ssl_copy_session_id @ 0xfae398
// > BIO_ssl_shutdown @ 0xfae404
// > SSL_get_rfd @ 0xfbdb58
// > SSL_get_wfd @ 0xfbdb98
// > PKCS7_dataFinal @ 0x104bb10
// > PKCS7_dataFinal @ 0x104bc3c
// > PKCS7_dataFinal @ 0x104bcec
// > PKCS7_signatureVerify @ 0x104c1c0
// > CMS_dataFinal @ 0x109dea0
// > cms_DigestAlgorithm_find_ctx @ 0x109e364
// > ??> @ 0x42d90
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:48 +0000
//
_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;
}