//
// ASYNC_WAIT_CTX_clear_fd from 0x9e0390 to 0x9e03e4 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x78d9c
//
// 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_clear_fd(int a1, int a2)
{
_DWORD *i; // r3
int v4; // r2
for ( i = *(_DWORD **)a1; ; i = (_DWORD *)i[6] )
{
if ( !i )
return 0;
if ( !i[5] && *i == a2 )
break;
}
v4 = *(_DWORD *)(a1 + 8);
i[5] = 1;
*(_DWORD *)(a1 + 8) = v4 + 1;
return 1;
}