//
// ASYNC_WAIT_CTX_free from 0xfef8a8 to 0xfef948 (160 bytes)
//
// 2 xrefs:
// > SSL_free @ 0xfc0f20
// > ??> @ 0xbb918
//
// 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
//
_QWORD *__fastcall ASYNC_WAIT_CTX_free(_QWORD *result)
{
__int64 v1; // x19
_QWORD *v2; // x21
void (__fastcall *v3)(_QWORD *, _QWORD, _QWORD, _QWORD); // x4
__int64 v4; // x0
if ( result )
{
v1 = *result;
v2 = result;
while ( v1 )
{
if ( !*(_DWORD *)(v1 + 36) )
{
v3 = *(void (__fastcall **)(_QWORD *, _QWORD, _QWORD, _QWORD))(v1 + 24);
if ( v3 )
v3(v2, *(_QWORD *)v1, *(unsigned int *)(v1 + 8), *(_QWORD *)(v1 + 16));
}
v4 = v1;
v1 = *(_QWORD *)(v1 + 40);
CRYPTO_free(v4, "crypto/async/async_wait.c", 37);
}
return (_QWORD *)CRYPTO_free(v2, "crypto/async/async_wait.c", 41);
}
return result;
}