//
// ASYNC_WAIT_CTX_set_wait_fd from 0xd715e8 to 0xd71684 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x64770
//
// 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_set_wait_fd(__int64 *a1, __int64 a2, int a3, __int64 a4, __int64 a5)
{
__int64 result; // x0
__int64 v9; // x2
__int64 v10; // x1
result = CRYPTO_zalloc(48, "crypto/async/async_wait.c", 50);
if ( result )
{
v9 = *a1;
v10 = a1[1] + 1;
*(_QWORD *)result = a2;
*(_DWORD *)(result + 8) = a3;
*(_QWORD *)(result + 16) = a4;
*(_QWORD *)(result + 24) = a5;
*(_DWORD *)(result + 32) = 1;
*(_QWORD *)(result + 40) = v9;
*a1 = result;
a1[1] = v10;
return 1;
}
return result;
}