//
// sub_9DF81C from 0x9df81c to 0x9df8dc (192 bytes)
//
// 2 xrefs:
// > ASYNC_init_thread @ 0x9dfb10
// > ASYNC_cleanup_thread @ 0x9e0098
//
// 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 sub_9DF81C(int *result)
{
int *v1; // r6
int v2; // r0
int v3; // r0
int v4; // r4
int v5; // r0
int ctx; // r6
if ( result )
{
v1 = result;
v2 = *result;
if ( v2 )
{
while ( 1 )
{
v3 = OPENSSL_sk_pop(v2);
v4 = v3;
if ( !v3 )
break;
CRYPTO_free(*(_DWORD *)(v3 + 8), "crypto/async/async.c", 98);
CRYPTO_free(v4, "crypto/async/async.c", 100);
v2 = *v1;
}
v2 = *v1;
}
OPENSSL_sk_free(v2);
CRYPTO_free(v1, "crypto/async/async.c", 383);
v5 = CRYPTO_THREAD_set_local(&unk_D34070, 0);
async_local_cleanup(v5);
ctx = async_get_ctx();
result = (int *)CRYPTO_THREAD_set_local(&unk_D3406C, 0);
if ( result )
return (int *)CRYPTO_free(ctx, "crypto/async/async.c", 75);
}
return result;
}