//
// EVP_DecodeFinal from 0x8b733c to 0x8b7394 (88 bytes)
//
// 2 xrefs:
// > PEM_read_bio @ 0x822c08
// > ??> @ 0x653dc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall EVP_DecodeFinal(int a1, int a2, int *a3)
{
int v6; // r3
*a3 = 0;
if ( !*(_DWORD *)a1 )
return 1;
v6 = EVP_DecodeBlock(a2, (unsigned __int8 *)(a1 + 8), *(_DWORD *)a1);
if ( v6 < 0 )
return -1;
*(_DWORD *)a1 = 0;
*a3 = v6;
return 1;
}