//
// BIO_get_retry_BIO from 0x7d1038 to 0x7d1088 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x5f78c
//
// 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
//
int __fastcall BIO_get_retry_BIO(int a1, _DWORD *a2)
{
int v2; // r4
int v4; // r5
v2 = a1;
v4 = a1;
do
{
if ( !BIO_test_flags(v2, 8) )
break;
v4 = v2;
v2 = *(_DWORD *)(v2 + 36);
}
while ( v2 );
if ( a2 )
*a2 = *(_DWORD *)(v4 + 24);
return v4;
}