//
// CTLOG_STORE_get0_log_by_id from 0x7db538 to 0x7db59c (100 bytes)
//
// 3 xrefs:
// > SCT_validate @ 0x7dca34
// > SCT_print @ 0x8cfcf4
// > ??> @ 0x604ac
//
// 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 CTLOG_STORE_get0_log_by_id(_DWORD *a1, const void *a2, size_t a3)
{
int v6; // r4
int v7; // r5
int v8; // r0
int v9; // r1
v6 = 0;
do
{
v8 = OPENSSL_sk_num(*a1);
v9 = v6;
if ( v6++ >= v8 )
return 0;
v7 = OPENSSL_sk_value(*a1, v9);
}
while ( memcmp((const void *)(v7 + 4), a2, a3) );
return v7;
}