//
// ASYNC_WAIT_CTX_get_all_fds from 0xfefa28 to 0xfefa6c (68 bytes)
//
// 2 xrefs:
// > SSL_get_all_async_fds @ 0xfbe16c
// > ??> @ 0x48160
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:45 +0000
//
__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;
}