//
// X509_VERIFY_PARAM_move_peername from 0xa5b91c to 0xa5b984 (104 bytes)
//
// 3 xrefs:
// > ssl_verify_cert_chain @ 0x9a65c8
// > SSL_clear @ 0x9aef28
// > ??> @ 0x74dcc
//
// 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:08:29 +0000
//
void __fastcall X509_VERIFY_PARAM_move_peername(int a1, int a2)
{
void *v4; // r6
void *v5; // r0
void *v6; // r0
if ( a2 )
{
v4 = *(void **)(a2 + 44);
v5 = *(void **)(a1 + 44);
if ( v4 != v5 )
{
CRYPTO_free(v5, (int)"crypto/x509/x509_vpm.c", 415);
*(_DWORD *)(a1 + 44) = v4;
}
*(_DWORD *)(a2 + 44) = 0;
}
else
{
v6 = *(void **)(a1 + 44);
if ( v6 )
{
CRYPTO_free(v6, (int)"crypto/x509/x509_vpm.c", 415);
*(_DWORD *)(a1 + 44) = 0;
}
}
}