//
// OCSP_single_get0_status from 0x1041ce0 to 0x1041d9c (188 bytes)
//
// 3 xrefs:
// > sub_E2C94C @ 0xe2d8c8
// > OCSP_resp_find_status @ 0x1041df0
// > ??> @ 0x94360
//
// 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:31 +0000
//
__int64 __fastcall OCSP_single_get0_status(_QWORD *a1, _DWORD *a2, _QWORD *a3, _QWORD *a4, _QWORD *a5)
{
unsigned int *v6; // x0
unsigned int v9; // w20
__int64 result; // x0
_QWORD *v11; // x0
__int64 v12; // x0
if ( !a1 )
return 0xFFFFFFFFLL;
v6 = (unsigned int *)a1[1];
v9 = *v6;
if ( *v6 == 1 )
{
v11 = *((_QWORD **)v6 + 1);
if ( a3 )
*a3 = *v11;
if ( a2 )
{
v12 = v11[1];
if ( v12 )
*a2 = ASN1_ENUMERATED_get(v12);
else
*a2 = -1;
}
}
if ( a4 )
*a4 = a1[2];
if ( !a5 )
return v9;
result = v9;
*a5 = a1[3];
return result;
}