//
// engine_pkey_asn1_meths_free from 0xa0d440 to 0xa0d4c4 (132 bytes)
//
// 2 xrefs:
// > engine_free_util @ 0xa0c140
// > ??> @ 0x7be0c
//
// 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:44 +0000
//
int __fastcall engine_pkey_asn1_meths_free(int result)
{
int (*v1)(void); // r12
int v2; // r5
int v3; // r6
int v4; // r4
int v5[3]; // [sp+0h] [bp-Ch] BYREF
v1 = *(int (**)(void))(result + 40);
v2 = result;
if ( v1 )
{
result = v1();
v3 = result;
if ( result > 0 )
{
v4 = 0;
do
{
while ( 1 )
{
result = (*(int (__fastcall **)(int, int *, _DWORD, _DWORD))(v2 + 40))(
v2,
v5,
0,
*(_DWORD *)(v5[1] + 4 * v4++));
if ( result )
break;
if ( v4 == v3 )
return result;
}
result = EVP_PKEY_asn1_free(v5[0]);
}
while ( v4 != v3 );
}
}
return result;
}