//
// SCT_set1_log_id from 0xd83fd4 to 0xd840c8 (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x62748
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall SCT_set1_log_id(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v7; // x0
if ( a3 == 32 || *(_DWORD *)a1 )
{
CRYPTO_free(*(_QWORD *)(a1 + 24), "crypto/ct/ct_sct.c", 95);
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 32) = 0;
*(_DWORD *)(a1 + 96) = 0;
if ( a3 && a2 )
{
v7 = CRYPTO_memdup(a2, a3, "crypto/ct/ct_sct.c", 101);
*(_QWORD *)(a1 + 24) = v7;
if ( v7 )
{
*(_QWORD *)(a1 + 32) = a3;
return 1;
}
else
{
ERR_put_error(50, 115, 65, "crypto/ct/ct_sct.c", 103);
return 0;
}
}
else
{
return 1;
}
}
else
{
ERR_put_error(50, 115, 100, "crypto/ct/ct_sct.c", 91);
return 0;
}
}