//
// SSL_get_finished from 0xd3fa9c to 0xd3faec (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x3cc78
//
// 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
//
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;
}