//
// X509_find_by_subject from 0x1064d2c to 0x1064da8 (124 bytes)
//
// 5 xrefs:
// > OCSP_basic_verify @ 0x10438ac
// > OCSP_basic_verify @ 0x1043ccc
// > OCSP_request_verify @ 0x1043e30
// > OCSP_request_verify @ 0x1043eec
// > ??> @ 0xedee0
//
// 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:52 +0000
//
__int64 __fastcall X509_find_by_subject(unsigned int *a1, __int64 a2)
{
int v4; // w19
__int64 v5; // x21
__int64 subject_name; // x0
bool v7; // cc
int v8; // w1
v4 = 0;
do
{
v7 = v4 < (int)OPENSSL_sk_num(a1);
v8 = v4++;
if ( !v7 )
return 0;
v5 = OPENSSL_sk_value((__int64)a1, v8);
subject_name = X509_get_subject_name(v5);
}
while ( (unsigned int)X509_NAME_cmp(subject_name, a2) );
return v5;
}