//
// SSL_get_peer_finished from 0x9ab74c to 0x9ab788 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x755cc
//
// 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:06:53 +0000
//
size_t __fastcall SSL_get_peer_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 + 516);
if ( a3 >= v4 )
a3 = *(_DWORD *)(v3 + 516);
memcpy(a2, (const void *)(v3 + 388), a3);
return v4;
}