//
// ASYNC_WAIT_CTX_get_all_fds from 0xd716c8 to 0xd7170c (68 bytes)
//
// 2 xrefs:
// > SSL_get_all_async_fds @ 0xd3fe18
// > ??> @ 0x30438
//
// 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_all_fds(__int64 *a1, _DWORD *a2, _QWORD *a3)
{
__int64 v3; // x0
v3 = *a1;
*a3 = 0;
while ( v3 )
{
while ( *(_DWORD *)(v3 + 36) )
{
v3 = *(_QWORD *)(v3 + 40);
if ( !v3 )
return 1;
}
if ( a2 )
*a2++ = *(_DWORD *)(v3 + 8);
v3 = *(_QWORD *)(v3 + 40);
++*a3;
}
return 1;
}