//
// OCSP_REQ_CTX_nbio_d2i from 0xe63d64 to 0xe63df0 (140 bytes)
//
// 4 xrefs:
// > X509_http_nbio @ 0xdefe84
// > X509_CRL_http_nbio @ 0xdeff30
// > OCSP_sendreq_nbio @ 0xe63e04
// > ??> @ 0x8a240
//
// 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_REQ_CTX_nbio_d2i(__int64 a1, __int64 *a2, __int64 a3)
{
unsigned int v6; // w19
int v8; // w0
__int64 v9; // x0
char *v10; // [xsp+48h] [xbp+48h] BYREF
v6 = OCSP_REQ_CTX_nbio(a1);
if ( v6 == 1 )
{
v8 = BIO_ctrl(*(_QWORD *)(a1 + 32), 3u, 0, (__int64)&v10);
v9 = ASN1_item_d2i(nullptr, &v10, v8, a3);
*a2 = v9;
if ( !v9 )
{
v6 = 0;
*(_DWORD *)a1 = 4096;
}
}
return v6;
}