//
// CMS_get0_signers from 0x876ba4 to 0x876c28 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x6a59c
//
// 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(int *a1)
{
signed int v1; // r4
void **v2; // r7
_DWORD *v3; // r6
int v4; // r0
unsigned int v5; // r1
int v7; // r0
int v8; // r1
int v9; // r5
v1 = 0;
v2 = nullptr;
v3 = (_DWORD *)CMS_get0_SignerInfos(a1);
while ( 1 )
{
v4 = OPENSSL_sk_num((int)v3);
v5 = v1;
if ( v1++ >= v4 )
break;
v7 = OPENSSL_sk_value(v3, v5);
v8 = *(_DWORD *)(v7 + 28);
v9 = v7;
if ( v8 )
{
if ( !v2 )
{
v2 = (void **)OPENSSL_sk_new_null();
if ( !v2 )
return v2;
v8 = *(_DWORD *)(v9 + 28);
}
if ( !OPENSSL_sk_push((int *)v2, v8) )
{
OPENSSL_sk_free(v2);
return nullptr;
}
}
}
return v2;
}