//
// sub_109B93C from 0x109b93c to 0x109b9dc (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x140fc68
//
// 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:17:28 +0000
//
__int64 __fastcall sub_109B93C(int a1, int **a2)
{
int *v3; // x1
int v4; // w0
__int64 *v5; // x19
if ( a1 == 2 )
{
v3 = *a2;
v4 = *v3;
if ( *v3 )
{
if ( v4 == 2 )
{
CRYPTO_clear_free(
*(_BYTE **)(*((_QWORD *)v3 + 1) + 32LL),
*(_QWORD *)(*((_QWORD *)v3 + 1) + 40LL),
(__int64)"crypto/cms/cms_asn1.c",
0xD2u);
}
else if ( v4 == 3 )
{
CRYPTO_clear_free(
*(_BYTE **)(*((_QWORD *)v3 + 1) + 32LL),
*(_QWORD *)(*((_QWORD *)v3 + 1) + 40LL),
(__int64)"crypto/cms/cms_asn1.c",
0xD5u);
}
}
else
{
v5 = *((__int64 **)v3 + 1);
EVP_PKEY_free(v5[5]);
X509_free(v5[4]);
EVP_PKEY_CTX_free(v5[6]);
}
}
return 1;
}