//
// SSL_get_peer_certificate from 0xfbdf3c to 0xfbdf7c (64 bytes)
//
// 3 xrefs:
// > sub_E2C94C @ 0xe2ca14
// > sub_E2C94C @ 0xe2ce18
// > ??> @ 0x6b710
//
// 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
//
__int64 __fastcall SSL_get_peer_certificate(__int64 a1)
{
__int64 v1; // x19
if ( !a1 )
return 0;
v1 = *(_QWORD *)(a1 + 376);
if ( v1 )
{
v1 = *(_QWORD *)(v1 + 152);
if ( v1 )
X509_up_ref(v1);
}
return v1;
}