//
// sub_1068574 from 0x1068574 to 0x1068630 (188 bytes)
//
// 3 xrefs:
// > X509_STORE_CTX_init @ 0x106be68
// > X509_STORE_CTX_init @ 0x106bf60
// > X509_STORE_CTX_init @ 0x106c024
//
// 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:55 +0000
//
__int64 __fastcall sub_1068574(__int64 a1, __int64 a2)
{
__int64 v4; // x3
__int64 v5; // x0
__int64 result; // x0
__int64 (__fastcall *v7)(__int64, __int64); // x3
unsigned int (__fastcall *v8)(_QWORD, __int64); // x2
__int64 v9; // [xsp+38h] [xbp+38h] BYREF
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL);
v5 = v4 & 0x10;
if ( (v4 & 0x10) != 0
|| (*(_DWORD *)(a2 + 132) & 0x200) == 0
|| (v7 = *(__int64 (__fastcall **)(__int64, __int64))(a1 + 56),
*(_DWORD *)(a1 + 176) = 36,
result = v7(v5, a1),
(_DWORD)result) )
{
if ( (unsigned int)X509_CRL_get0_by_cert(a2, &v9) )
{
result = 2;
if ( *(_DWORD *)(v9 + 48) != 8 )
{
v8 = *(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 56);
*(_DWORD *)(a1 + 176) = 23;
return v8(0, a1) != 0;
}
}
else
{
return 1;
}
}
return result;
}