//
// OBJ_find_sigid_algs from 0xdc2f60 to 0xdc3010 (176 bytes)
//
// 8 xrefs:
// > ssl_security_cert @ 0xd5bbc8
// > sub_D8B4C0 @ 0xd8bb20
// > sub_DD2FF0 @ 0xdd3150
// > X509_signature_print @ 0xde52ac
// > sub_DEBD8C @ 0xdec6a8
// > X509_certificate_type @ 0xdefc90
// > ASN1_item_verify @ 0xe0cdac
// > ??> @ 0x52920
//
// 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
//
__int64 __fastcall OBJ_find_sigid_algs(int a1, _DWORD *a2, _DWORD *a3)
{
unsigned int v5; // w0
__int64 v6; // x2
__int64 result; // x0
_DWORD v8[4]; // [xsp+30h] [xbp+30h] BYREF
v8[0] = a1;
if ( qword_125F1A0
&& (v5 = OPENSSL_sk_find(qword_125F1A0, v8), (v5 & 0x80000000) == 0)
&& (v6 = OPENSSL_sk_value(qword_125F1A0, v5)) != 0
|| (v6 = OBJ_bsearch_((__int64)v8, (__int64)"\a", 42, 12, (__int64 (__fastcall *)(__int64, __int64))sub_DC2ED8),
result = 0,
v6) )
{
if ( a2 )
*a2 = *(_DWORD *)(v6 + 4);
if ( a3 )
{
result = 1;
*a3 = *(_DWORD *)(v6 + 8);
}
else
{
return 1;
}
}
return result;
}