//
// ssl_cert_set_cert_store from 0x9a74a0 to 0x9a74e8 (72 bytes)
//
// 5 xrefs:
// > ssl3_ctrl @ 0x9a43d4
// > ssl3_ctrl @ 0x9a43f0
// > ssl3_ctx_ctrl @ 0x9a4ae8
// > ssl3_ctx_ctrl @ 0x9a4b00
// > ??> @ 0x749fc
//
// 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:06:51 +0000
//
int __fastcall ssl_cert_set_cert_store(int a1, int a2, int a3, int a4)
{
_DWORD *v4; // r5
bool v5; // zf
int v6; // r2
bool v9; // zf
v5 = a3 == 0;
v6 = a1;
if ( v5 )
a1 = *(_DWORD *)(a1 + 204);
else
v4 = (_DWORD *)(a1 + 200);
if ( v5 )
v4 = (_DWORD *)(v6 + 204);
else
a1 = *(_DWORD *)(a1 + 200);
X509_STORE_free(a1);
v9 = a2 == 0;
if ( a2 )
v9 = a4 == 0;
*v4 = a2;
if ( !v9 )
X509_STORE_up_ref(a2);
return 1;
}