//
// X509_VERIFY_PARAM_move_peername from 0xdee968 to 0xdee9e8 (128 bytes)
//
// 3 xrefs:
// > ssl_verify_cert_chain @ 0xd3ab3c
// > SSL_clear @ 0xd42e18
// > ??> @ 0x99120
//
// 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
//
void __fastcall X509_VERIFY_PARAM_move_peername(__int64 a1, __int64 a2)
{
void *v4; // x21
void *v5; // x0
void *v6; // x0
if ( a2 )
{
v4 = *(void **)(a2 + 72);
v5 = *(void **)(a1 + 72);
if ( v4 != v5 )
{
CRYPTO_free(v5, (__int64)"crypto/x509/x509_vpm.c", 415);
*(_QWORD *)(a1 + 72) = v4;
}
*(_QWORD *)(a2 + 72) = 0;
}
else
{
v6 = *(void **)(a1 + 72);
if ( v6 )
{
CRYPTO_free(v6, (__int64)"crypto/x509/x509_vpm.c", 415);
*(_QWORD *)(a1 + 72) = 0;
}
}
}