//
// tree_find_sk from 0x8c3930 to 0x8c3978 (72 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0x84c458
// > ??> @ 0x685fc
//
// 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 tree_find_sk(_DWORD *a1, int a2)
{
unsigned int v3; // r1
char *v5; // [sp+4h] [bp-1Ch] BYREF
char v6; // [sp+10h] [bp-10h] BYREF
int v7; // [sp+14h] [bp-Ch]
v7 = a2;
v5 = &v6;
v3 = OPENSSL_sk_find((int)a1, (int)&v5);
if ( v3 == -1 )
return 0;
else
return OPENSSL_sk_value(a1, v3);
}