//
// sub_10EE1B8 from 0x10ee1b8 to 0x10ee2ec (308 bytes)
//
// 2 xrefs:
// > ??> @ 0x153fae8
// > ??> @ 0x153fb50
//
// 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:18:05 +0000
//
char **__fastcall sub_10EE1B8(__int64 a1, __int64 a2, unsigned int *a3)
{
int v4; // w19
int *v5; // x23
char **v6; // x20
__int64 v7; // x1
int *v8; // x0
bool v9; // cc
int v10; // w1
int v11; // w2
int v12; // w3
int v13; // w4
int v14; // w5
int v15; // w6
int v16; // w7
__int64 v17; // x21
char *v18; // x0
char v20; // [xsp+0h] [xbp+0h]
v4 = 0;
v5 = (int *)OPENSSL_sk_new_null();
if ( !v5 )
{
ERR_put_error(34, 103, 65, (__int64)"crypto/x509v3/v3_extku.c", 80);
return nullptr;
}
while ( 1 )
{
v9 = v4 < (int)OPENSSL_sk_num(a3);
v10 = v4++;
if ( !v9 )
return (char **)v5;
v17 = OPENSSL_sk_value((__int64)a3, v10);
v18 = *(char **)(v17 + 16);
if ( !v18 )
break;
v6 = OBJ_txt2obj(v18, 0, v11, v12, v13, v14, v15, v16, v20);
v7 = (__int64)v6;
v8 = v5;
if ( !v6 )
goto LABEL_9;
LABEL_4:
OPENSSL_sk_push(v8, v7);
}
v6 = OBJ_txt2obj(*(char **)(v17 + 8), 0, v11, v12, v13, v14, v15, v16, v20);
v7 = (__int64)v6;
v8 = v5;
if ( v6 )
goto LABEL_4;
LABEL_9:
OPENSSL_sk_pop_free(v8, (void (__fastcall *)(__int64))ASN1_OBJECT_free);
ERR_put_error(34, 103, 110, (__int64)"crypto/x509v3/v3_extku.c", 93);
ERR_add_error_data(6, "section:", *(_QWORD *)v17, ",name:", *(_QWORD *)(v17 + 8), ",value:", *(_QWORD *)(v17 + 16));
return v6;
}