//
// sub_9E7E50 from 0x9e7e50 to 0x9e7eec (156 bytes)
//
// 2 xrefs:
// > ??> @ 0xc77aa0
// > ??> @ 0xc77ac8
//
// 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:24 +0000
//
int __fastcall sub_9E7E50(_DWORD *a1)
{
int *v2; // r5
int v3; // r2
int v4; // r0
_DWORD *v5; // r4
if ( !a1 )
return 0;
if ( !a1[4] || !a1[3] )
return 1;
v2 = (int *)a1[8];
if ( !v2 )
return 1;
v3 = a1[5];
v4 = *v2;
if ( (v3 & 0x200) != 0 )
*(_DWORD *)(v4 + 4) = 0;
v5 = a1;
BUF_MEM_free(v4);
CRYPTO_free(v2[1], "crypto/bio/bss_mem.c", 153);
CRYPTO_free(v2, "crypto/bio/bss_mem.c", 154);
v5[8] = 0;
return 1;
}