//
// async_wait_ctx_reset_counts from 0xfefb34 to 0xfefbd0 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0xd26b8
//
// 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_reset_counts(__int64 *result)
{
__int64 v1; // x3
__int64 v2; // x19
__int64 *v3; // x21
v1 = *result;
v2 = 0;
v3 = result;
result[1] = 0;
result[2] = 0;
LABEL_2:
while ( v1 )
{
while ( 1 )
{
result = (__int64 *)v1;
if ( !*(_DWORD *)(v1 + 36) )
break;
if ( !v2 )
{
*v3 = *(_QWORD *)(v1 + 40);
result = (__int64 *)CRYPTO_free(v1, "crypto/async/async_wait.c", 180);
v1 = *v3;
goto LABEL_2;
}
*(_QWORD *)(v2 + 40) = *(_QWORD *)(v1 + 40);
result = (__int64 *)CRYPTO_free(v1, "crypto/async/async_wait.c", 180);
v1 = *(_QWORD *)(v2 + 40);
if ( !v1 )
return result;
}
v2 = v1;
if ( *(_DWORD *)(v1 + 32) )
*(_DWORD *)(v1 + 32) = 0;
v1 = *(_QWORD *)(v1 + 40);
}
return result;
}