//
// OBJ_find_sigid_algs from 0xa31f80 to 0xa32024 (164 bytes)
//
// 8 xrefs:
// > ssl_security_cert @ 0x9c99dc
// > sub_9F8980 @ 0x9f8f5c
// > sub_A415FC @ 0xa41734
// > X509_signature_print @ 0xa51fc0
// > sub_A589E0 @ 0xa59648
// > X509_certificate_type @ 0xa5cbc8
// > ASN1_item_verify @ 0xa796d0
// > ??> @ 0x774dc
//
// 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:08:05 +0000
//
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_D357A0
&& (v5 = OPENSSL_sk_find(dword_D357A0, v8), v5 >= 0)
&& (result = OPENSSL_sk_value(dword_D357A0, v5)) != 0
|| (result = OBJ_bsearch_((int)v8, (int)&unk_C5C004, 42, 12, (int (__fastcall *)(int, int))sub_A31EFC)) != 0 )
{
if ( a2 )
*a2 = *(_DWORD *)(result + 4);
if ( a3 )
v7 = *(_DWORD *)(result + 8);
result = 1;
if ( a3 )
*a3 = v7;
}
return result;
}