//
// SSL_get_finished from 0xfbddf0 to 0xfbde40 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x58018
//
// 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:15:19 +0000
//
size_t __fastcall SSL_get_finished(__int64 a1, void *a2, size_t a3)
{
__int64 v3; // x3
size_t v4; // x19
v3 = *(_QWORD *)(a1 + 144);
if ( !v3 )
return 0;
v4 = *(int *)(v3 + 400);
if ( a3 > v4 )
a3 = *(int *)(v3 + 400);
memcpy(a2, (const void *)(v3 + 272), a3);
return v4;
}