//
// ASYNC_WAIT_CTX_get_changed_fds from 0x7cb6d8 to 0x7cb790 (184 bytes)
//
// 2 xrefs:
// > SSL_get_changed_async_fds @ 0x796ea8
// > ??> @ 0x5bc9c
//
// 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 ASYNC_WAIT_CTX_get_changed_fds(_DWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
bool v5; // zf
_DWORD *v6; // r2
int v7; // r0
*a3 = a1[1];
v5 = a2 == nullptr;
if ( !a2 )
v5 = a4 == nullptr;
*a5 = a1[2];
if ( !v5 )
{
v6 = (_DWORD *)*a1;
if ( *a1 )
{
do
{
while ( 1 )
{
v7 = v6[4];
if ( !v6[5] )
break;
if ( !v7 )
{
if ( a4 )
{
*a4++ = v6[1];
if ( v6[4] )
{
if ( !v6[5] )
{
if ( a2 )
*a2++ = v6[1];
goto LABEL_14;
}
}
}
}
LABEL_9:
v6 = (_DWORD *)v6[6];
if ( !v6 )
return 1;
}
if ( !v7 )
goto LABEL_9;
if ( a2 )
*a2++ = v6[1];
LABEL_14:
v6 = (_DWORD *)v6[6];
}
while ( v6 );
}
}
return 1;
}