//
// OCSP_REQ_CTX_nbio_d2i from 0x10e1d64 to 0x10e1df0 (140 bytes)
//
// 4 xrefs:
// > X509_http_nbio @ 0x106e1c4
// > X509_CRL_http_nbio @ 0x106e270
// > OCSP_sendreq_nbio @ 0x10e1e04
// > ??> @ 0xb72b0
//
// 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:17:49 +0000
//
__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;
}