//
// X509_get1_ocsp from 0x1082514 to 0x1082650 (316 bytes)
//
// 1 xrefs:
// > ??> @ 0xa1218
//
// 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:10 +0000
//
unsigned int *__fastcall X509_get1_ocsp(__int64 a1)
{
unsigned int *result; // x0
unsigned int *v2; // x21
int *v3; // x22
int v4; // w19
__int64 *v5; // x20
__int64 v6; // x2
__int64 v7; // x20
__int64 v8; // x1
const char *v9; // x1
result = (unsigned int *)X509_get_ext_d2i(a1);
v2 = result;
if ( result )
{
v3 = nullptr;
v4 = 0;
if ( (int)OPENSSL_sk_num(result) > 0 )
{
while ( 1 )
{
v5 = (__int64 *)OPENSSL_sk_value((__int64)v2, v4);
if ( (unsigned int)OBJ_obj2nid(*v5) == 178 )
{
v6 = v5[1];
if ( *(_DWORD *)v6 == 6 )
{
v7 = *(_QWORD *)(v6 + 8);
if ( *(_DWORD *)(v7 + 4) == 22 )
{
v8 = *(_QWORD *)(v7 + 8);
if ( v8 )
{
if ( *(_DWORD *)v7 )
{
if ( !v3 )
{
v3 = (int *)OPENSSL_sk_new((__int64)sub_1080D98);
if ( !v3 )
goto LABEL_15;
v8 = *(_QWORD *)(v7 + 8);
}
if ( (unsigned int)OPENSSL_sk_find((__int64)v3, v8) == -1 )
{
v9 = CRYPTO_strdup(*(const char **)(v7 + 8), (__int64)"crypto/x509v3/v3_utl.c", 470);
if ( !v9 || !(unsigned int)OPENSSL_sk_push(v3, (__int64)v9) )
break;
}
}
}
}
}
}
if ( ++v4 >= (int)OPENSSL_sk_num(v2) )
goto LABEL_5;
}
X509_email_free(v3);
LABEL_15:
v3 = nullptr;
}
LABEL_5:
AUTHORITY_INFO_ACCESS_free((__int64)v2);
return (unsigned int *)v3;
}
return result;
}