//
// EVP_EncodeFinal from 0xacbe98 to 0xacbee8 (80 bytes)
//
// 3 xrefs:
// > PEM_write_bio @ 0xa36b10
// > sub_AE7AE8 @ 0xae7cb8
// > ??> @ 0x7ee1c
//
// 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:09:21 +0000
//
int *__fastcall EVP_EncodeFinal(int *result, _BYTE *a2, int *a3)
{
int v3; // r3
int *v4; // r4
v3 = *result;
v4 = result;
if ( *result )
{
result = (int *)EVP_EncodeBlock(a2, (int)(result + 2), *result);
v3 = (int)result + 1;
*((_BYTE *)result + (_DWORD)a2) = 10;
*((_BYTE *)result + (_DWORD)a2 + 1) = 0;
*v4 = 0;
}
*a3 = v3;
return result;
}