//
// ASYNC_WAIT_CTX_free from 0x9e012c to 0x9e01ac (128 bytes)
//
// 2 xrefs:
// > SSL_free @ 0x9aecc4
// > ??> @ 0x75ecc
//
// 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
//
_DWORD *__fastcall ASYNC_WAIT_CTX_free(_DWORD *result)
{
_DWORD *v1; // r4
_DWORD *v2; // r7
void (__fastcall *v3)(_DWORD *, _DWORD, _DWORD, _DWORD); // r12
_DWORD *v4; // r5
if ( result )
{
v1 = (_DWORD *)*result;
v2 = result;
if ( *result )
{
do
{
if ( !v1[5] )
{
v3 = (void (__fastcall *)(_DWORD *, _DWORD, _DWORD, _DWORD))v1[3];
if ( v3 )
v3(v2, *v1, v1[1], v1[2]);
}
v4 = (_DWORD *)v1[6];
CRYPTO_free(v1, "crypto/async/async_wait.c", 37);
v1 = v4;
}
while ( v4 );
}
return (_DWORD *)CRYPTO_free(v2, "crypto/async/async_wait.c", 41);
}
return result;
}