//
// ASYNC_WAIT_CTX_get_changed_fds from 0xd7170c to 0xd71788 (124 bytes)
//
// 2 xrefs:
// > SSL_get_changed_async_fds @ 0xd3fe28
// > ??> @ 0x6edf0
//
// 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
//
__int64 __fastcall ASYNC_WAIT_CTX_get_changed_fds(__int64 *a1, _DWORD *a2, _QWORD *a3, _DWORD *a4, _QWORD *a5)
{
__int64 i; // x0
*a3 = a1[1];
*a5 = a1[2];
if ( a2 || a4 )
{
for ( i = *a1; i; i = *(_QWORD *)(i + 40) )
{
if ( *(_DWORD *)(i + 36) )
{
if ( !*(_DWORD *)(i + 32) )
{
if ( a4 )
{
*a4++ = *(_DWORD *)(i + 8);
if ( *(_DWORD *)(i + 32) )
{
if ( !*(_DWORD *)(i + 36) )
{
LABEL_12:
if ( a2 )
*a2++ = *(_DWORD *)(i + 8);
}
}
}
}
}
else if ( *(_DWORD *)(i + 32) )
{
goto LABEL_12;
}
}
}
return 1;
}