//
// BIO_find_type from 0x9e5c98 to 0x9e5cf8 (96 bytes)
//
// 12 xrefs:
// > BIO_ssl_copy_session_id @ 0x99b2e8
// > BIO_ssl_copy_session_id @ 0x99b2f8
// > BIO_ssl_shutdown @ 0x99b360
// > SSL_get_rfd @ 0x9ab47c
// > SSL_get_wfd @ 0x9ab4c0
// > PKCS7_dataFinal @ 0xa3cbcc
// > PKCS7_dataFinal @ 0xa3cd48
// > PKCS7_dataFinal @ 0xa3d040
// > PKCS7_signatureVerify @ 0xa3d3cc
// > CMS_dataFinal @ 0xa89e90
// > cms_DigestAlgorithm_find_ctx @ 0xa8a340
// > ??> @ 0x73a1c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:23 +0000
//
_DWORD *__fastcall BIO_find_type(_DWORD *result, int a2)
{
if ( result )
{
if ( (_BYTE)a2 )
{
do
{
if ( *result && *(_DWORD *)*result == a2 )
break;
result = (_DWORD *)result[9];
}
while ( result );
}
else
{
do
{
if ( *result && (a2 & *(_DWORD *)*result) != 0 )
break;
result = (_DWORD *)result[9];
}
while ( result );
}
}
return result;
}