//
// ASYNC_WAIT_CTX_get_changed_fds from 0xfefa6c to 0xfefae8 (124 bytes)
//
// 2 xrefs:
// > SSL_get_changed_async_fds @ 0xfbe17c
// > ??> @ 0x957d0
//
// 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_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;
}