//
// CTLOG_STORE_get0_log_by_id from 0x1001350 to 0x10013e0 (144 bytes)
//
// 3 xrefs:
// > SCT_validate @ 0x1002890
// > SCT_print @ 0x10f99d4
// > ??> @ 0x9a5e8
//
// 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 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;
}