//
// EVP_PKEY_verify_recover from 0x102b444 to 0x102b554 (272 bytes)
//
// 1 xrefs:
// > ??> @ 0x87af0
//
// 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:16:17 +0000
//
__int64 __fastcall EVP_PKEY_verify_recover(__int64 *a1, __int64 a2, _QWORD *a3)
{
__int64 v4; // x5
__int64 (__fastcall *v5)(__int64 *); // x0
int v6; // w0
if ( a1 && (v4 = *a1) != 0 && (v5 = *(__int64 (__fastcall **)(__int64 *))(v4 + 104)) != nullptr )
{
if ( *((_DWORD *)a1 + 8) == 32 )
{
if ( (*(_DWORD *)(v4 + 4) & 2) != 0 )
{
v6 = EVP_PKEY_size(a1[2]);
if ( a2 )
{
if ( (unsigned __int64)v6 > *a3 )
{
ERR_put_error(6, 144, 155, (__int64)"crypto/evp/pmeth_fn.c", 130);
return 0;
}
else
{
return (*(__int64 (__fastcall **)(__int64 *))(*a1 + 104))(a1);
}
}
else
{
*a3 = v6;
return 1;
}
}
else
{
return v5(a1);
}
}
else
{
ERR_put_error(6, 144, 151, (__int64)"crypto/evp/pmeth_fn.c", 127);
return 0xFFFFFFFFLL;
}
}
else
{
ERR_put_error(6, 144, 150, (__int64)"crypto/evp/pmeth_fn.c", 123);
return 4294967294LL;
}
}