//
// CTLOG_STORE_get0_log_by_id from 0x9f0138 to 0x9f019c (100 bytes)
//
// 3 xrefs:
// > SCT_validate @ 0x9f1634
// > SCT_print @ 0xae4cf4
// > ??> @ 0x79f2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:29 +0000
//
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;
}