//
// CTLOG_STORE_get0_log_by_id from 0xd82ff0 to 0xd83080 (144 bytes)
//
// 3 xrefs:
// > SCT_validate @ 0xd84530
// > SCT_print @ 0xe7b9d4
// > ??> @ 0x72e28
//
// 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 CTLOG_STORE_get0_log_by_id(_QWORD *a1, const void *a2, size_t a3)
{
int v6; // w19
__int64 v7; // x20
bool v8; // cc
__int64 v9; // x1
v6 = 0;
do
{
v8 = v6 < (int)OPENSSL_sk_num(*a1);
v9 = (unsigned int)v6++;
if ( !v8 )
return 0;
v7 = OPENSSL_sk_value(*a1, v9);
}
while ( memcmp((const void *)(v7 + 8), a2, a3) );
return v7;
}