//
// tree_find_sk from 0x10ed65c to 0x10ed6a8 (76 bytes)
//
// 2 xrefs:
// > X509_policy_check @ 0x1072090
// > ??> @ 0x921b8
//
// 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:18:05 +0000
//
__int64 __fastcall tree_find_sk(__int64 a1, __int64 a2)
{
int v3; // w1
char *v5; // [xsp+28h] [xbp+28h] BYREF
char v6; // [xsp+40h] [xbp+40h] BYREF
__int64 v7; // [xsp+48h] [xbp+48h]
v7 = a2;
v5 = &v6;
v3 = OPENSSL_sk_find(a1, (__int64)&v5);
if ( v3 == -1 )
return 0;
else
return OPENSSL_sk_value(a1, v3);
}