//
// OCSP_REQ_CTX_nbio_d2i from 0xace8e8 to 0xace95c (116 bytes)
//
// 4 xrefs:
// > X509_http_nbio @ 0xa5cde0
// > X509_CRL_http_nbio @ 0xa5cee0
// > OCSP_sendreq_nbio @ 0xace970
// > ??> @ 0x8174c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:22 +0000
//
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;
}