//
// X509_VERIFY_PARAM_move_peername from 0x106cca8 to 0x106cd28 (128 bytes)
//
// 3 xrefs:
// > ssl_verify_cert_chain @ 0xfb8e90
// > SSL_clear @ 0xfc116c
// > ??> @ 0xca090
//
// 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:16:57 +0000
//
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;
}
}
}