//
// SCT_set0_log_id from 0x10022a4 to 0x1002334 (144 bytes)
//
// 2 xrefs:
// > SCT_new_from_base64 @ 0x10a28d0
// > ??> @ 0x7c1e0
//
// 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:54 +0000
//
__int64 __fastcall SCT_set0_log_id(__int64 a1, __int64 a2, __int64 a3)
{
if ( a3 == 32 || *(_DWORD *)a1 )
{
CRYPTO_free(*(_QWORD *)(a1 + 24), "crypto/ct/ct_sct.c", 81);
*(_QWORD *)(a1 + 24) = a2;
*(_QWORD *)(a1 + 32) = a3;
*(_DWORD *)(a1 + 96) = 0;
return 1;
}
else
{
ERR_put_error(50, 101, 100, "crypto/ct/ct_sct.c", 77);
return 0;
}
}