//
// ssl_cert_set_cert_store from 0xfb9d6c to 0xfb9dcc (96 bytes)
//
// 5 xrefs:
// > ssl3_ctrl @ 0xfb6f34
// > ssl3_ctrl @ 0xfb6f50
// > ssl3_ctx_ctrl @ 0xfb753c
// > ssl3_ctx_ctrl @ 0xfb7680
// > ??> @ 0x948a0
//
// 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:17 +0000
//
__int64 __fastcall ssl_cert_set_cert_store(__int64 a1, __int64 a2, int a3, int a4)
{
__int64 v4; // x2
_QWORD *v5; // x19
if ( a3 )
{
v4 = *(_QWORD *)(a1 + 392);
v5 = (_QWORD *)(a1 + 392);
}
else
{
v4 = *(_QWORD *)(a1 + 400);
v5 = (_QWORD *)(a1 + 400);
}
X509_STORE_free(v4);
*v5 = a2;
if ( a2 && a4 )
X509_STORE_up_ref(a2);
return 1;
}