//
// OCSP_single_get0_status from 0xdc3980 to 0xdc3a3c (188 bytes)
//
// 3 xrefs:
// > sub_BB678C @ 0xbb7708
// > OCSP_resp_find_status @ 0xdc3a90
// > ??> @ 0x6dcc8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}