//
// d2i_SCT_LIST from 0x7dc13c to 0x7dc1b4 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x6056c
// > ??> @ 0xab4ed8
// > ??> @ 0xab4f48
//
// 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 d2i_SCT_LIST(int *a1, unsigned __int8 **a2, int a3)
{
unsigned __int8 *v3; // r12
int result; // r0
int v8; // r2
unsigned __int8 *v9; // r3
int v10; // r4
int v11; // r0
int v12; // [sp+0h] [bp-Ch] BYREF
unsigned __int8 *v13[2]; // [sp+4h] [bp-8h] BYREF
v3 = *a2;
v12 = 0;
v13[0] = v3;
result = d2i_ASN1_OCTET_STRING(&v12, v13, a3);
if ( result )
{
v8 = *(_DWORD *)v12;
v13[0] = *(unsigned __int8 **)(v12 + 8);
v10 = o2i_SCT_LIST(a1, v13, v8);
if ( v10 )
v9 = *a2;
v11 = v12;
if ( v10 )
*a2 = &v9[a3];
ASN1_OCTET_STRING_free(v11);
return v10;
}
return result;
}