//
// SSL_get_finished from 0x796b0c to 0x796b48 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x5bb3c
//
// 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(int a1, void *a2, size_t a3)
{
int v3; // r3
size_t v4; // r4
v3 = *(_DWORD *)(a1 + 104);
if ( !v3 )
return 0;
v4 = *(_DWORD *)(v3 + 384);
if ( a3 >= v4 )
a3 = *(_DWORD *)(v3 + 384);
memcpy(a2, (const void *)(v3 + 256), a3);
return v4;
}