//
// SCT_LIST_print from 0x8d009c to 0x8d0128 (140 bytes)
//
// 2 xrefs:
// > sub_87A370 @ 0x87a394
// > ??> @ 0x6a73c
//
// 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
//
int __fastcall SCT_LIST_print(_DWORD *a1, int a2, int a3, const char *a4, _DWORD *a5)
{
int result; // r0
int v10; // r7
signed int v11; // r4
int v12; // r0
result = OPENSSL_sk_num((int)a1);
v10 = result;
if ( result > 0 )
{
v11 = 0;
do
{
while ( 1 )
{
v12 = OPENSSL_sk_value(a1, v11);
SCT_print(v12, a2, a3, a5);
result = OPENSSL_sk_num((int)a1) - 1;
if ( result > v11++ )
break;
if ( v11 == v10 )
return result;
}
result = BIO_printf(a2, "%s", a4);
}
while ( v11 != v10 );
}
return result;
}