//
// ASYNC_WAIT_CTX_set_wait_fd from 0x7cb5b4 to 0x7cb62c (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x5f2fc
//
// 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
//
int __fastcall ASYNC_WAIT_CTX_set_wait_fd(int *a1, int a2, int a3, int a4, int a5)
{
_DWORD *v9; // r12
int v10; // r3
int v11; // r0
v9 = (_DWORD *)CRYPTO_zalloc(28, "crypto/async/async_wait.c", 50);
if ( !v9 )
return 0;
v10 = *a1;
v11 = a1[1] + 1;
*v9 = a2;
v9[1] = a3;
v9[2] = a4;
v9[3] = a5;
v9[4] = 1;
v9[6] = v10;
a1[1] = v11;
*a1 = (int)v9;
return 1;
}