//
// SCT_set1_log_id from 0x7dc518 to 0x7dc600 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x605ec
//
// 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
//
int __fastcall SCT_set1_log_id(_DWORD *a1, int a2, int a3)
{
_BOOL4 v3; // r5
bool v7; // zf
int v9; // r0
v3 = a3 != 32;
if ( *a1 )
v3 = 0;
if ( v3 )
{
ERR_put_error(50, 115, 100, "crypto/ct/ct_sct.c", 91);
return 0;
}
else
{
CRYPTO_free(a1[3], "crypto/ct/ct_sct.c", 95);
v7 = a3 == 0;
if ( a3 )
v7 = a2 == 0;
a1[3] = 0;
a1[4] = 0;
a1[15] = 0;
if ( v7 )
{
return 1;
}
else
{
v9 = CRYPTO_memdup(a2, a3, "crypto/ct/ct_sct.c", 101);
a1[3] = v9;
if ( v9 )
{
a1[4] = a3;
return 1;
}
else
{
ERR_put_error(50, 115, 65, "crypto/ct/ct_sct.c", 103);
return 0;
}
}
}
}