//
// OBJ_find_sigid_algs from 0x81d380 to 0x81d424 (164 bytes)
//
// 8 xrefs:
// > ssl_security_cert @ 0x7b4dd8
// > sub_7E3D80 @ 0x7e435c
// > sub_82C9FC @ 0x82cb34
// > X509_signature_print @ 0x83d3c0
// > sub_843DE0 @ 0x844a48
// > X509_certificate_type @ 0x847fc8
// > ASN1_item_verify @ 0x864ad0
// > ??> @ 0x5da5c
//
// 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 OBJ_find_sigid_algs(int a1, _DWORD *a2, _DWORD *a3)
{
int v5; // r1
int result; // r0
int v7; // r3
_DWORD v8[4]; // [sp+Ch] [bp+0h] BYREF
v8[0] = a1;
if ( dword_AD4514
&& (v5 = OPENSSL_sk_find(dword_AD4514, v8), v5 >= 0)
&& (result = OPENSSL_sk_value(dword_AD4514, v5)) != 0
|| (result = OBJ_bsearch_((int)v8, (int)&unk_A17334, 42, 12, (int (__fastcall *)(int, int))sub_81D2FC)) != 0 )
{
if ( a2 )
*a2 = *(_DWORD *)(result + 4);
if ( a3 )
v7 = *(_DWORD *)(result + 8);
result = 1;
if ( a3 )
*a3 = v7;
}
return result;
}