//
// EVP_EncodeFinal from 0x10defa4 to 0x10df004 (96 bytes)
//
// 3 xrefs:
// > PEM_write_bio @ 0x1045c60
// > sub_10FC9C4 @ 0x10fcbf8
// > ??> @ 0x53f50
//
// 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
//
unsigned __int64 __fastcall EVP_EncodeFinal(unsigned __int64 result, unsigned __int64 a2, _DWORD *a3)
{
__int64 v3; // x3
_DWORD *v4; // x19
LODWORD(v3) = *(_DWORD *)result;
v4 = (_DWORD *)result;
if ( *(_DWORD *)result )
{
result = EVP_EncodeBlock(a2, (unsigned __int8 *)(result + 8), v3);
*(_BYTE *)(a2 + (unsigned int)result) = 10;
v3 = (unsigned int)(result + 1);
*(_BYTE *)(a2 + v3) = 0;
*v4 = 0;
}
*a3 = v3;
return result;
}