//
// OCSP_REQ_CTX_nbio_d2i from 0x8b98e8 to 0x8b995c (116 bytes)
//
// 4 xrefs:
// > X509_http_nbio @ 0x8481e0
// > X509_CRL_http_nbio @ 0x8482e0
// > OCSP_sendreq_nbio @ 0x8b9970
// > ??> @ 0x67ccc
//
// 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
//
int __fastcall OCSP_REQ_CTX_nbio_d2i(int a1, int *a2, int a3)
{
int v6; // r4
int result; // r0
int v8; // r0
int v9; // r3
unsigned __int8 *v10; // [sp+4h] [bp-4h] BYREF
v6 = OCSP_REQ_CTX_nbio((int *)a1);
if ( v6 != 1 )
return v6;
v8 = BIO_ctrl(*(_DWORD **)(a1 + 16), 3, 0, (int)&v10);
result = ASN1_item_d2i(nullptr, &v10, v8, a3);
if ( !result )
v9 = 4096;
*a2 = result;
if ( result )
return v6;
*(_DWORD *)a1 = v9;
return result;
}