//
// OBJ_find_sigid_algs from 0x10412c0 to 0x1041370 (176 bytes)
//
// 8 xrefs:
// > ssl_security_cert @ 0xfd9f1c
// > sub_1009820 @ 0x1009e80
// > sub_1051350 @ 0x10514b0
// > X509_signature_print @ 0x10635ec
// > sub_106A0CC @ 0x106a9e8
// > X509_certificate_type @ 0x106dfd0
// > ASN1_item_verify @ 0x108b0ac
// > ??> @ 0x72c28
//
// 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:16:30 +0000
//
__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_1567FA0
&& (v5 = OPENSSL_sk_find(qword_1567FA0, v8), (v5 & 0x80000000) == 0)
&& (v6 = OPENSSL_sk_value(qword_1567FA0, v5)) != 0
|| (v6 = OBJ_bsearch_((__int64)v8, (__int64)"\a", 42, 12, (__int64 (__fastcall *)(__int64, __int64))sub_1041238),
result = 0,
v6) )
{
if ( a2 )
*a2 = *(_DWORD *)(v6 + 4);
if ( a3 )
{
result = 1;
*a3 = *(_DWORD *)(v6 + 8);
}
else
{
return 1;
}
}
return result;
}