//
// ASYNC_WAIT_CTX_get_fd from 0xd71684 to 0xd716c8 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0xa0e18
//
// 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_fd(__int64 *a1, __int64 a2, _DWORD *a3, _QWORD *a4)
{
__int64 v4; // x4
v4 = *a1;
if ( !*a1 )
return (unsigned int)v4;
while ( *(_DWORD *)(v4 + 36) || *(_QWORD *)v4 != a2 )
{
v4 = *(_QWORD *)(v4 + 40);
if ( !v4 )
return (unsigned int)v4;
}
*a3 = *(_DWORD *)(v4 + 8);
*a4 = *(_QWORD *)(v4 + 16);
return 1;
}