//
// EVP_DecodeFinal from 0x10df3d8 to 0x10df44c (116 bytes)
//
// 2 xrefs:
// > PEM_read_bio @ 0x10467f8
// > ??> @ 0x54f40
//
// 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:47 +0000
//
__int64 __fastcall EVP_DecodeFinal(__int64 a1, __int64 a2, _DWORD *a3)
{
unsigned int v3; // w21
int v7; // w0
v3 = 1;
*a3 = 0;
if ( !*(_DWORD *)a1 )
return v3;
v7 = EVP_DecodeBlock(a2, (unsigned __int8 *)(a1 + 8), *(_DWORD *)a1);
if ( v7 < 0 )
return (unsigned int)-1;
*(_DWORD *)a1 = 0;
*a3 = v7;
return 1;
}