//
// ASYNC_WAIT_CTX_get_fd from 0xfef9e4 to 0xfefa28 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0xd3a08
//
// 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_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;
}