//
// sub_A56E28 from 0xa56e28 to 0xa56ed8 (176 bytes)
//
// 12 xrefs:
// > X509_STORE_CTX_init @ 0xa5aa70
// > X509_STORE_CTX_init @ 0xa5aa74
// > X509_STORE_CTX_init @ 0xa5ab48
// > X509_STORE_CTX_init @ 0xa5ab64
// > X509_STORE_CTX_init @ 0xa5ac38
// > X509_STORE_CTX_init @ 0xa5ac40
// > X509_STORE_CTX_init @ 0xa5acdc
// > X509_STORE_CTX_init @ 0xa5ace0
// > ??> @ 0xa5ad20
// > ??> @ 0xa5ad48
// > ??> @ 0xa5ad68
// > ??> @ 0xa5ad84
//
// 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:26 +0000
//
int __fastcall sub_A56E28(int a1, int a2)
{
int result; // r0
int v5; // [sp+Ch] [bp-8h] BYREF
if ( (*(_DWORD *)(*(_DWORD *)(a1 + 16) + 12) & 0x10) != 0
|| (*(_DWORD *)(a2 + 72) & 0x200) == 0
|| (*(_DWORD *)(a1 + 96) = 36, (result = (*(int (__fastcall **)(_DWORD, int))(a1 + 28))(0, a1)) != 0) )
{
if ( X509_CRL_get0_by_cert(a2, &v5) )
{
if ( *(_DWORD *)(v5 + 28) == 8 )
{
return 2;
}
else
{
*(_DWORD *)(a1 + 96) = 23;
return (*(int (__fastcall **)(_DWORD, int))(a1 + 28))(0, a1) != 0;
}
}
else
{
return 1;
}
}
return result;
}