//
// CMS_get0_signers from 0xe21488 to 0xe21528 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x52218
//
// 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
//
void **__fastcall CMS_get0_signers(__int64 *a1)
{
int v1; // w19
void **v2; // x20
unsigned int *v3; // x22
bool v4; // cc
int v5; // w1
__int64 v6; // x0
__int64 v7; // x1
__int64 v8; // x21
v1 = 0;
v2 = nullptr;
v3 = (unsigned int *)CMS_get0_SignerInfos(a1);
while ( 1 )
{
v4 = v1 < (int)OPENSSL_sk_num(v3);
v5 = v1++;
if ( !v4 )
break;
v6 = OPENSSL_sk_value((__int64)v3, v5);
v7 = *(_QWORD *)(v6 + 56);
v8 = v6;
if ( v7 )
{
if ( !v2 )
{
v2 = (void **)OPENSSL_sk_new_null();
if ( !v2 )
return v2;
v7 = *(_QWORD *)(v8 + 56);
}
if ( !(unsigned int)OPENSSL_sk_push((int *)v2, v7) )
{
OPENSSL_sk_free(v2);
return nullptr;
}
}
}
return v2;
}