//
// ASYNC_WAIT_CTX_set_wait_fd from 0x9e01b4 to 0x9e022c (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x78d7c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:20 +0000
//
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;
}